예제 #1
0
/**
 * @author asmalindi
 * @copyright 2011
 */
require "SectionModel.php";
$SectionM = new SectionModel();
$Section = new Section();
include "process.php";
if (isset($_POST['submit'])) {
    $sec_id = $_POST['sec_id'];
    if (isset($_POST['sec_title'])) {
        //echo"Register.. 111111111!";
        $sec_title = $_POST['sec_title'];
        //$categorie->setCat_title($cat_title);
        //$CategorieM->addNewCategorie($categorie);
        $SectionM->editSection($sec_id, sec_title, $sec_title);
    }
    if (isset($_POST['sec_url'])) {
        $sec_url = $_POST['sec_url'];
        $SectionM->editSection($sec_id, sec_url, $sec_url);
    }
    if (isset($_POST['sec_order'])) {
        $sec_order = $_POST['sec_order'];
        $SectionM->editSection($sec_id, sec_order, $sec_order);
    }
    if (isset($_POST['sec_despription'])) {
        $sec_despription = $_POST['sec_despription'];
        $SectionM->editSection($sec_id, sec_despription, $sec_despription);
    }
}
?>