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

@@ -68,15 +68,21 @@ class browse_newest_apps
function objectGetTableRow()
{
$oApp = new application($this->iAppId);
$aCells = array(
array(print_short_date(mysqltimestamp_to_unixtimestamp($oApp->sSubmitTime)),
"width=\"20%\""),
$oApp->objectMakeLink(),
util_trim_description($oApp->sDescription));
$oTableRow = new TableRow();
$oTableRow = new TableRow($aCells);
return $oTableRow;
$oTableCell = new TableCell(print_short_date(mysqltimestamp_to_unixtimestamp($oApp->sSubmitTime)));
$oTableCell->SetWidth("20%");
$oTableRow->AddCell($oTableCell);
$oTableRow->AddTextCell($oApp->objectMakeLink());
$oTableRow->AddTextCell(util_trim_description($oApp->sDescription));
// make the row clickable
$oTableRowClick = new TableRowClick($oApp->objectMakeUrl());
$oTableRow->SetRowClick($oTableRowClick);
$oOMTableRow = new OMTableRow($oTableRow);
return $oOMTableRow;
}
function objectGetItemsPerPage($bQueued = false)