<!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></title>
<link href="admin/admin/template/style/admin.css" rel="stylesheet" type="text/css" />
<script src="include/js/jquery.js" type="text/javascript"></script>
<script src="include/js/admin.js" type="text/javascript"></script>
</head>
<body>
<div class="maintop">当前位置：<?php echo $toptxt ?></div>
<div class="main">
  <?php if($a==''){ ?>

  <div class="info">
    <form action="?c=ld_email&run=1" method="post">
      <div id="infos1">
        <dl style="border:0;">
          <dt>邮件发送方式：</dt>
          <dd>
            <select class="select" name="mail_type" id="mail_type">
			  <option <?php if($d[mail_type]=='close'){ echo 'selected=""';} ?> value="close">关闭邮件发送</option>
              <option <?php if($d[mail_type]=='smtp'){ echo 'selected=""';} ?> value="smtp">通过SMTP SOCKET 连接 SMTP 服务器发送(支持ESMTP验证)</option>
              <option <?php if($d[mail_type]=='mail'){ echo 'selected=""';} ?> value="mail">通过PHP mail 函数发送(通常为Unix/Linux 主机)</option>
              <option <?php if($d[mail_type]=='psmtp'){ echo 'selected=""';} ?>  value="psmtp">通过PHP mail 函数SMTP发送(通常为WIN主机)</option>
            </select>
          </dd>
        </dl>
        <dl>
          <dt>邮件头的分隔符：</dt>
          <dd>
            <select class="select" name="mail_delimiter" id="mail_delimiter">
              <option <?php if($d[mail_delimiter]==1){ echo 'selected=""';} ?>  value="1">使用 CRLF 作为分隔符(通常为Windows主机)</option>
              <option <?php if($d[mail_delimiter]==2){ echo 'selected=""';} ?>  value="2">使用 LF 作为分隔符(通常为Unix/Linux主机)</option>
              <option <?php if($d[mail_delimiter]==3){ echo 'selected=""';} ?> value="3">使用 CR 作为分隔符(通常为Mac主机)</option>
            </select>
          </dd>
        </dl>
        <dl style="border:2px;">
          <dt>SMTP服务器：</dt>
          <dd>
            <input name="smtp_host" type="text" class="int" value="<?php echo $d[smtp_host]; ?>" style="width:300px;"/>
          </dd>
          <dd class="t"></dd>
        </dl>
        <dl>
          <dt>SMTP端口：</dt>
          <dd>
            <input name="smtp_port" type="text" class="int" value="<?php echo $d[smtp_port]; ?>" style="width:300px;"/>
          </dd>
        </dl>
        <dl style="border:2px;">
          <dt>要求身份验证：</dt>
          <dd>
            <select class="select" name="smtp_auth" id="smtp_auth">
              <option value="0" <?php if($d[smtp_auth]==0){ echo 'selected=""';} ?>>否</option>
              <option <?php if($d[smtp_auth]==1){ echo 'selected=""';} ?> value="1">是 </option>
            </select>
          </dd>
          <dd class="t"></dd>
        </dl>
       
        <dl>
          <dt>用户名：</dt>
          <dd>
            <input name="smtp_user" type="text" class="int" value="<?php echo $d[smtp_user]; ?>" style="width:300px;"/>
          </dd>
        </dl>
        <dl>
          <dt>密&nbsp;码：</dt>
          <dd>
            <input name="smtp_pass" type="password" class="int" value="<?php echo $d[smtp_pass]; ?>" style="width:300px;"/>
          </dd>
        </dl>
          <dl>
          <dt>邮件签名：</dt>
          <dd>
		  <textarea name="mail_sign" style="width:300px; height:150px;"><?php echo $d[mail_sign]; ?></textarea>
          </dd>
        </dl>
        <dl>
          <dt>发件人邮箱：</dt>
          <dd>
            <input name="mail_sender" type="text" class="int" value="<?php echo $d[mail_sender]; ?>" style="width:300px;"/>
          </dd>
        </dl>
          <dl>
          <dt>发送人名称：</dt>
          <dd>
            <input name="mail_name" type="text" class="int" value="<?php echo $d[mail_name]; ?>" style="width:300px;"/>
          </dd>
        </dl>
	    <dl>
          <dt>测试邮件地址：</dt>
          <dd>
            <input name="mail_test" type="text" class="int" value="<?php echo $d[mail_test]; ?>" style="width:300px;"/>
          </dd>
        </dl>
		<input  type="hidden" name="test" value="0" id='test'/>
      </div>
	  
	   <dl>
	    <dt>&nbsp;</dt>
        <dd>
          <input type="submit" value="测试" class="btnbig"  onclick="$('#test').val(1)"/>
        </dd>
        <dt>&nbsp;</dt>
        <dd>
          <input type="submit" value="提 交" class="btnbig" />
        </dd>
      </dl>
    </form>
  </div>
  <?php } ?>
  <?php if($a=='ecache'){ ?>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td align="center"><br />
        <br />
        <br />
        <br />
        <form action="?c=ld_sys&a=ecache&run=1" method="post">
          <label>
          <input name="tpl" type="checkbox" value="1" checked="checked" />
          更新模板缓存</label>
          &nbsp;&nbsp;&nbsp;&nbsp;
          <label>
          <input name="tmp" type="checkbox" value="1" checked="checked" />
          更新数据缓存</label>
          <br />
          <br />
          <br />
          <input type="submit" value="提 交" class="btnbig" />
        </form></td>
    </tr>
  </table>
  <?php } ?>
</div>
</body>
</html>
