コード例 #1
0
ファイル: sysadmin.php プロジェクト: nubissurveying/nubis
 function showBatchEditorRes()
 {
     /* update last page */
     $_SESSION['LASTPAGE'] = substr($_SESSION['LASTPAGE'], 0, strripos($_SESSION['LASTPAGE'], "res"));
     $displaySysAdmin = new DisplaySysAdmin();
     $main = loadvar("vrfiltermode_batch");
     $_SESSION['VRFILTERMODE_BATCH'] = $main;
     $action = loadvar("batchaction");
     $selected = loadvar("selected");
     if ($selected == "") {
         switch ($main) {
             // variable action
             case 0:
                 $content = $displaySysAdmin->displayWarning(Language::messageToolsBatchEditorNotSelected(Language::labelVariablesLower()));
                 break;
                 // type action
             // type action
             case 1:
                 $content = $displaySysAdmin->displayWarning(Language::messageToolsBatchEditorNotSelected(Language::labelTypesLower()));
                 break;
                 // group action
             // group action
             case 2:
                 $content = $displaySysAdmin->displayWarning(Language::messageToolsBatchEditorNotSelected(Language::labelGroupsLower()));
                 break;
                 // section action
             // section action
             case 3:
                 $content = $displaySysAdmin->displayWarning(Language::messageToolsBatchEditorNotSelected(Language::labelSectionsLower()));
                 break;
         }
     } else {
         switch ($main) {
             // variable action
             case 0:
                 $variablecookievalue = $_COOKIE['uscicvariablecookie'];
                 $content = $this->handleVariableAction($selected, $action, $variablecookievalue);
                 break;
                 // type action
             // type action
             case 1:
                 $typecookievalue = $_COOKIE['uscictypecookie'];
                 $content = $this->handleTypeAction($selected, $action, $typecookievalue);
                 break;
                 // group action
             // group action
             case 2:
                 $groupcookievalue = $_COOKIE['uscicgroupcookie'];
                 $content = $this->handleGroupAction($selected, $action, $groupcookievalue);
                 break;
                 // section action
             // section action
             case 3:
                 $sectioncookievalue = $_COOKIE['uscicsectioncookie'];
                 $content = $this->handleSectionAction($selected, $action, $sectioncookievalue);
                 break;
         }
     }
     //echo $content;
     return $displaySysAdmin->showBatchEditor($content, $variablecookievalue, $typecookievalue, $groupcookievalue, $sectioncookievalue);
 }