管理专题 > 增加专题"; $postword='增加专题'; //初使化数据 $r[reorder]="newstime DESC"; $r[maxnum]=0; $r[ztnum]=25; $r[zttype]=".html"; $r[newline]=10; $r[hotline]=10; $r[goodline]=10; $r[hotplline]=10; $r[firstline]=10; $pripath='s/'; //复制专题 $docopy=RepPostStr($_GET['docopy'],1); if($docopy&&$enews=="AddZt") { $copyclass=1; } $ecmsfirstpost=1; if($enews=='EditZt') { $filepass=$ztid; } else { $filepass=ReturnTranFilepass(); } //修改专题 if($enews=="EditZt"||$copyclass) { $ecmsfirstpost=0; if($copyclass) { $thisdo="复制"; } else { $thisdo="修改"; } $r=$empire->fetch1("select * from {$dbtbpre}enewszt where ztid='$ztid'"); $addr=$empire->fetch1("select * from {$dbtbpre}enewsztadd where ztid='$ztid'"); $usernames=substr($r['usernames'],1,-1); $url="管理专题 > ".$thisdo."专题:".$r[ztname]; $postword=$thisdo.'专题'; //专题目录 $mycr=GetPathname($r[ztpath]); $pripath=$mycr[1]; $ztpath=$mycr[0]; //复制专题 if($copyclass) { $r[ztname].='(1)'; $ztpath.='1'; } } //列表模板 $msql=$empire->query("select mid,mname from {$dbtbpre}enewsmod order by myorder,mid"); while($mr=$empire->fetch($msql)) { $listtemp_options.=""; $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]==$r[listtempid]) {$l_d=" selected";} else {$l_d="";} $listtemp_options.=""; } } //栏目 $options=ShowClass_AddClass("",$r[classid],0,"|-",0,0); //封面模板 $classtempsql=$empire->query("select tempid,tempname from ".GetTemptb("enewsclasstemp")." order by tempid"); while($classtempr=$empire->fetch($classtempsql)) { $select=""; if($r[classtempid]==$classtempr[tempid]) { $select=" selected"; } $classtemp.=""; } //评论模板 $pltemp=''; $pltempsql=$empire->query("select tempid,tempname from ".GetTemptb("enewspltemp")." order by tempid"); while($pltempr=$empire->fetch($pltempsql)) { $select=""; if($r[pltempid]==$pltempr[tempid]) { $select=" selected"; } $pltemp.=""; } //分类 $zcstr=""; $zcsql=$empire->query("select classid,classname from {$dbtbpre}enewsztclass order by classid"); while($zcr=$empire->fetch($zcsql)) { $select=""; if($zcr[classid]==$r[zcid]) { $select=" selected"; } $zcstr.=""; } //优化方案 $yh_options=''; $yhsql=$empire->query("select id,yhname from {$dbtbpre}enewsyh order by id"); while($yhr=$empire->fetch($yhsql)) { $select=''; if($r[yhid]==$yhr[id]) { $select=' selected'; } $yh_options.=""; } $from=(int)$_GET['from']; //当前使用的模板组 $thegid=GetDoTempGid(); ?>
位置: =$url?> |