Example #1
0
 switch ($clean_op) {
     case "clone":
         icms_cp_header();
         editcontent($clean_content_id, true);
         break;
     case "mod":
         icms_cp_header();
         editcontent($clean_content_id, false, $clean_content_pid);
         break;
     case "addcontent":
         $controller = new icms_ipf_Controller($content_content_handler);
         $controller->storeFromDefaultForm(_AM_CONTENT_CONTENT_CREATED, _AM_CONTENT_CONTENT_MODIFIED);
         break;
     case "del":
         $controller = new icms_ipf_Controller($content_content_handler);
         $controller->handleObjectDeletion();
         break;
     case "view":
         $contentObj = $content_content_handler->get($clean_content_id);
         icms_cp_header();
         icms::$module->displayAdminMenu(0, _AM_CONTENT_CONTENTS . " > " . _PREVIEW . ' > ' . $contentObj->getVar('content_title'));
         $icmsAdminTpl->assign('content_content_singleview', $contentObj->displaySingleObject(true, false, array('edit', 'delete')));
         $icmsAdminTpl->display('db:content_admin_content.html');
         break;
     case "changedField":
         foreach ($_POST['mod_content_Content_objects'] as $k => $v) {
             $changed = false;
             $obj = $content_content_handler->get($v);
             if ($obj->getVar('content_status', 'e') != $_POST['content_status'][$k]) {
                 $obj->setVar('content_status', (int) $_POST['content_status'][$k]);
                 $changed = true;