 <!-- 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.elid}})" class="title">{{mailList' value.eTitle}}</a>{{mailList' value.date}}
								
								<!-- if {{mailList' value.status}}==0&&({{mailList' value.examine}}==0||{{mailList' value.examine}}==1) -->
								<p><span class="colOrange">待审批 <a class="colBlue" href="/email/edit/{{mailList' value.elid}}">编辑</a> <a href="/deleteEmail/{{mailList' value.elid}}" class="colRed">删除</a></span></p>
								<!-- elseif {{mailList' value.status}}==0&&{{mailList' value.examine}}==2 -->
								<p>
									<!-- if {{mailList' value.send1}}==0 -->
									<a href="/postEmail/{{mailList' value.elid}}/1" node-mail class="btn btn-mini btn-success">发送1</a>&nbsp;
									<!-- else -->
									<b class="icon- colGreen" href="#">j</b>
									<!-- endif -->
									
									<!-- if {{mailList' value.send2}}==0 -->
									<a href="/postEmail/{{mailList' value.elid}}/2" node-mail class="btn btn-mini btn-success">发送2</a>&nbsp;
									<!-- else -->
									<b class="icon- colGreen" href="#">j</b>
									<!-- endif -->
									
									<!-- if {{mailList' value.send3}}==0 -->
									<a href="/postEmail/{{mailList' value.elid}}/3" node-mail class="btn btn-mini btn-success">发送3</a>&nbsp;
									<!-- else -->
									<b class="icon- colGreen" href="#">j</b>
									<!-- endif -->
									
									<a href="/deleteEmail/{{mailList' value.elid}}" class="colRed">删除</a>
								</p>
								<!-- else -->
								<p><b class="icon- colGreen" href="#">j</b><b class="icon- colGreen" href="#">j</b><b class="icon- colGreen" href="#">j</b></p>
								<!-- endif -->
								
								
								
								</li>
							<!-- endloop -->
							</ul>
						</div>
					</div>
					<!-- loop mailList -->
					<div id="html_{{mailList' value.elid}}" class="mailDetail mailAutoHeigh <!-- if {{mailList' key}}!=0 --> hide <!-- endif -->">
						<!--邮件模板-->
						  {{mailList' value.html}}
						  
						<!--邮件模板-->
					</div>
					<!-- endloop -->
					<!-- loop mailList -->
					<div id="client_{{mailList' value.elid}}" 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.email}}</p></li>
								<!-- endloop -->
								<li>发送2</li>
								<!-- loop mailList' value.clientName2 -->
								<li>{{mailList' value' value.clientname}}（{{mailList' value' value.companyname}}）<p>{{mailList' value' value.email}}</p></li>
								<!-- endloop -->
								<li>发送3</li>
								<!-- loop mailList' value.clientName3 -->
								<li>{{mailList' value' value.clientname}}（{{mailList' value' value.companyname}}）<p>{{mailList' value' value.email}}</p></li>
								<!-- endloop -->
								<!-- loop mailList' value.illegalEmail -->
								<li class="invalid" >{{mailList' value' value.clientname}}（{{mailList' value' value.companyname}}）<p>{{mailList' value' value.email}}</p></li>
								<!-- endloop -->
								<!-- loop mailList' value.sendEmail -->
								<li class="repeat" >{{mailList' value' value.clientname}}（{{mailList' value' value.companyname}}）<p>{{mailList' value' value.email}}</p></li>
								<!-- endloop -->
							</ul>
							
						</div>					
					</div>
					<!-- endloop -->
				</div>
			</div>
		</div>

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