<!--
<?php
print <<<EOT
-->
<style type="text/css">
<!--
.dragTable{
	margin-top:5px;	
}
.dragTable a{
	color:#333;
}
.dragTable .trh td{
	height:25px;
	vertical-align:middle;
	text-align:center;
	background:#DDD;
	border-right:#FFF solid 1px;
}
.dragTable .trc td{
	padding:5px;
	border-bottom:#DDD dotted 1px;	
	text-align:center;
	color:#666;
}
.dragTable .trc .td1{
	width:40%;
	text-align:left;	
}
.dragTable .trc .td2{
	width:10%;	
}
.dragTable .choose{
	padding:8px 0 5px 10px;
}
.dragTable .page{
	padding:8px;
	text-align:center;
}
.dragTable .page a{
	border:#DDD solid 1px;
	padding:3px 5px 2px 5px;
}
.dragTable .tdL{
	width:100px;
	padding-left:10px;
}
.dragTable .select{
	padding:5px 0 10px 0;
	text-align:center;
}
-->
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" >
  <tr>
  	<td class="head">版主管理</td>
  </tr>
  <tr>
  	<td class="middle">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <form name="form1" method="post" action="?f">
          <tr class="trh">
            <td class="td1">标 题</td>
            <td class="td2">栏 目</td>
            <td class="td3">日期</td>
            <td class="td4">署名</td>
            <td class="td5">状态</td>
            <td class="td6">修改/删除</td>
          </tr>
<!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
          <tr class="trc">
            <td class="td1">
            	<input type="checkbox" name="aidDB[]" value="$rs[aid]">
                {$rs[aid]}、<a href="..$webdb[path]/bencandy.php?fid=$rs[fid]&id=$rs[aid]" target="_blank" title="$rs[full_title]">$rs[title]</a> 
            </td>
            <td class="td2"><a href="..$webdb[path]/list.php?fid=$rs[fid]" target="_blank">$rs[fname]</a></td>
            <td class="td3">$rs[posttime]</td>
            <td class="td4">$rs[username]</td>
            <td class="td5">$rs[state]/$rs[levels]</td>
            <td class="td6">
				<a href="post.php?job=manage&aid=$rs[aid]">修改</a>/ 
<!--
EOT;
if($rs[yz]==2){print <<<EOT
-->
                    <a onclick="return confirm('你确实要从回收站清除本文吗?不可恢复')" href="?Type=delete&aidDB[]=$rs[aid]&step=2&forcedel=1">清除</a> 
                    <!--
EOT;
}elseif($webdb[ForceDel]){
print <<<EOT
-->
                    <a onclick="return confirm('你确实要删除本文吗?不可恢复')" href="?Type=delete&aidDB[]=$rs[aid]&step=2&forcedel=1">删除</a> 
                    <!--
EOT;
}else{
print <<<EOT
-->
                    <a   href="?Type=delete&aidDB[]=$rs[aid]&step=2">删除</a> 
                    <!--
EOT;
}
print <<<EOT
-->
            </td>
          </tr>
<!--
EOT;
}
print <<<EOT
-->
		  <tr> 
            <td colspan="6" class="choose">请选择要操作的栏目$choose_fid</td>
          </tr>
          <tr> 
            <td colspan="6" class="page">$showpage</td>
          </tr>
          <tr> 
            <td colspan="6" class="submittd">
            	<div class="select">
            	<input type="radio" name="Type" value="delete" onclick="choose('del_tr')"> 删除 
                <input type="radio" name="Type" value="yz" onclick="choose('yz_tr')"> 审核操作 
                <input type="radio" name="Type" value="leavels" onClick="choose('levels_tr')"> 推荐操作 
                <input type="radio" name="Type" value="move" onclick="choose('fid_tr')"> 移动操作 
                <input type="radio" name="Type" value="top" onclick="choose('top_tr')"> 置顶 
                <input type="radio" name="Type" value="bottom" onclick="choose('bottom_tr')"> 沉底 
                <input type="radio" name="Type" value="front" onClick="choose('ahead_tr')"> 提前 
                <input type="radio" name="Type" value="color" onClick="choose('color_tr')"> 标题加亮 
                <input type="radio" name="Type" value="return" onClick="choose('')"> 从回收站取回
                </div>
                <table width="100%" border="0" cellspacing="1" cellpadding="3" id="work_more" style="border:1px #ccc dotted;">
                  <tr id="del_tr" align="left"> 
                    <td class="tdL">删除选项</td>
                    <td class="tdR"> 
                      <input type="radio" name="forcedel" value="1" checked>
                      彻底删除 
                      <!--
