<?php
define('EmpireCMSAdmin','1');
require("../../e/class/connect.php");
require("../../e/class/functions.php");
$link=db_connect();
$empire=new mysqlquery();
//驗證用戶
$lur=is_login();
$logininid=(int)$lur['userid'];
$loginin=$lur['username'];
$loginrnd=$lur['rnd'];
$loginlevel=(int)$lur['groupid'];
$loginadminstyleid=(int)$lur['adminstyleid'];
//ehash
$ecms_hashur=hReturnEcmsHashStrAll();
//驗證權限
CheckLevel($logininid,$loginin,$classid,"setmclass");
$r['newline']=10;
$r['hotline']=10;
$r['goodline']=10;
$r['hotplline']=10;
$r['firstline']=10;
$url="<a href=SetMoreClass.php".$ecms_hashur['whehref'].">批量設置欄目</a>";
//系統模型
$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.="<option value=".$m_r['mid'].$m_d.">".$m_r['mname']."</option>";
	}
	//列表模板
	$listtemp_options.="<option value=0 style='background:#99C4E3'>".$m_r['mname']."</option>";
	$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.="<option value=".$lt_r['tempid'].$lt_d."> |-".$lt_r['tempname']."</option>";
	}
	//搜索模板
	$searchtemp.="<option value=0 style='background:#99C4E3'>".$m_r['mname']."</option>";
	$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.="<option value=".$st_r['tempid'].$st_d."> |-".$st_r['tempname']."</option>";
	}
	$newstemp_options.="<option value=0 style='background:#99C4E3'>".$m_r['mname']."</option>";
	$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.="<option value=".$nt_r['tempid'].$nt_d."> |-".$nt_r['tempname']."</option>";
	}
}
//會員組
$qgroup='';
$qgbr='';
$qgi=0;
$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.="<option value=".$l_r['groupid'].$select.">".$l_r['groupname']."</option>";
	//投稿
	$qgi++;
	if($qgi%6==0)
	{
		$qgbr='<br>';
	}
	else
	{
		$qgbr='';
	}
	$qgchecked='';
	if(strstr($r['qaddgroupid'],','.$l_r['groupid'].','))
	{
		$qgchecked=' checked';
	}
	$qgroup.="<input type=checkbox name=qaddgroupidck[] value='".$l_r['groupid']."'".$qgchecked.">".$l_r['groupname']."&nbsp;".$br;
}
//返回會員組+訪問組
$ymvgroup=eReturnMVGroupFormSelect(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.="<option value='".$classtempr['tempid']."'".$select.">".$classtempr['tempname']."</option>";
}
//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.="<option value='".$jstempr['tempid']."'".$select.">".$jstempr['tempname']."</option>";
}
//評論模板
$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.="<option value='".$pltempr['tempid']."'".$select.">".$pltempr['tempname']."</option>";
}
//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.="<option value='".$wapstyle_r['styleid']."'".$select.">".$wapstyle_r['stylename']."</option>";
}
//預設投票
$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.="<option value='".$infovoter['voteid']."'".$select.">".$infovoter['ysvotename']."</option>";
}
//--------------------操作的欄目
$fcfile="../../c/ecachepub/eclassfc/ListEnews.php";
$do_class="<script src=../../c/ecachepub/eclassfc/cmsclass.js></script>";
if(!file_exists($fcfile))
{$do_class=ShowClass_AddClass("","n",0,"|-",0,0);}

//當前使用的模板組
$thegid=GetDoTempGid();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>批量設置欄目</title>
<link href="adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr>
    <td height="32">位置：<?=$url?></td>
  </tr>
</table>

<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  <form name="form1" method="post" action="ecmsclass.php" onsubmit="return confirm('確認要操作?');">
  <?=$ecms_hashur['form']?>
  <?php echo heformhash_get('SetMoreClass'); ?>
    <tr class="header"> 
      <td height="25" colspan="2"><div align="center">批量設置欄目屬性</div></td>
    </tr>
    <tr> 
      <td width="23%" height="25" valign="top" bgcolor="#FFFFFF">
