AddTag.php ( 文件浏览 )
文件源自:
帝国cms7.0_TAG静态化插件_简体GBK版
源码简介:
帝国cms7.0_TAG静态化插件_简体GBK版
- keepall 发布于 2016-12-09 21:17
- 浏览次数:475
- 下载次数: 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=2; //验证用户 $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='增加'; $r[isgood]=0; //修改 if($enews=="edittag") { $postword='修改'; $tagid=(int)$_GET['tagid']; $r=$empire->fetch1("select * from {$dbtbpre}enewstags where tagid='$tagid'"); $add=$empire->fetch1("select * from {$dbtbpre}enewstagsadd where tagid='$tagid'"); $addr=$add; } $navclass=''; $ccsql=$empire->query("select classname,classid from {$dbtbpre}enewstagsclass"); while($ccr=$empire->fetch($ccsql)){ $sl=''; if($ccr[classid]==$r[cid]){ $sl=' selected'; } $navclass.='<option value="'.$ccr[classid].'" '.$sl.'>'.$ccr[classname].'</option>'; } //列表模板 $listtemp_options=''; $mod_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]==$add[tempid]) {$l_d=" selected";} else {$l_d="";} $listtemp_options.="<option value=".$l_r[tempid].$l_d."> |-".$l_r[tempname]."</option>"; } if($mr[mid]==$add[modid]) {$m_d=" selected";} else {$m_d="";} $mod_options.="<option value=".$mr[mid].$m_d.">".$mr[mname]."</option>"; } $tagpath=''; if($dp_r['path']){ $tagpath=$dp_r['path'].'/'; } //页面标题 $thispage=$postword.'TAG'; //导航 $url='<a href="ListTags.php">TAGS管理</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="tagid" type="hidden" id="tagid" value="<?=$tagid?>"> <input name="oldpy" type="hidden" id="oldpy" value="<?=$add[py]?>"> <input name="oldcid" type="hidden" id="ol[!==More==!]
...
展开> <收缩
Sponsored links
源码文件列表
温馨提示: 点击源码文件名可预览文件内容哦 ^_^ Sponsored links