[Vtigercrm-commits] [vtiger-commits] r10940 - in /vtigercrm/branches/5.0.3: Smarty/templates/ modules/Webmails/ themes/images/

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed May 16 06:37:31 EDT 2007


Author: richie
Date: Wed May 16 04:37:02 2007
New Revision: 10940

Log:
* Changes has been done for Webmails UI

Added:
    vtigercrm/branches/5.0.3/themes/images/attachments.gif   (with props)
    vtigercrm/branches/5.0.3/themes/images/important1.gif   (with props)
    vtigercrm/branches/5.0.3/themes/images/important2.gif   (with props)
    vtigercrm/branches/5.0.3/themes/images/replymail.gif   (with props)
    vtigercrm/branches/5.0.3/themes/images/webmail_settings.gif   (with props)
Modified:
    vtigercrm/branches/5.0.3/Smarty/templates/Webmails.tpl
    vtigercrm/branches/5.0.3/modules/Webmails/ListView.php
    vtigercrm/branches/5.0.3/modules/Webmails/MailParse.php
    vtigercrm/branches/5.0.3/modules/Webmails/Webmails.js
    vtigercrm/branches/5.0.3/themes/images/newmail.gif
    vtigercrm/branches/5.0.3/themes/images/openmail.gif

Modified: vtigercrm/branches/5.0.3/Smarty/templates/Webmails.tpl
==============================================================================
--- vtigercrm/branches/5.0.3/Smarty/templates/Webmails.tpl (original)
+++ vtigercrm/branches/5.0.3/Smarty/templates/Webmails.tpl Wed May 16 04:37:02 2007
@@ -37,7 +37,7 @@
 								&nbsp;<a href="javascript:;" onclick="OpenComposer('','create');" class="webMnu">{$MOD.LBL_COMPOSE}</a>
 							</td>
 							<td width="20%" nowrap>
-								<img src="{$IMAGE_PATH}webmail_settings.gif" align="absmiddle" />
+								<img src="themes/images/webmail_settings.gif" align="absmiddle" />
 								&nbsp;<a href="index.php?module=Users&action=AddMailAccount&record={$USERID}&return_module=Webmails&return_action=index" class="webMnu">{$MOD.LBL_SETTINGS}</a>
 							</td>
 							<td width="30%">

Modified: vtigercrm/branches/5.0.3/modules/Webmails/ListView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/ListView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/ListView.php Wed May 16 04:37:02 2007
@@ -175,6 +175,7 @@
 var timer;
 var command;
 var id;
+var preview_id='';
 var move_mail,change_box,mvmbox;
 var theme = "<?php echo $theme;?>";
 addOnloadEvent(function() {

Modified: vtigercrm/branches/5.0.3/modules/Webmails/MailParse.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/MailParse.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/MailParse.php Wed May 16 04:37:02 2007
@@ -69,7 +69,7 @@
 	}
 	elseif ($mails[$start_message]->in_reply_to || $mails[$start_message]->references || preg_match("/^re:/i",$mails[$start_message]->subject))
 	{
-		$flags.='<a href="javascript:;" onclick="OpenComposer(\''.$num.'\',\'reply\');"><img src="modules/Webmails/images/stock_mail-replied.png" border="0" width="10" height="12" title="Replied" ></a>&nbsp;';
+		$flags.='<a href="javascript:;" onclick="OpenComposer(\''.$num.'\',\'reply\');"><img src="modules/Webmails/images/stock_mail-replied.png" border="0" width="14" height="16" title="Replied" ></a>&nbsp;';
 	}
 	elseif (preg_match("/^fw:/i",$mails[$start_message]->subject))
 	{
@@ -83,11 +83,11 @@
         // Set IMAP flag
 	if($mails[$start_message]->flagged)
 	{
-		$flags.='<span id="clear_td_'.$num.'"><a href="javascript:runEmailCommand(\'clear_flag\','.$num.');"><img src="modules/Webmails/images/stock_mail-priority-high.png" border="0" width="11" height="11" id="clear_flag_img_'.$num.'"title="Important"></a></span>';
+		$flags.='<span id="clear_td_'.$num.'"><a href="javascript:runEmailCommand(\'clear_flag\','.$num.');"><img src="themes/images/important1.gif" border="0" width="11" height="11" id="clear_flag_img_'.$num.'"title="Important"></a></span>';
 	}
 	else
 	{
-                $flags.='<span id="set_td_'.$num.'"><a href="javascript:void(0);" onclick="runEmailCommand(\'set_flag\','.$num.');"><img src="modules/Webmails/images/plus.gif" border="0" width="11" height="11" id="set_flag_img_'.$num.'"title="Important"></a></span>';
+                $flags.='<span id="set_td_'.$num.'"><a href="javascript:void(0);" onclick="runEmailCommand(\'set_flag\','.$num.');"><img src="themes/images/important2.gif" border="0" width="11" height="11" id="set_flag_img_'.$num.'"title="Important"></a></span>';
 
 	}
 
@@ -105,7 +105,7 @@
 	}
 	elseif(!$mails[$start_message]->seen || $mails[$start_message]->recent)
 	{
-		$listview_entries[$num][] = '<td nowrap align="left" onclick="load_webmail(\''.$num.'\');" style="cursor:pointer;" ><a href="javascript:;" id="ndeleted_subject_'.$num.'"><font id="fnt_subject_'.$num.'" color="green">'.substr($mails[$start_message]->subject,0,50).'</font></a></td>';
+		$listview_entries[$num][] = '<td nowrap align="left" onclick="load_webmail(\''.$num.'\');" style="cursor:pointer;" ><a href="javascript:;" id="ndeleted_subject_'.$num.'"><font id="fnt_subject_'.$num.'" color="green">'.substr($mails[$start_message]->subject,0,40).'</font></a></td>';
 		$listview_entries[$num][] = '<td nowrap align="left" nowrap id="ndeleted_date_'.$num.'" style="cursor:pointer;" onClick="load_webmail(\''.$num.'\');" ><font id="fnt_date_'.$num.'" color="green">'.substr($mails[$start_message]->date,0,30).' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></td>';
 		$listview_entries[$num][] = '<td  nowrap align="left" id="ndeleted_from_'.$num.'"><font id="fnt_from_'.$num.'" style="cursor:pointer;" onClick="load_webmail(\''.$num.'\');" >'.substr($from,0,20).'</font></td>';
 	}
@@ -132,7 +132,7 @@
 		//Option 2 - Ends
 		//Added to shown the original UTF-8 characters - Mickie - 30-11-06 - Ends
 
-		$listview_entries[$num][] = '<td nowrap align="left" onclick="load_webmail(\''.$num.'\');" style="cursor:pointer;" ><a href="javascript:;" id="ndeleted_subject_'.$num.'">'.substr($mails[$start_message]->subject,0,50).'</a></td>';
+		$listview_entries[$num][] = '<td nowrap align="left" onclick="load_webmail(\''.$num.'\');" style="cursor:pointer;" ><a href="javascript:;" id="ndeleted_subject_'.$num.'">'.substr($mails[$start_message]->subject,0,45).'</a></td>';
 		$listview_entries[$num][] = '<td npwrap align="left" nowrap id="ndeleted_date_'.$num.'" style="cursor:pointer;" onClick="load_webmail(\''.$num.'\');" >'.substr($mails[$start_message]->date,0,30).'</td>';
 		$listview_entries[$num][] = '<td nowrap align="left" id="ndeleted_from_'.$num.'" style="cursor:pointer;" onClick="load_webmail(\''.$num.'\');" >'.substr($from,0,20).'</td>';
 	}

