Nouvelles méthodes getListeClients

This commit is contained in:
Michael RICOIS 2011-01-13 14:35:43 +00:00
parent f35ea7b86e
commit 9b44e1ee1c

View File

@ -1,6 +1,8 @@
<?php
$idClient = 0; // On veut tous les clients
$listeClients = scoresws_getListeClients($idClient);
$ws = new WsScores();
$reponse = $ws->getListeClients($idClient);
$listeClients = $reponse->result->item;
?>
<style type="text/css">
#utilisateur { border-collapse:collapse; width:100%;}
@ -16,66 +18,14 @@ $listeClients = scoresws_getListeClients($idClient);
<h2>Liste des clients</h2>
<div class="blockh2">
<table id="utilisateur" >
<?php
/*
['idClient'] =>
['nom'] =>
['actif'] =>
['test'] =>
['racineLogin'] =>
['siren'] =>
['nic'] =>
['tva'] =>
['editerFacture'] =>
['fact_detail'] =>
['fac_dest'] =>
['fac_adr1'] =>
['fac_adr2'] =>
['fac_adr3'] =>
['fac_email'] =>
['fac_tel'] =>
['fact_rib'] =>
['liv_dest'] =>
['liv_adr1'] =>
['liv_adr2'] =>
['liv_adr3'] =>
['liv_email'] =>
['liv_tel'] =>
['droits'] =>
['filtres_ip'] =>
['dateInsert'] =>
['dateUpdate'] =>
['respComSD'] =>
['typeContrat'] =>
['dateSignature'] =>
['typeAcces'] =>
['typeScore'] =>
['accesPieces'] =>
['accesKbis'] =>
['accesInvestigations'] =>
['accesInternationnal'] =>
['accesEnquetes'] =>
['miseSousSurveillance'] =>
['forfaitExtranetPeriode'] =>
['forfaitExtranetMontant'] =>
['reconductionAuto'] =>
['remarque'] =>
['forfaitPiecesNb'] =>
['forfaitPiecesMt'] =>
['forfaitPiecesDep'] =>
['forfaitInvestigNb'] =>
['forfaitInvestigMt'] =>
['forfaitInvestigDep'] =>
['tarifIndiscore'] =>
*/
?>
<tr class="border titre">
<td class="StyleInfoLib">Nom</td>
<td class="StyleInfoLib">Informations</td>
<td class="StyleInfoLib">Actions</td>
</tr>
<?php
if (is_array($listeClients) && count($listeClients) > 0) {
FB::log($listeClients, 'listeClients');
if (count($listeClients) > 0) {
foreach ($listeClients as $cl) {
if ($cl->actif == 'Oui') {
$class = 'actif';