<!--
<?php
print <<<EOT
-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="MainTable">
  <tr> 
    <td height="100" valign="top" class="Main"> 
      
       <!--
EOT;
if($job=='sort'){print <<<EOT
-->
            
      <table width="100%" class="dragTable" border="0" cellspacing="0" cellpadding="0">
        <tr align="center" height="18" class='head' style="line-height:200%;"> 
          <td width="6%" height="21" >FID</td>
          <td width="25%">栏目名称</td>
          <td width="12%">已审信息</td>
          <td width="11%">待审信息</td>
          <td width="7%">信息管理</td>
          <td width="11%">已审评论</td>
          <td width="10%">待审评论</td>
          <td width="7%">评论管理</td>
          <td width="11%" >发布信息</td>
        </tr>
        <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
        <tr style="line-height:150%;"  onmouseover="this.style.background='#D2E4FC'" onmouseout="this.style.background='#FFF'"> 
          <td width="6%" align="center" style="border-bottom:1px dotted #ccc;"><b><font color="#FF0000">$rs[fid]</font></b></td>
          <td  width="25%" style="border-bottom:1px dotted #ccc;"> {$rs[icon]}【{$rs[name]}】</td>
          <td  width="12%" style="border-bottom:1px dotted #ccc;" align="center"><!--
EOT;
if(!$rs[type]){
print <<<EOT
-->{$rs[yznum]} 
            篇<!--
EOT;
}print <<<EOT
-->&nbsp;</td>
          <td  width="11%" style="border-bottom:1px dotted #ccc;" align="center"><!--
EOT;
if(!$rs[type]){
print <<<EOT
-->{$rs[unyznum]} 
            篇<!--
EOT;
}print <<<EOT
-->&nbsp;</td>
          <td  width="7%" style="border-bottom:1px dotted #ccc;" align="center">
            <!--
EOT;
if(!$rs[type]){
print <<<EOT
-->
            <a href="?job=list&fid=$rs[fid]" $rs[_admin]>信息管理</a>
            <!--
EOT;
}print <<<EOT
-->
            &nbsp;</td>
          <td  width="11%" style="border-bottom:1px dotted #ccc;" align="center"><!--
EOT;
if(!$rs[type]){
print <<<EOT
-->{$rs[Cyznum]} 
            条<!--
EOT;
}print <<<EOT
-->&nbsp;</td>
          <td  width="10%" style="border-bottom:1px dotted #ccc;" align="center">
<!--
EOT;
if(!$rs[type]){
print <<<EOT
-->
		  {$rs[Cunyznum]} 
            条
<!--
EOT;
}print <<<EOT
-->&nbsp;
			</td>
          <td  width="7%" style="border-bottom:1px dotted #ccc;" align="center"> 
            <!--
EOT;
if(!$rs[type]){
print <<<EOT
-->
            <a href="?job=listcomment&fid=$rs[fid]" $rs[_admin]>评论管理</a> 
            <!--
EOT;
}print <<<EOT
-->
            &nbsp; </td>
          <td width="11%"  align="center" style="border-bottom:1px dotted #ccc;">
<!--
EOT;
if(!$rs[type]){
print <<<EOT
-->
		  <a href="$city_url/post.php?city_id=$city_id&fid=$rs[fid]" target="_blank">免费发布</a>
 <!--
EOT;
}print <<<EOT
-->&nbsp;
		  </td>
        </tr>
        <!--
EOT;
}print <<<EOT
-->
      </table>
            <!--
