AddClass.php ( 文件浏览 )
文件源自:
帝国cms7.0_TAG静态化插件_简体GBK版
源码简介:
帝国cms7.0_TAG静态化插件_简体GBK版
- keepall 发布于 2016-12-09 21:17
- 浏览次数:531
- 下载次数: 3
- 下载需 100 积分
-
- 侵权举报
<?php define('EmpireCMSAdmin','1'); require("../../class/connect.php"); require("../../class/db_sql.php"); require("../../class/functions.php"); $link=db_connect(); $empire=new mysqlquery(); $editor=1; //验证用户 $lur=is_login(); $logininid=$lur['userid']; $loginin=$lur['username']; $loginrnd=$lur['rnd']; $loginlevel=$lur['groupid']; $loginadminstyleid=$lur['adminstyleid']; require("class/dp_config.php"); require("setconfig.php"); if($dp_r['isok']==0){ exit('请先配置当前插件目录下setconfig.php文件'); } $enews=$_GET['enews']; $postword='增加'; //修改 if($enews=="editclass") { $postword='修改'; $classid=(int)$_GET['classid']; $r=$empire->fetch1("select * from {$dbtbpre}enewstagsclass where classid='$classid'"); $cadd=$empire->fetch1("select * from {$dbtbpre}enewstagsclassadd where classid='$classid'"); } //列表模板 $listtemp_options=''; $msql=$empire->query("select mid,mname from {$dbtbpre}enewsmod order by myorder,mid"); while($mr=$empire->fetch($msql)){ $listtemp_options.="<option value=0 style='background:#99C4E3'>".$mr[mname]."</option>"; $l_sql=$empire->query("select tempid,tempname from ".GetTemptb("enewslisttemp")." where modid='$mr[mid]'"); while($l_r=$empire->fetch($l_sql)) { if($l_r[tempid]==$cadd[tempid]) {$l_d=" selected";} else {$l_d="";} $listtemp_options.="<option value=".$l_r[tempid].$l_d."> |-".$l_r[tempname]."</option>"; } } //栏目 $options=ShowClass_AddClass("",$cadd[modid],0,"|-",0,0); //页面标题 $thispage=$postword.'TAGS分类'; //导航 $url='<a href="ListTags.php">TAGS管理</a> -> <a href="ListClass.php">分类管理</a> -> '.$thispage; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?=$pagechar?>"> <link href="../../data/images/qcss.css" rel="stylesheet" type="text/css"> <title><?=$thispage?></title> </head> <body> <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1"> <tr> <td>当前位置:<?=$url?></td> </tr> </table> <form name="form1" method="post" action="do.php"> <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder"> <tr class="header"> <td height="25" colspan="2"><?=$thispage?> <input name="enews" type="hidden" id="enews" value="<?=$enews?>"> <input name="classid" type="hidden" id="classid" value="<?=$classid?>"> </td> </tr> <tr bgcolor="#FFFFFF"> <td width="18%" height="25">分类名称:</td> <td width="82%" height="25"> <input name="classname" type="text" id="classname" value="<?=$r[classname]?>" style="width:200px;"> </td> </tr> <tr bgcolor="#FFFFFF"> <td width="18%" height="25">默认目录:</td> <td width="82%" height="25"> 根目录/<?=$dp_r[tagpath]?>/ <input name="path" type="text" id="path" value="<?=$cadd[path]?>" size="20"> </td> </tr> <tr bgcolor="#FFFFFF[!==More==!]
...
展开> <收缩
Sponsored links
源码文件列表
温馨提示: 点击源码文件名可预览文件内容哦 ^_^ Sponsored links