EOT;
if(!$webdb[ForceDel]){print <<<EOT
-->
                      <input type="radio" name="forcedel" value="0">
                      放进回收站 
                      <!--
EOT;
}print <<<EOT
-->
                    </td>
                  </tr>
                  <tr id="yz_tr" align="left"> 
                    <td class="tdL">审核选项</td>
                    <td class="tdR"> 
                      <input type="radio" name="T_yz" value="1" checked>
                      通过审核 
                      <input type="radio" name="T_yz" value="0">
                      取消审核 </td>
                  </tr>
                  <tr id="levels_tr" align="left"> 
                    <td class="tdL">推荐选项</td>
                    <td class="tdR"> 
                      <input type="radio" name="levels" value="1" checked>
                      推荐 
                      <input type="radio" name="levels" value="0">
                      取消推荐 </td>
                  </tr>
                  <tr id="fid_tr" align="left"> 
                    <td class="tdL">请选择移到哪个栏目:</td>
                    <td class="tdR">$sort_fid </td>
                  </tr>
                  <tr id="color_tr" align="left"> 
                    <td class="tdL">标题颜色:</td>
                    <td class="tdR"> 
                      <select  name="Color">
                        <option value='' style='background-color:skyblue;color:black'  selected>标题颜色</option>
                        <option value='black' style='background-color:skyblue;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" align="left"> 
                    <td class="tdL">置顶日期:</td>
                    <td class="tdR"> 
                      <input type="radio" name="toptime" value="86400">
                      一天 
                      <input type="radio" name="toptime" value="604800">
                      一星期 
                      <input type="radio" name="toptime" value="2592000">
                      一月 
                      <input type="radio" name="toptime" value="31536000">
                      一年 </td>
                  </tr>
                  <tr id="ahead_tr" align="left"> 
                    <td class="tdL">提前到哪篇文章的前面:</td>
                    <td class="tdR"> 
                      <input type="text" name="topid" size="8">
                      输入文章ID,留空会提到最前</td>
                  </tr>
                  <tr id="bottom_tr" align="left"> 
                    <td class="tdL">沉底到哪篇文章的后台:</td>
                    <td class="tdR"> 
                      <input type="text" name="bottomid" size="8">
                      输入文章ID,留空会沉到最底下</td>
                  </tr>
                  <tr id="sub_tr"> 
                    <td class="tdL"> 操作理由: </td>
                    <td class="tdR" align="left">
                      <textarea name="reason" cols="50" rows="5">$reason</textarea>
                      (若输入理由的话,将短消息通知作者) </td>
                  </tr>
                  <tr id="sub_tr">
                    <td class="tdL">&nbsp;</td>
                    <td class="tdR" align="left"><a href="javascript:" onClick="CheckAll('all')">全选</a>/<a href="javascript:" onClick='CheckAll()'>反选</a> 
                      <input type="button" name="Submit" value=" 提 交 " onclick="postwork()">
                      <input type="hidden" name="step" value="2">
                      <input type="hidden" name="job" value="$job">
                    </td>
                  </tr>
                </table>
<SCRIPT LANGUAGE="JavaScript">
<!--
function postwork(){
	ckid=false;
	cktype=false;
	form=document.form1
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		if(e.name=='aidDB[]' && e.checked == true){
			ckid=true;
		}
		if(e.name=='Type' && e.checked == true){
			cktype=true;
		}
	}
	if(ckid==false){
		alert('请选择一条信息');
		return false;
	}
	if(cktype==false){
		alert('请选择一个操作类型');
		return false;
	}
	form.submit();
}
function CheckAll(va){
	form=document.form1
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		if(e.name!='aidDB[]')continue;
		if(va=='all'){
			e.checked = true;
		}else{
			e.checked == true ? e.checked = false : e.checked = true;
		}
	}
}

function choose(trid){
	oo=document.getElementById("work_more").getElementsByTagName("TR");
	for(var i=0;i<oo.length;i++){
		if(oo[i].id!=trid&&oo[i].id!='sub_tr'){
			oo[i].style.display='none';
		}else{
			oo[i].style.display='';
		}
	}
	parent.document.getElementById("main").height=parseInt(parent.document.getElementById("main").height)+40;
}
choose('');
//-->
</SCRIPT>
            </td>
          </tr>
        </form>
        </table>
    </td>
  </tr>
</table>
<!--
EOT;
?>
-->