示例#1
0
 public function addArticle()
 {
     require_once $_SERVER['DOCUMENT_ROOT'] . "/imie/boutique/views/admin/addArticle.php";
     if (!empty($_POST)) {
         $nom = htmlspecialchars($_POST['nom']);
         $prix = htmlspecialchars($_POST['prix']);
         $id_Marque = htmlspecialchars($_POST['id_Marque']);
         $id_SousCategorie = htmlspecialchars($_POST['id_SousCategorie']);
         $description = htmlspecialchars($_POST['description']);
         $img = htmlspecialchars($_POST['img']);
         $article = new Model_Article();
         $NewArticle = $article->addArticle($nom, $prix, $id_Marque, $id_SousCategorie, $description, $img);
         require_once $_SERVER['DOCUMENT_ROOT'] . "imie/boutique/views/admin/addArticleTrue.php";
     }
 }
示例#2
0
 public function addArticle()
 {
     require_once $_SERVER['DOCUMENT_ROOT'] . "IMIE/Equipedia/views/admins/addarticle.php";
     if (!empty($_POST)) {
         $prenom = htmlspecialchars($_POST['prenom']);
         $description = htmlspecialchars($_POST['description']);
         $prix = htmlspecialchars($_POST['prix']);
         $age = htmlspecialchars($_POST['age']);
         $robe = htmlspecialchars($_POST['robe']);
         $info_race = htmlspecialchars($_POST['info_race']);
         $papier = htmlspecialchars($_POST['papier']);
         $id_mere = htmlspecialchars($_POST['id_mere']);
         $prenom_mere = htmlspecialchars($_POST['prenom_mere']);
         $race = htmlspecialchars($_POST['race']);
         $id_pere = htmlspecialchars($_POST['id_pere']);
         $prenom_pere = htmlspecialchars($_POST['prenom_pere']);
         $race_pere = htmlspecialchars($_POST['race_pere']);
         $articles = new Model_Article();
         $addArticle = $articles->addArticle($prenom, $description, $prix, $age, $robe, $info_race, $papier, $id_mere, $prenom_mere, $race, $id_pere, $prenom_pere, $race_pere);
     }
 }