<%@page import="com.alibaba.fastjson.JSONObject"%>
<%@page import="com.alibaba.fastjson.JSONArray"%>
<%@page import="com.alibaba.fastjson.JSON"%>
<%@ page language="java" 	pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html>
<html>
<head>
<title>微信模板配置</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
<!-- bootstrap 3.0.2 -->
<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?2019-1-1'/>" rel="stylesheet" type="text/css" />
<link href="<c:url value='/styles/wx/wxTemplate.css?2019-1-1'/>" 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/template-native.js'/>"></script>
<script type="text/javascript" src="<c:url value='/scripts/admin/cjqt.js'/>"></script>
</head>
<body>

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

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

<div class="bread-wp">
		微信管理  >  微信模板配置
</div>
	<div class="right-content">
	<input type="hidden" value="${ctx}" id="contextPath">
		
		<div class="main-content-mode-wp clearfloat email-publish-wp ">
	 	  <form:form  id="conditionform"  class="clearfloat">
	  	 	  <div class="part-wp">
	  	 	  <c:if test="${fn:length(orgs) > 1}">
				<span class="search-tips">请选择项目</span> 
				<input class="default-select" name="orgId" id="orgId" placeholder="请选择项目" autocomplete="off"/>
		        <span class="select_wrap _hide"></span>
<!-- 				<select id ="orgId" class=" default-select" name="orgId" >
					<option value="">请选择项目</option>
				</select> -->
				</c:if>
				<c:if test="${fn:length(orgs) == 1}">
				<input type="hidden" id="orgId" name="orgId" value="${orgs[0].id}" org__id="${orgs[0].id}">
			</c:if>
	  	 	  </div>
			  <div class="part-wp">
				  <span class="search-tips">公众号</span>
				  <select class="wx-num default-select">
					  <option value="">选择公众号</option>
				  </select>
			  </div>
		   	  <button class="search-btn btn-red" type="button">查询</button>
		      <button class="set-btn btn-white" type="button">重置</button>
      	 </form:form>
      	 <div class="main-operate-wp">
			 <perm:hasPermission permCode="pc:basics:wxtemplate:add">
	 			<button class="btn-add-blue add-temp-btn" type="button">添加模板</button>
			 </perm:hasPermission>
		 </div>
	 	 <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/publicno/wxTemplate.js?2019-1-1'/>"></script>
</body>
</html>