(设置后不可修改)'; $disabled=''; $sptypehidden=''; $r[maxnum]=0; $url="管理碎片 > 增加碎片"; $fcid=(int)$_GET['fcid']; $fclassid=(int)$_GET['fclassid']; $fsptype=(int)$_GET['fsptype']; $r['spfile']='html/sp/'.time().'.html'; $spid=(int)$_GET['spid']; if($enews=='EditSp') { $filepass=$spid; } else { $filepass=ReturnTranFilepass(); } //复制 if($enews=="AddSp"&&$_GET['docopy']) { $r=$empire->fetch1("select * from {$dbtbpre}enewssp where spid='$spid'"); $url="管理碎片 > 复制碎片:".$r[spname].""; $username=substr($r[username],1,-1); } //修改 if($enews=="EditSp") { $r=$empire->fetch1("select * from {$dbtbpre}enewssp where spid='$spid'"); $postword='修改碎片'; $noteditword=''; $disabled=' disabled'; $sptypehidden=''; $url="管理碎片 > 修改碎片:".$r[spname].""; $username=substr($r[username],1,-1); } //标签模板 $bqtemp=''; $bqtempsql=$empire->query("select tempid,tempname from ".GetTemptb("enewsbqtemp")." order by tempid"); while($bqtempr=$empire->fetch($bqtempsql)) { $select=""; if($r[tempid]==$bqtempr[tempid]) { $select=" selected"; } $bqtemp.=""; } //栏目 $options=ShowClass_AddClass("",$r[classid],0,"|-",0,0); //分类 $scstr=''; $scsql=$empire->query("select classid,classname from {$dbtbpre}enewsspclass order by classid"); while($scr=$empire->fetch($scsql)) { $select=""; if($scr[classid]==$r[cid]) { $select=" selected"; } $scstr.=""; } //用户组 $group=''; $groupsql=$empire->query("select groupid,groupname from {$dbtbpre}enewsgroup order by groupid"); while($groupr=$empire->fetch($groupsql)) { $select=''; if(strstr($r[groupid],','.$groupr[groupid].',')) { $select=' selected'; } $group.=""; } //部门 $userclass=''; $ucsql=$empire->query("select classid,classname from {$dbtbpre}enewsuserclass order by classid"); while($ucr=$empire->fetch($ucsql)) { $select=''; if(strstr($r[userclass],','.$ucr[classid].',')) { $select=' selected'; } $userclass.=""; } //当前使用的模板组 $thegid=GetDoTempGid(); db_close(); $empire=null; ?>
位置:=$url?> |