X-Git-Url: http://git.osdn.net/view?p=nucleus-jp%2Fnucleus-next.git;a=blobdiff_plain;f=nucleus%2Flibs%2FENCAPSULATE.php;fp=nucleus%2Flibs%2FENCAPSULATE.php;h=0000000000000000000000000000000000000000;hp=431877475262a857718a4d66f0aaf530a398d59c;hb=c90b0980cfa3e79cd4bc7eed551a64a5e2b02a5c;hpb=fe4e862f6b23596d657c5228588785dfe537fb8f diff --git a/nucleus/libs/ENCAPSULATE.php b/nucleus/libs/ENCAPSULATE.php deleted file mode 100644 index 4318774..0000000 --- a/nucleus/libs/ENCAPSULATE.php +++ /dev/null @@ -1,260 +0,0 @@ - 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 __construct($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 = Entity::hsc($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 - ); - } - -} -?>