Beispiel #1
0
                                <th nowrap="nowrap"><a href="?order=date">Date d'envoi</a></th>
                            	<?php if ($filtre_etat == -1 || $filtre_etat == 0 || $filtre_etat == 1) { ?>
                                <th width="40px"><a href="?order=nb" title="Nombre d'emails">Nbre</a></th>
                              <?php } ?>
                                <th width="40px"><a href="?order=etat">Etat</a></th>
                                <th>Envoyer</th>
                                <th title="suppr">Publipostage</th>
                                <th title="suppr"> Suppr </th>
                            </tr>
                                <?php
                                $i = 0;
                                while ($email = @mysql_fetch_array($r_email)) {
                                    ?>
                            <tr>
                                <td><a href="show_envoi.php?id=<?php echo $email['id'] ?>" target="popup" onclick="popup(this.href, this.target, '800', '600');"> <?php echo $email['id'] ?> </a></td>
                                <td><?php if ($email['type_envoi'] == TYPE_ENVOI_GROUPE || $email['type_envoi'] == TYPE_ENVOI_USER) {echo CTableGroupe::get_href($email['destinataire']);} else {echo CTableGrGroupe::get_href($email['destinataire']);} ?></td>
                                <td><?php echo CFunction::cut_string($email['nom'], 20); ?></td>
                                <td align="center"><?php echo basename($email['pj']); ?></td>
                                <td>
                                            <?php
                                            if($email['id_campagne'] > 0) {
                                                $obj  	= new CTableCampagne(array('id' => $id));
                                                $campagne = $obj->select_row();
                                                ?>
                                    <a href="campagne.php?a=5&id=<?php echo $email['id_campagne']; ?>"><?php echo $email['id_campagne']; ?></a>
                                            <?php
                                            }
                                            ?>
                                </td>

                                <td align="center"><?php echo CDate::date_switch (CDate::formate_date($email['date'])) ?></td>