コード例 #1
0
ファイル: index.php プロジェクト: schutterskwartier/flot
                    # change location to view the item
                    $flot->_page_change("/flot-admin/admin/index.php?section=settings");
                    break;
            }
            break;
        default:
            // keep alive - keep user logged in
            // js posts here and sessions is checked keeping them logged in
            break;
    }
    # location change to corresponding get
} else {
    #
    # no post vars, this is a GET request ?
    #
    $s_section = $ufUf->s_get_var_from_allowed("section", array("items", "pictures", "menus", "settings", "errors", "requirements", "oncologies", "flot", "elements"), "items");
    switch ($s_section) {
        case "items":
            $s_action = $ufUf->s_get_var_from_allowed("action", array("edit", "list", "new", "delete"), "list");
            switch ($s_action) {
                case 'edit':
                    $s_page_id = $ufUf->s_get_var('item', false);
                    # menu items; purge from cache, preview, regenerate, delete
                    if ($s_page_id) {
                        # get the item
                        $o_item = $flot->datastore->get_item_data($s_page_id);
                        $o_full_item = $flot->datastore->o_get_full_item($s_page_id);
                        # get the oncology
                        # render a form
                        $Item = new Item($o_item);
                        $Item->_set_full_item($o_full_item);
コード例 #2
0
ファイル: admin_ui.php プロジェクト: schutterskwartier/flot
 function s_admin_header($s_section = "")
 {
     $s_header = "";
     $s_header .= $this->html_admin_headers_base();
     switch ($s_section) {
         case "items":
             $ufUf = new UtilityFunctions();
             $s_action = $ufUf->s_get_var_from_allowed("action", array("edit", "list"), "list");
             switch ($s_action) {
                 case "edit":
                     # ckeditor
                     $s_header .= '<script src="' . S_BASE_EXTENSION . 'flot-admin/external_integrations/ckeditor/ckeditor.js"></script>';
                     # text angular
                     $s_header .= '<script src="' . S_BASE_EXTENSION . 'flot-admin/external_integrations/text_angular/textAngular-sanitize.min.js"></script>';
                     $s_header .= '<script src="' . S_BASE_EXTENSION . 'flot-admin/external_integrations/text_angular/textAngular.min.js"></script>';
                     # general admin js
                     $s_header .= '<script src="' . S_BASE_EXTENSION . 'flot-admin/admin/js/admin_itemedit.js"></script>';
                     $s_header .= $this->html_admin_headers_pictures();
                     break;
                 case "list":
                     $s_header .= '<script src="' . S_BASE_EXTENSION . 'flot-admin/admin/js/admin_item_list.js"></script>';
                     break;
             }
             break;
         case "elements":
             $ufUf = new UtilityFunctions();
             $s_action = $ufUf->s_get_var_from_allowed("action", array("edit", "list"), "list");
             switch ($s_action) {
                 case "edit":
                     # ckeditor
                     $s_header .= '<script src="' . S_BASE_EXTENSION . 'flot-admin/external_integrations/ckeditor/ckeditor.js"></script>';
                     $s_header .= '<script src="' . S_BASE_EXTENSION . 'flot-admin/admin/js/admin_itemedit.js"></script>';
                     $s_header .= $this->html_admin_headers_pictures();
                     break;
                 case "list":
                     $s_header .= '<script src="' . S_BASE_EXTENSION . 'flot-admin/admin/js/admin_item_list.js"></script>';
                     break;
             }
             break;
         case "oncologies":
             $ufUf = new UtilityFunctions();
             $s_action = $ufUf->s_get_var_from_allowed("action", array("edit", "list"), "list");
             switch ($s_action) {
                 case "list":
                     $s_header .= '<script src="' . S_BASE_EXTENSION . 'flot-admin/admin/js/admin_item_list.js"></script>';
                     break;
                 case "edit":
                     $s_header .= '<script src="' . S_BASE_EXTENSION . 'flot-admin/admin/js/admin_oncology_edit.js"></script>';
                     break;
             }
             break;
         case "menus":
             # jquery ui, for sortables
             $s_header .= '<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>';
             // admin js for menus
             $s_header .= '<script src="' . S_BASE_EXTENSION . 'flot-admin/admin/js/admin_menus.js"></script>';
             break;
         case "pictures":
             # general admin js
             $s_header .= $this->html_admin_headers_pictures();
             break;
     }
     $s_header .= '<title>flot - manage your site</title>';
     return $s_header;
 }