Location: PHPKode > projects > OpenBizMap > openbizmap/mydata/script/skin_newuser.html
<?php

$skin='header';
if(file_exists(cfg_data_path.'/config/script/skin_'.$skin.'.html'))
{
  include(cfg_data_path.'/config/script/skin_'.$skin.'.html');
}
else
{
  include(cfg_data_path.'/script/skin_'.$skin.'.html');
}

?>

  <form action="index.php" method="post">
  <input name="odb_run" type="hidden" value="newuser" />

  <table style="width:600px; border:#888 1px solid; background: #fff; margin: 20px auto 20px auto;">
    <tr>
      <td style="width:250px; background:#fff; border-right:#aaa 1px solid; text-align:center; width:70px;"><img style="margin:5px;" src="images/login.gif" /></td>
      <td>
        <table style="margin:auto;">
        <tr>
          <td colspan="2" style="text-align:center;" ><h1><?php myecho('Sign up'); ?></h1><p><b><?php myecho($message); ?></b></p></td>
        </tr>
        <tr>
          <td style="text-align:left; width:200px; padding-right:10px;"><?php myecho('Username'); ?>*</td>
          <td><input style="width:250px; background-color:#ffa;" type="text" name="odb_username" value="<?php echo get('username');?>">
          </td>
        </tr>
        <tr>
          <td style="text-align:left; width:200px; padding-right:10px;"><?php myecho('Password'); ?>*</td>
          <td><input style="width:250px; background-color:#ffa;" type="password" name="odb_password" value="">
          </td>
        </tr>
        <tr>
          <td style="text-align:left; width:200px; padding-right:10px;"><?php myecho('Password (again)'); ?>*</td>
          <td><input style="width:250px; background-color:#ffa;" type="password" name="odb_password1" value="">
          </td>
        </tr>
        <tr>
          <td style="text-align:left; width:200px; padding-right:10px;"><?php myecho('E-Mail Address'); ?>*</td>
          <td><input style="width:250px; background-color:#ffa;" type="text" name="odb_email" value="<?php echo get('email');?>">
          </td>
        </tr>
        <?php

        if(defined('cfg_newuser_extra'))
        {
          //new user info
          $variable_array=load_config(cfg_newuser_extra);

          reset($variable_array);
          while(list($variable_name,$val)=each($variable_array))
          {
            if(substr($variable_name,0,3)!='sys'
            and $variable_name!='Registration Date'
            and $variable_name!='Registration Time'
            and $variable_name!='User'
            and $variable_name!='Email'
            and $variable_name!='MyBag' and $variable_array[$variable_name]['tab']=='' and ($variable_array[$variable_name]['show_cond']==0 or $variable_array[$variable_name]['show_cond']==2))
            {
              $show_name='odb_'.purename($variable_name);
              $show_label='';
              $show_value=get($variable_name);
              $show_mode=CFG_EDIT;

              echo '<tr>';
              echo '<td style="text-align:left; width:200px; padding-right:10px;">';
                myecho($variable_name);
              echo '</td>';
              echo '<td>';
                $template=$variable_array[$variable_name]['template'];
                if(file_exists(cfg_data_path.'/config/script/fld_'.$template.'.txt'))
                {
                  include(cfg_data_path.'/config/script/fld_'.$template.'.txt');
                }
                else
                {
                  if(!file_exists(cfg_data_path.'/script/fld_'.$template.'.txt'))
                    $template='';

                  include(cfg_data_path.'/script/fld_'.$template.'.txt');
                }
              echo '</td>';
              echo '</tr>';
            }
          }
        }
        ?>
        <tr>
          <td style="text-align:left; width:200px; padding-right:10px;"><?php myecho('Enter characters shown below'); ?>*</td>
          <td><input style="width:250px; background-color:#ffa;" type="text" name="odb_antibot" value=""><br /><img src="index.php?odb_sys=antibot"/></td>
        </tr>
        <tr>
          <td style="text-align:left; width:200px; padding-right:10px;"><p><b><?php myecho('* Mandatory fields'); ?></b></p></td>
          <td></td>
        </tr>
        <tr>
          <td style="text-align:right; padding:5px;" colspan="3">
            <input class="submit" type="submit" value="<?php myecho('Send'); ?>" />
          </td>
        </tr>
      </table>
    </td>

  </tr>
  </table>
  </form>


  <?php

$skin='footer';
if(file_exists(cfg_data_path.'/config/script/skin_'.$skin.'.html'))
{
  include(cfg_data_path.'/config/script/skin_'.$skin.'.html');
}
else
{
  include(cfg_data_path.'/script/skin_'.$skin.'.html');
}

?>
Return current item: OpenBizMap