{:tpl head}
<table cellpadding="0" cellspacing="1" class="table_list">
 <caption>模块管理</caption>
  <tr>
   <td>
    <strong>管理选项：</strong>
    <a href="?c=module&a=add">安装模块</a> |
    <a href="?c=module">管理模块</a>
   </td>
  </tr>
</table>
<table cellpadding="0" cellspacing="1" class="table_form">
 <caption>邮件模块配置</caption>
 <form action="?c=module&a=config" method="post" name="myform">
 <input type="hidden" name="id" value="{:$module['id']}" />
 <input type="hidden" name="forward" value="{:$referer}" />
 <input type="hidden" name="default" value="smtpauth=0|smtpdomain=0|smtpsecure=0" />
 <tr>
  <td align="right">发送方式</td>
  <td>
   <select name="info[sendtype]">
    {:Tag::option('mail_mail|nmail_直接|smtp_smtp', $data['sendtype'])}
   </select>
  </td>
 </tr>
 <tr>
 <td align="right">smtp方式详细设置</td>
 <td>&nbsp;</td>
 </tr>
 <tr>
  <td align="right">主 机</td>
  <td><input type="text" size="30" value="{:$data['smtphost']}" name="info[smtphost]" id="smtphost" /></td>
 </tr>
 <tr>
  <td align="right">端 口</td>
  <td><input type="text" size="10" value="{:$data['smtpport']}" name="info[smtpport]" id="smtpport"></td>
 </tr>
 <tr>
  <td align="right">smtp主机选项</td>
  <td>
   <input type="checkbox" name="info[smtpauth]" value="1"{:Tag::checked($data['smtpauth'], 1)} />需要验证
   <input type="checkbox" name="info[smtpdomain]" value="1"{:Tag::checked($data['smtpdomain'], 1)} />包含域登录
   <input type="checkbox" name="info[smtpsecure]" value="1"{:Tag::checked($data['smtpsecure'], 1)} />启用安全协议
  </td>
 </tr>
 <tr>
  <td align="right">smtp验证邮箱</td>
  <td><input type="text" size="30" value="{:$data['smtpuser']}" name="info[smtpuser]" id="smtpuser"></td>
 </tr>
 <tr>
  <td align="right">密 码</td>
  <td><input type="password" size="30" value="{:$data['smtppass']}" name="info[smtppass]" id="smtppass"></td>
 </tr>
 <tr>
  <td>&nbsp;</td>
  <td>
   <button name="submit" type="submit">提交</button>
   <button name="back" type="button" onclick="history.go(-1)">返回</button>
  </td>
 </tr>
 </form>
</table>
{:tpl foot}