//====================================================================================
// OCS INVENTORY REPORTS
// Copyleft Pierre LEMMET 2005
// Web: http://ocsinventory.sourceforge.net
//
// This code is open source and may be copied and modified as long as the source
// code is always made freely available.
// Please refer to the General Public Licence http://www.gnu.org/ or Licence.txt
//====================================================================================
//Modified on 10/8/2005 Didier Liroulet
require ('fichierConf.class.php');
if( ! $_GET["multi"] )
{
include('req.class.php');
include('preferences.php');
}
switch ($_GET["typeDemande"]) :
case "ajout" : formulaire("","","","","");
break;
case "modif" : modifier();
break;
case "suppr" : supprimer();
break;
case "enreModif" : enregistrer();
break;
case "enreAjout" : enregistrer();
break;
default :
if($_GET["id"])
mysql_query("delete from regconfig where id='".$_GET["id"]."'", $_SESSION["writeServer"]) or die(mysql_error($_SESSION["writeServer"]));
echo " ";
$lbl=$l->g(2); //Nom de la requete
$sql = "";
$whereId = "id";
$linkId = "id";
$select = array("name"=>"name" ,"regtree"=>"regtree", "regkey"=>"regkey", "regvalue"=>"regvalue");
$selectPrelim = array( "id"=>"id" );
$from = "regconfig";
$fromPrelim = "";
$group = "";
$order = "";
$countId = "id";
$req=new Req($lbl,$whereId,$linkId,$sql,$select,$selectPrelim,$from,$fromPrelim,$group,$order,$countId);
printEnTete($requete->label);
ShowResults($req,true);
echo "
"; echo " "; echo " "; echo ""; echo " |