<div align="center">
          <select name="classid[]" size="73" multiple id="classid[]" style="width:180">
            <?=$do_class?>
          </select>
          <br>
          選擇多個欄目請用CTRL/SHIFT</div></td>
      <td width="77%" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="3" cellspacing="1" class="tableborder">
          <tr bgcolor="#FFFFFF"> 
            <td height="25"><div align="center">修改</div></td>
            <td colspan="2">設置項目</td>
          </tr>
          <tr class="header"> 
            <td width="6%" height="25"> <div align="center"></div></td>
            <td colspan="2"><font class=tabcolor><strong>基本屬性設置</strong></font></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
                <input name="doclasstype" type="checkbox" id="doclasstype" value="1">
              </div></td>
            <td width="23%" bgcolor="#FFFFFF">欄目文件擴展名</td>
            <td width="71%" bgcolor="#FFFFFF"> <input name="classtype" type="text" id="classtype" value=".html" size="10"> 
              <select name="sze1" onchange="document.form1.classtype.value=this.value">
                <option value=".html">擴展名</option>
                <option value=".html">.html</option>
                <option value=".htm">.htm</option>
                <option value=".php">.php</option>
                <option value=".shtml">.shtml</option>
              </select> </td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dolisttempid" type="checkbox" id="dolisttempid" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">所屬列表模板</td>
            <td bgcolor="#FFFFFF"><select name="listtempid" id="listtempid">
                <?=$listtemp_options?>
              </select> <input type="button" name="Submit6222" value="管理列表模板" onclick="window.open('template/ListListtemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dodtlisttempid" type="checkbox" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">動態列表模板</td>
            <td bgcolor="#FFFFFF"><select name="dtlisttempid">
                <?=$listtemp_options?>
              </select> <input type="button" name="Submit62226" value="管理列表模板" onclick="window.open('template/ListListtemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"> 
            </td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="domaxnum" type="checkbox" id="dobmaxnum" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">顯示總記錄數</td>
            <td bgcolor="#FFFFFF"><input name="maxnum" type="text" id="maxnum" value="0" size="5">
              條<font color="#666666">(0為顯示所有記錄)</font></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dolencord" type="checkbox" id="domaxnum" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">每頁顯示記錄數</td>
            <td bgcolor="#FFFFFF"><input name="lencord" type="text" id="lencord" value="25" size="5">
              條</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
                <input name="dosearchtempid" type="checkbox" id="dosearchtempid" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">搜索模板</td>
            <td bgcolor="#FFFFFF"> <select name="searchtempid" id="searchtempid">
                <option value="0">使用默認模板 </option>
                <?=$searchtemp?>
              </select> <input type="button" name="Submit62" value="管理搜索模板" onclick="window.open('template/ListSearchtemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dowapstyleid" type="checkbox" id="dowapstyleid" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">WAP模板</td>
            <td bgcolor="#FFFFFF"><select name="wapstyleid" id="wapstyleid">
                <option value="0">使用默認模板</option>
                <?=$wapstyles?>
              </select> <input type="button" name="Submit6232" value="管理WAP模板" onclick="window.open('other/WapStyle.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
                <input name="dolistorder" type="checkbox" id="dosearchtempid3" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">管理信息排序方式</td>
            <td bgcolor="#FFFFFF">
<input name="listorder" type="text" id="listorder" value="id DESC" size="38">
            </td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
                <input name="doreorder" type="checkbox" id="doreorder" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">列表式頁面排序方式</td>
            <td bgcolor="#FFFFFF">
<input name="reorder" type="text" id="reorder" value="newstime DESC" size="38">
            </td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
                <input name="dolistdt" type="checkbox" id="dolistdt" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">欄目頁模式</td>
            <td bgcolor="#FFFFFF"> <input type="radio" name="listdt" value="0"<?=$r['listdt']==0?' checked':''?>>
              靜態頁面
