管理自定义信息列表 > 增加自定义信息列表"; $r[jsfilename]="../../list/"; $r[filetype]=".html"; $r[filepath]="../../a/"; $r[totalsql]="select count(*) as total from [!db.pre!]ecms_news"; $r[listsql]="select * from [!db.pre!]ecms_news order by id desc"; $r[maxnum]=0; $r[lencord]=25; //复制 if($enews=="AddUserlist"&&$_GET['docopy']) { $listid=(int)$_GET['listid']; $r=$empire->fetch1("select * from {$dbtbpre}enewsuserlist where listid='$listid'"); $url="管理自定义信息列表 > 复制自定义信息列表:".$r[listname].""; } //修改 if($enews=="EditUserlist") { $listid=(int)$_GET['listid']; $r=$empire->fetch1("select * from {$dbtbpre}enewsuserlist where listid='$listid'"); $url="管理自定义信息列表 -> 修改自定义信息列表:".$r[listname].""; } //列表模板 $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.=""; } } //当前使用的模板组 $thegid=GetDoTempGid(); //分类 $cstr=""; $csql=$empire->query("select classid,classname from {$dbtbpre}enewsuserlistclass order by classid"); while($cr=$empire->fetch($csql)) { $select=""; if($cr[classid]==$r[classid]) { $select=" selected"; } $cstr.=""; } db_close(); $empire=null; ?>
位置:=$url?> |