|
HoursCategoryEditDetailsPage |
Country |
Employee |
EmployeeIndexPage |
EmployeePropertyHoursPage |
EmployeePropertyHoursPart |
EmployeeSaveAction |
Gender |
Hours |
HoursCategory |
IndexPage |
MenuPart |
|
|
/** Add a button for searching by name for Hours referring to the edited Category
*/
function () {
$list = parent::getButtonsList();
$categoryObj = $this->();
$params = array('pntType' => 'Hours'
, 'pntHandler' => 'SearchPage'
, 'pntF1' => 'category.name'
, 'pntF1cmp ' => '~'
, 'pntF1v1' => $categoryObj->('name')
, 'advanced' => 'Search'
, 'pntRef' => $this->()
);
$url = $this->controller->($params);
$list[1][] = $this->('Search Hours', "document.location.href='$url';");
return $list;
}
}
?>
|
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/ .
|
|