<?php
/*********************************************************************************
 * Gest'Ecole is a school management software developped by
 * DOX Conception Copyright (C) 2012-2013 DOX Conception
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the license published by DOX Conception.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY.  See the Software License for more details.
 * 
 * You should have received a copy of the software license along with
 * this program; if not, see:
 * http://www.doxconception.com/index.php/licence-de-gestecole.html
 ********************************************************************************/

  $parametre=$_POST['param'];
  $subpanel=$_POST['panneau'];
  $colonne=$_POST['colonne'];
  $titre=$_POST['titre'];
  $req=mysql_query("SELECT * FROM `accueil_perso` WHERE id_util='".$_SESSION['id_util']."' AND colonne='$colonne' ORDER BY ordre DESC");
  $ordre=mysql_result($req,0,'ordre')+1;
  $id=Construit_Id("accueil_perso",10);
  $req=mysql_query("INSERT INTO `accueil_perso` (id,id_util,subpanel,titre,ordre,parametre,colonne) VALUES ('$id','".$_SESSION['id_util']."','$subpanel','$titre','$ordre','$parametre','$colonne')");
?>