// LISTE //---------------------------------------------------------------------------------------------- ?> <table style="width: 875px; margin-left: 1px;" border="1" cellpadding="0" cellspacing="0"> <tr align="center"> <th align="left" width="40px">Num</th> <th align="left"><a href="?order=nom">Fichier</a></th> <th align="left" width="100px"><a href="?order=mtp_zDateCreation">Date de création</a></th> <th width="80px">Emails initiale</th> <th width="80px">Email Valide</th> <th width="40px">Suppr</th> </tr> <?php foreach($oDatas as $ikey=>$datas){ $iNbml = CTableMoultmp::get_iEmail($datas['mtp_iListId']); $zDate = CTableMoultmp::select_date($datas['mtp_iListId']); $iNbmlVl = CTableMoulGp::get_iEmail($datas['mtp_iListId']); $zFichier = CTableMoulListe::get_nom_by_id($datas['mtp_iListId']); ?> <tr> <td><?php echo$ikey+1;?></td> <td><?php echo $zFichier ;?></td> <td><?php echo CDate::date_switch(CDate::formate_date($zDate));?></td> <td><?php echo $iNbml;?></td> <td><?php echo $iNbmlVl;?></td> <td> <?php if($a == 3 ){ if($datas['mtp_iListId'] == $zFic){?> <a href='?a=33&fic=<?php echo $datas['mtp_iListId'];?>' title='suppr'>ok?</a> <?php } else {?>
TRAITEMENTS ----------------------------------------------------------------------*/ switch ($a) { case 0 : // Afficher break; case 3 : // Suppr if(!empty($_GET['fic'])) $fic = $_GET['fic']; break; case 33 : // Suppr Validation if(!empty($_GET['fic'])) $fic = $_GET['fic']; CTableMoulListe::delete($fic); CTableMoulGp::deletes($fic); CTableMoultmp::deletes($fic); CFunction::redirection("moul_groupe.php?a=0"); break; case 4 : $a = 0; break; case 6 : // Filtrer nbr par page if(!empty($_GET['iNpp'])) $iNpp = $_GET['iNpp']; $_SESSION['iNpp'] = $iNpp; break; case 66 : // Filtre groupage if(!empty($_GET['grp'])) $grp = $_GET['grp']; $_SESSION['grp'] = $grp;