示例#1
0
     print $result;
     break;
 case "get_tree":
     header('Content-type: text/html;charset=' . $charset);
     print cms_editorial_tree::get_tree();
     break;
 case "get_infos":
     header('Content-type: text/html;charset=' . $charset);
     switch ($type) {
         case "section":
             $section = new cms_section($id);
             print $section->get_ajax_form("cms_section_edit", "cms_section_edit");
             break;
         case "article":
             $article = new cms_article($id);
             print $article->get_ajax_form("cms_article_edit", "cms_article_edit");
             break;
         case "list_articles":
             $articles = new cms_articles($id);
             print $articles->get_tab();
             break;
     }
     break;
 case "save_section":
     //header('Content-type: text/html;charset=iso-8859-1');
     $section = new cms_section();
     $section->get_from_form();
     $section->save();
     break;
 case "save_article":
     //header('Content-type: text/html;charset=iso-8859-1');