diff options
author | xgizzmo <xgizzmo@ampache> | 2006-01-11 02:59:17 +0000 |
---|---|---|
committer | xgizzmo <xgizzmo@ampache> | 2006-01-11 02:59:17 +0000 |
commit | 603f145952f39164b961ac94a46b8a459e7adac0 (patch) | |
tree | 90fb10a0f1a1ea8396af8a41e629b1e63bac30d2 /templates/show_user_registration.inc.php | |
parent | 67d76f09c28d0c6abae6d966f4cc00a5428bdc74 (diff) | |
download | ampache-603f145952f39164b961ac94a46b8a459e7adac0.tar.gz ampache-603f145952f39164b961ac94a46b8a459e7adac0.tar.bz2 ampache-603f145952f39164b961ac94a46b8a459e7adac0.zip |
More code clean up this should about cover /templates
Diffstat (limited to 'templates/show_user_registration.inc.php')
-rw-r--r-- | templates/show_user_registration.inc.php | 222 |
1 files changed, 111 insertions, 111 deletions
diff --git a/templates/show_user_registration.inc.php b/templates/show_user_registration.inc.php index d5c0da45..f75bb3d0 100644 --- a/templates/show_user_registration.inc.php +++ b/templates/show_user_registration.inc.php @@ -53,124 +53,124 @@ $email = scrub_in($_REQUEST['email']); <div align="center"> <form name="update_user" method="post" action="<?php echo conf('web_path'); ?>/register.php" enctype="multipart/form-data"> - <table class="border" width='700' cellpadding='0' cellspacing='0' border='0'> - <tr class="table-header"> - <td> - <font size="2"><b><u><?php echo _("Ampache New User Registration"); ?></u></b></font> - </td> - </tr> - <?php - /* If we should show the user agreement */ - if(conf('user_agreement')){ ?> - <tr> - <td height='15' bgcolor="<?php print conf('base_color2'); ?>"> - </td> - </tr> - <tr> - <td bgcolor="<?php print conf('base_color2'); ?>" align='center' valign='top'> - <table width='100%' border='0' cellpadding='0' cellspacing='0'> - <tr class="table-header"> - <td align='center'> - <font size="1"><b><u><?php echo _('User Agreement'); ?></u></b></font> - </td> - </tr> - <tr> - <td> - <?php show_registration_agreement(); ?> - </td> - </tr> - <tr> - <td align='center' height='35' valign='center'> - <input type='checkbox' name='accept_agreement'> <?php echo _('I Accept'); ?> - <?php $GLOBALS['error']->print_error('user_agreement'); ?> - </td> - </tr> - </table> - </td> - </tr> - <? } ?> +<table class="border" width='700' cellpadding='0' cellspacing='0' border='0'> +<tr class="table-header"> + <td> + <font size="2"><b><u><?php echo _("Ampache New User Registration"); ?></u></b></font> + </td> +</tr> +<?php +/* If we should show the user agreement */ +if(conf('user_agreement')){ ?> <tr> <td height='15' bgcolor="<?php print conf('base_color2'); ?>"> </td> </tr> <tr> - <td bgcolor="<?php print conf('base_color2'); ?>" align="center" valign="top"> - <table width="100%" cellpadding="0" cellspacing="0" border="0"> - <tr class="table-header"> - <td align='center'> - <font size="1"><b><u><?php echo _('User Information'); ?></u></b></font> - </td> - </tr> - </table> - <br /> - <table width='99%' cellpadding='0' cellspacing='0' border='0'> - <tr> - <td align='right'> - <?php echo _("Username"); ?>: - </td> - <td> - <font color='red'>*</font> <input type='text' name='username' id='username' value='<?php echo scrub_out($username); ?>' /> - <?php $GLOBALS['error']->print_error('username'); ?> - <?php $GLOBALS['error']->print_error('duplicate_user'); ?> - </td> - </tr> - <tr> - <td align='right'> - <?php echo _("Full Name"); ?>: - </td> - <td> - <font color='red'>*</font> <input type='text' name='fullname' id='fullname' value='<?php echo scrub_out($fullname); ?>' /> - <?php $GLOBALS['error']->print_error('fullname'); ?> - </td> - </tr> - <tr> - <td align='right'> - <?php echo _("E-mail"); ?>: - </td> - <td> - <font color='red'>*</font> <input type='text' name='email' id='email' value='<?php echo scrub_out($email); ?>' /> - <?php $GLOBALS['error']->print_error('email'); ?> - </td> - </tr> - <tr> - <td align='right'> - <?php echo _("Password"); ?>: - </td> - <td> - <font color='red'>*</font> <input type='password' name='password_1' id='password_1' /> - <?php $GLOBALS['error']->print_error('password'); ?> - </td> - </tr> - <tr> - <td align='right'> - <?php echo _("Confirm Password"); ?>: - </td> - <td> - <font color='red'>*</font> <input type='password' name='password_2' id='password_2' /> - </td> - </tr> - <?php if (conf('captcha_public_reg')) { ?> - <tr> - <?php echo captcha::form(); ?> - <?php $GLOBALS['error']->print_error('captcha'); ?> - </tr> - <?php } ?> - <tr> - <td colspan='2' bgcolor="<?php print conf('base_color2'); ?>" align='center' height='20'> - <font color='red'>*</font>Required fields - </td> - </tr> - <tr> - <td colspan='2' bgcolor="<?php print conf('base_color2'); ?>" align='center' height='50'> - <input type="hidden" name="action" value="add_user" /> - <input type='reset' name='clear_info' id='clear_info' value='<?php echo _('Clear Info'); ?>' /> - <input type='submit' name='submit_registration' id='submit_registration' value='<?php echo _("Register User"); ?>' /> - </td> - </tr> + <td bgcolor="<?php print conf('base_color2'); ?>" align='center' valign='top'> + <table width='100%' border='0' cellpadding='0' cellspacing='0'> + <tr class="table-header"> + <td align='center'> + <font size="1"><b><u><?php echo _('User Agreement'); ?></u></b></font> + </td> + </tr> + <tr> + <td> + <?php show_registration_agreement(); ?> + </td> + </tr> + <tr> + <td align='center' height='35' valign='center'> + <input type='checkbox' name='accept_agreement'> <?php echo _('I Accept'); ?> + <?php $GLOBALS['error']->print_error('user_agreement'); ?> + </td> + </tr> </table> </td> - </tr> - </table> + </tr> +<? } // end if(conf('user_agreement')) ?> +<tr> + <td height='15' bgcolor="<?php print conf('base_color2'); ?>"> + </td> +</tr> +<tr> + <td bgcolor="<?php print conf('base_color2'); ?>" align="center" valign="top"> + <table width="100%" cellpadding="0" cellspacing="0" border="0"> + <tr class="table-header"> + <td align='center'> + <font size="1"><b><u><?php echo _('User Information'); ?></u></b></font> + </td> + </tr> + </table> + <br /> + <table width='99%' cellpadding='0' cellspacing='0' border='0'> + <tr> + <td align='right'> + <?php echo _("Username"); ?>: + </td> + <td> + <font color='red'>*</font> <input type='text' name='username' id='username' value='<?php echo scrub_out($username); ?>' /> + <?php $GLOBALS['error']->print_error('username'); ?> + <?php $GLOBALS['error']->print_error('duplicate_user'); ?> + </td> + </tr> + <tr> + <td align='right'> + <?php echo _("Full Name"); ?>: + </td> + <td> + <font color='red'>*</font> <input type='text' name='fullname' id='fullname' value='<?php echo scrub_out($fullname); ?>' /> + <?php $GLOBALS['error']->print_error('fullname'); ?> + </td> + </tr> + <tr> + <td align='right'> + <?php echo _("E-mail"); ?>: + </td> + <td> + <font color='red'>*</font> <input type='text' name='email' id='email' value='<?php echo scrub_out($email); ?>' /> + <?php $GLOBALS['error']->print_error('email'); ?> + </td> + </tr> + <tr> + <td align='right'> + <?php echo _("Password"); ?>: + </td> + <td> + <font color='red'>*</font> <input type='password' name='password_1' id='password_1' /> + <?php $GLOBALS['error']->print_error('password'); ?> + </td> + </tr> + <tr> + <td align='right'> + <?php echo _("Confirm Password"); ?>: + </td> + <td> + <font color='red'>*</font> <input type='password' name='password_2' id='password_2' /> + </td> + </tr> + <?php if (conf('captcha_public_reg')) { ?> + <tr> + <?php echo captcha::form(); ?> + <?php $GLOBALS['error']->print_error('captcha'); ?> + </tr> + <?php } ?> + <tr> + <td colspan='2' bgcolor="<?php print conf('base_color2'); ?>" align='center' height='20'> + <font color='red'>*</font>Required fields + </td> + </tr> + <tr> + <td colspan='2' bgcolor="<?php print conf('base_color2'); ?>" align='center' height='50'> + <input type="hidden" name="action" value="add_user" /> + <input type='reset' name='clear_info' id='clear_info' value='<?php echo _('Clear Info'); ?>' /> + <input type='submit' name='submit_registration' id='submit_registration' value='<?php echo _("Register User"); ?>' /> + </td> + </tr> + </table> + </td> +</tr> +</table> </form> </div> </div><!--end <div>id="maincontainer--> |