<?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
 ********************************************************************************/

$annee_p=$_SESSION['annee_scolaire']+1;
$tableau_variable['news'] = Array(
  "id" => 				  Array( "type" => "single",
								           "nom" => "id",
								           "obligatoire" => "0",
								           "longueur" => "5"),
  "id_prof" => 		  Array( "type" => "single",
								           "nom" => "id_prof",
								           "obligatoire" => "0",
								           "longueur" => "5"),
  "date" =>         Array( "type" => "date",
							 	           "nom" => "date",
								           "min"=> $_SESSION['annee_scolaire']."0801",
								           "max"=> $annee_p."0731",
                           "obligatoire"=>"1"),
  "cible" =>        Array( "type" => "liste",
                           "obligatoire"=>"0",
                           "nom" => "cible",
						   "nomliste" => "cible_news"),
  "titre" => 	      Array( "type" => "varchar_long",
								       "nom" => "titre",
						               "majuscule"=>"0",
								       "obligatoire" => "1",
								       "longueur" => "255"),
  "contenu" =>      Array( "type" => "editeur",
									 "placer" => "1",
								     "obligatoire" => "0",
								     "largeur" => "100",
								     "hauteur" => "7",
								     "nom" => "contenu")
);

$tableau_variable['taches'] = Array(
  "id" => 			   Array( "type" => "single",
						      "nom" => "id",
						      "obligatoire" => "0",
						      "longueur" => "50"),
  "id_util" => 		   Array( "type" => "single",
						      "nom" => "id_util",
						      "obligatoire" => "0",
						      "longueur" => "20"),
  "type_util" => 	   Array( "type" => "single",
						      "nom" => "type_util",
						      "obligatoire" => "0",
						      "longueur" => "1"),
  "date_echeance" =>   Array( "type" => "date",
						      "nom" => "date_echeance",
                              "obligatoire"=>"0"),
  "heure_echeance" =>  Array( "type" => "heure",
						      "nom" => "heure_echeance",
                              "obligatoire"=>"0"),
  "priorite" =>        Array( "type" => "liste",
                              "obligatoire"=>"0",
                              "nom" => "priorite",
						      "nomliste" => "tache_priorite"),
  "etat" =>            Array( "type" => "liste",
                              "obligatoire"=>"0",
                              "nom" => "etat",
						      "nomliste" => "tache_etat"),
  "titre" => 	       Array( "type" => "varchar_long",
							  "nom" => "titre",
						      "majuscule"=>"0",
							  "obligatoire" => "1",
							  "longueur" => "255"),
  "tache" =>      	   Array( "type" => "texte",
						      "obligatoire" => "0",
						      "largeur" => "100",
						      "hauteur" => "7",
						      "nom" => "tache")
);
?>