Modified: vtigercrm/branches/5.0.3/modules/Webmails/Webmails.js
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/Webmails.js (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/Webmails.js Wed May 16 04:37:02 2007
@@ -527,7 +527,7 @@
 					$("nav").innerHTML = $("navTemp").innerHTML;
 					$("box_list").innerHTML = $("temp_boxlist").innerHTML;
 					$("move_pane").innerHTML = $("temp_movepane").innerHTML;
-				//	$("temp_boxlist").innerHTML = "";
+					$("temp_boxlist").innerHTML = "";
 					$("temp_movepane").innerHTML = "";
 					$("navTemp").innerHTML = '';
 					$(mailbox+"_tempcount").innerHTML = "";
@@ -572,11 +572,11 @@
                                         	tmp = document.getElementsByClassName("previewWindow");
                                                 tmp[0].style.visibility="hidden";
 					}catch(g){}
-                                        for(var i=0;i<tmp.length;i++) {
+                                        /*for(var i=0;i<tmp.length;i++) {
                                                 if(tmp[i].style.visibility === "visible") {
                                                         tmp[i].style.visibility="hidden";
                                                 }
-                                        }
+                                        }*/
 
                                 	$("status").style.display="none";
 						if(i == ((rows.length)-2)){ 
@@ -633,14 +633,14 @@
                                         var nm = "clear_td_"+id;
                                         var el = $(nm);
                                         var tmp = el.innerHTML;
-                                        el.innerHTML ='<a href="javascript:void(0);" onclick="runEmailCommand(\'set_flag\','+id+');"><img src="modules/Webmails/images/plus.gif" border="0" width="11" height="11" id="set_flag_img_'+id+'"></a>';
+                                        el.innerHTML ='<a href="javascript:void(0);" onclick="runEmailCommand(\'set_flag\','+id+');"><img src="themes/images/important2.gif" border="0" width="11" height="11" id="set_flag_img_'+id+'"></a>';
                                         el.id = "set_td_"+id;
                                     break;
                                     case 'set_flag':
                                         var nm = "set_td_"+id;
                                         var el = $(nm);
                                         var tmp = el.innerHTML;
-                                        el.innerHTML ='<a href="javascript:void(0);" onclick="runEmailCommand(\'clear_flag\','+id+');"><img src="modules/Webmails/images/stock_mail-priority-high.png" border="0" width="11" height="11" id="clear_flag_img'+id+'"></a>';
+                                        el.innerHTML ='<a href="javascript:void(0);" onclick="runEmailCommand(\'clear_flag\','+id+');"><img src="themes/images/important1.gif" border="0" width="11" height="11" id="clear_flag_img'+id+'"></a>';
                                         el.id = "clear_td_"+id;
                                     break;
 

Modified: vtigercrm/branches/5.0.3/themes/images/newmail.gif
==============================================================================
Binary files - no diff available.

Modified: vtigercrm/branches/5.0.3/themes/images/openmail.gif
==============================================================================
Binary files - no diff available.





More information about the vtigercrm-commits mailing list