本文整理汇总了PHP中simbio_datagrid::removeInvisibleField方法的典型用法代码示例。如果您正苦于以下问题:PHP simbio_datagrid::removeInvisibleField方法的具体用法?PHP simbio_datagrid::removeInvisibleField怎么用?PHP simbio_datagrid::removeInvisibleField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类simbio_datagrid
的用法示例。
在下文中一共展示了simbio_datagrid::removeInvisibleField方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: makeOutput
/**
* Modified method to make HTML output more friendly to printer
*
* @param object $obj_db
* @param integer $int_num2show
* @return string
*/
protected function makeOutput($int_num2show = 30)
{
// remove invisible field
parent::removeInvisibleField();
// disable row highlight
$this->highlight_row = false;
// get fields array and set the table header
$this->setHeader($this->grid_result_fields);
$_record_row = 1;
// data loop
foreach ($this->grid_result_rows as $_data) {
// alternate the row color
$_row_class = $_record_row % 2 == 0 ? 'alterCellPrinted' : 'alterCellPrinted2';
// append array to table
$this->appendTableRow($_data);
// field style modification
foreach ($this->grid_result_fields as $_idx => $_fld) {
// checking for special field width value set by column_width property array
$_row_attr = 'valign="top"';
$_classes = $_row_class;
if (isset($this->column_width[$_idx])) {
$_row_attr .= ' style="width: ' . $this->column_width[$_idx] . ';"';
}
$this->setCellAttr($_record_row, $_idx, $_row_attr . ' class="' . $_classes . '"');
}
$_record_row++;
}
// init buffer return var
$_buffer = '';
// create paging
if ($this->num_rows > $int_num2show) {
$this->paging_set = simbio_paging::paging($this->num_rows, $int_num2show, 10, '', 'reportView');
} else {
$this->paging_set = ' ';
}
$_buffer .= '<div class="printPageInfo"><strong>' . $this->num_rows . '</strong> ' . __('record(s) found. Currently displaying page') . ' ' . $this->current_page . ' (' . $int_num2show . ' ' . __('record each page') . ')</div>' . "\n";
//mfc
$_buffer .= $this->printTable();
return $_buffer;
}