<%@ 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'>
<!-- bootstrap 3.0.2 -->
<link href="<c:url value='/styles/lib/bootstrap.min.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/billPush/templateSetting.css'/>" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<c:url value='/scripts/lib/jquery-1.8.2.min.js'/>"></script>

</head>
<body>
<div class="bread-wp">
			账单推送  >  模板配置  > <span class="third-menu-name">出账日短信</span>
</div>
	<div class="right-content">
	<input type="hidden" value="${ctx}" id="contextPath">
<%-- 	<c:if test="${fn:length(orgs) > 1}">
			<div class="part-wp">
			<span class="search-tips">请选择项目</span>
			<select class="orgId default-select"  id="orgId"  name="orgId" >
				<option value="">请选择项目</option>
				<c:forEach items="${orgs }" var="org">
				<option value="${org.id }">${org.name }</option>
				</c:forEach>
			</select>
			</div> 
		</c:if>--%>
			<c:if test="${fn:length(orgs) == 1}">
				<input type="hidden" id="orgId" name="orgId" value="${orgs[0].id}">
			</c:if>
		<ul class="third-tabs">
			<li class="third-tab active" data-name="出账日短信">
				<a href="javascript:void(0)">出账日短信</a>
			</li>
			<li class="third-tab " data-name="出账日邮件">
				<a href="javascript:void(0)">出账日邮件</a>
			</li>
			<!-- <li class="third-tab" data-name="出账日微信" >
				<a href="javascript:void(0)">出账日微信</a>
			</li> -->
			<li class="third-tab" data-name="逾期短信">
				<a href="javascript:void(0)">逾期短信</a>
			</li>
			<li class="third-tab" data-name="逾期邮件">
				<a href="javascript:void(0)" >逾期邮件</a>
			</li>
			<!--<li class="third-tab" data-name="逾期微信">
				<a href="javascript:void(0)">逾期微信</a>
			</li> -->
		</ul>
		<div class="third-tabs-con">
			<div class="third-tab-con active">
				<div class="message-mask">
					<div class="message-tip-con">
						<div class="msg-title">温馨提示</div>
						<div class="msg-img"></div>
						<div class="msg-tip">如需使用发送短信消息功能，需先开通短信服务，具体开通事宜请联系：177 8603 0154</div>
					</div>
				</div>
				<div class="main-content-mode-wp clearfloat" >
	            <div class="template-wp">
	              <h3 class="title">正文内容</h3>
	              <div class="textarea-wp">
		            <c:choose> 
						<c:when test="${pushModelList!= null && fn:length(pushModelList) >0 }" > 
						
							<c:forEach items="${pushModelList}" var="item">
							     
								 <c:if test="${item.billType == 0 && item.pushWay == 0}"> 
								 
		                			<textarea class="textarea-con"  spellcheck="false" data-id="${item.id }">${item.pushContent}</textarea>
		                		 </c:if> 	
		                	</c:forEach>	
						</c:when>
						<c:otherwise>
							<textarea class="textarea-con"  spellcheck="false" data-id=""></textarea>
						</c:otherwise> 
					  </c:choose>	 
	              </div>
	              <div class="btn-wp">
	                <button class="in-mg-save-btn btn-red save-btn"  data-modeltype = "0"  data-modelway = "0">保存</button>
	              </div>
	            </div>
	            <div class="tips">
	            	  注：<br>
	              [keyword1]代表账单总金额<br>
	              [keyword2]代表账单月份<br>
	              [keyword3]代表计费期间<br>
	            </div>
	          </div>
			</div>
			<div class="third-tab-con">
				<div class="main-content-mode-wp clearfloat" >
	            <div class="template-wp">
	              <h3 class="title">正文内容</h3>
	              <div class="textarea-wp">
	                <c:choose> 
						<c:when test="${pushModelList!= null && fn:length(pushModelList) >0 }" > 
						
							<c:forEach items="${pushModelList}" var="item">
							     
								 <c:if test="${item.billType == 0 && item.pushWay == 1}"> 
		                			<textarea class="textarea-con"  spellcheck="false" data-id="${item.id }">${item.pushContent}</textarea>
		                		 </c:if> 	
		                	</c:forEach>	
						</c:when>
						<c:otherwise>
							<textarea class="textarea-con"  spellcheck="false" data-id=""></textarea>
						</c:otherwise> 
					  </c:choose>	 
	              </div>
	              <div class="btn-wp">
	                <button class="in-email-save-btn btn-red save-btn" data-modeltype = "0"  data-modelway = "1">保存</button>
	              </div>
	            </div>
	            <div class="tips">
	            	  注：<br>
	              [keyword1]代表账单总金额<br>
	              [keyword2]代表账单月份<br>
	              [keyword3]代表计费期间<br>
	            </div>
	          </div>
			</div>
			<!-- <div class="third-tab-con">
				<div class="main-content-mode-wp clearfloat" >
	           		<div class="wx-template-wp">
	           			<h2 class="t-title">企业账单</h2>
	           			<span class="t-date">4月11日</span>
	           			<div class="t-title-wp">${title1}</div>
	           			<ul class="t-detail-list">
	           				<li class="t-detail-item">账单总金额：25000</li>
	           				<li class="t-detail-item">账单月份：2月</li>
	           				<li class="t-detail-item">计费区间：2018-04-12 ~ 2018-04-16 </li>
	           			</ul>
	           			<div class="t-type">${remark1}</div>
	           			<!-- <div class="t-check">查看详情</div> -->
	           	<!--	</div>
	          	</div>
			</div> -->
			<div class="third-tab-con">
				<div class="message-mask">
					<div class="message-tip-con">
						<div class="msg-title">温馨提示</div>
						<div class="msg-img"></div>
						<div class="msg-tip">如需使用发送短信消息功能，需先开通短信服务，具体开通事宜请联系：177 8603 0154</div>
					</div>
				</div>
				<div class="main-content-mode-wp clearfloat" >
	            <div class="template-wp">
	              <h3 class="title">正文内容</h3>
	              <div class="textarea-wp">
	                 <c:choose> 
						<c:when test="${pushModelList!= null && fn:length(pushModelList) >0 }" > 
						
							<c:forEach items="${pushModelList}" var="item">
							     
								 <c:if test="${item.billType == 1 && item.pushWay == 0}"> 
								 
		                			<textarea class="textarea-con"  spellcheck="false" data-id="${item.id }">${item.pushContent}</textarea>
		                		 </c:if> 	
		                	</c:forEach>	
						</c:when>
						<c:otherwise>
							<textarea class="textarea-con"  spellcheck="false" data-id=""></textarea>
						</c:otherwise> 
					  </c:choose>	 
	              </div>
	              <div class="btn-wp">
	                <button class="out-mg-save-btn btn-red save-btn" data-modeltype = "1"  data-modelway = "0">保存</button>
	              </div>
	            </div>
	            <div class="tips">
	            	  注：<br>
	              [keyword1]代表账单总金额<br>
	              [keyword2]代表账单月份<br>
	              [keyword3]代表计费期间<br>
	            </div>
	          </div>
			</div>
			<div class="third-tab-con">
				<div class="main-content-mode-wp clearfloat" >
	            <div class="template-wp">
	              <h3 class="title">正文内容</h3>
	              <div class="textarea-wp">
	                <c:choose> 
						<c:when test="${pushModelList!= null && fn:length(pushModelList) >0 }" > 
						
							<c:forEach items="${pushModelList}" var="item">
							     
								 <c:if test="${item.billType == 1 && item.pushWay == 1}"> 
								 
		                			<textarea class="textarea-con"  spellcheck="false" data-id="${item.id }">${item.pushContent}</textarea>
		                		 </c:if> 	
		                	</c:forEach>	
						</c:when>
						<c:otherwise>
							<textarea class="textarea-con"  spellcheck="false" data-id=""></textarea>
						</c:otherwise> 
					  </c:choose>	 
	              </div>
	              <div class="btn-wp">
	                <button class="out-mg-save-btn btn-red save-btn" data-modeltype = "1"  data-modelway = "1">保存</button>
	              </div>
	            </div>
	            <div class="tips">
	            	  注：<br>
	              [keyword1]代表账单总金额<br>
	              [keyword2]代表账单月份<br>
	              [keyword3]代表计费期间<br>
	            </div>
	          </div>
			</div>
		<!-- <div class="third-tab-con">
				<div class="main-content-mode-wp clearfloat" >
	           		<div class="wx-template-wp">
	           			<h2 class="t-title">企业账单</h2>
	           			<span class="t-date">4月11日</span>
	           			<div class="t-title-wp">${title2}</div>
	           			<ul class="t-detail-list">
	           				<li class="t-detail-item">账单总金额：25000</li>
	           				<li class="t-detail-item">账单月份：3月</li>
	           				<li class="t-detail-item">计费区间：2018-04-12 ~ 2018-05-18 </li>
	           			</ul>
	           			<div class="t-type">${remark2}</div>
	           			<!-- <div class="t-check">查看详情</div> -->
	           		<!-- </div>
	          	</div>
			</div> -->
		</div>
	</div>
<script type="text/javascript" src="<c:url value='/scripts/admin/billPush/templateSetting.js'/>"></script>
</body>
</html>