<?php
//====================================================================================
// OCS INVENTORY REPORTS
// Copyleft Erwan GOALOU 2010 (erwan(at)ocsinventory-ng(pt)org)
// Web: http://www.ocsinventory-ng.org
//
// 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
//====================================================================================

/*
 * 
 * NOT USE YET
 * 
 */

//require_once('fichierConf.class.php');
$form_name='admin_search';
//$ban_head='no';
//require_once("header.php");
if ($protectedPost['onglet'] != $protectedPost['old_onglet']){
	$onglet=$protectedPost['onglet'];
	$old_onglet=$protectedPost['old_onglet'];
	unset($protectedPost);
	$protectedPost['old_onglet']=$old_onglet;
	$protectedPost['onglet']=$onglet;
}
if ($protectedGet['origine']!= "mach"){
	if (isset($protectedGet['idchecked']) and $protectedGet['idchecked'] != ""){
		$choise_req_selection['REQ']=$l->g(584);
		$choise_req_selection['SEL']=$l->g(585);
		$select_choise=show_modif($choise_req_selection,'CHOISE',2,$form_name);	
	}
	echo "<font color=red><b>";
	if ($protectedPost['CHOISE'] == 'REQ' or $protectedGet['idchecked'] == '' or $protectedPost['CHOISE'] == ''){
		echo $l->g(901);
		$list_id=$_SESSION['OCS']['ID_REQ'];
	}
	if ($protectedPost['CHOISE'] == 'SEL'){
		echo $l->g(902);
		$list_id=$protectedGet['idchecked'];
	}
	
	//gestion tableau
	if (is_array($list_id))
	$list_id=implode(",", $list_id);
}else
$list_id=$protectedGet['idchecked'];

echo "</b></font>";
if (strpos($protectedGet['img'], "config_search.png"))
include ("opt_param.php");
if (strpos($protectedGet['img'], "groups_search.png"))
include ("opt_groups.php");
if (strpos($protectedGet['img'], "tele_search.png"))
include ("opt_pack.php");
if (strpos($protectedGet['img'], "sup_search.png"))
include ("opt_sup.php");

?>
