fetch1("select ztid,ztname from {$dbtbpre}enewszt where ztid='$ztid'"); if(!$ztr['ztid']) { printerror('ErrorUrl',''); } //验证权限 //CheckLevel($logininid,$loginin,$classid,"zt"); $returnandlevel=CheckAndUsernamesLevel('dozt',$ztid,$logininid,$loginin,$loginlevel); $url="管理专题 > ".$ztr['ztname']." > 管理专题子类 > 增加专题子类"; $postword='增加专题子类'; //初使化数据 $r[myorder]=0; $r[reorder]="newstime DESC"; $r[maxnum]=0; $r[tnum]=25; $r[ttype]=".html"; $r[islist]=1; //复制 $docopy=RepPostStr($_GET['docopy'],1); if($docopy&&$enews=="AddZtType") { $copyclass=1; } $ecmsfirstpost=1; //修改 if($enews=="EditZtType"||$copyclass) { $ecmsfirstpost=0; if($copyclass) { $thisdo="复制"; } else { $thisdo="修改"; } $cid=(int)$_GET['cid']; $r=$empire->fetch1("select * from {$dbtbpre}enewszttype where cid='$cid'"); $addr=$empire->fetch1("select * from {$dbtbpre}enewszttypeadd where cid='$cid'"); $url="管理专题 > ".$ztr['ztname']." > 管理专题子类 > ".$thisdo."专题子类:".$r[cname]; $postword=$thisdo.'专题子类'; //复制分类 if($copyclass) { $r[cname].='(1)'; } } //列表模板 $mod_options=''; $listtemp_options=''; $msql=$empire->query("select mid,mname,usemod from {$dbtbpre}enewsmod order by myorder,mid"); while($mr=$empire->fetch($msql)) { if(empty($mr[usemod])) { if($mr[mid]==$r[mid]) {$m_d=" selected";} else {$m_d="";} $mod_options.=""; } //列表模板 $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.=""; } } //封面模板 $classtemp=''; $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.=""; } //当前使用的模板组 $thegid=GetDoTempGid(); ?>
位置: =$url?> |