. */ /* */ /*************************************************************************************/ require_once("pre.php"); require_once("auth.php"); ?> charger_ref($ref); $client->pourcentage = $pourcentage; $client->raison = $raison; $client->entreprise = $entreprise; $client->siret = $siret; $client->intracom = $intracom; $client->nom = $nom; $client->prenom = $prenom; $client->adresse1 = $adresse1; $client->adresse2 = $adresse2; $client->adresse3 = $adresse3; $client->cpostal = $cpostal; $client->ville = $ville; $client->pays = $pays; $client->telfixe = $telfixe; $client->telport = $telport; $client->pourcentage = $pourcentage; if($type != "") $client->type=1; else $client->type=0; if( filter_var($email, FILTER_VALIDATE_EMAIL) && $email != $client->email && !$client->existe($email)) { $client->email = strip_tags($email); } $client->maj(); ActionsModules::instance()->appel_module("modcli", $client); redirige("client_visualiser.php?ref=" . $ref); } function supprimer($ref){ $client = new Client(); $client->charger_ref($ref); $client->delete(); ActionsModules::instance()->appel_module("supcli", $client); redirige("client.php"); } function supprcmd($id) { $tempcmd = new Commande(); if ($tempcmd->charger($id)) $tempcmd->annuler(); } $client = new Client(); $client->charger_ref($ref); $raisondesc = new Raisondesc($client->raison); if($client->parrain){ $parrain = new Client(); $parrain->charger_id($client->parrain); } $paysdesc = new Paysdesc(); $paysdesc->charger($client->pays); ?>

entreprise); ?>
siret); ?>
intracom); ?>
long); ?>
nom); ?>
prenom); ?>
adresse1); ?>
adresse2); ?>
2 adresse3); ?>
cpostal); ?>
ville); ?>
titre); ?>
telfixe); ?>
telport); ?>
email); ?>
pourcentage); ?> %
prenom . " " . $parrain->nom; ?>
inclure_module_admin("clientvisualiser"); ?>
charger_ref($ref); $query = "select * from $commande->table where client='" . $client->id . "' order by date desc"; $resul = $commande->query($query); while($commande && $cmd = $commande->fetch_object($resul, 'Commande')) { $statutdesc = new Statutdesc(); $statutdesc->charger($cmd->statut); $total = $cmd->total(true, true); $date = strftime("%d/%m/%Y %H:%M:%S", strtotime($cmd->date)); $fond= $i++%2 ? "claire" : "fonce"; ?>
  • ref); ?>
  • titre); ?>
  • statut != Commande::ANNULE) { ?>
table where parrain=" . $client->id; $resul = $listepar->query($query); $i=0; while($resul && $parrain = $listepar->fetch_object($resul, 'Client')) { if(!($i%2)) $fond=$i++%2 ? "claire" : "fonce"; ?>