case "mod": $adsenseid = isset($_GET['adsenseid']) ? (int) $_GET['adsenseid'] : 0; editadsense(TRUE, $adsenseid); break; case "clone": $adsenseid = isset($_GET['adsenseid']) ? (int) $_GET['adsenseid'] : 0; editadsense(TRUE, $adsenseid, TRUE); break; case "addadsense": $controller = new icms_ipf_Controller($icms_adsense_handler); $controller->storeFromDefaultForm(_CO_ICMS_ADSENSES_CREATED, _CO_ICMS_ADSENSES_MODIFIED); break; case "del": $controller = new icms_ipf_Controller($icms_adsense_handler); $controller->handleObjectDeletion(); break; default: icms_cp_header(); $objectTable = new icms_ipf_view_Table($icms_adsense_handler); $objectTable->addColumn(new icms_ipf_view_Column('description', _GLOBAL_LEFT)); $objectTable->addColumn(new icms_ipf_view_Column(_CO_ICMS_ADSENSE_TAG_CODE, 'center', 200, 'getXoopsCode')); $objectTable->addIntroButton('addadsense', 'admin.php?fct=adsense&op=mod', _CO_ICMS_ADSENSES_CREATE); $objectTable->addQuickSearch(array('title', 'summary', 'description')); $objectTable->addCustomAction('getCloneLink'); $icmsAdminTpl->assign('icms_adsense_table', $objectTable->fetch()); $icmsAdminTpl->assign('icms_adsense_explain', TRUE); $icmsAdminTpl->assign('icms_adsense_title', _CO_ICMS_ADSENSES_DSC); $icmsAdminTpl->display(ICMS_ROOT_PATH . '/modules/system/templates/admin/adsense/system_adm_adsense.html'); break; } icms_cp_footer();
case "addrating": $controller = new icms_ipf_Controller($icms_rating_handler); $controller->storeFromDefaultForm(_CO_ICMS_RATINGS_CREATED, _CO_ICMS_RATINGS_MODIFIED, ICMS_URL . '/modules/system/admin.php?fct=rating'); break; */ case "del": $controller = new icms_ipf_Controller($icms_rating_handler); $controller->handleObjectDeletion(); break; default: icms_cp_header(); $objectTable = new icms_ipf_view_Table($icms_rating_handler, false, array('delete')); $objectTable->addColumn(new icms_ipf_view_Column('name', _GLOBAL_LEFT, false, 'getUnameValue')); $objectTable->addColumn(new icms_ipf_view_Column('dirname', _GLOBAL_LEFT)); $objectTable->addColumn(new icms_ipf_view_Column('item', _GLOBAL_LEFT, false, 'getItemValue')); $objectTable->addColumn(new icms_ipf_view_Column('date', 'center', 150)); $objectTable->addColumn(new icms_ipf_view_Column('rate', 'center', 60, 'getRateValue')); //$objectTable->addIntroButton('addrating', 'admin.php?fct=rating&op=mod', _CO_ICMS_RATINGS_CREATE); //$objectTable->addQuickSearch(array('title', 'summary', 'description')); $icmsAdminTpl->assign('icms_rating_table', $objectTable->fetch()); $icmsAdminTpl->assign('icms_rating_explain', TRUE); $icmsAdminTpl->assign('icms_rating_title', _CO_ICMS_RATINGS_DSC); $icmsAdminTpl->display(ICMS_MODULES_PATH . '/system/templates/admin/rating/system_adm_rating.html');
if ($categoryObj->getVar('cat_weight', 'e') != $_POST['cat_weight'][$k]) { $categoryObj->setVar('cat_weight', (int) $_POST['cat_weight'][$k]); $profile_category_handler->insert($categoryObj); } } redirect_header('category.php', 3, _AM_PROFILE_CATEGORY_MODIFIED); break; case "addcategory": $controller = new icms_ipf_Controller($profile_category_handler); $controller->storeFromDefaultForm(_AM_PROFILE_CATEGORY_CREATED, _AM_PROFILE_CATEGORY_MODIFIED); break; case "del": $controller = new icms_ipf_Controller($profile_category_handler); $controller->handleObjectDeletion(); break; default: icms_cp_header(); icms::$module->displayAdminMenu(1, _AM_PROFILE_CATEGORYS); $objectTable = new icms_ipf_view_Table($profile_category_handler); $objectTable->addColumn(new icms_ipf_view_Column('cat_title', _GLOBAL_LEFT, false, 'getCatTitle')); $objectTable->addColumn(new icms_ipf_view_Column('cat_description')); $objectTable->addColumn(new icms_ipf_view_Column('cat_weight', _CENTER, false, 'getCat_weightControl')); $objectTable->setDefaultSort('cat_weight'); $objectTable->addIntroButton('addcategory', 'category.php?op=mod', _AM_PROFILE_CATEGORY_CREATE); $objectTable->addActionButton('changedField', false, _SUBMIT); $icmsAdminTpl->assign('profile_category_table', $objectTable->fetch()); $icmsAdminTpl->display('db:profile_admin_category.html'); break; } icms_cp_footer(); }
*/ if (in_array($clean_op, $valid_op, true)) { switch ($clean_op) { case "mod": case "changedField": icms_cp_header(); editaudio($clean_audio_id); break; case "del": $controller = new icms_ipf_Controller($profile_audio_handler); $controller->handleObjectDeletion(); break; default: icms_cp_header(); icms::$module->displayAdminMenu(9, _AM_PROFILE_AUDIOS); $objectTable = new icms_ipf_view_Table($profile_audio_handler); $objectTable->addColumn(new icms_ipf_view_Column('audio_id')); $objectTable->addColumn(new icms_ipf_view_Column('uid_owner', false, false, 'getAudioSender')); $objectTable->addColumn(new icms_ipf_view_Column('author')); $objectTable->addColumn(new icms_ipf_view_Column('title', _GLOBAL_LEFT, false, 'getAudioTitle')); $objectTable->addColumn(new icms_ipf_view_Column('creation_time')); $objectTable->addColumn(new icms_ipf_view_Column('url', 'center', 330, 'getAudioToDisplay', false, false, false)); $objectTable->addQuickSearch(array('title', 'author')); $objectTable->setDefaultSort('creation_time'); $objectTable->setDefaultOrder('DESC'); $icmsAdminTpl->assign('profile_audio_table', $objectTable->fetch()); $icmsAdminTpl->display('db:profile_admin_audio.html'); break; } icms_cp_footer(); }
*/ if (in_array($clean_op, $valid_op, true)) { switch ($clean_op) { case "mod": case "changedField": icms_cp_header(); editregstep($clean_regstep_id); break; case "addregstep": $controller = new icms_ipf_Controller($profile_regstep_handler); $controller->storeFromDefaultForm(_AM_PROFILE_REGSTEP_CREATED, _AM_PROFILE_REGSTEP_MODIFIED); break; case "del": $controller = new icms_ipf_Controller($profile_regstep_handler); $controller->handleObjectDeletion(); break; default: icms_cp_header(); icms::$module->displayAdminMenu(3, _AM_PROFILE_REGSTEPS); $objectTable = new icms_ipf_view_Table($profile_regstep_handler); $objectTable->addColumn(new icms_ipf_view_Column('step_order')); $objectTable->addColumn(new icms_ipf_view_Column('step_name', false, false, 'getCustomStepName')); $objectTable->addColumn(new icms_ipf_view_Column('step_save', 'center', false, 'getCustomStepSave')); $objectTable->addColumn(new icms_ipf_view_Column('step_intro')); $objectTable->addIntroButton('addregstep', 'regstep.php?op=mod', _AM_PROFILE_REGSTEP_CREATE); $icmsAdminTpl->assign('profile_regstep_table', $objectTable->fetch()); $icmsAdminTpl->display('db:profile_admin_regstep.html'); break; } icms_cp_footer(); }
} } $op = isset($_POST['op']) ? trim(filter_input(INPUT_POST, 'op')) : (isset($_GET['op']) ? trim(filter_input(INPUT_GET, 'op')) : ''); switch ($op) { case "mod": $mimetypeid = isset($_GET['mimetypeid']) ? (int) $_GET['mimetypeid'] : 0; editmimetype(TRUE, $mimetypeid); break; case "addmimetype": $controller = new icms_ipf_Controller($icms_mimetype_handler); $controller->storeFromDefaultForm(_CO_ICMS_MIMETYPE_CREATED, _CO_ICMS_MIMETYPE_MODIFIED); break; case "del": $controller = new icms_ipf_Controller($icms_mimetype_handler); $controller->handleObjectDeletion(); break; default: icms_cp_header(); $objectTable = new icms_ipf_view_Table($icms_mimetype_handler); $objectTable->addColumn(new icms_ipf_view_Column('name', _GLOBAL_LEFT, 150)); $objectTable->addColumn(new icms_ipf_view_Column('extension', _GLOBAL_LEFT, 150)); $objectTable->addColumn(new icms_ipf_view_Column('types', _GLOBAL_LEFT)); $objectTable->addIntroButton('addmimetype', 'admin.php?fct=mimetype&op=mod', _CO_ICMS_MIMETYPE_CREATE); $objectTable->addQuickSearch(array('name', 'extension', 'types')); $icmsAdminTpl->assign('icms_mimetype_table', $objectTable->fetch()); $icmsAdminTpl->assign('icms_mimetype_explain', TRUE); $icmsAdminTpl->assign('icms_mimetype_title', _CO_ICMS_MIMETYPES_DSC); $icmsAdminTpl->display(ICMS_MODULES_PATH . '/system/templates/admin/mimetype/system_adm_mimetype.html'); break; } icms_cp_footer();
case "mod": $profile_tribes_handler = icms_getModuleHandler('tribes', basename(dirname(dirname(__FILE__))), 'profile'); $tribes = $profile_tribes_handler->getAllTribes(); if (count($tribes) == 0) { redirect_header(PROFILE_ADMIN_URL . 'tribeuser.php', 3, _AM_PROFILE_TRIBEUSER_NOTTRIBESYET); } icms_cp_header(); edittribeuser($clean_tribeuser_id); break; case "addtribeuser": $controller = new icms_ipf_Controller($profile_tribeuser_handler); $controller->storeFromDefaultForm(_AM_PROFILE_TRIBEUSER_CREATED, _AM_PROFILE_TRIBEUSER_MODIFIED); break; case "del": $controller = new icms_ipf_Controller($profile_tribeuser_handler); $controller->handleObjectDeletion(); break; default: icms_cp_header(); icms::$module->displayAdminMenu(8, _AM_PROFILE_TRIBEUSERS); $objectTable = new icms_ipf_view_Table($profile_tribeuser_handler); $objectTable->addColumn(new icms_ipf_view_Column('tribeuser_id', _GLOBAL_LEFT, false, 'getTribeuserId')); $objectTable->addColumn(new icms_ipf_view_Column('tribe_id', _GLOBAL_LEFT, false, 'getTribeName', false, false, false)); $objectTable->addColumn(new icms_ipf_view_Column('user_id', _GLOBAL_LEFT, false, 'getTribeuserSender', false, false, false)); $objectTable->addIntroButton('addtribeuser', 'tribeuser.php?op=mod', _AM_PROFILE_TRIBEUSER_CREATE); $icmsAdminTpl->assign('profile_tribeuser_table', $objectTable->fetch()); $icmsAdminTpl->display('db:profile_admin_tribeuser.html'); break; } icms_cp_footer(); }
* required */ if (in_array($clean_op, $valid_op, true)) { switch ($clean_op) { case "mod": case "changedField": icms_cp_header(); editvideos($clean_videos_id); break; case "del": $controller = new icms_ipf_Controller($profile_videos_handler); $controller->handleObjectDeletion(); break; default: icms_cp_header(); icms::$module->displayAdminMenu(10, _AM_PROFILE_VIDEOS); $objectTable = new icms_ipf_view_Table($profile_videos_handler); $objectTable->addColumn(new icms_ipf_view_Column('videos_id')); $objectTable->addColumn(new icms_ipf_view_Column('uid_owner', false, false, 'getVideoSender')); $objectTable->addColumn(new icms_ipf_view_Column('video_title', _GLOBAL_LEFT, false, 'getVideoTitle')); $objectTable->addColumn(new icms_ipf_view_Column('video_desc')); $objectTable->addColumn(new icms_ipf_view_Column('youtube_code', 'center', 330, 'getVideoToDisplay', false, false, false)); $objectTable->addQuickSearch(array('video_title', 'video_desc', 'youtube_code')); $objectTable->setDefaultSort('videos_id'); $objectTable->setDefaultOrder('DESC'); $icmsAdminTpl->assign('profile_videos_table', $objectTable->fetch()); $icmsAdminTpl->display('db:profile_admin_videos.html'); break; } icms_cp_footer(); }
} } redirect_header('field.php', 3, _AM_PROFILE_FIELD_MODIFIED); break; case "addfield": $controller = new icms_ipf_Controller($profile_field_handler); $controller->storeFromDefaultForm(_AM_PROFILE_FIELD_CREATED, _AM_PROFILE_FIELD_MODIFIED); break; case "del": $controller = new icms_ipf_Controller($profile_field_handler); $controller->handleObjectDeletion(); break; default: icms_cp_header(); icms::$module->displayAdminMenu(2, _AM_PROFILE_FIELDS); $objectTable = new icms_ipf_view_Table($profile_field_handler, false, array('edit')); $objectTable->addColumn(new icms_ipf_view_Column('field_show', _CENTER, FALSE, 'getShow')); $objectTable->addColumn(new icms_ipf_view_Column('catid', _GLOBAL_LEFT, false, 'getCatid', false, false, false)); $objectTable->addColumn(new icms_ipf_view_Column('field_name', _GLOBAL_LEFT, false, 'getFieldName')); $objectTable->addColumn(new icms_ipf_view_Column('field_title')); $objectTable->addColumn(new icms_ipf_view_Column('field_description')); $objectTable->addColumn(new icms_ipf_view_Column('field_weight', _CENTER, false, 'getField_weightControl')); $objectTable->addFilter('catid', 'getCategoriesArray'); $objectTable->addIntroButton('addfield', 'field.php?op=mod', _AM_PROFILE_FIELD_CREATE); $objectTable->addQuickSearch(array('field_name', 'field_title', 'field_description')); $objectTable->addCustomAction('getDeleteButtonForDisplay'); $objectTable->addActionButton('changedField', false, _SUBMIT); $icmsAdminTpl->assign('profile_field_table', $objectTable->fetch()); $icmsAdminTpl->display('db:profile_admin_field.html'); break; }
switch ($clean_op) { case "mod": case "changedField": icms_cp_header(); editpictures($clean_pictures_id); break; case "addpictures": $controller = new icms_ipf_Controller($profile_pictures_handler); $controller->storeFromDefaultForm(_AM_PROFILE_PICTURES_CREATED, _AM_PROFILE_PICTURES_MODIFIED); break; case "del": $controller = new icms_ipf_Controller($profile_pictures_handler); $controller->handleObjectDeletion(); break; default: icms_cp_header(); icms::$module->displayAdminMenu(6, _AM_PROFILE_PICTURES); $objectTable = new icms_ipf_view_Table($profile_pictures_handler); $objectTable->addColumn(new icms_ipf_view_Column('pictures_id')); $objectTable->addColumn(new icms_ipf_view_Column('uid_owner', false, false, 'getPictureSender')); $objectTable->addColumn(new icms_ipf_view_Column('title', _GLOBAL_LEFT, false, 'getPictureTitle')); $objectTable->addColumn(new icms_ipf_view_Column('url', 'center', 330, 'getProfilePicture', false, false, false)); $objectTable->addQuickSearch(array('title')); $objectTable->setDefaultSort('pictures_id'); $objectTable->setDefaultOrder('DESC'); $icmsAdminTpl->assign('profile_pictures_table', $objectTable->fetch()); $icmsAdminTpl->display('db:profile_admin_pictures.html'); break; } icms_cp_footer(); }
break; case "clone": $customtagid = isset($_GET["customtagid"]) ? (int) $_GET["customtagid"] : 0; editcustomtag($customtagid, TRUE); break; case "addcustomtag": $controller = new icms_ipf_Controller($icms_customtag_handler); $controller->storeFromDefaultForm(_CO_ICMS_CUSTOMTAG_CREATED, _CO_ICMS_CUSTOMTAG_MODIFIED); break; case "del": $controller = new icms_ipf_Controller($icms_customtag_handler); $controller->handleObjectDeletion(); break; default: icms_cp_header(); $objectTable = new icms_ipf_view_Table($icms_customtag_handler); $objectTable->addColumn(new icms_ipf_view_Column("name", _GLOBAL_LEFT, 150, "getCustomtagName")); $objectTable->addColumn(new icms_ipf_view_Column("description", _GLOBAL_LEFT)); $objectTable->addColumn(new icms_ipf_view_Column(_CO_ICMS_CUSTOMTAGS_TAG_CODE, "center", 200, "getXoopsCode")); $objectTable->addColumn(new icms_ipf_view_Column("language", "center", 150)); $objectTable->addIntroButton("addcustomtag", "admin.php?fct=customtag&op=mod", _CO_ICMS_CUSTOMTAG_CREATE); $objectTable->addQuickSearch(array("title", "summary", "description")); $objectTable->addCustomAction("getCloneLink"); $icmsAdminTpl->assign("icms_customtag_table", $objectTable->fetch()); $icmsAdminTpl->assign("icms_custom_tag_explain", TRUE); $icmsAdminTpl->assign("icms_custom_tag_title", _CO_ICMS_CUSTOMTAGS_DSC); $icmsAdminTpl->display(ICMS_MODULES_PATH . "/system/templates/admin/customtag/system_adm_customtag.html"); break; } } icms_cp_footer();
$icms_block_handler->insert($obj); } } $rtn = '/modules/system/admin.php?fct=blocksadmin'; if (isset($_GET['sortsel'])) { $rtn .= '&sortsel=' . $sortsel . '&ordersel=' . $ordersel . '&limitsel=' . $limitsel . '&startbid=' . $startbid; } if (isset($_GET['rtn'])) { redirect_header(ICMS_URL . base64_decode($_GET['rtn']), 2, _AM_SYSTEM_BLOCKSADMIN_MODIFIED); } else { redirect_header(ICMS_URL . $rtn, 2, _AM_SYSTEM_BLOCKSADMIN_MODIFIED); } break; default: icms_cp_header(); $objectTable = new icms_ipf_view_Table($icms_block_handler); $objectTable->addColumn(new icms_ipf_view_Column('visible', 'center')); $objectTable->addColumn(new icms_ipf_view_Column('name')); $objectTable->addColumn(new icms_ipf_view_Column('title', _GLOBAL_LEFT, FALSE, 'getAdminViewItemLink')); $objectTable->addColumn(new icms_ipf_view_Column('mid')); $objectTable->addColumn(new icms_ipf_view_Column('side', 'center', FALSE, 'getSideControl')); $objectTable->addColumn(new icms_ipf_view_Column('weight', 'center', FALSE, 'getWeightControl')); $objectTable->addIntroButton('addpost', 'admin.php?fct=blocksadmin&op=mod', _AM_SYSTEM_BLOCKSADMIN_CREATE); $objectTable->addQuickSearch(array('title', 'name')); $objectTable->addFilter('mid', 'getModulesArray'); $objectTable->addFilter('visible', 'getVisibleStatusArray'); $objectTable->addFilter('side', 'getBlockPositionArray'); $objectTable->addCustomAction('getBlankLink'); $objectTable->addCustomAction('getUpActionLink'); $objectTable->addCustomAction('getDownActionLink'); $objectTable->addCustomAction('getCloneActionLink');
$fields = $profile_smartuser_handler->getFields(); $criteria = new icms_db_criteria_Compo(); if ($_REQUEST['uname'] != '') { $criteria->add(new icms_db_criteria_Item('uname', '%' . $_REQUEST['uname'] . '%', 'LIKE')); } if ($_REQUEST['email'] != '') { $criteria->add(new icms_db_criteria_Item('email', '%' . $_REQUEST['email'] . '%', 'LIKE')); } foreach ($fields as $key => $field) { if (isset($_REQUEST[$key]) && $_REQUEST[$key] != '') { $criteria->add(new icms_db_criteria_Item($key, '%' . $_REQUEST[$key] . '%', 'LIKE')); } } icms_cp_header(); icms_adminMenu(11, _AM_SPROFILE_FINDUSER); $objectTable = new icms_ipf_view_Table($profile_smartuser_handler, $criteria, array()); $objectTable->addWithSelectedActions(array('export_sel' => _CO_ICMS_EXPORT)); $objectTable->setTableId('profile_users'); $objectTable->addColumn(new icms_ipf_view_Column('uname', 'center', 100, 'getUserLink', false, _AM_SPROFILE_UNAME)); $objectTable->addColumn(new icms_ipf_view_Column('email', 'center', 100, 'getUserEail', false, _AM_SPROFILE_EMAIL)); foreach ($fields as $key => $custom_field) { if (!in_array($key, $hidden_fields_results)) { $objectTable->addColumn(new icms_ipf_view_Column($key, 'center', 100, false, false, $custom_field->getVar('field_title'))); } } $objectTable->addActionButton('export', _SUBMIT, _AM_SPROFILE_EXPORT_ALL); $objectTable->renderD(); unset($criteria); break; case 'with_selected_actions': if ($_POST["selected_action"] == 'export_sel') {
$controller->handleObjectDeletion(); break; case "merge": icms_cp_header(); mergetribes($clean_tribes_id); break; case "mergefinal": $clean_tribes_id = isset($_POST['tribes_id']) ? (int) $_POST['tribes_id'] : 0; $clean_merge_tribes_id = isset($_POST['merge_tribes_id']) ? (int) $_POST['merge_tribes_id'] : 0; $profile_tribes_handler->mergeTribes($clean_tribes_id, $clean_merge_tribes_id); redirect_header(PROFILE_ADMIN_URL . 'tribes.php', 3, _AM_PROFILE_TRIBES_MERGE_SUCCESS); break; default: icms_cp_header(); icms::$module->displayAdminMenu(7, _AM_PROFILE_TRIBES); $objectTable = new icms_ipf_view_Table($profile_tribes_handler); $objectTable->addColumn(new icms_ipf_view_Column('tribes_id')); $objectTable->addColumn(new icms_ipf_view_Column('uid_owner', false, false, 'getTribeSender')); $objectTable->addColumn(new icms_ipf_view_Column('title', _GLOBAL_LEFT, false, 'getLinkedTribeTitle')); $objectTable->addColumn(new icms_ipf_view_Column('tribe_img', 'center', 330, 'getTribePicture', false, false, false)); $objectTable->addQuickSearch(array('title')); $objectTable->addFilter('uid_owner', 'getTribeOwnerArray'); $objectTable->addCustomAction('getMergeItemLink'); $objectTable->setDefaultSort('tribes_id'); $objectTable->setDefaultOrder('DESC'); $icmsAdminTpl->assign('profile_tribes_table', $objectTable->fetch()); $icmsAdminTpl->display('db:profile_admin_tribes.html'); break; } icms_cp_footer(); }
public function __construct(&$objectHandler, $criteria = false, $actions = array('edit', 'delete'), $userSide = false) { parent::__construct($objectHandler, $criteria, $actions, $userSide); $this->_deprecated = icms_core_Debug::setDeprecated('icms_ipf_view_Table', sprintf(_CORE_REMOVE_IN_VERSION, '1.4')); }
editpage($clean_page_id); break; case "addpage" : $controller = new icms_ipf_Controller($icms_page_handler); $controller->storeFromDefaultForm(_AM_SYSTEM_PAGES_CREATED, _AM_SYSTEM_PAGES_MODIFIED); break; case "del" : $controller = new icms_ipf_Controller ($icms_page_handler); $controller->handleObjectDeletion(); break; default : icms_cp_header(); $objectTable = new icms_ipf_view_Table($icms_page_handler); $objectTable->addColumn(new icms_ipf_view_Column('page_status', 'center', FALSE, 'getCustomPageStatus')); $objectTable->addColumn(new icms_ipf_view_Column('page_title', _GLOBAL_LEFT, FALSE, 'getAdminViewItemLink')); $objectTable->addColumn(new icms_ipf_view_Column('page_url')); $objectTable->addColumn(new icms_ipf_view_Column('page_moduleid', 'center', FALSE, 'getCustomPageModuleid')); $objectTable->addIntroButton('addpost', 'admin.php?fct=pages&op=mod', _AM_SYSTEM_PAGES_CREATE); $objectTable->addCustomAction('getViewItemLink'); $objectTable->addQuickSearch(array ('page_title', 'page_url')); $objectTable->addFilter('page_moduleid', 'getModulesArray'); $icmsAdminTpl->assign('icms_page_table', $objectTable->fetch()); $icmsAdminTpl->assign('icms_page_title', _AM_SYSTEM_PAGES_TITLE); $icmsAdminTpl->display('db:admin/pages/system_adm_pagemanager_index.html'); break; } icms_cp_footer(); }
break; case "clone": $autotasksid = isset($_GET['sat_id']) ? (int) $_GET['sat_id'] : 0; editautotasks(TRUE, $autotasksid, TRUE); break; case "addautotasks": $controller = new icms_ipf_Controller($icms_autotasks_handler); $controller->storeFromDefaultForm(_CO_ICMS_AUTOTASKS_CREATED, _CO_ICMS_AUTOTASKS_MODIFIED, ICMS_URL . '/modules/system/admin.php?fct=autotasks'); break; case "del": $controller = new icms_ipf_Controller($icms_autotasks_handler); $controller->handleObjectDeletion(); break; default: icms_cp_header(); $objectTable = new icms_ipf_view_Table($icms_autotasks_handler, FALSE, array('edit')); $objectTable->addColumn(new icms_ipf_view_Column('sat_name', 'left', FALSE, 'getNameForDisplay')); $objectTable->addColumn(new icms_ipf_view_Column('sat_repeat', 'center', 80, 'getRepeatForDisplay')); $objectTable->addColumn(new icms_ipf_view_Column('sat_interval', 'center', 80, 'getIntervalForDisplay')); $objectTable->addColumn(new icms_ipf_view_Column('sat_enabled', 'center', 80, 'getEnableForDisplay')); $objectTable->addColumn(new icms_ipf_view_Column('sat_onfinish', 'center', 120, 'getOnFinishForDisplay')); $objectTable->addColumn(new icms_ipf_view_Column('sat_type', 'center', 120, 'getTypeForDisplay')); $objectTable->addColumn(new icms_ipf_view_Column('sat_lastruntime', 'center', 180, 'getLastRunTimeForDisplay')); $objectTable->addIntroButton('addautotasks', 'admin.php?fct=autotasks&op=mod', _CO_ICMS_AUTOTASKS_CREATE); $objectTable->addQuickSearch(array('title', 'summary', 'description')); $objectTable->addCustomAction('getDeleteButtonForDisplay'); $icmsAdminTpl->assign('icms_autotasks_table', $objectTable->fetch()); $icmsAdminTpl->display('db:admin/autotasks/system_adm_autotasks.html'); //echo $objectTable->fetch(); break; }
/** * Construct the tree object * * @param object $objectHandler (@link icms_ipf_Handler) * @param object $criteria (@link icms_db_criteria_Compo) * @param array $actions An array of actions for this object * @param boolean $userSide TRUE - display on the user side; FALSE - do not display */ public function __construct(&$objectHandler, $criteria = FALSE, $actions = array('edit', 'delete'), $userSide = FALSE) { parent::__construct($objectHandler, $criteria, $actions, $userSide); $this->_isTree = TRUE; }
edituserrank(TRUE, $rank_id); break; case "clone": $rank_id = isset($_GET["rank_id"]) ? (int) $_GET["rank_id"] : 0; edituserrank(TRUE, $rank_id, TRUE); break; case "adduserrank": $controller = new icms_ipf_Controller($icms_userrank_handler); $controller->storeFromDefaultForm(_CO_ICMS_USERRANKS_CREATED, _CO_ICMS_USERRANKS_MODIFIED); break; case "del": $controller = new icms_ipf_Controller($icms_userrank_handler); $controller->handleObjectDeletion(); break; default: icms_cp_header(); $objectTable = new icms_ipf_view_Table($icms_userrank_handler); $objectTable->addColumn(new icms_ipf_view_Column("rank_title", _GLOBAL_LEFT, FALSE, "getRankTitle")); $objectTable->addColumn(new icms_ipf_view_Column("rank_min")); $objectTable->addColumn(new icms_ipf_view_Column("rank_max")); $objectTable->addColumn(new icms_ipf_view_Column("rank_image", "center", 200, "getRankPicture", FALSE, FALSE, FALSE)); $objectTable->addIntroButton("adduserrank", "admin.php?fct=userrank&op=mod", _CO_ICMS_USERRANKS_CREATE); $objectTable->addQuickSearch(array("rank_title")); $objectTable->addCustomAction("getCloneLink"); $icmsAdminTpl->assign("icms_userrank_table", $objectTable->fetch()); $icmsAdminTpl->assign("icms_userrank_explain", TRUE); $icmsAdminTpl->assign("icms_userrank_title", _CO_ICMS_USERRANKS_DSC); $icmsAdminTpl->display(ICMS_MODULES_PATH . "/system/templates/admin/userrank/system_adm_userrank.html"); break; } icms_cp_footer();
editslide($clean_slide_id); break; case "addslide": $controller = new icms_ipf_Controller($billboard_slide_handler); $controller->storeFromDefaultForm(_AM_BILLBOARD_SLIDE_CREATED, _AM_BILLBOARD_SLIDE_MODIFIED); break; case "del": $controller = new icms_ipf_Controller($billboard_slide_handler); $controller->handleObjectDeletion(); break; case "view": $slideObj = $billboard_slide_handler->get($clean_slide_id); icms_cp_header(); $slideObj->displaySingleObject(); break; default: icms_cp_header(); $icmsModule->displayAdminMenu(0, _AM_BILLBOARD_SLIDES); $objectTable = new icms_ipf_view_Table($billboard_slide_handler); $objectTable->addColumn(new icms_ipf_view_Column("title")); $objectTable->addIntroButton("addslide", "slide.php?op=mod", _AM_BILLBOARD_SLIDE_CREATE); $icmsAdminTpl->assign("billboard_slide_table", $objectTable->fetch()); $icmsAdminTpl->display("db:billboard_admin_slide.html"); break; } icms_cp_footer(); } /** * If you want to have a specific action taken because the user input was invalid, * place it at this point. Otherwise, a blank page will be displayed */
if ($obj->getVar('content_visibility', 'e') != $_POST['content_visibility'][$k]) { $obj->setVar('content_visibility', (int) $_POST['content_visibility'][$k]); $changed = true; } if ($changed) { $content_content_handler->insert($obj); } } redirect_header('content.php', 2, _AM_CONTENT_CONTENT_MODIFIED); break; default: icms_cp_header(); icms::$module->displayAdminMenu(0, _AM_CONTENT_CONTENTS); $criteria = new icms_db_criteria_Compo(); $criteria->add(new icms_db_criteria_Item('content_pid', $clean_content_pid)); $objectTable = new icms_ipf_view_Table($content_content_handler, $criteria); $objectTable->addColumn(new icms_ipf_view_Column('content_title', false, false, 'getPreviewItemLink')); $objectTable->addColumn(new icms_ipf_view_Column('content_subs', 'center', 100)); $objectTable->addColumn(new icms_ipf_view_Column('counter', 'center', 100)); $objectTable->addColumn(new icms_ipf_view_Column('content_status', 'center', 150, 'getContent_statusControl')); $objectTable->addColumn(new icms_ipf_view_Column('content_visibility', 'center', 150, 'getContent_visibleControl')); $objectTable->addColumn(new icms_ipf_view_Column('content_published_date', 'center', 150)); $objectTable->addActionButton('changedField', false, _SUBMIT); $objectTable->addCustomAction('getViewItemLink'); $objectTable->addCustomAction('getCloneItemLink'); $objectTable->addIntroButton('addcontent', 'content.php?op=mod' . ($clean_content_pid ? '&content_pid=' . $clean_content_pid : ''), _AM_CONTENT_CONTENT_CREATE); $objectTable->addQuickSearch(array('content_title', 'content_body')); $objectTable->addFilter('content_status', 'getContent_statusArray'); $objectTable->addFilter('content_uid', 'getPostersArray'); $objectTable->addFilter('content_pid', 'getContentList'); $objectTable->addFilter('content_visibility', 'getContent_visibleArray');
editblockposition($clean_id); break; case "addblockposition": $controller = new icms_ipf_Controller($icms_blockposition_handler); $controller->storeFromDefaultForm(_AM_SYSTEM_BLOCKSPADMIN_CREATED, _AM_SYSTEM_BLOCKSPADMIN_MODIFIED); break; case "del": $controller = new icms_ipf_Controller($icms_blockposition_handler); $controller->handleObjectDeletion(); break; default: icms_cp_header(); $objectTable = new icms_ipf_view_Table($icms_blockposition_handler, FALSE); $objectTable->addColumn(new icms_ipf_view_Column('pname'), 'center'); $objectTable->addColumn(new icms_ipf_view_Column('title', FALSE, FALSE, 'getCustomTitle', FALSE, FALSE, FALSE)); $objectTable->addColumn(new icms_ipf_view_Column('description')); $objectTable->addIntroButton('addblockposition', 'admin.php?fct=blockspadmin&op=mod', _AM_SYSTEM_BLOCKSPADMIN_CREATE); $objectTable->addQuickSearch(array('pname', 'title', 'description')); $icmsAdminTpl->assign('icms_blockposition_table', $objectTable->fetch()); $icmsAdminTpl->assign('lang_badmin', _AM_SYSTEM_BLOCKSPADMIN_TITLE); $icmsAdminTpl->assign('icms_blockposition_info', _AM_SYSTEM_BLOCKSPADMIN_INFO); $icmsAdminTpl->display('db:admin/blockspadmin/system_adm_blockspadmin.html'); break; }