EOT;
}elseif($job=="list"){
print <<<EOT
-->
            <table width="100%" class="dragTable" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td style="padding:5px;"><a href="admin.php?job=sort">&gt;&gt;返回栏目管理列表</a></td>
              </tr>
            </table>
            <form name="form_work" method="post" action="?">
            
        <table width="100%" class="dragTable" border="0" cellspacing="0" cellpadding="0">
          <tr align="center" height="18" class='head' style="line-height:200%;"> 
            <td width="5%"   >ID</td>
            <td width="61%">信息标题名称 </td>
            <td width="13%">所在栏目</td>
            <td width="13%">发表日期</td>
            <td width="8%" >审核与否</td>
          </tr>
          <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
          <tr class="trA" onMouseOver="this.className='trB'" onMouseOut="this.className='trA'"> 
            <td width="5%" align="center" style="border-bottom:1px dotted #ccc;"><b><font color="#FF0000">$rs[id]</font></b></td>
            <td  width="61%" style="border-bottom:1px dotted #ccc;"> 
              <input type="checkbox" name="postdb[]" value="$rs[id]">
              <a href="$rs[url]" target="_blank" style="color:$rs[titlecolor];"> 
              {$rs[title]}</a> {$rs[_levels]} {$rs[_list]}</td>
            <td  width="13%" style="border-bottom:1px dotted #ccc;" align="center"><a href="$rs[listurl]" target="_blank">{$rs[fname]}</a></td>
            <td  width="13%" style="border-bottom:1px dotted #ccc;" align="center">$rs[posttime]</td>
            <td width="8%"  align="center" style="border-bottom:1px dotted #ccc;">$rs[ifyz]</td>
          </tr>
          <!--
EOT;
}print <<<EOT
-->
        </table>
              <table width="99%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td align="center">$showpage</td>
                </tr>
                <tr> 
                  <td align="center"> 
                    <input type="radio" name="ctype" value="color" onclick="choose_type('color');">
                    标题加亮 
                    <input type="radio" name="ctype" value="top" onclick="choose_type('top');">
                    栏目置顶 
                    <input type="radio" name="ctype" value="untop" onclick="choose_type('untop');">
                    取消置顶 
                    <input type="radio" name="ctype" value="del" onclick="choose_type('del');">
                    放进回收站 
                    <input type="radio" name="ctype" value="undel" onclick="choose_type('undel');">
                    从回收站还原 
                    <input type="radio" name="ctype" value="fen" onclick="choose_type('fen');">
                    评分<br>
                    <input type="radio" name="ctype" value="com" onclick="choose_type('com');">
                    推荐 
                    <input type="radio" name="ctype" value="uncom" onclick="choose_type('uncom');">
              取消推荐 
              <input type="radio" name="ctype" value="unyz" onclick="choose_type('unyz');">
                    取消验证 
                    <input type="radio" name="ctype" value="yz" checked onclick="choose_type('yz');">
                    通过验证</td>
                </tr>
                <tr id="color_tr"> 
                  <td align="center">标题颜色: 
                    <select  name="color">
                      <option value='' style=' color:black'  selected>标题颜色</option>
                      <option value='black' style='color:black'>黑色</option>
                      <option value='skyblue' style='color:skyblue'>天蓝</option>
                      <option value='royalblue' style='color:royalblue'>品蓝</option>
                      <option value='blue' style='color:blue'>蓝</option>
                      <option value='darkblue' style='color:darkblue'>暗蓝</option>
                      <option value='orange' style='color:orange'>橙</option>
                      <option value='orangered' style='color:orangered'>桔红</option>
                      <option value='crimson' style='color:crimson'>深红</option>
                      <option value='red' style='color:red'>红</option>
                      <option value='firebrick' style='color:firebrick'>棕</option>
                      <option value='darkred' style='color:darkred'>暗红</option>
                      <option value='green' style='color:green'>绿色</option>
                      <option value='limegreen' style='color:limegreen'>灰绿</option>
                      <option value='seagreen' style='color:seagreen'>海绿</option>
                      <option value='deeppink' style='color:deeppink'>粉</option>
                      <option value='tomato' style='color:tomato'>西红柿色</option>
                      <option value='coral' style='color:coral'>珊瑚色</option>
                      <option value='purple' style='color:purple'>紫色</option>
                      <option value='indigo' style='color:indigo'>靛青</option>
                      <option value='burlywood' style='color:burlywood'>棕木</option>
                      <option value='sandybrown' style='color:sandybrown'>沙褐</option>
                      <option value='sienna' style='color:sienna'>土黄</option>
                      <option value='chocolate' style='color:chocolate'>巧克力色</option>
                      <option value='teal' style='color:teal'>土绿</option>
                      <option value='silver' style='color:silver'>银</option>
                    </select>
                  </td>
                </tr>
                <tr id="top_tr"> 
                  <td align="center">置顶时间: 
                    <select name="toptime">
                      <option value="94608000" selected>置顶三年</option>
                      <option value="86400">置顶一天</option>
                      <option value="172800">置顶二天</option>
                      <option value="259200">置顶三天</option>
                      <option value="604812">置顶一周</option>
                      <option value="2592000">置顶一月</option>
                      <option value="31536000">置顶一年</option>
                    </select>
                  </td>
                </tr>
                <tr id="movetop_tr">
                  
            <td align="center">要移到哪条信息的前面,请输入那条信息ID 
              <input type="text" name="atc_id1" size="6">
                  </td>
                </tr> <tr id="movebottom_tr">
                  
            <td align="center">要移到哪条信息的后面,请输入那条信息ID 
              <input type="text" name="atc_id2" size="6">
                  </td>
                </tr>
                <tr id="fid_tr"> 
                  <td align="center">请选择要移到哪个栏目:$select_fid</td>
                </tr>
                <tr > 
                  <td align="center">操作理由: 
                    <textarea name="atc_reason" cols="40" rows="5"></textarea>
                  </td>
                </tr>
                <tr> 
                  <td align="center">是否短消息通知: 
                    <input type="radio" name="atc_pm" value="1">
                    通知 
                    <input type="radio" name="atc_pm" value="0">
                    不通知</td>
                </tr>
                <tr> 
                  <td align="center">积分处理: 
                    <input type="text" name="atc_fen" size="5">
                    点 (只能是<font color="#FF0000">-{$webdb[Info_adminfen]}</font>至<font color="#FF0000">{$webdb[Info_adminfen]}</font>之间)</td>
                </tr>
                <tr> 
                  <td align="center"> 
                    <input type="hidden" name="action" value="work">
                    <input type="button" name="Submit2" value="全选" onClick="CheckAll('all')">
                    <input type="button" name="Submit3" value="反选" onClick='CheckAll()'>
                    <input type="submit" name="Submit" value="提交">
                    <SCRIPT LANGUAGE="JavaScript">
