8 require_once(CH_DIRECTORY_PATH_CLASSES .
'ChWsbPageView.php');
9 require_once(CH_DIRECTORY_PATH_CLASSES .
'ChWsbAlbums.php');
10 require_once(
'ChVideosSearch.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_videos_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_videos', $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 $sViewAllUrl .=
'&';
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(
'ChVideosUploader.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']))
255 return array($this->
getAdminObjectPart(array(
'activeStatus'=>array(
'pending',
'processing')),
false, $iBoxId), $this->
getTopMenu(
'manage_objects_not_processed'), array(),
'');
260 if(!in_array(
'manageObjectsFailed', $this->aCurrentBlocks[
'blocks']))
263 return array($this->
getAdminObjectPart(array(
'activeStatus'=>
'failed'),
true, $iBoxId), $this->
getTopMenu(
'manage_objects_failed'), array(),
'');
268 if (!in_array(
'edit', $this->aCurrentBlocks[
'blocks']))
271 $aInfo = $this->oAlbum->getAlbumInfo(array(
'fileUri' => $this->aAddParams[1],
'owner' => $this->iOwnerId));
272 if (
$aInfo[
'Owner'] != $this->iOwnerId)
275 $aPrivFieldView = $this->oAlbumPrivacy->getGroupChooser($this->iOwnerId, $this->oConfig->getUri(),
'album_view');
276 $aPrivFieldView[
'value'] =
$aInfo[
'AllowAlbumView'];
281 'value' =>
$aInfo[
'Caption']
284 'name' =>
'Location',
285 'value' =>
$aInfo[
'Location']
287 'description' => array(
288 'name' =>
'Description',
289 'value' => strip_tags(
$aInfo[
'Description'])
291 'allow_view' => $aPrivFieldView,
295 'value' => (
int)
$aInfo[
'ID'],
300 'value' => $this->aAddParams[1],
305 'id' => $this->oConfig->getMainPrefix() .
'_upload_form',
307 'action' => $this->oConfig->getBaseUri().
'albums/my/edit/' . strip_tags($this->aAddParams[1] .
'/' . strip_tags($this->aAddParams[2]) .
'/' . strip_tags($this->aAddParams[3]))
310 $aForm = $this->oTemplate->getAlbumFormEditArray($aReInputs, $aReForm);
313 if (
$oForm->isSubmittedAndValid()) {
314 $aFields = array(
'Caption',
'Location',
'Description',
'AllowAlbumView');
317 if (isset($_POST[$sValue]))
318 $aData[$sValue] = $_POST[$sValue];
320 if ($this->oAlbum->updateAlbumById((
int)$_POST[
'ID'], $aData))
321 $sCode =
MsgBox(
_t(
'_' . $this->oConfig->getMainPrefix() .
'_album_save_success'));
331 if(!in_array(
'organize', $this->aCurrentBlocks[
'blocks']))
334 $aInfo = $this->oAlbum->getAlbumInfo(array(
'fileUri' => $this->aAddParams[1],
'owner' => $this->iOwnerId));
335 if(
$aInfo[
'Owner'] != $this->iOwnerId)
338 $this->oSearch->clearFilters(array(
'activeStatus',
'allow_view',
'album_status'), array(
'albumsObjects',
'albums'));
339 $this->oSearch->bAdminMode =
false;
340 $this->oSearch->aCurrent[
'view'] =
'short';
342 $this->oSearch->aCurrent[
'restriction'][
'album'][
'value'] = $this->aAddParams[1];
343 $this->oSearch->aCurrent[
'restriction'][
'albumType'][
'value'] = $this->oSearch->aCurrent[
'name'];
344 $this->oSearch->aCurrent[
'restriction'][
'ownerId'][
'value'] =
$this->iOwnerId;
345 $this->oSearch->aCurrent[
'sorting'] =
'album_order';
346 $this->oSearch->aCurrent[
'paginate'][
'perPage'] = 1000;
347 $aUnits = $this->oSearch->getSearchData();
348 if ($this->oSearch->aCurrent[
'paginate'][
'totalNum'] > 0) {
349 $sMainUrl = CH_WSB_URL_ROOT . $this->oConfig->getBaseUri();
350 foreach ($aUnits
as $aData)
351 $sCode .= $this->oSearch->displaySearchUnit($aData);
353 'action_reverse' => array(
354 'value' =>
_t(
'_' . $this->oConfig->getMainPrefix() .
'_album_organize_reverse'),
357 'onclick' =>
'onclick=\'getHtmlData("unit_area", "' . $sMainUrl .
'album_reverse/' . $this->aAddParams[1] .
'"); return false;\''
360 $sAreaId =
'unit_area';
361 $sManage = $this->oSearch->showAdminActionsPanel(
'', $aBtns,
'entry',
false,
false);
363 'main_code_id' => $sAreaId,
366 'manage' => $sManage,
367 'ch_if:hidden' => array(
368 'condition' =>
false,
372 $sJsCode = $this->oTemplate->parseHtmlByName(
'js_organize.html', array(
374 'unit_area_id' => $sAreaId,
375 'album_name' => $this->aAddParams[1],
376 'add_params' => $this->aAddParams[2] .
'/' . $this->aAddParams[3]
378 $this->oTemplate->addCss(
'organize.css');
379 $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'));
380 $sCode = $sJsCode . $this->oTemplate->parseHtmlByName(
'manage_form.html',
$aUnit);
390 if (!in_array(
'albumObjects', $this->aCurrentBlocks[
'blocks']))
392 $this->oSearch->clearFilters(array(
'activeStatus',
'allow_view',
'album_status'), array(
'albumsObjects',
'albums'));
393 $this->oSearch->aCurrent[
'sorting'] =
'album_order';
394 $this->oSearch->bAdminMode =
false;
395 $this->oSearch->aCurrent[
'view'] =
'full';
397 $this->oSearch->aCurrent[
'restriction'][
'album'][
'value'] = $this->aAddParams[1];
398 $this->oSearch->aCurrent[
'restriction'][
'albumType'][
'value'] = $this->oSearch->aCurrent[
'name'];
399 $this->oSearch->aCurrent[
'restriction'][
'activeStatus'][
'value'] =
'approved';
400 $this->oSearch->aCurrent[
'restriction'][
'ownerId'][
'value'] =
$this->iOwnerId;
401 $this->oSearch->aCurrent[
'paginate'][
'perPage'] = $this->oConfig->getGlParam(
'number_all');
403 $sCode = $this->oSearch->displayResultBlock();
404 $iCount = $this->oSearch->aCurrent[
'paginate'][
'totalNum'];
405 $sBaseHref = CH_WSB_URL_ROOT . $this->oConfig->getBaseUri() .
'albums/my/';
406 $sUri = implode(
'/', array_slice($this->aAddParams, 1, 3));
412 if ($iCount > $this->oSearch->aCurrent[
'paginate'][
'perPage']) {
413 $sViewAllUrl = $sBaseHref . $this->aAddParams[0] .
'/' . $sUri;
414 $sViewAllUrl .= ($this->oConfig->isPermalinkEnabled) ?
'?' :
'&';
415 $sPaginate = $this->oSearch->getBottomMenu($sViewAllUrl .
'per_page=' . $iCount);
420 'disapproved' => NULL,
422 'not_processed' => array(
'pending',
'processing')
424 $sLangKey =
'_' . $this->oConfig->getMainPrefix() .
'_count_status_info';
425 $sUnitKey =
'_' . $this->oConfig->getMainPrefix() .
'_album_manage_objects_';
426 $sHref = $sBaseHref .
'manage_objects_{section}/' . $sUri;
429 foreach ($aSections
as $sSection => $mixedStatus) {
430 $mixedStatus = is_null($mixedStatus) ? $sSection : $mixedStatus;
431 $aParams = array(
'albumUri' => $this->aAddParams[1],
'Approved' => $mixedStatus,
'medProfId' => $this->iOwnerId);
432 $iCount = $this->oDb->getFilesCountByParams($aParams);
434 $sLangUnitKey =
_t($sUnitKey . $sSection);
435 $sMessage .=
_t($sLangKey, $iCount, str_replace(
'{section}', $sSection, $sHref), $sLangUnitKey) .
' ';
438 $sInfo = $this->oTemplate->parseHtmlByName(
'pending_approval_plank.html', array (
'msg' =>
$sMessage));
439 $sCode = $this->oTemplate->parseHtmlByName(
'default_margin_thd.html', array(
'content' =>
$sCode));
440 return array($sInfo .
$sCode, array(), $sPaginate,
'');
447 if (strlen($this->aAddParams[1]) > 0) {
449 $sName = $this->aAddParams[1] .
'/' . strip_tags($this->aAddParams[2]) .
'/' . strip_tags($this->aAddParams[3]) .
'/';
452 $sHrefPref = CH_WSB_URL_ROOT . $this->oConfig->getBaseUri();
453 foreach ($this->aSystemBlocks
as $sKey => $aValue) {
454 $sAdd = $aValue[
'const'] ==
true ?
'' :
$sName;
455 $sOwnLink = isset($aValue[
'link']) ? $aValue[
'link'] :
'albums/my/' . $sKey .
'/';
456 if ($aValue[
'level'] == $iCheck)
457 $aTopMenu[
_t(
'_' . $this->oConfig->getMainPrefix() .
'_album_' . $sKey)] = array(
458 'href' => $sHrefPref . $sOwnLink . $sAdd,
459 'active' => (
$sMode == $sKey )
467 $this->oSearch->bAdminMode =
true;
468 $iPerPage = isset(
$_GET[
'per_page']) ? (int)
$_GET[
'per_page'] : (
int)$this->oConfig->getGlParam(
'number_albums_browse');
469 $iPage = isset(
$_GET[
'page']) ? (int)
$_GET[
'page'] : $this->oSearch->aCurrent[
'paginate'][
'page'];
470 $aCondition[
'show_empty'] =
true;
471 $aCondition[
'hide_default'] =
true;
472 $aCondition[
'owner'] = $this->iOwnerId;
474 $iCount = $this->oSearch->aCurrent[
'paginate'][
'totalAlbumNum'];
478 'name' =>
'action_delete',
479 'value' =>
_t(
'_Delete'),
480 'onclick' =>
'onclick="return confirm(\'' .
ch_js_string(
_t(
'_Are_you_sure')) .
'\');
"',
485 if ($iCount > $iPerPage) {
486 $sSection = isset($aCustom['section']) ? strip_tags($aCustom['section']) : '';
487 $iId = isset($aCustom['page_block_id']) ? (int)$aCustom['page_block_id'] : 1;
488 $aLinkAddon = $this->oSearch->getLinkAddByPrams(array('r'));
489 $sLink = $sLinkJs = $sViewAllUrl = CH_WSB_URL_ROOT . $this->oConfig->getBaseUri() . 'albums/my/' . $sSection;
490 if ($this->oConfig->isPermalinkEnabled) {
495 $sViewAllUrl .= '&';
497 $sLinkJs .= $aLinkAddon['params'];
498 $sViewAllUrl .= 'per_page=' . $iCount;
499 $oPaginate = new ChWsbPaginate(array(
500 'page_url' => $sLink,
502 'per_page' => $iPerPage,
504 'on_change_page' => 'return !loadDynamicBlock(' . $iId . ', \'' . $sLinkJs . '&page={page}&per_page={per_page}\');',
505 'on_change_per_page' => 'return !loadDynamicBlock(' . $iId . ', \'' . $sLinkJs . '&page=1&per_page=\' + this.value);'
507 $sPaginate = $oPaginate->getSimplePaginate($sViewAllUrl);
509 $sManage = $this->oSearch->showAdminActionsPanel($this->oSearch->aCurrent['name'] . '_admin_form', $aBtns);
511 'main_code' => $sCode,
512 'paginate' => $sPaginate,
513 'manage' => $sManage,
516 return $this->oTemplate->parseHtmlByName('manage_form_albums.html', $aUnit);
519 function getAdminObjectPart ($aCondition = array(), $bAdminMode = true, $iBoxId = 0, $bShowMove = false)
521 $aInfo = $this->oAlbum->getAlbumInfo(array('fileUri' => $this->aAddParams[1], 'owner' => $this->iOwnerId));
522 if($aInfo['Owner'] != $this->iOwnerId)
523 return MsgBox(_t('_Access denied'));
525 $GLOBALS['oTopMenu']->setCustomSubHeader($aInfo['Caption']);
527 $this->oSearch->clearFilters(array('activeStatus', 'allow_view', 'album_status'), array('albumsObjects', 'albums'));
528 $this->oSearch->bAdminMode = $bAdminMode;
530 $this->oSearch->aCurrent['paginate']['perPage'] = (int)$this->oConfig->getGlParam('number_all');
531 $this->oSearch->aCurrent['sorting'] = 'album_order';
532 $this->oSearch->aCurrent['view'] = 'full';
534 $this->oSearch->aCurrent['restriction']['album']['value'] = $this->aAddParams[1];
535 $this->oSearch->aCurrent['restriction']['albumType']['value'] = $this->oSearch->aCurrent['name'];
536 $this->oSearch->aCurrent['restriction']['ownerId']['value'] = $this->iOwnerId;
538 if (is_array($aCondition)) {
539 foreach ($aCondition as $sKey => $sValue) {
540 if (isset($this->oSearch->aCurrent['restriction'][$sKey]))
541 $this->oSearch->aCurrent['restriction'][$sKey]['value'] = $sValue;
546 $aUserAlbums = $this->oAlbum->getAlbumList(array('owner' => $this->iOwnerId, 'show_empty' => true, 'hide_default' => true), 0, 0, true);
547 foreach ($aUserAlbums as $aValue) {
548 if ($aValue['Uri'] != $this->aAddParams[1]) {
550 'album_id' => $aValue['ID'],
551 'album_caption' => $aValue['Caption']
554 $aAlbumInfo = array('ID' => $aValue['ID']);
555 $this->oSearch->aCurrent['restriction']['allow_view']['value'] = array($aValue['AllowAlbumView']);
559 'action_delete_object' => _t('_Delete'),
562 if (count($aUserAlbums) > 1 && $bShowMove) {
563 $aBtns['action_move_to'] = _t('_sys_album_move_to_another');
564 $sMoveToAlbum = $this->oTemplate->parseHtmlByName('albums_select.html', array('ch_repeat:choose' => $aAlbums));
566 $sManage = $this->oSearch->showAdminActionsPanel($this->oSearch->aCurrent['name'] . '_admin_form', $aBtns, 'entry', true, false, $sMoveToAlbum);
568 $sCode = $this->oSearch->displayResultBlock();
569 $iCount = $this->oSearch->aCurrent['paginate']['totalNum'];
572 $sCode = MsgBox(_t('_Empty'));
574 if ($iCount > $this->oSearch->aCurrent['paginate']['perPage']) {
575 $sViewAllUrl = CH_WSB_URL_ROOT . $this->oConfig->getBaseUri() . 'albums/my/' . implode('/', array_slice($this->aAddParams, 0, 4));
576 $sViewAllUrl .= ($this->oConfig->isPermalinkEnabled) ? '?' : '&';
577 $sPaginate = $this->oSearch->getBottomMenu($sViewAllUrl . 'per_page=' . $iCount);
579 $sPaginate = str_replace('{id}', $iBoxId, $sPaginate);
582 $aAlbumInfo = $this->oAlbum->getAlbumInfo(array('fileUri' => $this->aAddParams[1]), array('ID'));
584 'main_code' => $sCode,
585 'paginate' => $sPaginate,
586 'manage' => $sManage,
587 'ch_if:hidden' => array(
588 'condition' => (int)$aAlbumInfo['ID'] != 0,
590 'hidden_name' => 'album_id',
591 'hidden_value' => (int)$aAlbumInfo['ID']
595 return $this->oTemplate->parseHtmlByName('manage_form.html', $aUnit);