<?php
$DEBUG=0;
$serie=20;
$ent="Interventions cloturées<img src='../img/fleche_droite.png' align='bottom'  border='0'> Périphériques";
$ico="../img/intervention.png";
$edition="";
$fiche="";
      $href[0]['lien']= "#";
      $href[0]['id']= "";
      $href[0]['lib']= "";
      $href[1]['lien'] = "#"; //"form.php?obj=materiel&idx="; 
      $href[1]['id']= ""; //"&premier=".$premier."&recherche=".$recherche1;
      $href[1]['lib']= "";
      $href[2]['lien'] = "#";
      $href[2]['id']= "";
      $href[2]['lib']= "";

$table="element as e left join intervention as i on e.idelement=i.idperipherique left join personnel as p1 on i.iddemandeur=p1.idutilisateur left join personnel as p2 on i.idintervenant=p2.idutilisateur inner join etatintervention as et on i.idetatintervention=et.idetat inner join typeintervention as ty on i.idtype=ty.idtype inner join modeleelement as me on e.idmodele=me.idmodele ";
//
$hiddenid=1;
$champAffiche=array("e.idelement as id","e.numero as periph","me.libmodele","e.numserie","libtype as type","concat(p1.nom,' ',p1.prenom) as demandeur","concat(p2.nom,' ',p2.prenom) as technicien","dateouverture","observations","libetat");
$champRecherche=array("e.numero","dateouverture");
$tri= " order by dateouverture desc,e.numero";
$selection=" where i.idetatintervention = 3";
// sous formulaire
//$sousformulaire=array("composant","logiciel","peripheriquestation","tcpip","intervention");
//$sousformulaire_class="sousformulaire"; // dans cg => voir customs ???
$sousformulaire_class="sousformulaire_stationmairie";
$soustab="onglets_stationmairie";
?>