[Vtigercrm-commits] [vtiger-commits] r5653 - /vtigercrm/trunk/Smarty/templates/ListEmailTemplates.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue May 2 07:58:37 EDT 2006
Author: saraj
Date: Tue May 2 05:58:33 2006
New Revision: 5653
Log:
Added the UI Changes - Ahmed
Modified:
vtigercrm/trunk/Smarty/templates/ListEmailTemplates.tpl
Modified: vtigercrm/trunk/Smarty/templates/ListEmailTemplates.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/ListEmailTemplates.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/ListEmailTemplates.tpl Tue May 2 05:58:33 2006
@@ -1,139 +1,144 @@
-<script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
-<script language="JavaScript" type="text/javascript" src="modules/{$MODULE}/{$SINGLE_MOD}.js"></script>
-<style type="text/css">@import url(themes/blue/style.css);</style>
-
-<script>
-function massDelete()
-{ldelim}
- x = document.massdelete.selected_id.length;
- idstring = "";
-
- if ( x == undefined)
- {ldelim}
-
- if (document.massdelete.selected_id.checked)
- {ldelim}
- document.massdelete.idlist.value=document.massdelete.selected_id.value;
- {rdelim}
- else
- {ldelim}
- alert("Please select atleast one entity");
- return false;
- {rdelim}
- {rdelim}
- else
- {ldelim}
- xx = 0;
- for(i = 0; i < x ; i++)
- {ldelim}
- if(document.massdelete.selected_id[i].checked)
- {ldelim}
- idstring = document.massdelete.selected_id[i].value +";"+idstring
- xx++
- {rdelim}
- {rdelim}
- if (xx != 0)
- {ldelim}
- document.massdelete.idlist.value=idstring;
- {rdelim}
- else
- {ldelim}
- alert("Please select atleast one entity");
- return false;
- {rdelim}
- {rdelim}
- if(confirm("Are you sure you want to delete the selected "+xx+" records ?"))
- {ldelim}
- document.massdelete.action="index.php?module=Users&action=deleteemailtemplate&return_module=Users&return_action=listemailtemplates";
- {rdelim}
- else
- {ldelim}
- return false;
- {rdelim}
-
-{rdelim}
-</script>
-
-<table width="100%" border="0" cellpadding="0" cellspacing="0">
-<tr>
- {include file='SettingsMenu.tpl'}
-<td width="75%" valign="top">
-<!-- EMAIL TEMPLATE PAGE STARTS HERE -->
-<table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
- <tr>
- <td class="showPanelBg" valign="top" width="90%" style="padding-left:20px; "><br />
- <span class="lvtHeaderText"><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS}</a>
- <a href="index.php?module=Users&action=listemailtemplates&parenttab=Settings">> {$UMOD.LBL_EMAIL_TEMPLATES_LIST}</a></b></span>
- <hr noshade="noshade" size="1" />
- </td>
-
- <td width="10%" class="showPanelBg"> </td>
- </tr>
- <tr>
- <td width="90%" style="padding-left:20px;" valign="top">
- <table width="100%" cellpadding="3" cellspacing="0" class="prdTab" >
- <form name="massdelete" method="POST">
- <input name="idlist" type="hidden">
- <input name="module" type="hidden" value="Users">
- <input name="action" type="hidden" value="deleteemailtemplate">
- <tr><td colspan="4" style="border:0px;"> </td></tr>
- <tr>
- <td colspan="2" align="left" style="border:0px;"><input type="submit" value="Delete" onclick="return massDelete();" class="small" /></td>
- <td style="border:0px;"> </td>
-
- <td align="right" style="border:0px;">
- <div align="right"><input type="submit" value="New Template" name="profile" class="small" onclick="this.form.action.value='createemailtemplate';this.form.parenttab.value='Settings';"/></div>
- </td>
- </tr>
- <tr>{*<td colspan="4" style="border:0px;"> </td>*}</tr>
- <tr>
- <th width="5%" style="border-top:1px solid #CCCCCC;height:30px;"><input type="checkbox" name="selectall" onClick=toggleSelect(this.checked,"selected_id") ></th>
- <th width="20%" style="border-top:1px solid #CCCCCC; "><b>{$UMOD.LBL_TEMPLATE_HEADER}</b></th>
-
- <th width="50%" style="border-top:1px solid #CCCCCC; "><b>{$UMOD.LBL_DESCRIPTION}</b></th>
- <th width="25%" style="border-top:1px solid #CCCCCC; "><b>{$UMOD.LBL_TEMPLATE_TOOLS}</b></th>
- </tr>
- {foreach item=template from=$TEMPLATES}
- <tr onMouseOver="this.className='prvPrfHoverOn'" onMouseOut="this.className='prvPrfHoverOut'">
- <td><input type="checkbox" name="selected_id" value="{$template.templateid}" onClick=toggleSelectAll(this.name,"selectall") /></td>
- <td nowrap>
- {if $template.foldername == "Public"}
- <img src="{$IMAGE_PATH}public.gif" align="absmiddle" />
- {else}
- <img src="{$IMAGE_PATH}private.gif" align="absmiddle" />
- {/if}
- <a href="index.php?module=Users&action=detailviewemailtemplate&parenttab=Settings&templateid={$template.templateid}" >{$template.templatename}</a></td>
- <td>{$template.description}</td>
- <td><a href="index.php?module=Users&action=detailviewemailtemplate&parenttab=Settings&templateid={$template.templateid}">View Sample Email </a></td>
- </tr>
-
- {/foreach}
- <tr>
- <td colspan="3" style="border:0px">
-
- <img src="{$IMAGE_PATH}private.gif" align="absmiddle" /> {$UMOD.LBL_TEMPLATE_PRIVATE}
-
- <img src="{$IMAGE_PATH}public.gif" align="absmiddle"/> {$UMOD.LBL_TEMPLATE_PUBLIC}
-
- </td>
- <td style="border:0px">
- <div align="right"><a href="#">Go to Page Top</a></div>
- </td>
- </tr>
- </form>
- </table>
-
- </td>
- <td> </td>
- </tr>
-</table>
-<!-- END -->
-
-</td>
-</tr>
-</table>
-
-{$JAVASCRIPT}
-{include file='SettingsSubMenu.tpl'}
-
-
+<script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
+<script language="JavaScript" type="text/javascript" src="modules/{$MODULE}/{$SINGLE_MOD}.js"></script>
+<style type="text/css">@import url(themes/blue/style.css);</style>
+
+<script>
+function massDelete()
+{ldelim}
+ x = document.massdelete.selected_id.length;
+ idstring = "";
+
+ if ( x == undefined)
+ {ldelim}
+
+ if (document.massdelete.selected_id.checked)
+ {ldelim}
+ document.massdelete.idlist.value=document.massdelete.selected_id.value;
+ {rdelim}
+ else
+ {ldelim}
+ alert("Please select atleast one entity");
+ return false;
+ {rdelim}
+ {rdelim}
+ else
+ {ldelim}
+ xx = 0;
+ for(i = 0; i < x ; i++)
+ {ldelim}
+ if(document.massdelete.selected_id[i].checked)
+ {ldelim}
+ idstring = document.massdelete.selected_id[i].value +";"+idstring
+ xx++
+ {rdelim}
+ {rdelim}
+ if (xx != 0)
+ {ldelim}
+ document.massdelete.idlist.value=idstring;
+ {rdelim}
+ else
+ {ldelim}
+ alert("Please select atleast one entity");
+ return false;
+ {rdelim}
+ {rdelim}
+ if(confirm("Are you sure you want to delete the selected "+xx+" records ?"))
+ {ldelim}
+ document.massdelete.action="index.php?module=Users&action=deleteemailtemplate&return_module=Users&return_action=listemailtemplates";
+ {rdelim}
+ else
+ {ldelim}
+ return false;
+ {rdelim}
+
+{rdelim}
+</script>
+
+<table width="100%" border="0" cellpadding="0" cellspacing="0">
+<tr>
+ {include file='SettingsMenu.tpl'}
+<td width="75%" valign="top">
+<!-- EMAIL TEMPLATE PAGE STARTS HERE -->
+<table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%">
+ <tr>
+ <td class="showPanelBg" valign="top" width="90%" style="padding-left:20px; "><br />
+ <span class="lvtHeaderText"><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS}</a>
+ <a href="index.php?module=Users&action=listemailtemplates&parenttab=Settings">> {$UMOD.LBL_EMAIL_TEMPLATES_LIST}</a></b></span>
+ <hr noshade="noshade" size="1" />
+ </td>
+
+ <td width="10%" class="showPanelBg"> </td>
+ </tr>
+ <tr>
+ <td width="90%" style="padding-left:20px;" valign="top">
+ <table width="100%" cellpadding="3" cellspacing="0" border="0" class="small" >
+ <form name="massdelete" method="POST">
+ <input name="idlist" type="hidden">
+ <input name="module" type="hidden" value="Users">
+ <input name="action" type="hidden" value="deleteemailtemplate">
+ <tr><td colspan="4" style="border:0px;"> </td></tr>
+ <tr>
+ <td colspan="2" align="left" style="border:0px;"><input type="submit" value="Delete" onclick="return massDelete();" class="classBtn" /></td>
+ <td style="border:0px;"> </td>
+
+ <td align="right" style="border:0px;">
+ <div align="right"><input type="submit" value="New Template" name="profile" class="classBtn" onclick="this.form.action.value='createemailtemplate';this.form.parenttab.value='Settings';"/></div>
+ </td>
+ </tr>
+ <tr>{*<td colspan="4" style="border:0px;"> </td>*}</tr>
+ <tr><td colspan="4">
+ <table style="background-color: rgb(204, 204, 204);" class="small" border="0" cellpadding="5" cellspacing="1" width="100%">
+ <tr>
+ <th width="5%" class="lvtCol" ><input type="checkbox" name="selectall" onClick=toggleSelect(this.checked,"selected_id") ></th>
+ <th width="20%" class="lvtCol"><b>{$UMOD.LBL_TEMPLATE_HEADER}</b></th>
+
+ <th width="50%" class="lvtCol"><b>{$UMOD.LBL_DESCRIPTION}</b></th>
+ <th width="25%" class="lvtCol"><b>{$UMOD.LBL_TEMPLATE_TOOLS}</b></th>
+ </tr>
+ {foreach item=template from=$TEMPLATES}
+ <tr class="lvtColData" onmouseover="this.className='lvtColDataHover'" onmouseout="this.className='lvtColData'" bgcolor="white">
+ <td><input type="checkbox" name="selected_id" value="{$template.templateid}" onClick=toggleSelectAll(this.name,"selectall") /></td>
+ <td nowrap>
+ {if $template.foldername == "Public"}
+ <img src="{$IMAGE_PATH}public.gif" align="absmiddle" />
+ {else}
+ <img src="{$IMAGE_PATH}private.gif" align="absmiddle" />
+ {/if}
+ <a href="index.php?module=Users&action=detailviewemailtemplate&parenttab=Settings&templateid={$template.templateid}" >{$template.templatename}</a></td>
+ <td>{$template.description}</td>
+ <td><a href="index.php?module=Users&action=detailviewemailtemplate&parenttab=Settings&templateid={$template.templateid}">View Sample Email </a></td>
+ </tr>
+
+ {/foreach}
+ <tr>
+ </table>
+ </td></tr>
+ <tr>
+ <td colspan="3" style="border:0px">
+
+ <img src="{$IMAGE_PATH}private.gif" align="absmiddle" /> {$UMOD.LBL_TEMPLATE_PRIVATE}
+
+ <img src="{$IMAGE_PATH}public.gif" align="absmiddle"/> {$UMOD.LBL_TEMPLATE_PUBLIC}
+
+ </td>
+ <td style="border:0px">
+ <div align="right"><a href="#">Go to Page Top</a></div>
+ </td>
+ </tr>
+ </form>
+ </table>
+
+ </td>
+ <td> </td>
+ </tr>
+</table>
+<!-- END -->
+
+</td>
+</tr>
+</table>
+
+{$JAVASCRIPT}
+{include file='SettingsSubMenu.tpl'}
+
+
More information about the vtigercrm-commits
mailing list