<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$page_title}</title>
<meta name="Copyright" content="DouCo Co.,Ltd." />
<link href="templates/public.css" rel="stylesheet" type="text/css">
{include file="javascript.htm"}
</head>
<body>
<div id="login">
  <div class="logo"></div>
  <!-- {if $rec eq 'default'} 管理员登录页 -->
  <form action="login.php?rec=login" method="post">
   <div class="form">
    <div class="basicBox">
     <dl>
      <dt>{$lang.login_user_name}</dt>
      <dd><input type="text" name="user_name" class="input"></dd>
     </dl>
     <dl>
      <dt>{$lang.login_password}</dt>
      <dd><input type="password" name="password" class="input"></dd>
     </dl>
    </div>
    <div class="captchaBox">
     <!-- {if $site.captcha} -->
     <dl class="captcha">
      <dt>{$lang.login_captcha}</dt>
      <dd><input type="text" name="captcha" class="input"></dd>
     </dl>
     <img id="vcode" src="../captcha.php" class="captchaImg" alt="{$lang.captcha}" border="1" onClick="refreshimage()" title="{$lang.login_captcha_refresh}">
     <!-- {/if} -->
    </div>
    <div class="btnBox">
     <input type="submit" name="submit" class="btn" value="{$lang.login_submit}">
     <div class="action">{$lang.login_password_forget}？<a href="login.php?rec=password_reset">{$lang.login_password_reset_action}</a></div> 
    </div>
    <div class="linkBox">
     <a href="http://www.dou.co/license.html" target="_blank">使用协议</a> <a href="{$site.root_url}">{$lang.login_back}</a>
    </div>
   </div>
  </form>
  <!-- {/if} -->
  <!-- {if $rec eq 'password_reset'} 找回密码、密码重置 -->
  <form action="login.php?rec=password_reset_post" method="post">
   <div class="form">
    <!-- {if $action eq 'default'} 找回密码 -->
    <div class="basicBox">
     <dl>
      <dt>{$lang.login_user_name}</dt>
      <dd><input type="text" name="user_name" class="input"></dd>
     </dl>
     <dl>
      <dt>{$lang.login_email}</dt>
      <dd><input type="text" name="email" class="input"></dd>
     </dl>
    </div>
    <div class="btnBox">
     <input type="hidden" name="token" value="{$token}" />
     <input type="submit" name="submit" class="btn" value="{$lang.login_password_reset}">
    </div>
    <!-- {elseif $action eq 'reset'} 密码重置 -->
    <div class="basicBox">
     <dl>
      <dt>{$lang.manager_new_password}</dt>
      <dd><input type="password" name="password" class="input"></dd>
     </dl>
     <dl>
      <dt>{$lang.manager_new_password_confirm}</dt>
      <dd><input type="password" name="password_confirm" class="input"></dd>
     </dl>
    </div>
    <div class="btnBox">
     <input type="hidden" name="user_id" value="{$user_id}" />
     <input type="hidden" name="code" value="{$code}" />
     <input type="hidden" name="action" value="reset" />
     <input type="hidden" name="token" value="{$token}" />
     <input type="submit" name="submit" class="btn" value="{$lang.btn_submit}">
    </div>
    <!-- {/if} -->
    <div class="action"><a href="login.php">{$lang.login_submit}</a></div>
    <div class="linkBox">
     <a href="https://www.douphp.com/license.html" target="_blank">{$lang.license}</a> <a href="{$site.root_url}">{$lang.login_back}</a>
    </div>
   </div>
  </form>
  <!-- {/if} -->
</div>
</body>
</html>