<div id="mc_login" class="mc_login clearfix">
  <div class="coltop"></div>
  <script type="text/javascript">
  //<![CDATA[
    Event.observe(window, 'load', function(){
      if (document.forms['ECS_LOGIN'].user_name) document.forms['ECS_LOGIN'].user_name.focus();
      if ($('captcha-img')) changeCaptcha($('captcha-img'));
    });
    function changeCaptcha (img) {
      img.src = 'admin.php?app=profile&act=captcha&' + Math.random();
    }
  //]]>
  </script>
  <div class="column1">
    <h3><img src="themes/mall/skin/default/images/login_title.gif" alt="登录" /></h3>
    <form name="ECS_LOGIN" action="index.php?app=member&amp;act=login" method="post">
      <table border="0" cellspacing="0" class="formtable">
       <tr>
         <th width="60">用户名:</th>
         <td width="150" colspan="2"><input type="text" name="user_name" value="<?php echo $this->_var['user_name']; ?>" size="25" class="sinput" tabindex="1" /></td>
       </tr>
       <tr>
         <th>密码:</th>
         <td><input name="password" type="password" size="25" class="sinput" tabindex="2" /></td>
         <td><a href="<?php echo $this->url_rewrite(array('app'=>'member','act'=>'getpwd')); ?>">取回密码</a></td>
       </tr>
       <?php if ($this->_var['login_captcha']): ?>
       <tr>
         <th>验证码:</th>
         <td colspan="2"><input type="text" id="captcha" name="captcha" maxlength="4"  class="sinput" tabindex="3" /> <img src="about:blank" style="display:none;cursor:pointer" id="captcha-img" title="看不清图片？点击这里。" onclick="changeCaptcha(this)" onload="this.style.display='inline'" /></td>
       </tr>
       <tr>
         <td>&nbsp;</td>
         <td class="desc" colspan="2"><span onclick="changeCaptcha($('captcha-img'))" style="cursor:pointer">看不清图片？点击这里。</span></td>
       </tr>
       <?php endif; ?>
       <tr>
         <td>&nbsp;</td>
         <td colspan="2">
           <input type="hidden" name="ret_url" value="<?php echo $this->_var['ret_url']; ?>" /><input type="image" src="themes/mall/skin/default/images/btn_signin.gif" />
         </td>
       </tr>
      </table>
    </form>
  </div>
  <div class="column2">
    <?php if ($this->_var['from'] == 1): ?>
    <h4>点击注册.</h4>
    <p>如果您在本站还没有用户名，请点击下面按钮进行注册。</p>
    <p><a href="<?php echo $this->url_rewrite(array('app'=>'member','act'=>'register','ret_url'=>$this->_var['ret_url'])); ?>"><img src="themes/mall/skin/default/images/btn_register.gif" alt="注册" /></a></p><br /><br />
    <?php if ($this->_var['allow_anonymous_buy']): ?>
    <h4>以访客身份直接购买</h4>
    <p>以访客身份直接购买，将不能记录您的用户信息，<br />下次访问您还需要重新填写购物信息。</p>
    <p><a href="<?php echo $this->_var['ret_url']; ?>&amp;guest_buy=1"><img src="themes/mall/skin/default/images/btn_anonymity.gif" alt="以游客的身份购买" /></a></p>
    <?php endif; ?>
    <?php else: ?>
    <h4>点击注册.</h4>
    <p>如果您在本站还没有用户名，请点击下面按钮进行注册。</p>
    <p><a href="<?php echo $this->url_rewrite(array('app'=>'member','act'=>'register','ret_url'=>$this->_var['ret_url'])); ?>"><img src="themes/mall/skin/default/images/btn_register.gif" alt="注册" /></a></p><br /><br />
    <p>忘记密码，请点击下面链接取回密码。</p>
    <p><a href="<?php echo $this->url_rewrite(array('app'=>'member','act'=>'getpwd')); ?>"><img src="themes/mall/skin/default/images/btn_getpwd.gif" alt="取回密码" /></a></p>
    <?php endif; ?>
  </div>
  <div class="colbtm"></div>
</div>
