Example #1
0
     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');
     $article = new cms_article();
     $article->get_from_form();
     $article->save();
<?php

// +-------------------------------------------------+
// � 2002-2011 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: cms_articles_list.inc.php,v 1.1 2011-09-14 08:44:12 arenou Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
//require_once($class_path."/cms/cms_editorial_tree.class.php");
require_once $class_path . "/cms/cms_articles.class.php";
print cms_articles::get_listing();