</ul> <ul class="ligne_claire_BlocDescription"> <li class="designation" style="width:290px;"><?php echo trad('Telephone', 'admin'); ?> </li> <li><?php echo $adr->tel; ?> </li> </ul> </div> <?php $adr = new Venteadr(); $adr->charger($commande->adrlivr); $nompays = new Paysdesc(); $nompays->charger($adr->pays); ?> <div class="bordure_bottom" style="margin:0 0 10px 0;"> <div class="entete_liste_client"> <div class="titre"><?php echo trad('ADRESSE_LIVRAISON', 'admin'); ?> </div> </div> <ul class="ligne_claire_BlocDescription" style="background-image: url(gfx/degrade_ligne1.png); background-repeat: repeat-x;"> <li class="designation" style="width:290px; background-image: url(gfx/degrade_ligne1.png); background-repeat: repeat-x;">Société</li> <li><?php echo $adr->entreprise; ?>
public function editVenteAdr($id, $raison, $entreprise, $nom, $prenom, $adresse1, $adresse2, $adresse3, $cpostal, $ville, $tel, $pays) { $addressToEdit = new Venteadr(); if ($addressToEdit->charger($id)) { $addressToEdit->raison = $raison; $addressToEdit->entreprise = $entreprise; $addressToEdit->prenom = $prenom; $addressToEdit->nom = $nom; $addressToEdit->adresse1 = $adresse1; $addressToEdit->adresse2 = $adresse2; $addressToEdit->adresse3 = $adresse3; $addressToEdit->cpostal = $cpostal; $addressToEdit->ville = $ville; $addressToEdit->tel = $tel; $addressToEdit->pays = $pays; if ($addressToEdit->raison != "" && $addressToEdit->prenom != "" && $addressToEdit->nom != "" && $addressToEdit->adresse1 != "" && $addressToEdit->cpostal != "" && $addressToEdit->ville != "" && $addressToEdit->pays != "") { $addressToEdit->maj(); ActionsModules::instance()->appel_module("apres_modifierventeadr", $addressToEdit); } else { throw new TheliaAdminException("impossible to edit venteadr", TheliaAdminException::ORDER_VENTEADR_EDIT_ERROR); } } $this->redirect(); }