
<div class="pageCenter">

<div class="clear"></div>

<div class="postcontext">
    <div>
        <div style="float:right;">
            <a href="index.php?md=Affiliate_PZone_Views_Login" target="_self">已经注册，点此登录。</a>
            <a href="index.php?md=Affiliate_PZone_Views_ForgotPasswd" target="_self">忘记密码？</a>
        </div>
        当前位置：
        <a href="index.php">首页</a> >
        <a href="index.php?md=Affiliate_PZone_Views_Register">推广员注册</a>
    </div>

    <h3><center><?php echo L_G_AFFSIGNUPFORM?></center></h3>



    <?php   //输出消息
        if(isset($_GET['success'])) $GLOBALS['okMessages'][] = '感谢注册成为我们的推广员，我们将把注册信息发送至您的邮箱，请注意查收。';
        QUnit_Global::includeTemplate('message.tpl.php');
    ?>


    <form method='post' action=''>
    <table border=0 cellspacing=0 cellpadding=2 width="100%">

    <tr><td colspan="2"><img src="<?php echo THEME_PATH; ?>/images/list_title.gif" /> <b><?php echo L_G_ACCOUNTINFO;?></b></td></tr>


    <?php echo  $this->model->getFieldRow('refid', L_G_REFERERID)?>
    <?php echo  $this->model->getFieldRow('username', L_G_USERNAME)?>
    <?php echo  $this->model->getFieldRow('email', L_G_EMAIL)?>
    <?php echo  $this->model->getFieldRow('weburl', L_G_WEBURL)?>

    <tr><td colspan="2"><br></td></tr>
    <tr><td colspan="2"><img src="<?php echo THEME_PATH; ?>/images/list_title.gif" /> <b><?php echo L_G_PERSONALINFO;?></b></td></tr>
    <?php echo  $this->model->getFieldRow('name', L_G_NAME)?>
    <?php echo  $this->model->getFieldRow('company_name', L_G_COMPANYNAME)?>
    <?php echo  $this->model->getFieldRow('street', L_G_STREET)?>
    <?php echo  $this->model->getFieldRow('city', L_G_CITY)?>
    <?php echo  $this->model->getFieldRow('state', L_G_STATE)?>


    <?php    if($this->settings['Aff_signup_country'] == "1") {
            if($this->settings['Aff_signup_country_mandatory'] === "true") {
                $caption = "<b>".L_G_COUNTRY."</b>";
                $mandatSign = "*";
            } else {
                $caption = L_G_COUNTRY;
                $mandatSign = "";
            }
    ?>
            <tr>
                <td class=dir_form><?php echo  $caption?></td>
                <td>
                    <select name=country>&nbsp;*
                    <?php if($_POST['country'] == '') $_POST['country'] = '中国大陆';
                    foreach($GLOBALS['countries'] as $item_country) { ?>
                        <option value="<?php echo $item_country?>" <?php if($item_country == $_POST['country']) echo ' selected'; ?>><?php echo $item_country?></option>
                    <?php } ?>
                    </select>&nbsp;<?php echo  $mandatSign?>
                </td>
            </tr>

    <?php  } ?>

    <?php echo  $this->model->getFieldRow('zipcode', L_G_ZIPCODE)?>
    <?php echo  $this->model->getFieldRow('phone', L_G_PHONE)?>

    <?php echo  $this->model->getFieldRow('fax', L_G_FAX)?>
    <?php echo  $this->model->getFieldRow('tax_ssn', L_G_TAXSSN)?>

<?php if ($this->model->isDisplayed(array('data1', 'data2', 'data3', 'data4', 'data5'))) { ?>
    <tr><td colspan="2"><br></td></tr>
    <tr><td colspan="2"><img src="<?php echo THEME_PATH; ?>/images/list_title.gif" /> <b><?php echo L_G_ADDITIONALINFO;?></b></td></tr>
    <?php echo  $this->model->getFieldRow('data1', $this->settings['Aff_signup_data1_name'])?>
    <?php echo  $this->model->getFieldRow('data2', $this->settings['Aff_signup_data2_name'])?>
    <?php echo  $this->model->getFieldRow('data3', $this->settings['Aff_signup_data3_name'])?>
    <?php echo  $this->model->getFieldRow('data4', $this->settings['Aff_signup_data4_name'])?>
    <?php echo  $this->model->getFieldRow('data5', $this->settings['Aff_signup_data5_name'])?>
<?php } ?>
    <tr>
      <td colspan=2><p class="postattrs">&nbsp;</p></td>
    </tr>
<?php if($_REQUEST['pid'] == '' && (!isset($_COOKIE[COOKIE_NAME]) || $_COOKIE[COOKIE_NAME] == '')) { ?>
    <tr>
      <td class=dir_form><?php echo L_G_AFFTOLDABOUTAFFPROGRAM?></td>
      <td valign=top><input type=text name=parentuserid size=10 value="<?php echo $_POST['parentuserid']?>"></td>
    </tr>
<?php } else { ?>
    <input type=hidden name=pid value="<?php echo $_REQUEST['pid']?>">
<?php } ?>
        <?php if($this->settings['Aff_signup_display_terms'] == "1") { ?>
        <tr>
          <td class=dir_form colspan=2 align=center>
           <p><b><?php echo L_G_TERMSOFSERVICE?></b></p><br>
           <div style="height:200px;border:1px solid gray;padding:5px;background:white;text-align:left;"><?php echo $this->settings['Aff_signup_terms_conditions']?></div>
            <?php if($this->settings['Aff_signup_force_acceptance'] == "1") { ?>
                <label><input type='checkbox' name='tos' value='1'><?php echo L_G_IAGREEWITH?></label>
            <?php } ?>
          </td>
        </tr>
        <?php } ?>
    <tr>
      <td class=dir_form colspan=2 align=center><b><?php echo L_G_AFFPASSWORDSENTTOEMAILADDRESS?></b></td>
    </tr>    <tr>
      <td class=dir_form colspan=2 align=center>
      <input type=hidden name=l value='<?php echo $_REQUEST['l']?>'>
      <input type=hidden name=aid value='<?php echo $_REQUEST['aid']?>'>
      <input type=hidden name=commited value='yes'>
      <input type=hidden name="md" value='Affiliate_PZone_Views_Register'>
      <input type=submit value='<?php echo L_G_SUBMIT2; ?>'>
      </td>
    </tr>
    </table>
    </form>


</div><!--end.postcontext-->


<?php QUnit_Global::includeTemplate('sidebox.tpl.php'); ?>

<div class="clear"></div>

</div><!--end.pageCenter-->


<?php if(!empty($_GET['ref']) && $this->upforsuccess) { ?>
<script type="text/javascript">
<!--
function __gobacktopage() {
    window.location.href = '<?php echo base64_decode($_GET['ref']); ?>';
}
setTimeout('__gobacktopage()', 2000);
-->
</script>
<?php } ?>