[Vtigercrm-commits] [vtiger-commits] r5015 - /vtigercrm/trunk/modules/Webmails/DetailView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Apr 7 23:53:09 EDT 2006
Author: mmbrich
Date: Fri Apr 7 21:53:08 2006
New Revision: 5015
Log:
fixed the value types for the template arrays so that data
displays properly
Modified:
vtigercrm/trunk/modules/Webmails/DetailView.php
Modified: vtigercrm/trunk/modules/Webmails/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Webmails/DetailView.php (original)
+++ vtigercrm/trunk/modules/Webmails/DetailView.php Fri Apr 7 21:53:08 2006
@@ -31,8 +31,8 @@
global $mbox;
$mbox = @imap_open("\{$imapServerAddress/$mail_protocol}$mailbox", $login_username, $secretkey) or die("Connection to server failed");
-$email = new Webmail($mbox, $mailid);
-$from = $email->from;
+$email = new Webmail($mbox, $mailid);
+$from = $email->from;
$subject=$email->subject;
$date=$email->date;
@@ -86,15 +86,19 @@
$at.="</table>";
$tmp = (count($inline)+count($attachments));
$atL= $tmp." Attachment(s)";
-}
-
-$block["Email Information"][] = array("From:"=>array($email->fromname." <".$from.">"=>'0'),"Date & Time Sent:"=>array($date=>'0'));
-$block["Email Information"][] = array("To:"=>array($to=>0),"CC:"=>array($cc_list=>'0'));
-$block["Email Information"][] = array("Reply To:"=>array($reply_to=>0));
-$block["Email Information"][] = array("Subject:"=>array($subject=>'0'));
-//$block["Email Information"][] = array("Related To:"=>array($email->relationship['id']=>'0'));
-$block["Email Information"][] = array("Email Body:"=>array('<iframe src="index.php?module=Webmails&action=body&mailid='.$mailid.'&login_username='.$login_username.'&secretkey='.$secretkey.'&imapServerAddress='.$imapServerAddress.'&mailbox='.$mailbox.'" width="100%" height="350">'.$body.'body</iframe>'=>'0'));
-
+}
+
+
+$block["Email Information"][] = array("From:"=>array("value"=>"<a href='mailto:".$from."'>".$from."</a>"),"Date & Time Sent:"=>array("value"=>$date));
+$block["Email Information"][] = array("To:"=>array("value"=>$to),"CC:"=>array("value"=>$cc_list));
+$block["Email Information"][] = array("Reply To:"=>array("value"=>"<a href='mailto:".$reply_to."'>".$reply_to."</a>"));
+$block["Email Information"][] = array("Subject:"=>array("value"=>$subject));
+//$block["Email Information"][] = array("Related To:"=>array("value"=>$email->relationship['id']));
+//$block["Email Information"][] = array("Email Body:"=>array("ui"=>19,,"value"=>'<iframe src="index.php?module=Webmails&action=body&mailid='.$mailid.'&login_username='.$login_username.'&secretkey='.$secretkey.'&imapServerAddress='.$imapServerAddress.'&mailbox='.$mailbox.'" width="100%" height="350">'.$body.'body</iframe>'));
+
+$block["Email Information"][] = array("Email Body:"=>array("ui"=>82,"value"=>$body));
+
+
echo '<input type="hidden" name="mailid" value="'.$mailid.'">';
//echo '<pre>';print_r($block);echo "</pre>";
More information about the vtigercrm-commits
mailing list