0) { $this->showHead(); echo $list; $this->showFoot(); } else { echo $errorMessage; } return $nbOfRows; } } /** * A class used to encapsulate a list of some sort inside next/prev buttons */ class NAVLIST extends ENCAPSULATE { function NAVLIST($action, $start, $amount, $minamount, $maxamount, $blogid, $search, $itemid) { $this->action = $action; $this->start = $start; $this->amount = $amount; $this->minamount = $minamount; $this->maxamount = $maxamount; $this->blogid = $blogid; $this->search = $search; $this->itemid = $itemid; } function showBatchList($batchtype, $query, $type, $template, $errorMessage = _LISTS_NOMORE) { $batch =& new BATCH($batchtype); $this->doEncapsulate( array(&$batch, 'showlist'), array(&$query, $type, $template), $errorMessage ); } function showHead() { $this->showNavigation(); } function showFoot() { $this->showNavigation(); } /** * Displays a next/prev bar for long tables */ function showNavigation() { $action = $this->action; $start = $this->start; $amount = $this->amount; $minamount = $this->minamount; $maxamount = $this->maxamount; $blogid = $this->blogid; $search = htmlspecialchars($this->search); $itemid = $this->itemid; $prev = $start - $amount; if ($prev < $minamount) $prev=$minamount; // maxamount not used yet // if ($start + $amount <= $maxamount) $next = $start + $amount; // else // $next = $start; ?> type = $type; } function showHead() { ?>
showOperationList(); } function showFoot() { $this->showOperationList(); ?>
addTicketHidden(); // add hidden fields for 'team' and 'comment' batchlists if ($this->type == 'team') { echo ''; } if ($this->type == 'comment') { echo ''; } echo ''; ?>( - )
doEncapsulate( 'showlist', array($query, $type, $template), $errorMessage ); } } ?>