function printOut() { if ($this->select_all) { // This is not a beautiful position for this operation but at this point // I'm sure that all filter was applied $rs_all = $this->data->getAllRowsIdst(); if ($rs_all !== FALSE) { $this->itemSelectedMulti = array(); while (list($all_idst) = sql_fetch_row($rs_all)) { $this->itemSelectedMulti[] = $all_idst; } } } //$out = $this->rend->OpenTable($this->_getTitle()); $out = ""; $this->getRows($this->_getStartRow(), $this->_getRowsPage()); $totRow = $this->getTotalRows(); if ($totRow == -1) { $totRow = $this->getLoadedRows(); } $colInfo = $this->_getCols(); $colData = $colInfo; //$out .= $this->rend->WriteHeaderCss($colInfo); $arr_label = array(); $arr_style = array(); foreach ($colInfo as $col) { $arr_label[] = $col['hLabel']; $arr_style[] = $col['hClass']; } $this->rend->addHead($arr_label, $arr_style); while ($values = $this->fetchRecord()) { $arr_line = array(); foreach ($colInfo as $key => $fieldInfo) { $colData[$key]['data'] = $values[$colInfo[$key]['data']]; $arr_line[] = $values[$colInfo[$key]['data']]; } //$out .= $this->rend->WriteRowCss($colData); $this->rend->addBody($arr_line); } if ($this->insNew) { //$out .= $this->rend->WriteAddRow( $this->rend->addActionAdd('<input type="submit" class="transparent_add_button"' . ' id="' . $this->id . '_' . $this->_getOpCreateItemId() . '" ' . ' name="' . $this->id . '[' . $this->_getOpCreateItemId() . '][0]" ' . ' value="' . $this->lang->def('_ADD') . '"' . ' title="' . $this->_getCreateLabel() . '" ' . ' alt="' . $this->_getCreateAlt() . '" />' . '<input type="submit" class="transparent_add_button"' . ' id="' . $this->id . '_import_groupuser" ' . ' name="' . $this->id . '[import_groupuser][0]" ' . ' value="' . $this->lang->def('_IMPORT') . '"' . ' title="' . $this->lang->def('_IMPORT') . '" ' . ' alt="' . $this->lang->def('_IMPORT') . '" />'); } //$out .= $this->rend->CloseTable(); $out .= $this->rend->getTable(); $this->rend->initNavBar($this->_getIdInitRowId(), 'button'); $out .= $this->rend->getNavBar($this->_getStartRow(), $totRow); $out .= $this->printState(); //add confirm popups if (!$this->selector_mode) { require_once _base_ . '/lib/lib.dialog.php'; $lang =& DoceboLanguage::createInstance('standard'); setupFormDialogBox('dirctory_listgroup', 'index.php?modname=directory&op=listgroup', 'input[id*=' . $this->_getOpDeleteItemId() . ']', $lang->def('_AREYOUSURE'), $lang->def('_CONFIRM'), $lang->def('_UNDO'), 'function(o) { return o.title; }', $this->id . '_' . $this->_getOpDeleteItemId() . '_', 'idst', 'deletegroup'); } return $out; }
function storage_display() { $tv = create_TabView($GLOBALS['op']); $repo =& create_activeTab($tv); $repo->initialize(); $GLOBALS['page']->setWorkingZone('content'); if (!$repo->hideTab()) { $GLOBALS['page']->add($tv->printTabView_Begin($repo->getUrlParams())); $GLOBALS['page']->addEnd($tv->printTabView_End()); } if ($repo->isFindingDestination()) { $repo->setOptions(TRUE); } $GLOBALS['page']->add($repo->getExtraTop()); $repo->loadBody(); $GLOBALS['page']->add($repo->getExtraBottom()); //setup dialog popups $lang =& DoceboLanguage::CreateInstance('standard', 'framework'); require_once _base_ . '/lib/lib.dialog.php'; switch ($tv->getActiveTab()) { case 'storage_course': setupFormDialogBox('orgshow', 'index.php?modname=storage&op=organization', 'input[name*=treeview_opdeletefolder_organization]', $lang->def('_AREYOUSURE'), $lang->def('_CONFIRM'), $lang->def('_UNDO'), 'function(o) { return o.title; }', 'organization_treeview_opdeletefolder_organization_', 'treeview_selected_organization', 'treeview_delete_folder_organization'); break; case 'storage_home': setupFormDialogBox('homereposhow', 'index.php?modname=storage&op=homerepo', 'input[name*=treeview_opdeletefolder_homerepo]', $lang->def('_AREYOUSURE'), $lang->def('_CONFIRM'), $lang->def('_UNDO'), 'function(o) { return o.title; }', 'homerepo_treeview_opdeletefolder_homerepo_', 'treeview_selected_homerepo', 'treeview_delete_folder_homerepo'); break; case 'storage_pubrepo': setupFormDialogBox('pubreposhow', 'index.php?modname=storage&op=pubrepo', 'input[name*=treeview_opdeletefolder_pubrepo]', $lang->def('_AREYOUSURE'), $lang->def('_CONFIRM'), $lang->def('_UNDO'), 'function(o) { return o.title; }', 'pubrepo_treeview_opdeletefolder_pubrepo_', 'treeview_selected_pubrepo', 'treeview_delete_folder_pubrepo'); break; } //if( !$repo->hideTab() ) // $GLOBALS['page']->add( $tv->printTabView_End() ); destroy_TabView($tv); }