//---------------------------------------------------------------------------------------------- ?> <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 {?> <a href='?a=3&fic=<?php echo $datas['mtp_iListId'];?>' title='suppr'><img src='../img/delete.png' alt='delete' /></a>
CFunction::redirection("moul_groupe_mail.php?a=5555&id=".$_SESSION['id']); break; case 55 : //Modif valid if(!empty($_GET['id'])) $igp = $_GET['id']; $iNbFic = 0; $iNbMails = 0; $oFics = CTableMoulGrpTmp::select(); $inb = count($oFics); foreach($oFics as $fics){ if($fics['tmp_grp']==0){ CTableMoulGpFic::delete_elm_by_id($fics['tmp_id']); $iNbFic++; } else { $iNbMails += CTableMoulGp::get_iEmail($fics['tmp_fic']); } } CTableGrpMl::update_set($inb-$iNbFic,$iNbMails,$_SESSION['id']); CTableMoulGrpTmp::deletes(); UNSET($_SESSION['id']); CFunction::redirection("moul_groupe_mail.php?a=0"); break; case 555 : //Suppr dans modif if(!empty($_GET['idtmp'])) $idtmp = $_GET['idtmp']; CTableMoulGrpTmp::update($idtmp); CFunction::redirection("moul_groupe_mail.php?a=5555&id=".$_SESSION['id']); break; case 5555 : //Liste dans modif
?> <form action="" method="post" tmt:validate="true"> <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" width="200px"><a href="?order=nom">Fichier initial CSV</a></th> <th align="left" width="80px"><a href="?order=mlt_zDateCreation">Date de création</a></th> <th width="55px">Email Valide</th> <th title="suppr" width="40px"> Suppr </th> <th width="150px">groupe</th> <th width="50px">CheckBox</th> </tr> <?php foreach($tMGp as $ik=>$moulsgrps){ $iMV = CTableMoulGp::get_iEmail($moulsgrps['mlt_iListId']); $date= CTableMoulGp::select_date_fic($moulsgrps['mlt_iListId']); $tgps = CTableMoulGpFic::get_elm_of_fic($moulsgrps['mlt_iListId']); $nomfic = CTableMoulListe::get_nom_by_id($moulsgrps['mlt_iListId']); ?> <tr> <td><?php echo $ik+1;?></td> <td><?php echo $nomfic;?></td> <td><?php echo CDate::date_switch(CDate::formate_date($date)); ?></td> <td><a href="moul_mail_valide.php?iMltListId=<?php echo $moulsgrps['mlt_iListId'] ; ?>"><?php echo $iMV;?></a></td> <td> <?php include('moul_delete_ficgrp.php');?> </td> <td><?php if($tgps) echo CTableGrpMl::get_elm($tgps); else echo "<a>not in group</a>";?></td> <td> <?php if(!$tgps){?> <input class="caseacocher" name="tab_fic[<?php echo $ik ?>]" type="checkbox" id="tab_fic[<?php echo $ik ?>]" value="<?php echo $moulsgrps['mlt_iListId'];?>" />