[Vtigercrm-commits] [vtiger-commits] r5043 - /vtigercrm/trunk/modules/Webmails/DetailView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat Apr 8 09:00:39 EDT 2006
Author: mmbrich
Date: Sat Apr 8 07:00:37 2006
New Revision: 5043
Log:
little hack to enable attachments in the tag cloud.
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 Sat Apr 8 07:00:37 2006
@@ -76,7 +76,7 @@
elseif ($attachments[$i]["filesize"] > 1024)
$filesize= substr(($attachments[$i]["filesize"]/1024),0,5)." kilobytes";
- $at.=" <tr><td width='100%' nowrap>".$cnt.") <a href='index.php?module=Webmails&action=dlAttachments&mailid=".$mailid."&num=".$i."'>".$fname."</a></b><br><i>".$filesize."</i></td></tr>";
+ $at.=" <tr><td width='100%' nowrap>".$cnt.") <a target='_blank' href='index.php?module=Webmails&action=dlAttachments&mailid=".$mailid."&num=".$i."'>".$fname."</a></b><br><i>".$filesize."</i></td></tr>";
$cnt++;
}
for($i=0;$i<count($inline);$i++) {
@@ -86,8 +86,26 @@
$at.="</table>";
$tmp = (count($inline)+count($attachments));
$atL= $tmp." Attachment(s)";
+
+?>
+<script type="text/javascript">
+function check_tags() {
+ var el = document.getElementById("tagfields");
+ if(el) {
+ window.setTimeout(function() {
+ el.innerHTML = 'Attachments: <?php echo addslashes($at);?>';
+ },2000);
+ } else {
+ window.setTimeout(function() {
+ check_tags();
+ },1000);
+ }
}
-
+check_tags();
+</script>
+<?
+echo $at;
+}
$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));
More information about the vtigercrm-commits
mailing list