コード例 #1
0
ファイル: load_mail.php プロジェクト: rakotobe/Rakotobe
<?php
include("../inc/init.php");

if(!empty($_GET['message_number'])) $message_number = $_GET['message_number'];
if(!empty($_GET['passe'])) 			$passe 			= $_GET['passe'];

$imap = new CImap(CTableConfiguration::get_value_by_element('POP_SERVER'), CTableUser::get_email_admin(), $passe);
if(@$imap->connect()) {
	$info 	  = @$imap->get_info($message_number);
	$email_id = $imap->load($message_number);
	echo "Sauvegarde du message " . $message_number;
?>
<script type="text/javascript">
$('first').insert({after:'<tr><td><a href="show_reception.php?id=<?php echo $email_id ?>" target="popup" onclick="popup(this.href, this.target, 800, 600);"><?php echo $email_id ?></a></td><td><?php echo CTableGroupe::get_href($info['from']) ?></td><td><?php echo utf8_encode($info['subject']) ?></td><td><?php echo CDate::date_switch(CDate::formate_date($info['date'])) ?></td><td align="center" class="info etat <?php echo 'etat_0'?>"><div class="bulle"><img src="../img/publish_x.png" alt="Non lu" /> Non lu<br /><a href="reception.php?a=2&id=<?php echo $email_id ?>&etat=1"><img src="../img/publish_g.png" alt="Lu" /> Lu</a><br /><a href="reception.php?a=2&id=<?php echo $email_id ?>&etat=2"><img src="../img/publish_u.png" alt="Archivé" /> Archiv&eacute;</a></div></td></tr>'});
</script>
<?php
} else  {
	echo "Echec de chargement du message " . $message_number;
}
?>

<a href="show_reception.php?id=<?php echo stripslashes($email['id']) ?>" target="popup" onclick="popup(this.href, this.target, '800', '600');"> <?php echo $email['id'] ?> </a>
コード例 #2
0
ファイル: envoi-old.php プロジェクト: rakotobe/Rakotobe
                                <th align="left"><a href="?order=nom">Sujet</a></th>
                                <th><a href="?order=pj">Pj</a></th>
                                <th style="width: 68px">Campagnes</th>
                                <th nowrap="nowrap"><a href="?order=date">Date d'envoi</a></th>
                                <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 echo CTableGroupe::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>
コード例 #3
0
ファイル: envoi.php プロジェクト: rakotobe/Rakotobe
                                <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>