本文整理汇总了PHP中Results::display_list_start方法的典型用法代码示例。如果您正苦于以下问题:PHP Results::display_list_start方法的具体用法?PHP Results::display_list_start怎么用?PHP Results::display_list_start使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Results
的用法示例。
在下文中一共展示了Results::display_list_start方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Form
/**
* Display list/table start preceeded by <form> opening.
*/
function display_list_start()
{
global $item_ID_array, $current_User;
if (!$current_User->check_perm('selections', 'view')) {
// User is NOT allowed to view selections
// Don't do any more then base class:
parent::display_list_start();
return;
}
$this->Form = new Form(regenerate_url('', '', '', '&'), $this->param_prefix . 'selections_checkchanges', 'post', 'none');
// COPY!!
$this->Form->begin_form('');
if ($this->total_pages > 0) {
// We have rows to display, we want the selection stuff:
// Need it to check in the next page if the selection has to be updated
$this->Form->hidden($this->param_prefix . 'previous_sel_ID', $this->current_selection_ID);
// Sets the cols_check global variable to verify if checkboxes
// have to be checked in the result set :
cols_check($this->current_selection_ID, $this->table_objsel, $this->field_selected, $this->field_selection);
// item_ID_array must be emptied to avoid conflicts with previous result sets :
// TODO: put this into object
$item_ID_array = array();
}
// list/table start:
parent::display_list_start();
}