Programmatic table support. Enhances several tables with highlightable and clickable rows and

cleans up the existing table row highlight and click code.
This commit is contained in:
Chris Morgan
2007-07-23 19:56:43 +00:00
committed by WineHQ
parent 8c2959494d
commit 2652e68d01
21 changed files with 1369 additions and 461 deletions

View File

@@ -4,27 +4,39 @@ require_once(BASE."include/util.php");
/*********************/
/* Edit Account Form */
/*********************/
// returns an array of TableRow instances
function GetEditAccountFormRows($sUserEmail)
{
$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("&nbsp; Password");
$oTableRow->AddTextCell('<input type="password" name="sUserPassword">');
$aTableRows[] = $oTableRow;
$oTableRow = new TableRow();
$oTableRow->AddTextCell("&nbsp; Password (again)");
$oTableRow->AddTextCell('<input type="password" name="sUserPassword2">');
$aTableRows[] = $oTableRow;
$oTableRow = new TableRow();
$oTableRow->AddTextCell("&nbsp; Real Name");
$oTableRow->AddTextCell('<input type="text" name="sUserRealname" value="'.$sUserRealname.'">');
$aTableRows[] = $oTableRow;
$oTableRow = new TableRow();
$oTableRow->AddTextCell("&nbsp;");
$oTableRow->AddTextCell("&nbsp;");
$aTableRows[] = $oTableRow;
return $aTableRows;
}
?>
<!-- start of edit account form -->
<tr>
<td> &nbsp; Email Address </td>
<td> <input type="text" name="sUserEmail" value="<?php echo $sUserEmail; ?>"> </td>
</tr>
<tr>
<td> &nbsp; Password </td>
<td> <input type="password" name="sUserPassword"> </td>
</tr>
<tr>
<td> &nbsp; Password (again) </td>
<td> <input type="password" name="sUserPassword2"> </td>
</tr>
<tr>
<td> &nbsp; Real Name </td>
<td> <input type="text" name="sUserRealname" value="<?php echo $sUserRealname; ?>"> </td>
</tr>
<tr>
<td colspan=2>&nbsp;</td>
</tr>
<!-- end of edit account form -->