{\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
// $this->showOperationList();\r
}\r
\r
- function showFoot($templateName = '') {\r
+ function showFoot($templateName = '')\r
+ {\r
$this->showOperationList();\r
- ?>\r
+?>\r
</form>\r
- <?php }\r
+<?php\r
+ }\r
\r
function showOperationList()\r
{\r
global $manager;\r
- ?>\r
+?>\r
<div class="batchoperations">\r
<?php echo _BATCH_WITH_SEL ?>\r
<select name="batchaction">\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