



  <div id="loginmain">

<?php   //输出消息
    QUnit_Global::includeTemplate('message.tpl.php');
    if($this->login_status) {
?>
<center>登陆成功，正在跳转。。。</center>
<script type="text/javascript">
    window.location.href='affiliates/';
</script>
<?php } else { ?>

<form id="formLogin" action="" method="post">
  <table border=0 align=center>
  <tr>
    <td colspan=2 align=center class="title"><b><?php echo $this->a_caption?></b></td>
  </tr><tr>
    <td align=right><?php echo L_G_USERNAME2?>&nbsp;</td><td><input id="passport" class="bd1 input" type=text name=username size=23 value='<?php echo $_REQUEST['username']?>'></td>
  </tr>
  <tr>
    <td align=right><?php echo L_G_PASSWORD?>&nbsp;</td><td><input id="password" class="bd1 input" type=password name=rpassword size=23 value=''></td>
  </tr>
  <tr><td>&nbsp;</td><td><img style="float:right;" src="include/authimg.php" /><input id="validcode" type="text" name="validcode" class="bd2 input" maxlength="4" /></td></tr>
  <tr>
    <td colspan=2 align=center>
    <?php
        $accountid = $_POST['accountid'];
        if($accountid == '') {
            $accountid = DEFAULT_ACCOUNT;
        }
    ?>
      <input type="hidden" name="commited" value='yes'>
      <input type="hidden" name="md" value='Affiliate_PZone_Views_Login'>
      <input type="hidden" name="checkvcode" value='yes'>
      <input type="hidden" name="query_string" value='<?php echo ($_SERVER["QUERY_STRING"] != '') ? $_SERVER["QUERY_STRING"] : ''?>'>
      <input type="hidden" name="accountid" value='<?php echo $accountid?>'>
      <input type="hidden" name=action value=<?php echo $_POST['action']?>>
      <input type="submit" class="formbutton" value="<?php echo L_G_LOGIN?>">
    </td>
  </tr>
  </table>
  </form>
  <br>
  <font size=-1>
  <?php echo L_G_FORGOTPASSWORD?> <a href='index.php?md=Affiliate_PZone_Views_ForgotPasswd'><?php echo L_G_CLICKHERE?></a>
  </font>

<?php } ?>

</div>
