|
Country |
Employee |
EmployeeIndexPage |
EmployeePropertyHoursPage |
EmployeePropertyHoursPart |
EmployeeSaveAction |
Gender |
Hours |
HoursCategory |
HoursCategoryEditDetailsPage |
IndexPage |
MenuPart |
|
getInitItemTable |
printItemCells |
printItemTablePart |
printTableHeaders |
|
/** Event handling method
* calls the original event handlers to print the default cells,
* then print an extra cell with a hyperlink to the employees hours page.
*/
function ($table, $item) {
$table->($table, $item);
$params = array(
'pntType' => $this->()
, 'pntHandler' => 'PropertyPage'
, 'pntProperty' => 'hours'
, 'id' => $item->('id')
, 'pntRef' => $this->()
);
$url = $this->controller->($params);
$title = 'register hours for '. $this->($item, 'name');
print "<TD>";
print "<A HREF='$url' title='$title'><IMG src='../images/examples/iconHours.gif'></A>";
print "</TD>";
}
}
?>
|
Copyright (c) MetaClass, 2003-
This code is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
Click here for a copy of the license or see http://www.gnu.org/licenses/ .
|
|