summaryrefslogtreecommitdiffstats
path: root/templates/show_user_registration.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-27 00:18:59 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-12-27 00:18:59 +0000
commit6b0b77f12b6873204bfd73a250621115b1f539a0 (patch)
tree36aa24da3e984a3b38e0f1f11fc4a8a2ffdd1973 /templates/show_user_registration.inc.php
parent380a8615ae97295f650699e8ecdf478e54f75d74 (diff)
downloadampache-6b0b77f12b6873204bfd73a250621115b1f539a0.tar.gz
ampache-6b0b77f12b6873204bfd73a250621115b1f539a0.tar.bz2
ampache-6b0b77f12b6873204bfd73a250621115b1f539a0.zip
new coolness from sigger
Diffstat (limited to 'templates/show_user_registration.inc.php')
-rw-r--r--templates/show_user_registration.inc.php191
1 files changed, 141 insertions, 50 deletions
diff --git a/templates/show_user_registration.inc.php b/templates/show_user_registration.inc.php
index e3e9f3a4..1f4bb6a5 100644
--- a/templates/show_user_registration.inc.php
+++ b/templates/show_user_registration.inc.php
@@ -21,53 +21,144 @@
*/
?>
-<form name="update_user" method="post" action="<?php echo conf('web_path'); ?>/register.php" enctype="multipart/form-data">
-<table class="tabledata" cellspacing="0" cellpadding="0" border="0" width="90%">
-<tr>
- <td>
- <?php echo _("Username"); ?>:
- </td>
- <td>
- <input type="textbox" name="username" value="<?php echo $_REQUEST['username']; ?>" />
- </td>
-</tr>
-<tr>
- <td>
- <?php echo _("Full Name"); ?>:
- </td>
- <td>
- <input type="textbox" name="fullname" size="30" value="<?php echo $_REQUEST['fullname']; ?>" />
- </td>
-</tr>
-<tr>
- <td>
- <?php echo _("E-mail"); ?>:
- </td>
- <td>
- <input type="textbox" name="email" size="30" value="<?php echo $_REQUEST['email']; ?>" />
- </td>
-</tr>
-<tr>
- <td>
- <?php echo _("Password"); ?> :
- </td>
- <td>
- <input type="password" name="password_1" size="30" value="" />
- </td>
-</tr>
-<tr>
- <td>
- <?php echo _("Confirm Password"); ?>:
- </td>
- <td>
- <input type="password" name="password_2" size="30" value="" />
- </td>
-</tr>
-<tr>
- <td colspan="2">
- <input type="hidden" name="action" value="add_user" />
- <input type="submit" value="<?php echo _("Register User"); ?>" />
- </td>
-</tr>
-</table>
-</form>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>">
+<head>
+<link rel="shortcut icon" href="<?php echo conf('web_path'); ?>/favicon.ico" />
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo conf('site_charset'); ?>" />
+<?php show_template('style'); ?>
+<title><?php echo conf('site_title'); ?> - <?php echo $location['title']; ?></title>
+</head>
+<body>
+<script src="<?php echo conf('web_path'); ?>/lib/general.js" language="javascript" type="text/javascript"></script>
+
+<div id="maincontainer">
+<!-- This is the topbar row -->
+<div id="topbar">
+ <div id="topbarleft">
+ <a href="http://www.ampache.org">
+ <img class="pageheader" src="<?php echo conf('web_path'); ?><?php echo conf('theme_path'); ?>/images/ampache.gif" border="0" title="Ampache: For the love of music" alt="Ampache: For the love of music" />
+ </a>
+ </div>
+</div>
+<br><br>
+<?php
+
+$action = scrub_in($_REQUEST['action']);
+$fullname = scrub_in($_REQUEST['full_name']);
+$username = scrub_in($_REQUEST['username']);
+$password = scrub_in($_REQUEST['password']);
+echo "$password";
+
+?>
+
+<div align="center">
+ <table class="border" width=600 cellpadding=0 cellspacing=0 border=0>
+ <tr class="table-header">
+ <td>
+ <font size="2"><b><u>Ampache New User Registration</u></b></font>
+ </td>
+ </tr>
+ <form name="update_user" method="post" action="<?php echo conf('web_path'); ?>/register.php" enctype="multipart/form-data">
+ <?php
+ // USER AGREEMENT
+ if(conf('user_agreement')==true){ ?>
+ <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>User Agreement</u></b></font>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <?php include("templates/user_agreement.php"); ?>
+ </td>
+ </tr>
+ <tr>
+ <td align=center height=35 valign=center>
+ <input type='checkbox' name='accept_agreement'> I Accept
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <? } ?>
+ <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>User Information</u></b></font>
+ </td>
+ </tr>
+ </table>
+ <br>
+ <table width=60% 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'>
+ </td>
+ </tr>
+ <tr>
+ <td align=right>
+ <?php echo _("Full Name"); ?>:
+ </td>
+ <td>
+ <font color=red>*</font> <input type='text' name='fullname' id='fullname'>
+ </td>
+ </tr>
+ <tr>
+ <td align=right>
+ <?php echo _("E-mail"); ?>:
+ </td>
+ <td>
+ <font color=red>*</font> <input type='text' name='email' id='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'>
+ </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>
+ <tr>
+ <td colspan=2 align=center height=20>
+ <font color=red>*</font>Required fields
+ </td>
+ </tr>
+ <tr>
+ <td colspan=2 align=center height=50>
+ <input type="hidden" name="action" value="add_user" />
+ <input type='reset' name='clear_info' id='clear_info' value='Clear Info'>
+ <input type='submit' name='submit_registration' id='submit_registration' value='<?php echo _("Register User"); ?>'>
+ </td>
+ </tr>
+ </form>
+ </table>
+ </td>
+ </tr>
+ </table>
+</div>