<?php if ($_SESSION['stats'] != 1) { echo "<script language=javascript> alert('Vous devez connecter .!');\n document.location.href='../View/index.php';\n </script> "; } else { include '../Model/fonction.php'; $u = new fonction("", ""); $u->print_select(); }
<?php if ($_SESSION['stats'] != 1) { echo "<script language=javascript> alert('Vous devez connecter .!');\n document.location.href='../View/index.php';\n </script> "; } else { include '../Model/fonction.php'; if ($_POST) { $p = new fonction("", ""); $p->set_code($_POST['code_textbox']); $p->set_libelle($_POST['libelle_textbox']); $p->insert_fonction(); } }
<?php if ($_SESSION['stats'] != 1) { echo "<script language=javascript> alert('Vous devez connecter .!');\n document.location.href='../View/index.php';\n </script> "; } else { /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ include '../Model/fonction.php'; $f = new fonction("", ""); $f->select_fonction(); }