<%@ page contentType="text/html; charset=GBK"%>
<%@ taglib uri="/cms4j" prefix="cms4j" %>
<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>
<script src="../../js/common.js"></script>
<script src="../../js/page_init.js"></script>
<script src="js/announce.js"></script>
<script>
//页面初始化
function pageInit(){
	selectInit("class_id_list","${param.class_id}");
	selectInit("type_list","${param.type}");
	selectInit("filter_list","${param.filter}");
	selectInit("date_filter_list","${param.date}");
}
</script>
<body  onLoad="pageInit()">
<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="32%" class="title_bar">公告管理 
                  <select name="class_id_list" class="form_select" id="class_id_list" onChange="class_filter()">
				  <option value="" selected>所有分类</option>
                   <cms4j:announce_class filter="all">
				    <option value="<%=announce_class.getID()%>"><%=announce_class.getNAME()%></option>
				   </cms4j:announce_class>
                    
                  </select></td>
                <td width="39%" align="center" class="title_bar"><select name="type_list" id="type_list"  onChange="type_filter()">
                  <option value="""">所有类型</option>
                  <option value="text" selected>文字</option>
                  <option value="popwin">弹出</option>
                </select>
                  <select name="filter_list" id="filter_list"  onChange="filter()">
                    <option value="""" selected>所有状态</option>
                    <option value="use">启用</option>
                    <option value="stop">停用</option>
                  </select>
                  <select name="date_filter_list" onChange="date_filter()">
                    <option value="all" selected>日期范围</option>
                    <option value="now">当前的</option>
                    <option value="elapse">过期的</option>
                  </select> </td>
                <td width="29%" align="right" class="title_bar">&nbsp;                </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="4%">ID</td>
                <td width="26%">标题</td>
                <td width="18%">启用时间段</td>
                <td width="13%">公告分类</td>
                <td width="9%">类型</td>
                <td width="9%">发布时间</td>
                <td width="7%">状态</td>
                <td width="14%">操作</td>
              </tr>
              <cms4j:announce class_id="${param.class_id}" type="${param.type}" filter="${param.filter}" date="${param.date}">
			  <tr class="table_border_cell_bg">
                <td align="center"><%=announce.getID()%></td>
                <td align="left"><%=announce.getTITLE()%></td>
                <td align="center"><%=announce.getBEGIN_DATE_FORMATED("MM/dd")%>--<%=announce.getEND_DATE_FORMATED("MM/dd")%></td>
                <td align="center"><%=announce.getCLASS_ID_NAME()%></td>
                <td align="center"><%=announce.getANNOUNCE_TYPE_TEXT()%></td>
                <td align="center"><%=announce.getADD_DATE_FORMATED("yy-MM-dd")%></td>
                <td align="center"><%=announce.getIS_SELECTED_TEXT()%></td>
                <td align="center" class="text_button"> <a href="../../do?action=setAnnounceState&operItem=<%=announce.getID()%>&state=<%=announce.getIS_SELECTED_OPERVALUE()%>"><%=announce.getIS_SELECTED_OPERTEXT()%></a> <a href="announce_modify.jsp?ID=<%=announce.getID()%>">改</a> <a href="../../do?action=delAnnounce&delItem=<%=announce.getID()%>">删</a></td>
              </tr>
			  </cms4j:announce>
            </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>
</body>
</html>
