<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>邮件管理</title>
  
        <meta name="viewport" content="width=device-width" />
        <link href="{{rootUrl}}global/v1/m/images/style.css" rel="stylesheet" type="text/css" />
        <link href="{{rootUrl}}global/v1/css/easydialog.css" rel="stylesheet" type="text/css" />
        
		<script type="text/javascript" src="{{rootUrl}}global/v1/js/jquery-1.7.1.min.js"></script>
		<script type="text/javascript" src="{{rootUrl}}global/v1/js/ueditor/editor_config.js"></script>
		
		<script type="text/javascript" src="{{rootUrl}}global/v1/js/ueditor/editor.min.js"></script>
		<link rel="stylesheet" href="{{rootUrl}}global/v1/js/ueditor/themes/default/ueditor.css" />
		
</head>
<body>
    <div class="main_content new_product">

	<!--table列表-->
	<div class="globle_form">
		<form name="msgform" id="msgform" action="/m/do_add_email_task" method="post" >
			<table cellspacing="0" cellpadding="0" class="tableForm">
				<tr><td width="100"><b>范围</b></td><td>所有用户</td></tr>
				<tr><td width="100"><b>标题</b></td><td><input class="inputText" name="email_title" size="90" /></td></tr>
				<tr><td><b>内容</b></td>
				<td>
				<script type="text/plain" id="email_content" name="email_content" style="width:600px"></script>
				
				</td></tr>
				<tr><td></td><td><input type="submit" class="button btn-gray btn-icon" value="发送" /></td></tr>
			</table>
		</form>
	</div>
	<div class="globle_list">
	    <table cellspacing="0" cellpadding="0" class="tableList">
			<tbody><tr class="odd">
				<th class="">标题</th>
				<th class="">发送时间</th>
				<th class="">发送状态</th>
				<th class="">操作</th>
			</tr>
			<!-- loop email_task_list -->
			<tr class="">
				<td class="">{{email_task_list' value.email_title}}</td>
				<td class="">{{email_task_list' value.time}}</td>
				<td class="">{{email_task_list' value.status}}</td>
				<td class=""><!-- if {{email_task_list' value.status}}==1 --> 
								<a href="/m/send_email_task/{{email_task_list' value.tid}}">发送邮件</a> 
								<!-- elseif {{email_task_list' value.status}}==2 --> 
								<a href="/m/send_email_task/{{email_task_list' value.tid}}">继续邮件</a> 
								<!-- elseif {{email_task_list' value.status}}==3 --> 
								<a href="/m/faild_email_task/{{email_task_list' value.tid}}">补发失败邮件</a> 
								<!-- elseif {{email_task_list' value.status}}==4 --> 
								邮件群发任务完成
								<!-- endif --><a href="/m/delete_email_task/{{email_task_list' value.tid}}">删除</a></td>
			</tr>	
			<!-- endloop -->			
		</tbody></table>
    </div>
</body>
<script type="text/javascript">
			    var editor = new UE.ui.Editor();
			    
			    editor.render('email_content');
			</script>
			
</html>
