<%@ page contentType="text/html; charset=GBK" language="java" errorPage="" %>
<%@ taglib uri="/cms4j" prefix="cms4j" %>
<%@ taglib tagdir="/WEB-INF/tags/" prefix="cms4jExd"%>
<cms4jExd:init/>

<script src="../../js/common.js"></script>
<script src="../../js/page_init.js"></script>
<script src="js/article.js"></script>
<script>
//页面初始化
function pageInit(){
	selectInit("article_order_list","${param.order}");
	selectInit("article_class_id_list","${param.class_id}");
	selectInit("page_list","${param.pn}");
}
</script>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>CMS4J </title>
<link href="../skin/blue/css/oper_area_style.css" rel="stylesheet" type="text/css">
</head>

<body  onLoad="pageInit()">
<form action="" method="post">
<cms4j:article class_id="${param.class_id}" audit_state="auditing" order="${param.order}" page_size="15" scope="" article_id="" purview_type="audit" audit_level="user">

<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr height="12"> 
    <td width="3%"><img src="../../images/admin/oper_table_up_left.gif" width="26" height="12"></td>
    <td width="92%" background="../../images/admin/oper_table_up_bg.gif" height="12"></td>
    <td width="5%"><img src="../../images/admin/oper_table_up_right.gif" width="26" height="12"></td>
  </tr>
  <tr> 
    <td colspan="3"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="5" background="../../images/admin/oper_table_left_bg.gif"><img src="../../images/admin/oper_table_left_bg.gif" width="5" height="2"></td>
          <td background="../../images/admin/oper_table_bg.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="42%" class="title_bar">待审核文章管理
                  <select name="article_class_id_list" class="form_select" onChange="article_class_filter()">
                    <option selected value="all">所有文章</option>
                    <cms4j:class purview_type="audit">
                    <option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>"><%=class_info.getCLASS_NAME()%></option>
                    <cms4j:class purview_type="audit">
                    <option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>">&nbsp;<%=class_info.getCLASS_NAME()%></option>
                    <cms4j:class purview_type="audit">
                    <option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>">&nbsp;&nbsp;<%=class_info.getCLASS_NAME()%></option>
                    </cms4j:class> </cms4j:class> </cms4j:class> 
                  </select>                </td>
                <td width="20%" align="center" class="title_bar">                  <select name="article_order_list" class="form_select" onChange="article_order()">
                    <option value="" selected>排列顺序</option>
                    <option value="date_desc">时间-降序</option>
                    <option value="date">时间-升序</option>
                    <option value="clicks_desc">点击数-降序</option>
                    <option value="clicks">点击数-升序</option>
                    <option value="id_desc">ID-降序</option>
                    <option value="id">ID-升序</option>
                  </select></td>
                <td width="38%" align="right" class="title_bar"> 
                  <input name="Submit22" type="button" class="form_button" value="审核通过选定的文章" onClick="auditingFromSelected(this.form)">
                </td>
              </tr>
              <tr height="4"> 
                <td height="4" colspan="3"></td>
              </tr>
            </table>
            <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table_border_bg">
              <tr class="table_title">
                <td width="3%" align="center"><input type="checkbox" name="selectAll" value="checkbox" onClick="checkAll(this.form)"></td> 
                <td width="8%">ID</td>
                <td width="34%">标题</td>
                <td width="12%">所属栏目</td>
                <td width="9%">添加者</td>
                <td width="9%">添加日期</td>
                <td width="7%">点击数</td>
                <td width="7%">已审核</td>
                <td width="11%">操作</td>
              </tr>
			  
			<cms4j:article_list>
              <tr class="table_border_cell_bg">
                <td align="center"><input type="checkbox" name="selected" value="<%=article_info.getID()%>" onClick="unselectall('selectAll')"></td> 
                <td align="center"><%=article_info.getID()%></td>
                <td><%=article_info.getInfoPropImage()%> <%=article_info.getTITLE()%></td>
                <td align="center"><%=article_info.getCLASS_NAME()%></td>
                <td align="center"><%=article_info.getADD_USER()%></td>
                <td align="center"><%=article_info.getADD_DATE_FORMATED("yy-MM-dd")%></td>
                <td align="center"><%=article_info.getCLICKS()%></td>
                <td align="center" class="text_audition_no"><%=article_info.getCurrAuditLevelName()%></td>
                <td align="center" class="text_button">
				
				<% if(article_info.getCurrAuditLevel() < cn.com.dekn.cms.security.login.CMS4JUser.getUserInfo(request).getAuditLevel()) {%>
				<a href="../../do?action=auditingArticle&operType=single&operItem=<%=article_info.getID()%>">通过审核</a>
				<% } %>
				
				</td>
              </tr>
		    </cms4j:article_list>
			
			</table>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_border_bg">
              <tr class="table_border_cell_bg"> 
                <td width="28%" align="center">&nbsp; </td>
                <td width="72%" align="right" class="table_oper_tr"><div align="right">
				<cms4jExd:page_ctrl_admin/>
                  </div></td>
              </tr>
            </table></td>
          <td width="5" background="../../images/admin/oper_table_right_bg.gif"><img src="../../images/admin/oper_table_right_bg.gif" width="5" height="2"></td>
        </tr>
      </table></td>
  </tr>
  <tr height="13"> 
    <td><img src="../../images/admin/oper_table_down_left.gif" width="26" height="13"></td>
    <td width="100%" height="13" background="../../images/admin/oper_table_down_bg.gif"></td>
    <td align="right"><img src="../../images/admin/oper_table_down_right.gif" width="26" height="13"></td>
  </tr>
</table>
</cms4j:article>
</form>
</body>
</html>
