43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?php
|
|
require_once(BASE."include/util.php");
|
|
|
|
/*********************/
|
|
/* Edit Account Form */
|
|
/*********************/
|
|
|
|
// returns an array of TableRow instances
|
|
function GetEditAccountFormRows($sUserEmail, $sUserRealname)
|
|
{
|
|
$aTableRows = array();
|
|
|
|
$oTableRow = new TableRow();
|
|
$oTableRow->AddTextCell(" Email Address");
|
|
$oTableRow->AddTextCell('<input type="text" name="sUserEmail" '.
|
|
'value="'.$sUserEmail.'">');
|
|
$aTableRows[] = $oTableRow;
|
|
|
|
$oTableRow = new TableRow();
|
|
$oTableRow->AddTextCell(" Password");
|
|
$oTableRow->AddTextCell('<input type="password" name="sUserPassword">');
|
|
$aTableRows[] = $oTableRow;
|
|
|
|
$oTableRow = new TableRow();
|
|
$oTableRow->AddTextCell(" Password (again)");
|
|
$oTableRow->AddTextCell('<input type="password" name="sUserPassword2">');
|
|
$aTableRows[] = $oTableRow;
|
|
|
|
$oTableRow = new TableRow();
|
|
$oTableRow->AddTextCell(" Real Name");
|
|
$oTableRow->AddTextCell('<input type="text" name="sUserRealname" value="'.$sUserRealname.'">');
|
|
$aTableRows[] = $oTableRow;
|
|
|
|
$oTableRow = new TableRow();
|
|
$oTableRow->AddTextCell(" ");
|
|
$oTableRow->AddTextCell(" ");
|
|
$aTableRows[] = $oTableRow;
|
|
|
|
return $aTableRows;
|
|
}
|
|
|
|
?>
|