<?php
$DEBUG=0;
$serie=20;
$ent="Administration <img src='../img/fleche_droite.png' align='bottom'  border='0'> Rapport WMI";
$ico="../img/intervention.png";
$edition="";
$fiche="";
      $href[0]['lien']= "#";
      $href[0]['id']= "";
      $href[0]['lib']= "";
      $href[1]['lien'] = "form.php?obj=station&idx=";
      $href[1]['id']= "&premier=".$premier."&recherche=".$recherche1;
      $href[1]['lib']= "";
      $href[2]['lien'] = "#";
      $href[2]['id']= "";
      $href[2]['lib']= "";

$table="station left join personnel on station.idutilisateur=personnel.idutilisateur left join service 
on station.idservice=service.idservice left join batiment on station.idbatiment=batiment.idbatiment 
left join tcpip on station.idstation=tcpip.idstation left join modeleelement as ms on station.idsysteme=
ms.idmodele left join element on station.idstation=element.idstation inner join modeleelement as me on element.idmodele=me.idmodele";
//
$hiddenid=1;
$champAffiche=array("station.idstation as id","station.numero","nomstation","adresseip","concat(nom,' ',prenom) as nom","libservice","libbatiment","ms.libmodele as systeme","me.libmodele as element","element.datescan as scanelement","station.datescan as scanstation");
$champRecherche=array("station.numero","nomstation","nom","prenom","libservice","adresseip","element.datescan");
$tri= " order by nom,numero";
$selection=" where (isnull(tcpip.ipmaitre) or tcpip.ipmaitre='v') and (element.datescan<station.datescan and element.dateatelier='0-0-0' and me.classe<>'peripherique')";
// sous formulaire
//$sousformulaire=array("composant","logiciel","peripheriquestation","tcpip","intervention");
//$sousformulaire_class="sousformulaire"; // dans cg => voir customs ???
$sousformulaire_class="sousformulaire_stationmairie";
$soustab="onglets_stationmairie";
?>