 <!-- include 'admin/header' -->
 <script src="<?= WEB_SITE_GLOBAL ?>js/email.js"></script>
  <script src="<?= WEB_SITE_GLOBAL ?>js/receipt.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="clearfix">
					<form action="/eMialCenter" id="up" method="post">
						<select name="year" id="Y" onchange="receiptYear();">
						{{dateHtml}}
						</select> 
						<select name='month' id="M" onchange="receiptMoth();">
						{{monthHtml}}
						</select>
						</form>
					</div>
						<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}}
								<p>{{mailList' value.category}}{{mailList' value.staffName}}</p>
								
								<p id="send_{{mailList' value.sid}}" class="send  " style="text-align:right">
								
									<!-- if {{mailList' value.examine}}==1||{{mailList' value.examine}}==0 -->
									<a href="/authMail/{{mailList' value.elid}}">同意发送</a>
									<!-- elseif {{mailList' value.examine}}==2  -->
									<span class="colGreen">{{mailList' value.mark}}</span> | <span class="colOrange">待发送</span>
									<!-- elseif {{mailList' value.examine}}==2&&{{mailList' value.status}}==2 -->
									<span class="colGreen">{{mailList' value.mark}}</span> | <b class="icon- colGreen" href="#">j</b>
									<!-- endif -->
								
								</p>
								
								</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}} )
						<a href="/showEmailContent/{{mailList' value.elid}}" target="_blank">下载邮件内容</a>
						</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 -->
								<!-- loop mailList' value.clientName2 -->
								<li>{{mailList' value' value.clientname}}（{{mailList' value' value.companyname}}）<p>{{mailList' value' value.email}}</p></li>
								<!-- endloop -->
								<!-- 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>