[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge/www/account index.php,1.16,1.17
From: |
tperdue |
Subject: |
[Gforge-commits] gforge/www/account index.php,1.16,1.17 |
Date: |
Thu, 25 Mar 2004 11:21:47 -0600 |
Update of /cvsroot/gforge/gforge/www/account
In directory db.perdue.net:/home/tperdue/share/dev.gforge.org/www/account
Modified Files:
index.php
Log Message:
changes for new fields in database
Index: index.php
===================================================================
RCS file: /cvsroot/gforge/gforge/www/account/index.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- index.php 24 Mar 2004 14:34:10 -0000 1.16
+++ index.php 25 Mar 2004 17:21:45 -0000 1.17
@@ -22,13 +22,6 @@
if ($submit) {
- if (trim($realname)=="") {
- exit_error(
- 'Missing Paramater',
- 'Please fill in real name.'
- );
- }
-
/*
//needs security audit
if ($remember_user) {
@@ -44,8 +37,8 @@
$refresh = 1;
}
- if (!$u->update($realname, $language, $timezone, $mail_site, $mail_va,
$use_ratings,
- $jabber_address,$jabber_only,$address,$phone,$fax,$title)) {
+ if (!$u->update($firstname, $lastname, $language, $timezone,
$mail_site, $mail_va, $use_ratings,
+
$jabber_address,$jabber_only,$address,$address2,$phone,$fax,$title,$ccode)) {
$feedback .= $u->getErrorMessage().'<br />';
} else {
$feedback .= $Language->getText('account','updated').'<br />';
@@ -102,8 +95,14 @@
</tr>
<tr valign="top">
-<td><?php echo $Language->getText('account_options', 'real_name'); ?></td>
-<td><input type="text" name="realname" value="<?php print $u->getRealName();
?>" />
+<td><?php echo $Language->getText('account_options', 'firstname'); ?></td>
+<td><input type="text" name="firstname" value="<?php print $u->getFirstName();
?>" />
+</td>
+</tr>
+
+<tr valign="top">
+<td><?php echo $Language->getText('account_options', 'lastname'); ?></td>
+<td><input type="text" name="lastname" value="<?php print $u->getLastName();
?>" />
</td>
</tr>
@@ -120,6 +119,12 @@
</tr>
<tr valign="top">
+<td><?php echo $Language->getText('account_options', 'ccode'); ?> </td>
+<td><?php echo html_get_ccode_popup('ccode', $u->getCountryCode()); ?>
+</td>
+</tr>
+
+<tr valign="top">
<td><?php echo $Language->getText('account_options', 'email_address'); ?> </td>
<td><strong><?php print $u->getEmail(); ?></strong>
<br /><a href="change_email.php">[<?php echo
$Language->getText('account_options', 'change_email_address'); ?>]</a>
@@ -132,6 +137,11 @@
</tr>
<tr valign="top">
+ <td><?php echo $Language->getText('account_options', 'address'); ?></td>
+ <td><input type="text" name="address2" value="<?php echo
$u->getAddress2(); ?>" size="80"></td>
+</tr>
+
+<tr valign="top">
<td><?php echo $Language->getText('account_options', 'phone'); ?></td>
<td><input type="text" name="phone" value="<?php echo $u->getPhone();
?>" size="20"></td>
</tr>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-commits] gforge/www/account index.php,1.16,1.17,
tperdue <=