* @param void
* @return void
*/
- public function parse_blogcatlist()
+ public function parse_blogcatlist($templateName = '')
{
global $manager;
$blogid = intRequestVar('blogid');
$template['tabindex'] = 200;
$batch = new Batch('category');
- $batch->showlist($query, 'table', $template);
+ $batch->showlist($query, 'table', $template, $templateName);
return;
}
$template['tabindex'] = 10;
$batch = new Batch('team');
- $batch->showlist($query, 'table', $template, _LISTS_NOMORE, $templateName);
+ $batch->showList($query, 'table', $template, $templateName, _LISTS_NOMORE);
return;
}
$template['tabindex'] = 10;
$batch = new Batch('member');
- $batch->showlist($query, 'table', $template, _LISTS_NOMORE, $templateName);
+ $batch->showList($query, 'table', $template, $templateName, _LISTS_NOMORE);
return;
}
* @param void
* @return void
*/
- public function parse_itemnavlist()
+ public function parse_itemnavlist($templateName)
{
global $CONF, $manager, $member;
. " LIMIT {$start},{$amount}";
$template['content'] = 'itemlist';
-
+
$navList = new Navlist($this->skintype, $start, $amount, 0, 1000, $blogid, $search, 0);
- $navList->showBatchList('item', $query, 'table', $template);
+ $navList->showBatchList('item', $query, 'table', $template, '', $templateName);
return;
}
* @param $templateName
* @param $showlist
*/
- private function input_yesno($name,
+ public function input_yesno($name,
$checkedval,
$tabindex = 0,
$value1 = 1,
{\r
$templateName = '';\r
}\r
+ $params[4] = $errorMessage;\r
// start output buffering\r
ob_start();\r
-\r
+ \r
$nbOfRows = call_user_func_array($call, $params);\r
\r
// get list contents and stop buffering\r
$this->itemid = $itemid;\r
}\r
\r
- function showBatchList($batchtype, $query, $type, $template, $errorMessage = _LISTS_NOMORE)\r
+ function showBatchList($batchtype, $query, $type, $template, $errorMessage = _LISTS_NOMORE, $templateName = '')\r
{\r
$batch = new Batch($batchtype);\r
\r
$this->doEncapsulate(\r
array(&$batch, 'showlist'),\r
- array(&$query, $type, $template),\r
+ array(&$query, $type, $template, $templateName),\r
$errorMessage\r
);\r
\r
<?php }\r
\r
// shortcut :)\r
- function showList($query, $type, $template, $errorMessage = _LISTS_NOMORE, $templateName = '') {\r
+ function showList($query, $type, $template, $templateName = '', $errorMessage = _LISTS_NOMORE)\r
+ {\r
return $this->doEncapsulate( 'showlist',\r
array($query, $type, $template, $templateName),\r
$errorMessage\r