 <!-- include 'admin/header' -->
 <script src="<?= WEB_SITE_GLOBAL ?>js/email.js"></script>
<body>
	<div class="mainLayout">
		<div class="mainMenu">
			<div class="menuItem">
				<a href="#" class="mLogo">CLD</a>
				<ul>
					<!-- include 'menu' -->
				</ul>
			</div>
		</div>
		<div class="warpContent">
			<div class="subMenu fL">
				<div class="menuItem">
					<ul>
						<li class="saeaTitle">邮件推广</li>
						<!-- include 'mailMenu' -->
					</ul>
				</div>
			</div>
			<div class="adminContent autoHeight">
				<legend>短信列表</legend>
				<div class="mailSpread">
					<div class="mailList mailAutoHeigh">
						<div class="listItem">
							<ul>
							<!-- loop mailList -->
								<li>
					 			<a href="javascript:void(0)" onclick="email({{mailList' value.sid}})" class="title">{{mailList' value.title}}（{{mailList' value.kindName}}）</a>{{mailList' value.date}}
								<p>{{mailList' value.errorInfo}}</p>
								<p id="send_{{mailList' value.sid}}" class="send  " style="text-align:right">
								<!-- if {{mailList' value.kind}}==1 -->
									<!-- if {{mailList' value.status}}==1 -->
									<span class="colOrange">待审批</a> <a class="colBlue" href="/sms/edit/{{mailList' value.sid}}">编辑</a> <a class="colRed" href="/sms/delete/{{mailList' value.sid}}">删除</a>
									<!-- else -->
									<b class="icon- colGreen" >j</b>
									<!-- endif -->
								<!-- else -->
									<!-- if {{mailList' value.status}}==1 -->
									<span class="colOrange">待审批</a> <a class="colBlue" href="/sms/edit/{{mailList' value.sid}}">编辑</a> <a class="colRed" href="/sms/delete/{{mailList' value.sid}}">删除</a>
									<!-- elseif {{mailList' value.status}}==2  -->
									><a href="/sendSms/{{mailList' value.sid}}">开始发送</a> <a class="colRed" href="/sms/delete/{{mailList' value.sid}}">删除</a>
									<!-- else -->
									<b class="icon- colGreen" >j</b>
									<!-- endif -->
								<!-- endif -->
								</p>
								</li>
							<!-- endloop -->
							</ul>
						</div>
					</div>
					
					<!-- loop mailList -->
					<div id="html_{{mailList' value.sid}}" class="mailDetail mailAutoHeigh <!-- if {{mailList' key}}!=0 --> hide <!-- endif -->">
						<!--短信-->
						  <div class="smsBody" style="margin-left:15%">
								<div class="smsvcontent">
									<p class="colGreen">客户昵称您好！</p>
									<p class="smstext">{{mailList' value.content}}</p>
									<p class="colGreen">【纵横造价】</p>
								</div>
							</div>
						<!--短信-->
					</div>
					<!-- endloop -->
					<!-- loop mailList -->
					<div id="client_{{mailList' value.sid}}" class="mailAddressee mailAutoHeigh <!-- if {{mailList' key}}!=0 --> hide <!-- endif -->">
						<div class="title">&nbsp;发送范围： 
						<!-- loop mailList' value.tag -->
						{{mailList' value' value.name}} 
						<!-- endloop -->
						({{mailList' value.clientCount}} )</div>
						<div class="listItem">
							
							<ul  >
								<!-- loop mailList' value.clientName -->
								<li>{{mailList' value' value.clientname}}（{{mailList' value' value.companyname}}）<p>{{mailList' value' value.telephone}}</p></li>
								<!-- endloop -->
								<!-- loop mailList' value.illegalEmail -->
								<li class="invalid" >{{mailList' value' value.clientname}}（{{mailList' value' value.companyname}}）<p>{{mailList' value' value.telephone}}</p></li>
								<!-- endloop -->
								
							</ul>
							
						</div>					
					</div>
					<!-- endloop -->
					
				</div>
			</div>
		</div>

<script type="text/javascript">autoFlashHeight();</script>	
</body>