
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[.$ourphp_adminfont.admintitle.]</title>
<link href="templates/images/ourphp_login.css" rel="stylesheet" type="text/css"> 
<script type="text/javascript" src="../../function/plugs/jquery/1.7.2/jquery-1.7.2.min.js"></script>
<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(m,n){
 var tli=document.getElementById("menu"+m).getElementsByTagName("li");
 var mli=document.getElementById("main"+m).getElementsByTagName("ul");
 for(i=0;i<tli.length;i++){
  tli[i].className=i==n?"hover":"";
  mli[i].style.display=i==n?"block":"none";
 }
}
//-->
</script>
</head>

<body>
<div style="height:50px;"></div>
<div style="clear:both"></div>
<div id="tabs0">
 <ul class="menu0" id="menu0">
  <li class="hover">系统邮件设置</li>
 </ul>
 <div class="main" id="main0" style="border-top:2px #488fcd solid; clear:both;">
  <ul class="block">
	  <li>
	  [.if !isset($smarty.get.our).]
		        <table width="100%" border="0" cellpadding="10" class="ourphp_newslist">
                  <tr>
				  	<td width="5%" bgcolor="#EBEBEB"><div align="center">ID</div></td>
                    <td width="30%" bgcolor="#EBEBEB">邮件主题</td>
                    <td width="20%" bgcolor="#EBEBEB">用户</td>
					<td width="20%" bgcolor="#EBEBEB">状态</td>
                    <td width="25%" bgcolor="#EBEBEB">操作</td>
                  </tr>
				  [.section loop=$Maillist name=op.]
                  <tr>
				  	<td><div align="center"><font style="background:#009933; color:#FFFFFF; padding:2px; text-align:center;">[.$Maillist[op].id.]</font></div></td>
                    <td>[.$Maillist[op].title.]</td>
                    <td>[.$Maillist[op].user.]</td>
					<td>[.if $Maillist[op].class == 1.]开启[.else.]关闭[./if.]</td>
                    <td><a href="ourphp_mail.php?id=[.$Maillist[op].id.]&our=edit">编辑</a></td>
                  </tr>
				  [.sectionelse.]
				  <tr>
                    <td colspan="5">[.$ourphp_access.]</td>
                  </tr>
				  [./section.]
                </table>
		[.else.]
		
		<form id="form1" name="form1" method="POST" action="?ourphp_cms=edit&id=[.$ourphp_mail.id.]" class="registerform">
		<table width="98%" border="0" cellpadding="5" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse;" align="center">
		<tr>
		  	<td width="10%"><div align="right">邮件主题</div></td>
			<td width="90%">[.$ourphp_mail.OP_Mailtitle.]</td>
		  </tr>
		  <tr>
		  	<td><div align="right">SMTP服务器</div></td>
			<td><input name="OP_Mailsmtp" type="text" class="win" value="[.$ourphp_mail.OP_Mailsmtp.]" [.$ourphp_bgcolor.] datatype="*" nullmsg="SMTP服务器是必填项!"/><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">SMTP端口</div></td>
			<td><input name="OP_Mailport" type="text" class="win" value="[.$ourphp_mail.OP_Mailport.]" [.$ourphp_bgcolor.] datatype="*" nullmsg="SMTP端口是必填项!"/><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">发送邮箱</div></td>
			<td><input name="OP_Mailusermail" type="text" class="win" value="[.$ourphp_mail.OP_Mailusermail.]" [.$ourphp_bgcolor.] datatype="*" nullmsg="发送邮箱是必填项!"/><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">登录账号</div></td>
			<td><input name="OP_Mailuser" type="text" class="win" value="[.$ourphp_mail.OP_Mailuser.]" [.$ourphp_bgcolor.] datatype="*" nullmsg="登录账号是必填项!"/><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">登录密码</div></td>
			<td><input name="OP_Mailpass" type="text" class="win" value="[.$ourphp_mail.OP_Mailpass.]" [.$ourphp_bgcolor.] datatype="*" nullmsg="登录密码是必填项!"/><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">邮件标题</div></td>
			<td><input name="OP_Mailsubject" type="text" class="win" value="[.$ourphp_mail.OP_Mailsubject.]" [.$ourphp_bgcolor.] datatype="*" nullmsg=">邮件标题是必填项!"/><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td valign="top"><div align="right">邮件正文</div></td>
			<td><textarea name="OP_Mailcontent" class="wtextarea" id="container" style="width:80%; height:150px; padding:10px;">[.$ourphp_mail.OP_Mailcontent.]</textarea><font color=red> (*)</font>
			
			<div style="clear:both; height:20px;"></div>
			
			
			<table width="80%" border="0" align="left" cellpadding="10" bgcolor="#FFFFFF">
              <tr>
                <td colspan="4">可用标签</td>
                </tr>
				[.if $ourphp_mail.id == 1.]
              <tr>
                <td width="15%"><div align="right">注册账号：</div></td>
                <td width="19%">#opcms#useremail#</td>
                <td width="15%"><div align="right">注册密码：</div></td>
                <td width="51%">#opcms#userpass#</td>
              </tr>
			  <tr>
                <td width="15%"><div align="right">会员姓名：</div></td>
                <td width="19%">#opcms#userename#</td>
                <td width="15%"></td>
                <td width="51%"></td>
              </tr>
			  [.elseif $ourphp_mail.id == 2.]
			  <tr>
                <td width="15%"><div align="right"></div></td>
                <td width="19%"></td>
                <td width="15%"><div align="right"></div></td>
                <td width="51%"></td>
              </tr>
			  [.elseif $ourphp_mail.id == 3.]
			   <tr>
                <td width="15%"><div align="right">订单号：</div></td>
                <td width="19%">#opcms#buynumber#</td>
                <td width="15%"><div align="right">快递名称：</div></td>
                <td width="51%">#opcms#express#</td>
              </tr>
			  <tr>
                <td width="15%"><div align="right">快递运单号：</div></td>
                <td width="19%">#opcms#expressnum#</td>
                <td width="15%"><div align="right"></div></td>
                <td width="51%"></td>
              </tr>
			  [.elseif $ourphp_mail.id == 4.]
			   <tr>
                <td width="15%"><div align="right">验证码：</div></td>
                <td width="19%">#opcms#code#</td>
                <td width="15%"><div align="right"></div></td>
                <td width="51%"></td>
              </tr>
			  [./if.]
            </table>
			
			
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">开启/关闭</div></td>
			<td><input name="OP_Mailclass" type="radio" value="1" [.if $ourphp_mail.OP_Mailclass == 1.]checked="checked"[./if.] />
			  开启&nbsp;&nbsp;
			  <input type="radio" name="OP_Mailclass" value="2" [.if $ourphp_mail.OP_Mailclass == 2.]checked="checked"[./if.] />关闭</td>
		  </tr>
		  <tr>
		  	<td><div align="right">发送模式</div></td>
			<td>
			
			<select name="OP_Mailtype" class="win3">
			  <option value="HTML"  [.if $ourphp_mail.OP_Mailtype == 'HTML'.]selected="selected"[./if.]>HTML(支持代码)</option>
			  <option value="TXT"  [.if $ourphp_mail.OP_Mailtype == 'TXT'.]selected="selected"[./if.]>TXT(仅文本)</option>
			</select>
			
			</td>
		  </tr>
		   <tr>
		   	<td></td>
			<td><input type="submit" name="submit" value="提 交" class="ourphp-anniu"/></td>
		  </tr>
		</table>
		</form>
		
		[./if.]
	  </li>
  </ul>
 </div>
</div>
[.include file="ourphp_foot.html".]
</body>
</html>