コード例 #1
0
             ajax_http_send_response($cms_pages->get_list($cms_build_pages_ajax_tpl, $cms_build_pages_tpl_item));
             break;
         case "edit":
             $cms_page = new cms_page($id);
             ajax_http_send_response($cms_page->get_form(1));
             break;
         case "page_save_classement":
             $cms = new cms_page();
             $cms->save_page_classement($id_page, $classement);
             $cms_pages = new cms_pages();
             ajax_http_send_response($cms_pages->get_list($cms_build_pages_ajax_tpl, $cms_build_pages_tpl_item));
             break;
         case "del":
             $cms_page = new cms_page($id);
             $cms_page->delete();
             $cms_pages = new cms_pages();
             ajax_http_send_response($cms_pages->get_list($cms_build_pages_ajax_tpl, $cms_build_pages_tpl_item));
             break;
     }
     break;
 case "versions":
     switch ($sub) {
         case "save":
             $cms_build = new cms_build();
             $cms_build->save_version_form($id);
             ajax_http_send_response($cms_build->build_versions_list_ajax());
             break;
         case "del_version":
             $cms_build = new cms_build();
             ajax_http_send_response($cms_build->version_delete($id));
             break;
コード例 #2
0
<?php

// +-------------------------------------------------+
// © 2002-2011 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: cms_pages_list.inc.php,v 1.1 2012-03-05 16:25:01 ngantier Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
require_once $class_path . "/cms/cms_pages.class.php";
$pages = new cms_pages();
print $pages->get_list();