栏目管理 > 增加栏目";
$zt="";
$b_ok=1;
$hiddenclass="";
//初使化数据
$r[myorder]=0;
$r[listorder]="id DESC";
$r[reorder]="newstime DESC";
$islast="";
$filename0=" checked";
$filename1="";
$filename2="";
$openpl0=" checked";
$openpl1="";
$openadd0="";
$openadd1=" checked";
$r[classtype]=".html";
$r[filetype]=".html";
$r[newspath]="Y-m-d";
$r[link_num]="10";
$r[lencord]=25;
$read="";
$r[newline]=10;
$r[hotline]=10;
$r[goodline]=10;
$r[hotplline]=10;
$r[firstline]=10;
$r[maxnum]=0;
$r[addinfofen]=0;
$r[doctime]=0;
$r[down_num]=2;
$r[online_num]=2;
$checked=" checked";
$r['addreinfo']=1;
$defaultbclassid=" selected";
$islist="";
$islast="是";
//复制栏目
$docopy=ehtmlspecialchars($_GET['docopy']);
if($docopy&&$enews=="AddClass")
{
$copyclass=1;
}
$ecmsfirstpost=1;
$classid=(int)$_GET['classid'];
if($enews=='EditClass')
{
$filepass=$classid;
}
else
{
$filepass=ReturnTranFilepass();
}
//修改栏目
if($enews=="EditClass"||$copyclass)
{
$ecmsfirstpost=0;
if($copyclass)
{
$thisdo="复制";
}
else
{
$thisdo="修改";
}
$read="";
$r=$empire->fetch1("select * from {$dbtbpre}enewsclass where classid='$classid'");
$addr=$empire->fetch1("select * from {$dbtbpre}enewsclassadd where classid='$classid'");
if(!empty($r[bclassid]))
{$defaultbclassid="";}
$url="管理栏目 > ".$thisdo."栏目:".$r[classname];
if($r[islist])
{$islist=" checked";}
//修改大栏目
if(!$r[islast])
{
//主栏目
if(empty($r[bclassid]))
{
$b_ok=1;
}
//中级栏目
else
{
$b_ok=1;
}
}
//终级栏目
else
{
$hiddenclass="";
$b_ok=0;
}
//终级类别
if($r[islast])
{
$islast="是";
$islastcheck=" checked";
}
else
{
$islast="否";
$islastcheck="";
}
$islast.="";
if($r[filename]==1)
{
$filename0="";
$filename1=" checked";
$filename2="";
}
elseif($r[filename]==2)
{
$filename0="";
$filename1="";
$filename2=" checked";
}
else
{}
if($r[openpl])
{
$openpl0="";
$openpl1=" checked";
}
if($r[checkpl])
{
$checkpl=" checked";
}
if($r[openadd])
{
$openadd0="";
$openadd1=" checked";
}
else
{
$openadd0=" checked";
$openadd1="";
}
//栏目目录
$mycr=GetPathname($r[classpath]);
$pripath=$mycr[1];
$classpath=$mycr[0];
$read="";
//复制栏目
if($copyclass)
{
$r[classname].="(1)";
$classpath.="1";
$read="";
$islast="是";
}
if($r[checked])
{$checked=" checked";}
else
{$checked="";}
}
//系统模型
$m_sql=$empire->query("select mid,mname,usemod from {$dbtbpre}enewsmod order by myorder,mid");
while($m_r=$empire->fetch($m_sql))
{
if(empty($m_r[usemod]))
{
if($m_r[mid]==$r[modid])
{$m_d=" selected";}
else
{$m_d="";}
$mod_options.="";
}
//列表模板
$listtemp_options.="";
$dtlisttemp_options.="";
$lt_sql=$empire->query("select tempid,tempname from ".GetTemptb("enewslisttemp")." where modid='$m_r[mid]'");
while($lt_r=$empire->fetch($lt_sql))
{
//静态
if($lt_r[tempid]==$r[listtempid])
{$lt_d=" selected";}
else
{$lt_d="";}
$listtemp_options.="";
//动态
if($lt_r[tempid]==$r[dtlisttempid])
{$lt_dt=" selected";}
else
{$lt_dt="";}
$dtlisttemp_options.="";
}
//搜索模板
$searchtemp.="";
$st_sql=$empire->query("select tempid,tempname from ".GetTemptb("enewssearchtemp")." where modid='$m_r[mid]'");
while($st_r=$empire->fetch($st_sql))
{
if($st_r[tempid]==$r[searchtempid])
{$st_d=" selected";}
else
{$st_d="";}
$searchtemp.="";
}
//内容模板
$newstemp_options.="";
$nt_sql=$empire->query("select tempid,tempname from ".GetTemptb("enewsnewstemp")." where modid='$m_r[mid]'");
while($nt_r=$empire->fetch($nt_sql))
{
if($nt_r[tempid]==$r[newstempid])
{$nt_d=" selected";}
else
{$nt_d="";}
$newstemp_options.="";
}
}
//栏目
$fcfile="../data/fc/ListEnews.php";
$fcjsfile="../data/fc/cmsclass.js";
if(file_exists($fcjsfile)&&file_exists($fcfile))
{
$options=GetFcfiletext($fcjsfile);
$options=str_replace("";
}
if($group)
{
$group="".$group."";
}
//会员组
$qgroup='';
$qgbr='';
$qgi=0;
$cgroup='';
$sql1=$empire->query("select groupid,groupname from {$dbtbpre}enewsmembergroup order by level");
while($l_r=$empire->fetch($sql1))
{
if($r[groupid]==$l_r[groupid])
{$select=" selected";}
else
{$select="";}
$group.="";
//投稿
$qgi++;
if($qgi%6==0)
{
$qgbr='
';
}
else
{
$qgbr='';
}
$qgchecked='';
if(strstr($r[qaddgroupid],','.$l_r[groupid].','))
{
$qgchecked=' checked';
}
$qgroup.="".$l_r[groupname]." ".$qgbr;
//栏目页权限
$cgchecked='';
if(strstr($r[cgroupid],','.$l_r[groupid].','))
{
$cgchecked=' checked';
}
$cgroup.="".$l_r[groupname]." ".$qgbr;
}
//js模板
$jstempsql=$empire->query("select tempid,tempname from ".GetTemptb("enewsjstemp")." order by tempid");
while($jstempr=$empire->fetch($jstempsql))
{
$select="";
if($r[jstempid]==$jstempr[tempid])
{
$select=" selected";
}
$jstemp.="";
}
//封面模板
$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.="";
}
//评论模板
$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.="";
}
//WAP模板
$wapstyles='';
$wapstyle_sql=$empire->query("select styleid,stylename from {$dbtbpre}enewswapstyle order by styleid");
while($wapstyle_r=$empire->fetch($wapstyle_sql))
{
$select="";
if($r[wapstyleid]==$wapstyle_r[styleid])
{
$select=" selected";
}
$wapstyles.="";
}
//预设投票
$infovotesql=$empire->query("select voteid,ysvotename from {$dbtbpre}enewsvotemod order by voteid desc");
while($infovoter=$empire->fetch($infovotesql))
{
$select="";
if($r[definfovoteid]==$infovoter[voteid])
{
$select=" selected";
}
$definfovote.="";
}
//优化方案
$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.="";
}
//工作流
$workflows='';
$wfsql=$empire->query("select wfid,wfname from {$dbtbpre}enewsworkflow order by myorder,wfid");
while($wfr=$empire->fetch($wfsql))
{
$select='';
if($r[wfid]==$wfr[wfid])
{
$select=' selected';
}
$workflows.="";
}
//编辑器
include('ecmseditor/eshoweditor.php');
$loadeditorjs=ECMS_ShowEditorJS('ecmseditor/infoeditor/');
//当前使用的模板组
$thegid=GetDoTempGid();
?>
位置:=$url?> |