<!--
function postdo(va){
	document.form_work.jobs.value=va
	document.form_work.submit();
}

 
function choose_type(t){
	document.getElementById("color_tr").style.display='none';
	document.getElementById("top_tr").style.display='none';
	document.getElementById("fid_tr").style.display='none';
	document.getElementById("movetop_tr").style.display='none';
	document.getElementById("movebottom_tr").style.display='none';
	if(t=='top'){
		document.getElementById("top_tr").style.display='';
	}
	if(t=='color'){
		document.getElementById("color_tr").style.display='';
	}
	if(t=='move'){
		document.getElementById("fid_tr").style.display='';
	}
	if(t=='movetop'){
		document.getElementById("movetop_tr").style.display='';
	}
	if(t=='movebottom'){
		document.getElementById("movebottom_tr").style.display='';
	}
}
 
choose_type('');
//-->
</SCRIPT>
                  </td>
                </tr>
              </table>
            </form>
            <!--
EOT;
}elseif($job=="listcomment"){print <<<EOT
-->                <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td style="padding:5px;"><a href="admin.php?job=sort">&gt;&gt;返回栏目管理列表</a></td>
              </tr>
            </table>
            <form name="form_work" method="post" action="?">
            <table width="100%" class="dragTable" border="0" cellspacing="0" cellpadding="0">
              
                <tr align="center" height="18" class='head' style="line-height:200%;"> 
                  
            <td width="5%"  >ID</td>
                  <td width="61%">评论部分内容 </td>
                  
            <td width="13%">发布者</td>
                  
            <td width="13%">发表日期</td>
                  
            <td width="8%" >审核与否</td>
                </tr>
                <!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
                <tr class="trA" onMouseOver="this.className='trB'" onMouseOut="this.className='trA'"> 
                  <td width="5%" align="center" style="border-bottom:1px dotted #ccc;"><b><font color="#FF0000">$rs[cid]</font></b></td>
                  <td  width="61%" style="border-bottom:1px dotted #ccc;"> <input type="checkbox" name="postdb[]" value="$rs[cid]">
              {$rs[title]}</td>
                  <td  width="13%" style="border-bottom:1px dotted #ccc;" align="center">{$rs[username]}</td>
                  <td  width="13%" style="border-bottom:1px dotted #ccc;" align="center">$rs[posttime]</td>
                  <td width="8%"  align="center" style="border-bottom:1px dotted #ccc;">$rs[ifyz]</td>
                </tr>
                <!--
EOT;
}print <<<EOT
-->
              
            </table>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td align="center">$showpage</td>
                </tr>
                <tr> 
                  <td align="center"> 
                    <input type="radio" name="ctype" value="del"  >
                    删除 
                    <input type="radio" name="ctype" value="unyz"  >
                    取消验证 
                    <input type="radio" name="ctype" value="yz" checked  >
                    通过验证</td>
                </tr>
                <tr> 
                  <td align="center"> 
                    <input type="hidden" name="action" value="workcomment">
                    <input type="button" name="Submit2" value="全选" onClick="CheckAll('all')">
                    <input type="button" name="Submit3" value="反选" onClick='CheckAll()'>
                    <input type="submit" name="Submit" value="提交">
                     
                  </td>
                </tr>
              </table>
            </form>   <!--
EOT;
}print <<<EOT
-->

    </td>
  </tr>
</table>
<!--
EOT;
?>
-->
<SCRIPT LANGUAGE="JavaScript">
<!--
function CheckAll(va){
	form=document.form_work
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		if(va=='all'){
			e.checked = true;
		}else{
			e.checked == true ? e.checked = false : e.checked = true;
		}
	}
}
//-->
</SCRIPT>