<input type="radio" name="listdt" value="1"<?=$r['listdt']==1?' checked':''?>>
              動態頁面</td>
          </tr>
          <tr> 
            <td height="24" bgcolor="#FFFFFF"> <div align="center"> 
                <input name="doshowdt" type="checkbox" id="doshowdt" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">內容頁模式</td>
            <td bgcolor="#FFFFFF"> <input type="radio" name="showdt" value="0"<?=$r['showdt']==0?' checked':''?>>
              靜態頁面 
              <input type="radio" name="showdt" value="1"<?=$r['showdt']==1?' checked':''?>>
              動態生成 
              <input type="radio" name="showdt" value="2"<?=$r['showdt']==2?' checked':''?>>
              動態頁面</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
                <input name="doshowclass" type="checkbox" id="doshowclass" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">是否顯示到導航</td>
            <td bgcolor="#FFFFFF"> <input type="radio" name="showclass" value="0"<?=$r['showclass']==0?' checked':''?>>
              是 
              <input type="radio" name="showclass" value="1"<?=$r['showclass']==1?' checked':''?>>
              否<font color="#666666">&nbsp; </font><font color="#666666">(如：導航標籤，地圖標籤)</font></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="doopenadd" type="checkbox" id="doopenadd" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">開放投稿功能</td>
            <td bgcolor="#FFFFFF"><input name="openadd" type="radio" value="0" checked<?=$openadd0?>>
              是 
              <input type="radio" name="openadd" value="1"<?=$openadd1?>>
              否</td>
          </tr>
          <tr class="header"> 
            <td height="25"> <div align="center"></div></td>
            <td colspan="2"><strong>選項設置[大欄目]</strong></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="doclasstempid" type="checkbox" id="doclasstempid" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">封面模板</td>
            <td bgcolor="#FFFFFF"><select name="classtempid">
                <?=$classtemp?>
              </select> <input type="button" name="Submit62232" value="管理封面模板" onclick="window.open('template/ListClasstemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"> 
            </td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"> <div align="center"> 
                <input name="doislist" type="checkbox" id="doshowclass3" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">列表式</td>
            <td bgcolor="#FFFFFF"><input type="radio" name="islist" value="0"<?=$r['islist']==0?' checked':''?>>
              封面式 
              <input type="radio" name="islist" value="1"<?=$r['islist']==1?' checked':''?>>
              列表式 
              <input type="radio" name="islist" value="2"<?=$r['islist']==2?' checked':''?>>
              頁面內容式</td>
          </tr>
          <tr class="header"> 
            <td height="25"> <div align="center"></div></td>
            <td colspan="2"><strong>選項設置[終極欄目]</strong></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="donewstempid" type="checkbox" id="donewstempid" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">所屬內容模板</td>
            <td bgcolor="#FFFFFF"><select name="newstempid" id="newstempid">
                <?=$newstemp_options?>
              </select> <input type="button" name="Submit62222" value="管理內容模板" onclick="window.open('template/ListNewstemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');">
              ( 
              <input name="tobetempinfo" type="checkbox" id="tobetempinfo" value="1">
              應用於已生成的信息)</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dopltempid" type="checkbox" id="dopltempid" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">所屬評論模板</td>
            <td bgcolor="#FFFFFF"><select name="pltempid" id="pltempid">
                <option value="0">使用默認模板 </option>
                <?=$pltemp?>
              </select> <input type="button" name="Submit623" value="管理評論模板" onclick="window.open('template/ListPltemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dolink_num" type="checkbox" id="dolencord" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">相關鏈接顯示記錄數</td>
            <td bgcolor="#FFFFFF"><input name="link_num" type="text" id="link_num" value="10" size="5">
              條<font color="#666666">(0為不生成相關鏈接)</font></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="doinfopath" type="checkbox" id="doinfopath" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">內容頁存放目錄</td>
            <td bgcolor="#FFFFFF"><input type="radio" name="infopath" value="0"<?=$r['ipath']==''?' checked':''?>>
              欄目目錄 
              <input type="radio" name="infopath" value="1"<?=$r['ipath']<>''?' checked':''?>>
              自定義： / 
              <input name="ipath" type="text" id="ipath" value="<?=$r['ipath']?>"> 
              <font color="#666666">(從根目錄開始)</font></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="donewspath" type="checkbox" id="dolink_num" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">信息頁目錄存放形式</td>
            <td bgcolor="#FFFFFF"><input name="newspath" type="text" id="newspath" value="<?=$r['newspath']?>" size="10"> 
              <select name="sze2" onchange="document.form1.newspath.value=this.value">
                <option value="Y-m-d">選擇</option>
                <option value="Y-m-d">2005-01-27</option>
                <option value="Y/m-d">2005/01-27</option>
                <option value="Y/m/d">2005/01/27</option>
                <option value="Ymd">20050127</option>
                <option value="">不設置目錄</option>
              </select> <font color="#666666">(如Y-m-d,Y/m-d,Ymd等形式)</font></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dofilename_qz" type="checkbox" id="donewspath" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">信息頁文件名前綴</td>
            <td bgcolor="#FFFFFF"> <input name="filename_qz" type="text" id="filename_qz" value="<?=$r['filename_qz']?>" size="15"> 
            </td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dofilename" type="checkbox" id="dofilename" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">信息頁文件命名規則</td>
            <td bgcolor="#FFFFFF"><input name="filename" type="radio" value="0" checked>
              信息ID 
              <input type="radio" name="filename" value="1">
              time() 
			  <input type="radio" name="filename" value="4">
              date()
			  <input type="radio" name="filename" value="5">
              公共信息ID 
              <input type="radio" name="filename" value="2">
              md5(32位) 
			  <input type="radio" name="filename" value="6">
              md5(16位)
              <input type="radio" name="filename" value="3">
              目錄</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dofiletype" type="checkbox" id="dofiletype" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">信息頁文件擴展名</td>
            <td bgcolor="#FFFFFF"><input name="filetype" type="text" id="filetype" value=".html" size="10"> 
              <select name="sze3" onchange="document.form1.filetype.value=this.value">
                <option value=".html">擴展名</option>
                <option value=".html">.html</option>
                <option value=".htm">.htm</option>
                <option value=".php">.php</option>
                <option value=".shtml">.shtml</option>
              </select>
              (如.html,.xml,.htm等)</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="doopenpl" type="checkbox" id="doopenpl" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">是否開放評論功能</td>
            <td bgcolor="#FFFFFF"><input name="openpl" type="radio" value="0" checked<?=$openpl0?>>
              是 
              <input type="radio" name="openpl" value="1"<?=$openpl1?>>
              否</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="docheckpl" type="checkbox" id="docheckpl" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">評論需要審核</td>
            <td bgcolor="#FFFFFF"><input name="checkpl" type="checkbox" id="checkpl2" value="1"<?=$checkpl?>>
              是</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="doqaddshowkey" type="checkbox" id="docheckpl3" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">投稿開啟驗證碼</td>
            <td bgcolor="#FFFFFF"><input name="qaddshowkey" type="checkbox" id="qaddshowkey2" value="1"<?=$r['qaddshowkey']==1?' checked':''?>>
              是 </td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="docheckqadd" type="checkbox" id="doqaddshowkey" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">投稿需要審核</td>
            <td bgcolor="#FFFFFF"><input name="checkqadd" type="checkbox" id="checkqadd2" value="1"<?=$r['checkqadd']==1?' checked':''?>>
              直接通過審核</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="doqaddgroupid" type="checkbox" id="doqaddgroupid" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">投稿權限</td>
            <td bgcolor="#FFFFFF"> 
              <select name="qaddgroupid" id="qaddgroupid">
                <option value="0">遊客</option>
                <?php echo $ymvgroup;?>
            </select>
            </td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="doqaddlist" type="checkbox" id="doqaddlist" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">投稿生成列表</td>
            <td bgcolor="#FFFFFF"><select name="qaddlist" id="qaddlist">
                <option value="0"<?=$r['qaddlist']==0?' selected':''?>>不生成</option>
                <option value="1"<?=$r['qaddlist']==1?' selected':''?>>生成當前欄目</option>
                <option value="2"<?=$r['qaddlist']==2?' selected':''?>>生成首頁</option>
                <option value="3"<?=$r['qaddlist']==3?' selected':''?>>生成父欄目</option>
                <option value="4"<?=$r['qaddlist']==4?' selected':''?>>生成當前欄目與父欄目</option>
                <option value="5"<?=$r['qaddlist']==5?' selected':''?>>生成父欄目與首頁</option>
                <option value="6"<?=$r['qaddlist']==6?' selected':''?>>生成當前欄目、父欄目與首頁</option>
              </select></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="doaddinfofen" type="checkbox" id="doaddinfofen" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">單篇投稿審核後獲得</td>
            <td bgcolor="#FFFFFF"><input name="addinfofen" type="text" id="addinfofen" value="<?=$r['addinfofen']?>" size="6">
              點數 <font color="#666666">(不增加請設為0,扣點請設為負數)</font></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="doadminqinfo" type="checkbox" id="doadminqinfo" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">管理投稿</td>
            <td bgcolor="#FFFFFF"><strong> 
              <select name="adminqinfo" id="adminqinfo">
                <option value="0"<?=$r['adminqinfo']==0?' selected':''?>>不能管理信息</option>
                <option value="1"<?=$r['adminqinfo']==1?' selected':''?>>可管理未審核信息</option>
                <option value="2"<?=$r['adminqinfo']==2?' selected':''?>>只可編輯未審核信息</option>
                <option value="3"<?=$r['adminqinfo']==3?' selected':''?>>只可刪除未審核信息</option>
                <option value="4"<?=$r['adminqinfo']==4?' selected':''?>>可管理所有信息</option>
                <option value="5"<?=$r['adminqinfo']==5?' selected':''?>>只可編輯所有信息</option>
                <option value="6"<?=$r['adminqinfo']==6?' selected':''?>>只可刪除所有信息</option>
              </select>
              </strong></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="doqeditchecked" type="checkbox" id="doqeditchecked" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">編輯投稿需要審核</td>
            <td bgcolor="#FFFFFF"><strong> 
              <input name="qeditchecked" type="checkbox" id="qeditchecked" value="1"<?=$r['qeditchecked']==1?' checked':''?>>
              </strong>是</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="doaddreinfo" type="checkbox" id="doaddreinfo" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">發佈信息生成內容頁</td>
            <td bgcolor="#FFFFFF"><input name="addreinfo" type="checkbox" id="addreinfo" value="1"<?=$r['addreinfo']==1?' checked':''?>>
              是</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dohaddlist" type="checkbox" id="dohaddlist" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">發佈信息生成列表</td>
            <td bgcolor="#FFFFFF"><select name="haddlist" id="haddlist">
                <option value="0"<?=$r['haddlist']==0?' selected':''?>>不生成</option>
                <option value="1"<?=$r['haddlist']==1?' selected':''?>>生成當前欄目</option>
                <option value="2"<?=$r['haddlist']==2?' selected':''?>>生成首頁</option>
                <option value="3"<?=$r['haddlist']==3?' selected':''?>>生成父欄目</option>
                <option value="4"<?=$r['haddlist']==4?' selected':''?>>生成當前欄目與父欄目</option>
                <option value="5"<?=$r['haddlist']==5?' selected':''?>>生成父欄目與首頁</option>
                <option value="6"<?=$r['haddlist']==6?' selected':''?>>生成當前欄目、父欄目與首頁</option>
              </select></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dosametitle" type="checkbox" id="dosametitle" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">檢測標題重複</td>
            <td bgcolor="#FFFFFF"><input name="sametitle" type="checkbox" id="sametitle" value="1"<?=$r['sametitle']==1?' checked':''?>>
              是</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dochecked" type="checkbox" id="dochecked" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">發佈信息是否直接審核</td>
            <td bgcolor="#FFFFFF"><input name="checked" type="checkbox" id="checked" value="1"<?=$checked?>>
              是</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dorepreinfo" type="checkbox" id="dorepreinfo" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">發佈信息生成上一篇信息</td>
            <td bgcolor="#FFFFFF"><input name="repreinfo" type="checkbox" id="repreinfo" value="1"<?=$r['repreinfo']==1?' checked':''?>>
              是</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dodefinfovoteid" type="checkbox" id="dodefinfovoteid" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">信息預設投票</td>
            <td bgcolor="#FFFFFF"><select name="definfovoteid" id="definfovoteid">
                <option value="0">不設置</option>
                <?=$definfovote?>
              </select> <input type="button" name="Submit622" value="管理預設投票" onclick="window.open('other/ListVoteMod.php<?=$ecms_hashur['whehref']?>');"> 
              <font color="#666666">&nbsp;</font></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dogroupid" type="checkbox" id="dogroupid" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">默認查看信息權限</td>
            <td bgcolor="#FFFFFF"><select name="groupid" id="groupid">
                <option value="0">遊客</option>
                <?php echo $ymvgroup;?>
              </select> <font color="#666666">(增加信息時默認的會員組權限)</font></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dodoctime" type="checkbox" id="dodoctime" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">歸檔時間</td>
            <td bgcolor="#FFFFFF">歸檔大於 
              <input name="doctime" type="text" id="doctime" value="100" size="6">
              天的信息<font color="#666666">(0為不歸檔)</font></td>
          </tr>
          <tr class="header"> 
            <td height="25"> <div align="center"></div></td>
            <td colspan="2"><strong>特殊模型設置</strong></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dodown_num" type="checkbox" id="dodown_num" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">下載/影視模型</td>
            <td bgcolor="#FFFFFF">每行顯示 
              <input name="down_num" type="text" id="link_num3" value="1" size="5">
              個下載地址</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="doonline_num" type="checkbox" id="do3" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">影視模型</td>
            <td bgcolor="#FFFFFF">每行顯示 
              <input name="online_num" type="text" id="down_num" value="1" size="5">
              個在線觀看地址</td>
          </tr>
          <tr class="header"> 
            <td height="25"> <div align="center"></div></td>
            <td colspan="2"><strong>JS調用設置</strong></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dojstempid" type="checkbox" id="doonline_num" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">所用JS模板</td>
            <td bgcolor="#FFFFFF"><select name="jstempid" id="jstempid">
                <?=$jstemp?>
              </select> <input type="button" name="Submit62223" value="管理JS模板" onclick="window.open('template/ListJstemp.php?gid=<?=$thegid?><?=$ecms_hashur['ehref']?>');"></td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="donewjs" type="checkbox" id="dojstempid" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">最新信息js設置</td>
            <td bgcolor="#FFFFFF">調用 
              <input name="newline" type="text" id="newline" value="<?=$r['newline']?>" size="6">
              條記錄</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dohotjs" type="checkbox" id="do4" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">熱門信息js設置</td>
            <td bgcolor="#FFFFFF">調用 
              <input name="hotline" type="text" id="hotline" value="<?=$r['hotline']?>" size="6">
              條記錄</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dogoodjs" type="checkbox" id="do5" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">推薦信息js設置</td>
            <td bgcolor="#FFFFFF">調用 
              <input name="goodline" type="text" id="goodline" value="<?=$r['goodline']?>" size="6">
              條記錄</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dohotpljs" type="checkbox" id="do6" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">熱門評論信息js設置</td>
            <td bgcolor="#FFFFFF">調用 
              <input name="hotplline" type="text" id="hotplline" value="<?=$r['hotplline']?>" size="6">
              條記錄</td>
          </tr>
          <tr> 
            <td height="25" bgcolor="#FFFFFF"><div align="center"> 
                <input name="dofirstjs" type="checkbox" id="do7" value="1">
              </div></td>
            <td bgcolor="#FFFFFF">頭條信息js設置</td>
            <td bgcolor="#FFFFFF">調用 
              <input name="firstline" type="text" id="firstline" value="<?=$r['firstline']?>" size="6">
              條記錄</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td height="25"> <div align="center"> </div></td>
            <td colspan="2"> <input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置"> 
              <input name="enews" type="hidden" id="enews" value="SetMoreClass"></td>
          </tr>
        </table></td>
    </tr>
  </form>
</table>
<br>
</body>
</html>
<?php
db_close();
$empire=null;
?>