[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 /********************************************************************************* 3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 * 10 ********************************************************************************/ 11 require_once ('include/utils/UserInfoUtil.php'); 12 require_once ("modules/Webmails/Webmail.php"); 13 require_once ("modules/Webmails/MailBox.php"); 14 15 global $app_strings; 16 global $mod_strings; 17 18 if(isset($_REQUEST["mailbox"]) && $_REQUEST["mailbox"] != "") { $mailbox=$_REQUEST["mailbox"];} else { $mailbox = "INBOX";} 19 if(isset($_REQUEST["mailid"]) && $_REQUEST["mailid"] != "") { $mailid=$_REQUEST["mailid"];} else { echo "ERROR";flush();exit();} 20 21 global $MailBox; 22 $MailBox = new MailBox($mailbox); 23 24 $webmail = new Webmail($MailBox->mbox,$mailid); 25 $elist = $MailBox->mailList["overview"][($mailid-1)]; 26 27 echo '<table width="100%" cellpadding="0" cellspacing="0" border="0" class="previewWindow"><tr>'; 28 29 echo '<td>'; 30 31 echo '<table border="0" width="100%" cellpadding="0" cellspacing="0">'; 32 echo '<tr><td width="10%">From:</td><td>'.$elist->from.'</td></tr>'; 33 echo '<tr><td width="10%">To:</td><td>'.$elist->to.'</td></tr>'; 34 echo '<tr><td width="10%">Subject:</td><td>'.$elist->subject.'</td></tr>'; 35 echo '<tr><td width="10%">Date:</td><td>'.$elist->date.'</td></tr>'; 36 echo '</table>'; 37 38 echo '</td></tr>'; 39 40 $webmail->loadMail(); 41 42 echo '<tr><td align="center"><iframe src="index.php?module=Webmails&action=body&mailid='.$mailid.'&mailbox='.$mailbox.'" width="100%" height="450" frameborder="0" style="border:1px solid gray">No Iframes supported</iframe></td></tr>'; 43 44 echo "<tr><td><p style='font-weight:bold'>Email Attachments:</p></td></tr>"; 45 46 foreach($webmail->attachments as $key=>$value) { 47 echo '<tr><td>'.($key+1).') <a href="index.php?module=Webmails&action=dlAttachments&num='.$key.'&mailid='.$mailid.'&mailbox='.$mailbox.'" target="_blank">'.$value["filename"]."</a></td></tr>"; 48 } 49 echo '</table>'; 50 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |