[Vtigercrm-commits] [vtiger-commits] r5445 - in /vtigercrm/trunk/Smarty/templates: EmailContents.tpl EmailDetails.tpl Emails.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 03:51:17 EDT 2006
Author: richie
Date: Thu Apr 27 01:51:10 2006
New Revision: 5445
Log:
Emails Detailview Delete has been integrated
Added:
vtigercrm/trunk/Smarty/templates/EmailContents.tpl
Modified:
vtigercrm/trunk/Smarty/templates/EmailDetails.tpl
vtigercrm/trunk/Smarty/templates/Emails.tpl
Modified: vtigercrm/trunk/Smarty/templates/EmailDetails.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/EmailDetails.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/EmailDetails.tpl Thu Apr 27 01:51:10 2006
@@ -1,4 +1,24 @@
-{foreach item=row from=$BLOCKS}
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td> </td>
+ <td class="forwardBg">
+ <table width="100%" border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td width="75%">
+ <input type="button" name="Qualify2" value=" Qualify " class="classWebBtn" />
+ <input type="button" name="reply" value=" Reply " class="classWebBtn" />
+ <input type="button" name="forward" value=" Forward " class="classWebBtn" />
+ <input type="button" name="download" value=" Download Attachments " class="classWebBtn" onclick="fnvshobj(this,'reportLay');" onmouseout="fninvsh('reportLay')" />
+ </td>
+ <td width="25%" align="right"><input type="button" name="Button" value=" Delete " class="classWebBtn" onClick="DeleteEmail('{$ID}')"/></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td> </td>
+ <td height="300" bgcolor="#FFFFFF" valign="top" style="padding-top:10px;">
+ {foreach item=row from=$BLOCKS}
{foreach item=elements key=title from=$row}
{if $title eq 'Subject'}
<table width="100%" border="0" cellpadding="0" cellspacing="0">
@@ -14,3 +34,7 @@
{/if}
{/foreach}
{/foreach}
+ </td>
+ </tr>
+
+</table>
Modified: vtigercrm/trunk/Smarty/templates/Emails.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/Emails.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/Emails.tpl Thu Apr 27 01:51:10 2006
@@ -1,5 +1,10 @@
<!-- USER SETTINGS PAGE STARTS HERE -->
<script language="javascript">
+function ajaxSaveResponse(response)
+{ldelim}
+ hide("status");
+ document.getElementById("email_con").innerHTML=response.responseText;
+{rdelim}
function ajaxgetResponse(response)
{ldelim}
hide("status");
@@ -16,7 +21,31 @@
var urlstring ="module=Emails&action=EmailsAjax&file=DetailView&mode=ajax&record="+id;
ajaxObj.process("index.php?",urlstring);
{rdelim}
+{literal}
+function DeleteEmail(id)
+{
+ if(confirm("Are you sure you want to delete ?"))
+ {
+ show("status");
+ var ajaxObj = new Ajax(ajaxDelResponse);
+ var urlstring ="module=Users&action=massdelete&return_module=Emails&idlist="+id;
+ ajaxObj.process("index.php?",urlstring);
+ }
+ else
+ {
+ return false;
+ }
+}
+function ajaxDelResponse(response)
+{
+ hide("status");
+ document.getElementById("EmailDetails").innerHTML='';
+ document.getElementById("subjectsetter").innerHTML='';
+ document.getElementById("email_con").innerHTML=response.responseText;
+}
+{/literal}
</script>
+<script language="JavaScript" type="text/javascript" src="modules/Emails/Email.js"></script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
<tr>
<td class="showPanelBg" valign="top" width="95%" style="padding-left:20px; "><br />
@@ -79,7 +108,7 @@
<img src="{$IMAGE_PATH}webmail_root.gif" align="absmiddle" /> <b class="txtGreen">Qualified Mails</b>
<ul style="list-style-type:none;">
<li><img src="{$IMAGE_PATH}webmail_downarrow.gif" align="absmiddle" />
- <a href="#" class="webMnu">Inbox</a> <b></b>
+ <a href="index.php?module=Emails&action=ListView" class="webMnu">Inbox</a> <b></b>
</li>
<li><img src="{$IMAGE_PATH}webmail_uparrow.gif" align="absmiddle" />
<a href="#" class="webMnu">Sent</a> <b></b>
@@ -91,8 +120,10 @@
</td>
<td> </td>
<td class="delBg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
+ <form name="massdelete" method="POST">
+ <input name="idlist" type="hidden">
<tr>
- <td width="25%"><input type="button" name="Button2" value=" Delete " class="classWebBtn"/>
+ <td width="25%"><input type="button" name="Button2" value=" Delete " class="classWebBtn" onClick="return massDelete();"/>
<input type="button" name="Qualify" value=" Qualify " class="classWebBtn" />
</td>
<td width="75%" align="right">
@@ -106,57 +137,25 @@
<tr>
<td> </td>
<td style="padding:1px;" align="left">
- <div id="rssScroll">
- <table class="rssTable" cellspacing="0" cellpadding="0">
- <tr>
- <th width="5%"><input type="checkbox" name="checkbox" value="checkbox" /></th>
- {foreach item=element from=$LISTHEADER}
- <th>{$element}</th>
- {/foreach}
- </tr>
- {foreach item=row from=$LISTENTITY}
- <tr onmouseover="this.className='prvPrfHoverOn'" onmouseout="this.className='prvPrfHoverOff'">
- <td><input type="checkbox" name="checkbox2" value="checkbox" /></td>
- {foreach item=row_values from=$row}
- <td><b>{$row_values}</b></td>
- {/foreach}
- </tr>
- {/foreach}
- </table>
- </div>
+ <div id="email_con">
+ {include file="EmailContents.tpl"}
+ </div>
</td>
</tr>
<tr>
<td></td>
<td height="5"></td>
</tr>
+ </form>
<tr>
<td> </td>
<td class="subHdr" id="subjectsetter"> </td>
</tr>
- <tr>
- <td> </td>
- <td class="forwardBg">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="75%">
- <input type="button" name="Qualify2" value=" Qualify " class="classWebBtn" />
- <input type="button" name="reply" value=" Reply " class="classWebBtn" />
- <input type="button" name="forward" value=" Forward " class="classWebBtn" />
- <input type="button" name="download" value=" Download Attachments " class="classWebBtn" onclick="fnvshobj(this,'reportLay');" onmouseout="fninvsh('reportLay')" />
- </td>
- <td width="25%" align="right"><input type="button" name="Button" value=" Delete " class="classWebBtn"/></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td> </td>
- <td height="300" bgcolor="#FFFFFF" valign="top" style="padding-top:10px;">
- <div id="EmailDetails">
- </div>
- </td>
- </tr>
+ <tr><td colspan="2">
+ <div id="EmailDetails">
+ {include file="EmailDetails.tpl"}
+ </div>
+ </td></tr>
</table>
</td>
<td bgcolor="#EBEBEB" width="8"></td>
More information about the vtigercrm-commits
mailing list