<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
  <%@ include file="/common/taglibs.jsp"%>
    <!DOCTYPE html>
    <html>

    <head>
      <title>公告审核</title>
      <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>

      <link href="<c:url value='/scripts/lib/layui/layui.css'/>" rel="stylesheet" type="text/css" />
      <!-- Theme style -->
      <link href="<c:url value='/styles/AdminLTE.css'/>" rel="stylesheet" type="text/css" />
      <link href="<c:url value='/styles/notice/noticeAppPublish.css'/>" rel="stylesheet" type="text/css" />
      <link href="<c:url value='/styles/notice/noticeAppSend.css'/>" rel="stylesheet" type="text/css" />
      <script type="text/javascript" src="<c:url value='/scripts/lib/jquery-1.8.2.min.js'/>"></script>
      <script type="text/javascript" src="<c:url value='/scripts/lib/layui/layui.js'/>"></script>
      <%-- <script type="text/javascript" src="<c:url value='/scripts/lib/layDate/laydate.dev.js'/>"></script> --%>
        <script type="text/javascript" src="<c:url value='/scripts/lib/template-native.js'/>"></script>
        <script type="text/javascript" src="<c:url value='/scripts/admin/cjqt.js'/>"></script>
    </head>

    <body>
      <div class="bread-wp">公告通知 > 公告消息审核 > 公告消息审核</div>
      <div class="right-content">
        <input type="hidden" value="${ctx}" id="contextPath">
        <input type="hidden" value="${userType }" id="userType">


        <%-- 因为js中无法直接调用自定义的权限校验标签 --%>
        <%-- 判断当前用户是否有相应权限,如果有权限则在JSP页面新增隐藏input标签,方便js代码调用 --%>

        <%-- 是否有修改权限 --%>
        <perm:hasPermission permCode="pc:notice:list:edit">
          <input type="hidden" value="1" id="perm-edit" />
        </perm:hasPermission>
        <%-- 是否有删除权限 --%>
        <perm:hasPermission permCode="pc:notice:list:delete">
          <input type="hidden" value="1" id="perm-delete" />
        </perm:hasPermission>
        <%-- 是否有审核权限 --%>
        <perm:hasPermission permCode="pc:notice:list:approve">
          <input type="hidden" value="1" id="perm-approve" />
        </perm:hasPermission>


        <ul class="third-tabs">
          <li class="third-tab active">
            <a href="noticeAppVerify">公告消息审核</a>
          </li>
          <li class="third-tab">
            <a href="noticeWxVerify">微信消息审核</a>
          </li>
          <li class="third-tab">
            <a href="noticeMsgVerify">短信消息审核</a>
          </li>
          <li class="third-tab ">
            <a href="noticeEmailVerify">邮件消息审核</a>
          </li>
        </ul>
        <div class="main-content-mode-wp">
          <form:form id="conditionform" class="clearfloat">
            <input type="hidden" class="state" name="state" />
            <div class=" part-wp">
              <span class="search-tips">提交时间</span>
              <input type="text" class="small-input " id="c_startTime" placeholder="开始时间" name="c_beginTime" readonly> ~
              <input type="text" placeholder="结束时间"  name="c_endTime" class="small-input" id="c_endTime" readonly>
            </div>
            <div class=" part-wp">
              <span class="search-tips">审核时间</span>
               <input type="text" class="small-input " id="a_startTime"  placeholder="开始时间" name="c_beginTime" readonly> ~
		   	  <input type="text" placeholder="结束时间"  name="c_endTime" class="small-input" id="a_endTime" readonly>
            </div>
            <div class=" part-wp">
              <span class="search-tips">发布类型</span>
              <select name="city" class="small-input" id="noticeType">
                <option value="">未选择</option>
                <option value="1">公告</option>
                 <option value="2">banner</option>
                <option value="3">生成链接</option>
              </select>
            </div>
            <div class=" part-wp">
              <span class="search-tips">发布状态</span>
              <select name="city" class="small-input" id="state">
                <option value="">未选择</option>
                <option value="0">未审核</option>
                <option value="1">已发布</option>
                <option value="2">已驳回</option>
                <%--<option value="3">原文链接</option>--%>
               <!--  <option value="4">生成链接</option> -->
              </select>
            </div>
            <div class=" part-wp">
              <span class="search-tips">上下线状态</span>
              <select name="city" class="small-input" id="enabledId">
                <option value="">未选择</option>
                <option value="2">上线</option>
                <option value="1">下线</option>
                  <%--<option value="3">原文链接</option>--%>
                <!--  <option value="4">生成链接</option> -->
              </select>
            </div>
  <%--          <div class=" part-wp">
              <span class="search-tips">公告标题</span>
              <input type="text" placeholder="请输入公告标题" name="title" class="small-input" id="title">
            </div>--%>
            <div class="part-wp">
              <span class="search-tops">公告标题</span>
              <input type="text" class="small-input" id="title" placeholder="请输入公告标题">
            </div>
            <c:if test="${fn:length(orgs) > 1}">
              <div class=" part-wp">
                <span class="search-tips">选择校区</span>
                <input class="default-select" name="orgId" id="orgId" autocomplete="off"  placeholder="请选择校区"/>
                <span class="select_wrap _hide" style="width:240px"></span>
              </div>
            </c:if>
            <c:if test="${fn:length(orgs) == 1}">
              <input type="hidden" name="orgId" id="orgId" value="${orgs[0].id}" org__id="${orgs[0].id}" class="single-orgid">
            </c:if>
            <c:if test="${userType=='6'}">
              <div class=" part-wp">
                <span class="search-tips">选择校区</span>
                <input class="default-select" name="orgId" id="orgId" autocomplete="off"  placeholder="请选择校区"/>
                <span class="select_wrap _hide" style="width:240px"></span>
              </div>
            </c:if>
            <!-- <div class=" part-wp">
            <c:if test="${fn:length(orgs) > 1}">
              <span class="search-tips">选择校区</span>
              <select class="default-select org-list" name="orgId" id="orgId" >
                <option value="">请选择校区</option>
                <c:forEach items="${orgs }"  var="org">
                  <option value="${org.id }">${org.name }</option>
                </c:forEach>
              </select>
            </c:if>
            <c:if test="${fn:length(orgs) == 1}">
              <input type="hidden" name="orgId" id="orgId" value="${orgs[0].id}">
            </c:if>
            </div> -->
            <button class="search-btn btn-red" type="button">查询</button>
            <button class="set-btn btn-white" type="button">重置</button>
          </form:form>
          <table class="layui-hide" id="LAY_table_user" lay-filter="user"></table>
        </div>
      </div>
      <script type="text/html" id="indexTpl">
        {{d.LAY_TABLE_INDEX+1}}
      </script>
      <script type="text/javascript" src="<c:url value='/scripts/admin/notice/noticeAppVerify.js?2019-3-6'/>"></script>
    </body>

    </html>
