/** * 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(); }