|
PntTablePart |
PntButtonPart |
PntButtonsPanel |
PntDetailsPart |
PntEditDetailsPart |
PntFilterFormPart |
PntHorizontalTablePart |
PntMenuPart |
PntMtoNFilterFormPart |
PntMtoNPropertyPart |
PntMultiPropsPart |
PntPagePart |
PntPropertyPart |
PntSortDialogPart |
PntTabsPart |
|
__construct |
addColumnPath |
addColumnPaths |
addHeaderSortParams |
addPropPath |
addPropPaths |
getAppName |
getCellOnClickParam |
getItemType |
getItems |
getName |
getTableId |
initialize |
printAnchorFor |
printBody |
printCheckboxCheckedFor |
printExtraTableAtts |
printItemBgColor |
printItemCellContent |
printItemCells |
printItemRows |
printItemSelectCell |
printItemSelectHeader |
printNoItemMessage |
printRow |
printRows |
printTableFooter |
printTableHeaders |
printTableId |
printThead |
setBgColor |
setHandler_getCellOnClickParam |
setHandler_printItemBgColor |
setHandler_printItemCellContent |
setHandler_printItemCells |
setHandler_printItemRows |
setHandler_printItemSelectCell |
setHandler_printRowBgColor |
setHandler_printRows |
setHandler_printTableFooter |
setHandler_printTableHeaders |
setItemBgColor |
setItemHlColor |
setItemSelectWidgets |
setItems |
setNoTableIfNoItems |
setRowBgColor |
setRowHlColor |
setSelectedId |
setShowPropHeaders |
setShowTableHeaders |
setTableWidth |
|
<?php
/* Copyright (c) MetaClass, 2003-2013
Distrubuted and licensed under under the terms of the GNU Affero General Public License
version 3, or (at your option) any later version.
This program is distributed WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License, http://www.gnu.org/licenses/agpl.txt */
Gen::includeClass('', 'pnt/web/parts');
Gen::includeClass('PntXmlNavText', 'pnt/web/dom');
/** Part that outputs html descirbing a table with rows for object
* and columns for their properties.
* As a default columns can be specified in metadata on the class
* specified by pntType request parameter,
* @see http://www.phppeanuts.org/site/index_php/Pagina/61
*
* This abstract superclass provides behavior for the concrete
* subclass TablePart in the root classFolder or in the application classFolder.
* To keep de application developers code (including localization overrides)
* separated from the framework code override methods in the
* concrete subclass rather then modify them here.
* @see http://www.phppeanuts.org/site/index_php/Menu/178
* @see http://www.phppeanuts.org/site/index_php/Pagina/65
* @package pnt/web/parts
*/
class PntTablePart extends {
/** HTML message shown instead of rows if noTableIfNoItems */
public $noItemsMessage = 'No Items';
/** If true no table is shown if no items */
public $noTableIfNoItems = true;
/** If true checkboxes are printed at the start of each row */
public $itemSelectWidgets = true;
/** int or empy string */
public $tableWidth='';
public $selectedId=-1;
/** If true a header row with columnlabels is printed */
public $showPropHeaders = true;
/** HTML item backgroundcolor */
public $itemBgColor='white';
/** HTML item highlightcolor */
public $itemHlColor='#ffffa0';
/** HTML table backgroundcolor */
public $bgColor;
/** Extra attributes for table tag */
public $extraTableAtts = "onkeypress=\"window.location.href='#'+String.fromCharCode(event.keyCode).toLowerCase();\"";
//legecay support - old PntTable protocol from before the intro of PntHorizontalTablePart
public $showTableHeaders;
public $rowBgColor;
public $rowHlColor;
public $handler_printItemRows;
public $pntTableEqField; //DO NOT OUTPUT THIS
|
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/ .
|
|