<?php

/**
 * @author asmalindi
 * @copyright 2011
 */
require "SectionCategorieModel.php";
$sectionCategorieM = new SectionCategorieModel();
include "process.php";
//$categorie = new Categorie();
?>
<head>
<link href="menu.css" rel="stylesheet" type="text/css" />

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.js"></script>
<script type="text/javascript" src="menu.js"></script>
<style type="text/css">
<!--
    body,
    html {
        margin:0;
        padding:0;
        color:#000;
        background:#a7a09a;
    }
    
    #wrap {
        width:750px;
        margin:0 auto;
        background:#99c;
    }
<?php

/**
 * @author asmalindi
 * @copyright 2011
 */
require "CategorieModel.php";
require "SectionModel.php";
require "SectionCategorieModel.php";
include "process.php";
$SectionM = new SectionModel();
$CategorieM = new CategorieModel();
$sectionCategorieM = new SectionCategorieModel();
$sectionCategorie = new SectionCategorie();
$categorie = new Categorie();
$Section = new Section();
include "process.php";
if (isset($_POST['submit'])) {
    //  $cati= $_POST['cat_id'];
    if (isset($_POST['cat_title'])) {
        //echo"Register.. 111111111!";
        $category = $_POST['category'];
        //$categorie->setCat_title($cat_title);
        //$CategorieM->addNewCategorie($categorie);
        $sectionCategorieM->editSectionCategorieModel($cati, cat_id, category);
    }
    if (isset($_POST['section'])) {
        $section = $_POST['section'];
        $sectionCategorieM->editSectionCategorieModel($cati, sec_id, $section);
    }
}
<?php

/**
 * @author asmalindi
 * @copyright 2011
 */
require "CategorieModel.php";
require "SectionModel.php";
require "SectionCategorieModel.php";
$SectionM = new SectionModel();
$CategorieM = new CategorieModel();
$sectionCategorieM = new SectionCategorieModel();
$sectionCategorie = new SectionCategorie();
$categorie = new Categorie();
$Section = new Section();
include "process.php";
if (isset($_POST['submit'])) {
    if (isset($_POST['category']) && isset($_POST['section'])) {
        //echo"Register.. 111111111!";
        $category = $_POST['category'];
        $section = $_POST['section'];
        $sectionCategorie->setCat_id($category);
        $sectionCategorie->setSec_id($section);
        $sectionCategorieM->addNewSectionCategorieeModel($sectionCategorie);
    } else {
        //echo"Register.. 222222222!";
    }
}
?>
<head>
<link href="menu.css" rel="stylesheet" type="text/css" />
<?php

/**
 * @author asmalindi
 * @copyright 2011
 */
require "PostModel.php";
require "SectionCategorieModel.php";
require "CategorieModel.php";
$postM = new PostModel();
$SectionCategorieM = new SectionCategorieModel();
$CategorieM = new CategorieModel();
// $post = new Post();
//$sectionM = new SectionModel();
//$section = new section();
if (isset($_GET['secno'])) {
    $secNow = $_GET['secno'];
} else {
    $secNow = 1;
}
?>
   
  <?php 
echo "<div id='leftColumn-layout1'>";
if (isset($_GET['catno'])) {
    $catNow = $_GET['catno'];
    $post = $postM->getPostByCat($catNow);
    echo '<h2>' . $post->getPost_title() . '</h2>' . '<p>' . $post->getPostcontent() . '<p>';
} else {
    $cID = $SectionCategorieM->getCategorieBySection($secNow);
    for ($y = 1; $y - 1 < sizeof($cID); $y++) {