8 require_once(CH_DIRECTORY_PATH_CLASSES .
'ChWsbPageView.php');
9 require_once(CH_DIRECTORY_PATH_CLASSES .
'ChWsbAlbums.php');
10 require_once(
'ChSoundsSearch.php');
27 'blocks' => array(
'adminShort'),
31 'blocks' => array(
'add',
'my'),
35 'blocks' => array(
'adminFull',
'my'),
38 'main_objects' => array(
39 'blocks' => array(
'adminAlbumShort'),
41 'link' =>
'browse/album/'
44 'blocks' => array(
'edit',
'albumObjects'),
48 'blocks' => array(
'organize',
'albumObjects'),
51 'add_objects' => array(
52 'blocks' => array(
'addObjects',
'albumObjects'),
55 'manage_objects' => array(
56 'blocks' => array(
'manageObjects',
'albumObjects'),
59 'manage_objects_disapproved' => array(
60 'blocks' => array(
'manageObjectsDisapproved',
'albumObjects'),
63 'manage_objects_not_processed' => array(
64 'blocks' => array(
'manageObjectsNotProcessed',
'albumObjects'),
67 'manage_objects_failed' => array(
68 'blocks' => array(
'manageObjectsFailed',
'albumObjects'),
75 parent::__construct(
'ch_sounds_albums_my');
76 $this->oTemplate = $oShared->_oTemplate;
77 $this->oConfig = $oShared->_oConfig;
78 $this->oDb = $oShared->_oDb;
80 $this->aAddParams = $aParams;
83 $this->oAlbum =
new ChWsbAlbums(
'ch_sounds', $this->iOwnerId);
84 $this->oAlbumPrivacy = $oShared->oAlbumPrivacy;
86 if (isset($this->aSystemBlocks[$this->aAddParams[0]]))
87 $this->aCurrentBlocks = $this->aSystemBlocks[$this->aAddParams[0]];
89 $this->aCurrentBlocks = $this->aSystemBlocks[
'main'];
90 $this->oTemplate->addCss(array(
'my.css',
'browse.css'));
92 $this->oSearch->aCurrent[
'restriction'][
'ownerId'] = array(
93 'value' => $this->iOwnerId,
96 'paramName' =>
'ownerId'
99 $oShared->checkDefaultAlbums($this->iOwnerId);
104 return !
empty($this->aCurrentBlocks) ? (int)$this->aCurrentBlocks[
'level'] : 0;
110 if (!in_array(
'my', $this->aCurrentBlocks[
'blocks']))
112 $this->oSearch->clearFilters(array(
'activeStatus',
'allow_view',
'album_status'), array(
'albumsObjects',
'albums'));
113 $this->oSearch->bAdminMode =
false;
114 $this->oSearch->aCurrent[
'view'] =
'full';
115 $iPerPage = isset(
$_GET[
'per_page']) ? (int)
$_GET[
'per_page'] : (
int)$this->oConfig->getGlParam(
'number_albums_browse');
116 $iPage = isset(
$_GET[
'page']) ? (int)
$_GET[
'page'] : $this->oSearch->aCurrent[
'paginate'][
'page'];
117 $sCode = $this->oSearch->getAlbumList(
$iPage,
$iPerPage, array(
'owner'=>$this->iOwnerId,
'show_empty' =>
true,
'hide_default' =>
true));
118 $iCount = $this->oSearch->aCurrent[
'paginate'][
'totalAlbumNum'];
121 $aLinkAddon = $this->oSearch->getLinkAddByPrams(array(
'r'));
122 $sLink = $sLinkJs = $sViewAllUrl = CH_WSB_URL_ROOT . $this->oConfig->getBaseUri() .
'albums/my/' . $this->aAddParams[0];
123 if ($this->oConfig->isPermalinkEnabled) {
128 $sViewAllUrll .=
'&';
130 $sLinkJs .= $aLinkAddon[
'params'];
131 $sViewAllUrl .=
'per_page=' . $iCount;
133 'page_url' => $sLink,
137 'on_change_page' =>
'return !loadDynamicBlock(' . $iBoxId .
', \'' . $sLinkJs .
'&page={page}&per_page={per_page}\');',
138 'on_change_per_page' =>
'return !loadDynamicBlock(' . $iBoxId .
', \'' . $sLinkJs .
'&page=1&per_page=\' + this.value);'
140 $sPgn = $oPaginate->getSimplePaginate(sViewAllUrl);
142 return array(
$sCode, array(), $sPgn,
false);
147 if (in_array(
'adminShort', $this->aCurrentBlocks[
'blocks'])) {
148 $iNumber = $this->oAlbum->getAlbumCount(array(
'owner' => $this->iOwnerId,
'show_empty' =>
true,
'hide_default' =>
true));
149 return array($this->oTemplate->getAdminAlbumShort($iNumber), $this->getTopMenu(
'main'), array());
155 if (in_array(
'adminAlbumShort', $this->aCurrentBlocks[
'blocks'])) {
156 $iNumber = $this->oAlbum->getObjCount(array(
'fileUri' => $this->aAddParams[1],
'owner' => $this->iOwnerId));
157 $sCode = $this->oTemplate->getAdminShort($iNumber, $this->aAddParams[1], $this->aAddParams[3]);
158 $aInfo = $this->oAlbum->getAlbumInfo(array(
'fileUri' => $this->aAddParams[1],
'owner' => $this->iOwnerId));
161 'fileStatCount' =>
_t(
'_sys_album_privacy_me_info'),
162 'fileStatAdd' =>
_t(
'_sys_album_edit_info', CH_WSB_URL_ROOT . $this->oConfig->getBaseUri() .
'albums/my/edit/' . $this->aAddParams[1] .
'/owner/' . $this->aAddParams[3]),
163 'spec_class' =>
'sys_warning_text'
165 $sCode .= $this->oTemplate->parseHtmlByName(
'admin_short.html', $aDraw);
173 if (in_array(
'adminFull', $this->aCurrentBlocks[
'blocks'])) {
174 return array($this->
getAdminPart(array(), array(
'section'=>
'manage',
'page_block_id' => $iBoxId)), $this->
getTopMenu(
'manage'), array(),
'');
180 if (!in_array(
'add', $this->aCurrentBlocks[
'blocks']))
183 $aPrivFieldView = $this->oAlbumPrivacy->getGroupChooser($this->iOwnerId, $this->oConfig->getUri(),
'album_view');
184 $aForm = $this->oTemplate->getAlbumFormAddArray(array(
'allow_view' => $aPrivFieldView));
188 if (
$oForm->isSubmittedAndValid()) {
189 $aFields = array(
'caption',
'location',
'description',
'AllowAlbumView',
'owner');
192 if (isset($_POST[$sValue]))
193 $aData[$sValue] = $_POST[$sValue];
195 $iNewId = $this->oAlbum->addAlbum($aData);
197 $aNew = $this->oAlbum->getAlbumInfo(array(
'fileId' => $iNewId), array(
'Uri'));
198 $sUrlAdd = CH_WSB_URL_ROOT . $this->oConfig->getBaseUri() .
'albums/my/add_objects/' . $aNew[
'Uri'] .
'/owner/' .
getUsername($this->iOwnerId);
199 $sCode =
MsgBox(
_t(
'_' . $this->oConfig->getMainPrefix() .
'_album_save_redirect')) . $this->oTemplate->getJsTimeOutRedirect($sUrlAdd, 3);
208 if(!in_array(
'addObjects', $this->aCurrentBlocks[
'blocks']))
211 $aAlbumInfo = $this->oAlbum->getAlbumInfo(array(
'fileUri' => $this->aAddParams[1],
'owner' => $this->iOwnerId));
212 if($aAlbumInfo[
'Owner'] != $this->iOwnerId)
216 if (!$this->oSearch->oModule->isAllowedAdd()) {
217 $sCode =
MsgBox(
_t(
'_' . $this->oConfig->getMainPrefix() .
'_access_denied'));
219 require_once(
'ChSoundsUploader.php');
220 $sLink = CH_WSB_URL_ROOT . $this->oConfig->getBaseUri() .
'albums/my/add_objects/' . $this->aAddParams[1] .
'/'. $this->aAddParams[2] .
'/' . $this->aAddParams[3];
221 $aMenu = $this->oConfig->getUploaderSwitcher($sLink);
223 $sSubMenu = $this->oTemplate->getExtraSwitcher(
$aMenu,
'_' . $this->oConfig->getMainPrefix() .
'_choose_uploader', $iBoxId);
225 $oUploader->sWorkingFile = $sLink;
226 $sCode = $this->oTemplate->parseHtmlByName(
'default_margin.html', array(
'content' => $oUploader->GenMainAddFilesForm(array(
'album' => $this->aAddParams[1]))));
229 $GLOBALS[
'oTopMenu']->setCustomSubHeader($aAlbumInfo[
'Caption']);
235 if(!in_array(
'manageObjects', $this->aCurrentBlocks[
'blocks']))
238 return array($this->
getAdminObjectPart(array(
'activeStatus'=>
'approved'),
true, $iBoxId,
true), $this->
getTopMenu(
'manage_objects'), array(),
'');
243 if(!in_array(
'manageObjectsDisapproved', $this->aCurrentBlocks[
'blocks']))
246 return array($this->
getAdminObjectPart(array(
'activeStatus'=>
'disapproved'),
true, $iBoxId), $this->
getTopMenu(
'manage_objects_disapproved'), array(),
'');
251 $this->oSearch->aCurrent[
'restriction'][
'activeStatus'][
'operator'] =
'in';
252 if (in_array(
'manageObjectsNotProcessed', $this->aCurrentBlocks[
'blocks'])) {
253 return array($this->
getAdminObjectPart(array(
'activeStatus'=>array(
'pending',
'processing'),
false, $iBoxId)), $this->
getTopMenu(
'manage_objects_not_processed'), array(),
'');
259 if (in_array(
'manageObjectsFailed', $this->aCurrentBlocks[
'blocks'])) {
260 return array($this->
getAdminObjectPart(array(
'activeStatus'=>
'failed'),
true, $iBoxId), $this->
getTopMenu(
'manage_objects_failed'), array(),
'');
266 if (!in_array(
'edit', $this->aCurrentBlocks[
'blocks']))
269 $aInfo = $this->oAlbum->getAlbumInfo(array(
'fileUri' => $this->aAddParams[1],
'owner' => $this->iOwnerId));
270 if (
$aInfo[
'Owner'] != $this->iOwnerId)
273 $aPrivFieldView = $this->oAlbumPrivacy->getGroupChooser($this->iOwnerId, $this->oConfig->getUri(),
'album_view');
274 $aPrivFieldView[
'value'] =
$aInfo[
'AllowAlbumView'];
279 'value' =>
$aInfo[
'Caption']
282 'name' =>
'Location',
283 'value' =>
$aInfo[
'Location']
285 'description' => array(
286 'name' =>
'Description',
287 'value' => strip_tags(
$aInfo[
'Description'])
289 'allow_view' => $aPrivFieldView,
293 'value' => (
int)
$aInfo[
'ID'],
298 'value' => $this->aAddParams[1],
303 'id' => $this->oConfig->getMainPrefix() .
'_upload_form',
305 'action' => $this->oConfig->getBaseUri().
'albums/my/edit/' . strip_tags($this->aAddParams[1] .
'/' . strip_tags($this->aAddParams[2]) .
'/' . strip_tags($this->aAddParams[3]))
308 $aForm = $this->oTemplate->getAlbumFormEditArray($aReInputs, $aReForm);
311 if (
$oForm->isSubmittedAndValid()) {
312 $aFields = array(
'Caption',
'Location',
'Description',
'AllowAlbumView');
315 if (isset($_POST[$sValue]))
316 $aData[$sValue] = $_POST[$sValue];
318 if ($this->oAlbum->updateAlbumById((
int)$_POST[
'ID'], $aData))
319 $sCode =
MsgBox(
_t(
'_ch_' . $this->oConfig->getUri() .
'_album_save_success'));
329 if(!in_array(
'organize', $this->aCurrentBlocks[
'blocks']))
332 $aInfo = $this->oAlbum->getAlbumInfo(array(
'fileUri' => $this->aAddParams[1],
'owner' => $this->iOwnerId));
333 if(
$aInfo[
'Owner'] != $this->iOwnerId)
336 $this->oSearch->clearFilters(array(
'activeStatus',
'allow_view',
'album_status'), array(
'albumsObjects',
'albums'));
337 $this->oSearch->bAdminMode =
false;
338 $this->oSearch->aCurrent[
'view'] =
'short';
340 $this->oSearch->aCurrent[
'restriction'][
'album'][
'value'] = $this->aAddParams[1];
341 $this->oSearch->aCurrent[
'restriction'][
'albumType'][
'value'] = $this->oSearch->aCurrent[
'name'];
342 $this->oSearch->aCurrent[
'restriction'][
'ownerId'][
'value'] =
$this->iOwnerId;
343 $this->oSearch->aCurrent[
'sorting'] =
'album_order';
344 $this->oSearch->aCurrent[
'paginate'][
'perPage'] = 1000;
345 $aUnits = $this->oSearch->getSearchData();
346 if ($this->oSearch->aCurrent[
'paginate'][
'totalNum'] > 0) {
347 $sMainUrl = CH_WSB_URL_ROOT . $this->oConfig->getBaseUri();
348 foreach ($aUnits
as $aData)
349 $sCode .= $this->oSearch->displaySearchUnit($aData);
351 'action_reverse' => array(
352 'value' =>
_t(
'_' . $this->oConfig->getMainPrefix() .
'_album_organize_reverse'),
355 'onclick' =>
'onclick=\'getHtmlData("unit_area", "' . $sMainUrl .
'album_reverse/' . $this->aAddParams[1] .
'"); return false;\''
358 $sAreaId =
'unit_area';
359 $sManage = $this->oSearch->showAdminActionsPanel(
'', $aBtns,
'entry',
false,
false);
361 'main_code_id' => $sAreaId,
364 'manage' => $sManage,
365 'ch_if:hidden' => array(
366 'condition' =>
false,
370 $sJsCode = $this->oTemplate->parseHtmlByName(
'js_organize.html', array(
372 'unit_area_id' => $sAreaId,
373 'album_name' => $this->aAddParams[1],
374 'add_params' => $this->aAddParams[2] .
'/' . $this->aAddParams[3]
376 $this->oTemplate->addCss(
'organize.css');
377 $this->oTemplate->addJs(array(
'jquery.ui.core.min.js',
'jquery.ui.widget.min.js',
'jquery.ui.mouse.min.js',
'jquery.ui.sortable.min.js',
'jquery.ui.touch-punch.min.js'));
378 $sCode = $sJsCode . $this->oTemplate->parseHtmlByName(
'manage_form.html',
$aUnit);
388 if (!in_array(
'albumObjects', $this->aCurrentBlocks[
'blocks']))
390 $this->oSearch->clearFilters(array(
'activeStatus',
'allow_view',
'album_status'), array(
'albumsObjects',
'albums'));
391 $this->oSearch->aCurrent[
'sorting'] =
'album_order';
392 $this->oSearch->bAdminMode =
false;
393 $this->oSearch->aCurrent[
'view'] =
'full';
395 $this->oSearch->aCurrent[
'restriction'][
'album'][
'value'] = $this->aAddParams[1];
396 $this->oSearch->aCurrent[
'restriction'][
'albumType'][
'value'] = $this->oSearch->aCurrent[
'name'];
397 $this->oSearch->aCurrent[
'restriction'][
'activeStatus'][
'value'] =
'approved';
398 $this->oSearch->aCurrent[
'restriction'][
'ownerId'][
'value'] =
$this->iOwnerId;
399 $this->oSearch->aCurrent[
'paginate'][
'perPage'] = $this->oConfig->getGlParam(
'number_all');
401 $sCode = $this->oSearch->displayResultBlock();
402 $iCount = $this->oSearch->aCurrent[
'paginate'][
'totalNum'];
403 $sBaseHref = CH_WSB_URL_ROOT . $this->oConfig->getBaseUri() .
'albums/my/';
404 $sUri = implode(
'/', array_slice($this->aAddParams, 1, 3));
410 if ($iCount > $this->oSearch->aCurrent[
'paginate'][
'perPage']) {
411 $sViewAllUrl = $sBaseHref . $this->aAddParams[0] .
'/' . $sUri;
412 $sViewAllUrl .= ($this->oConfig->isPermalinkEnabled) ?
'?' :
'&';
413 $sPaginate = $this->oSearch->getBottomMenu($sViewAllUrl .
'per_page=' . $iCount);
418 'disapproved' => NULL,
420 'not_processed' => array(
'pending',
'processing')
422 $sLangKey =
'_' . $this->oConfig->getMainPrefix() .
'_count_status_info';
423 $sUnitKey =
'_' . $this->oConfig->getMainPrefix() .
'_album_manage_objects_';
424 $sHref = $sBaseHref .
'manage_objects_{section}/' . $sUri;
427 foreach ($aSections
as $sSection => $mixedStatus) {
428 $mixedStatus = is_null($mixedStatus) ? $sSection : $mixedStatus;
429 $aParams = array(
'albumUri' => $this->aAddParams[1],
'Approved' => $mixedStatus,
'medProfId' => $this->iOwnerId);
430 $iCount = $this->oDb->getFilesCountByParams($aParams);
432 $sLangUnitKey =
_t($sUnitKey . $sSection);
433 $sMessage .=
_t($sLangKey, $iCount, str_replace(
'{section}', $sSection, $sHref), $sLangUnitKey) .
' ';
437 $sInfo = $this->oTemplate->parseHtmlByName(
'pending_approval_plank.html', array (
'msg' =>
$sMessage));
438 $sCode = $this->oTemplate->parseHtmlByName(
'default_margin_thd.html', array(
'content' =>
$sCode));
439 return array($sInfo .
$sCode, array(), $sPaginate,
'');
446 if (strlen($this->aAddParams[1]) > 0) {
448 $sName = $this->aAddParams[1] .
'/' . strip_tags($this->aAddParams[2]) .
'/' . strip_tags($this->aAddParams[3]) .
'/';
451 $sHrefPref = CH_WSB_URL_ROOT . $this->oConfig->getBaseUri();
452 foreach ($this->aSystemBlocks
as $sKey => $aValue) {
453 $sAdd = $aValue[
'const'] ==
true ?
'' :
$sName;
454 $sOwnLink = isset($aValue[
'link']) ? $aValue[
'link'] :
'albums/my/' . $sKey .
'/';
455 if ($aValue[
'level'] == $iCheck)
456 $aTopMenu[
_t(
'_ch_' . $this->oConfig->getUri() .
'_album_' . $sKey)] = array(
457 'href' => $sHrefPref . $sOwnLink . $sAdd,
458 'active' => (
$sMode == $sKey )
466 $this->oSearch->bAdminMode =
true;
467 $iPerPage = isset(
$_GET[
'per_page']) ? (int)
$_GET[
'per_page'] : (
int)$this->oConfig->getGlParam(
'number_albums_browse');
468 $iPage = isset(
$_GET[
'page']) ? (int)
$_GET[
'page'] : $this->oSearch->aCurrent[
'paginate'][
'page'];
469 $aCondition[
'show_empty'] =
true;
470 $aCondition[
'hide_default'] =
true;
471 $aCondition[
'owner'] = $this->iOwnerId;
473 $iCount = $this->oSearch->aCurrent[
'paginate'][
'totalAlbumNum'];
477 'name' =>
'action_delete',
478 'value' =>
_t(
'_Delete'),
479 'onclick' =>
'onclick="return confirm(\'' .
ch_js_string(
_t(
'_Are_you_sure')) .
'\');
"',
484 if ($iCount > $iPerPage) {
485 $sSection = isset($aCustom['section']) ? strip_tags($aCustom['section']) : '';
486 $iId = isset($aCustom['page_block_id']) ? (int)$aCustom['page_block_id'] : 1;
487 $aLinkAddon = $this->oSearch->getLinkAddByPrams(array('r'));
488 $sLink = $sLinkJs = $sViewAllUrl = CH_WSB_URL_ROOT . $this->oConfig->getBaseUri() . 'albums/my/' . $sSection;
489 if ($this->oConfig->isPermalinkEnabled) {
494 $sViewAllUrl .= '&';
496 $sLinkJs .= $aLinkAddon['params'];
497 $sViewAllUrl .= 'per_page=' . $iCount;
498 $oPaginate = new ChWsbPaginate(array(
499 'page_url' => $sLink,
501 'per_page' => $iPerPage,
503 'on_change_page' => 'return !loadDynamicBlock(' . $iId . ', \'' . $sLinkJs . '&page={page}&per_page={per_page}\');',
504 'on_change_per_page' => 'return !loadDynamicBlock(' . $iId . ', \'' . $sLinkJs . '&page=1&per_page=\' + this.value);'
506 $sPaginate = $oPaginate->getSimplePaginate($sViewAllUrl);
508 $sManage = $this->oSearch->showAdminActionsPanel($this->oSearch->aCurrent['name'] . '_admin_form', $aBtns);
510 'main_code' => $sCode,
511 'paginate' => $sPaginate,
514 return $this->oTemplate->parseHtmlByName('manage_form_albums.html', $aUnit);
517 function getAdminObjectPart ($aCondition = array(), $bAdminMode = true, $iBoxId = 0, $bShowMove = false)
519 $aInfo = $this->oAlbum->getAlbumInfo(array('fileUri' => $this->aAddParams[1], 'owner' => $this->iOwnerId));
520 if($aInfo['Owner'] != $this->iOwnerId)
521 return MsgBox(_t('_Access denied'));
523 $GLOBALS['oTopMenu']->setCustomSubHeader($aInfo['Caption']);
525 $this->oSearch->clearFilters(array('activeStatus', 'allow_view', 'album_status'), array('albumsObjects', 'albums'));
526 $this->oSearch->bAdminMode = $bAdminMode;
528 $this->oSearch->aCurrent['paginate']['perPage'] = (int)$this->oConfig->getGlParam('number_all');
529 $this->oSearch->aCurrent['sorting'] = 'album_order';
530 $this->oSearch->aCurrent['view'] = 'full';
532 $this->oSearch->aCurrent['restriction']['album']['value'] = $this->aAddParams[1];
533 $this->oSearch->aCurrent['restriction']['albumType']['value'] = $this->oSearch->aCurrent['name'];
534 $this->oSearch->aCurrent['restriction']['ownerId']['value'] = $this->iOwnerId;
536 if (is_array($aCondition)) {
537 foreach ($aCondition as $sKey => $sValue) {
538 if (isset($this->oSearch->aCurrent['restriction'][$sKey]))
539 $this->oSearch->aCurrent['restriction'][$sKey]['value'] = $sValue;
544 $aUserAlbums = $this->oAlbum->getAlbumList(array('owner' => $this->iOwnerId, 'show_empty' => true, 'hide_default' => true), 0, 0, true);
545 foreach ($aUserAlbums as $aValue) {
546 if ($aValue['Uri'] != $this->aAddParams[1]) {
548 'album_id' => $aValue['ID'],
549 'album_caption' => $aValue['Caption']
552 $aAlbumInfo = array('ID' => $aValue['ID']);
553 $this->oSearch->aCurrent['restriction']['allow_view']['value'] = array($aValue['AllowAlbumView']);
557 'action_delete_object' => _t('_Delete'),
560 if (count($aUserAlbums) > 1 && $bShowMove) {
561 $aBtns['action_move_to'] = _t('_sys_album_move_to_another');
562 $sMoveToAlbum = $this->oTemplate->parseHtmlByName('albums_select.html', array('ch_repeat:choose' => $aAlbums));
564 $sManage = $this->oSearch->showAdminActionsPanel($this->oSearch->aCurrent['name'] . '_admin_form', $aBtns, 'entry', true, false, $sMoveToAlbum);
567 $sCode = $this->oSearch->displayResultBlock();
568 $iCount = $this->oSearch->aCurrent['paginate']['totalNum'];
571 $sCode = MsgBox(_t('_Empty'));
573 if ($iCount > $this->oSearch->aCurrent['paginate']['perPage']) {
574 $sViewAllUrl = CH_WSB_URL_ROOT . $this->oConfig->getBaseUri() . 'albums/my/' . implode('/', array_slice($this->aAddParams, 0, 4));
575 $sViewAllUrl .= ($this->oConfig->isPermalinkEnabled) ? '?' : '&';
576 $sPaginate = $this->oSearch->getBottomMenu($sViewAllUrl . 'per_page=' . $iCount);
578 $sPaginate = str_replace('{id}', $iBoxId, $sPaginate);
581 $aAlbumInfo = $this->oAlbum->getAlbumInfo(array('fileUri' => $this->aAddParams[1]), array('ID'));
583 'main_code' => $sCode,
584 'paginate' => $sPaginate,
585 'manage' => $sManage,
586 'ch_if:hidden' => array(
587 'condition' => (int)$aAlbumInfo['ID'] != 0,
589 'hidden_name' => 'album_id',
590 'hidden_value' => (int)$aAlbumInfo['ID']
594 return $this->oTemplate->parseHtmlByName('manage_form.html', $aUnit);