<th><a href="?order=heure">Horaire</a></th> <th><a href="?order=type">Type</a></th> <th>Nom Utilisateur</th> <th><a href="?order=prenom">Prenom</a></th> <th>Pays</th> <th align="left"><a href="?order=telephone">Téléphone</a></th> <th align="left">Com.</th> <th><a href="?order=etat">Effectué</a></th> <th>Modif</th> <th title="suppr"> Suppr </th> </tr> <?php $i = 0; while ($rdv = mysql_fetch_array($r_rdv)) { $tuser = new CTableUser(array('id'=>$rdv['iduser'])); $user = $tuser->select_row(); ?> <tr> <td align="center"><a href="?a=5&id=<?php echo $rdv['id'] ?>"><?php echo $rdv['id'] ?></a></td> <td><?php echo $rdv['nom']; ?></td> <td align="center"><?php echo CDate::date_switch(CDate::formate_date($rdv['date'])) ?></td> <td align="center"><?php echo $rdv['heure'] ?></td> <td align="center"><?php echo $rdv['type']==0 ? "Téléphone" : ($rdv['type']==1 ? "Skype" : "Domicile") ?></td> <td align="center"><?php echo @$rdv['nomuser'] ?></td> <td align="center"><?php echo @$rdv['prenom'] ?></td> <td style="text-align: center;"><?php echo $user['pays']; ?></td> <td><?php echo @$rdv['telephone'] ?></td> <?php if($user['commentaire']) { ?> <td style="text-align: center;">
} $tab_user_old = CTableGroupe::get_array_id_user(1); $tab_user_new = array_unique(array_merge($tab_user_old, array($id))); $liste_user_new = implode("|", $tab_user_new); $groupe = new CTableGroupe(array('id'=>1, 'text' => $liste_user_new)); $groupe->update(); $msginfo = "utilisateur bien ajouté"; $a = 0; break; case 5 : // Modifier 1 if(!empty($_GET['id'])) $id = $_GET['id']; $tuse = new CTableUser(array('id' => $id)); $use = $tuse->select_row(); $login = $use['login']; $passe = $use['passe']; $etat = $use['etat']; $type = $use['type']; $civilite = $use['civilite']; $nom = $use['nom']; $prenom = $use['prenom']; $adresse = $use['adresse']; $cp = $use['cp']; $ville = $use['ville']; $pays = $use['pays']; $email = $use['email']; $telephone = $use['telephone']; $mobile = $use['mobile']; $societe = $use['societe'];