[Vtigercrm-commits] [vtiger-commits] r7287 - in /vtigercrm/trunk/Smarty/templates: CreateEmailTemplate.tpl DetailViewEmailTemplate.tpl ListEmailTemplates.tpl
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Jun 20 02:59:25 EDT 2006
Author: saraj
Date: Tue Jun 20 00:59:19 2006
New Revision: 7287
Log:
Updated the tpl file for email templates - ahmed
Modified:
vtigercrm/trunk/Smarty/templates/CreateEmailTemplate.tpl
vtigercrm/trunk/Smarty/templates/DetailViewEmailTemplate.tpl
vtigercrm/trunk/Smarty/templates/ListEmailTemplates.tpl
Modified: vtigercrm/trunk/Smarty/templates/CreateEmailTemplate.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/CreateEmailTemplate.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/CreateEmailTemplate.tpl Tue Jun 20 00:59:19 2006
@@ -1,325 +1,325 @@
-{*<!--
-/*********************************************************************************
- ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
- * ("License"); You may not use this file except in compliance with the License
- * The Original Code is: vtiger CRM Open Source
- * The Initial Developer of the Original Code is vtiger.
- * Portions created by vtiger are Copyright (C) vtiger.
- * All Rights Reserved.
- *
- ********************************************************************************/
--->*}
-<script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
-<style type="text/css">@import url(../themes/blue/style.css);</style>
-
-<script language="JavaScript" type="text/javascript">
- var allOptions = null;
-
- function setAllOptions(inputOptions)
- {ldelim}
- allOptions = inputOptions;
- {rdelim}
-
- function modifyMergeFieldSelect(cause, effect)
- {ldelim}
- var selected = cause.options[cause.selectedIndex].value; id="mergeFieldValue"
- var s = allOptions[cause.selectedIndex];
-
- effect.length = s;
- for (var i = 0; i < s; i++)
- {ldelim}
- effect.options[i] = s[i];
- {rdelim}
- document.getElementById('mergeFieldValue').value = '';
- {rdelim}
-{literal}
- function init()
- {
- var blankOption = new Option('--None--', '--None--');
- var allOpts = new Object(0);
- var options = null;
-
- options = new Object(19);
- options[0] = blankOption;
-
-
- options[1] = new Option('Account: Account Name', '$accounts-accountname$');
- options[2] = new Option('Account: Account Type', '$accounts-account_type$');
- options[3] = new Option('Account: Industry', '$accounts-industry$');
- options[4] = new Option('Account: Annual Revenue', '$accounts-annualrevenue$');
- options[5] = new Option('Account: Phone', '$accounts-phone$');
- options[6] = new Option('Account: Email', '$accounts-email1$');
- options[7] = new Option('Account: Rating', '$accounts-rating$');
- options[8] = new Option('Account: Website', '$accounts-website$');
- options[9] = new Option('Account: Fax', '$accounts-fax$');
-
- allOpts[1] = options;
-
- options = new Object(11);
- options[0] = blankOption;
-
- options[1] = new Option('Contact: First Name', '$contacts-firstname$');
- options[2] = new Option('Contact: Last Name', '$contacts-lastname$');
- options[3] = new Option('Contact: Salutation', '$contacts-salutationtype$');
- options[4] = new Option('Contact: Title', '$contacts-title$');
- options[5] = new Option('Contact: Email', '$contacts-email$');
- options[6] = new Option('Contact: Department', '$contacts-department$');
- options[7] = new Option('Contact: Other Email','$contacts-otheremail$');
- options[8] = new Option('Contact: Phone', '$contacts-phone$');
- options[9] = new Option('Contact: Mobile', '$contacts-mobile$');
- options[10] = new Option('Contact: Currency', '$contacts-currency$');
-
- allOpts[2] = options;
-
-
- options = new Object(19);
- options[0] = blankOption;
-
-
- options[1] = new Option('Lead: First Name', '$leads-firstname$');
- options[2] = new Option('Lead: Last Name', '$leads-lastname$');
- options[3] = new Option('Lead: Lead Source', '$leads-leadsource$');
- options[4] = new Option('Lead: Status', '$leads-leadstatus$');
- options[5] = new Option('Lead: Rating', '$leads-rating$');
- options[6] = new Option('Lead: Industry', '$leads-industry$');
- options[7] = new Option('Lead: Yahoo ID', '$leads-yahooid$');
- options[8] = new Option('Lead: Email', '$leads-email$');
- options[9] = new Option('Lead: Annual Revenue', '$leads-annualrevenue$');
- options[10] = new Option('Lead: Title', '$leads-designation$');
- options[11] = new Option('Lead: Salutation', '$leads-salutation$');
-
- allOpts[3] = options;
-
- options = new Object(19);
- options[0] = blankOption;
-
- options[1] = new Option('User: First Name', '$users-first_name$');
- options[2] = new Option('User: Last Name', '$users-last_name$');
- options[3] = new Option('User: Title', '$users-title$');
- options[4] = new Option('User: Department', '$users-department$');
- options[5] = new Option('User: HomePhone', '$users-phone_home$');
- options[6] = new Option('User: Mobile', '$users-phone_mobile$');
- options[7] = new Option('User: Signature', '$users-signature$');
- options[8] = new Option('User: Email', '$users-email$');
- options[9] = new Option('User: Street', '$users-address_street$');
- options[10] = new Option('User: City', '$users-address_city$');
- options[11] = new Option('User: State', '$users-address_state$');
- options[11] = new Option('User: Country', '$users-address_country$');
- options[11] = new Option('User: PostalCode', '$users-address_postalcode$');
-
- allOpts[4] = options;
-
- setAllOptions(allOpts);
- }
-
- function cancelForm(frm)
- {
- frm.action.value='detailviewemailtemplate'
- frm.submit()
- }
-{/literal}
-</script>
-
-
-<table width="100%" border="0" cellpadding="0" cellspacing="0">
-<tr>
- {include file='SettingsMenu.tpl'}
-<td width="75%" valign="top">
-<form action="index.php" method="post" name="templatecreate" onsubmit="return check4null(templatecreate);">
-<input type="hidden" name="action">
-<input type="hidden" name="mode" value="{$MODE}">
-<input type="hidden" name="module" value="Users">
-<input type="hidden" name="templateid" value="{$TEMPLATEID}">
-
-<!-- EMAIL TEMPLATE PAGE STARTS HERE -->
-<table width="100%" border="0" cellpadding="0" cellspacing="0" height="100%" class="small">
- <tr>
- <td class="showPanelBg" valign="top" width="90%" style="padding-left:20px; "><br />
- {if $EMODE eq 'edit'}
- <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=detailviewemailtemplate&templateid={$TEMPLATEID}"> > {$MOD.LBL_COMMUNICATION_TEMPLATES} > {$MOD.LBL_EDIT} {$MOD.EMAILTEMPLATES} > {$TEMPLATENAME}</a></b></span>
- {else}
- <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">> {$MOD.LBL_COMMUNICATION_TEMPLATES} > {$MOD.LBL_CREATE_EMAIL_TEMPLATES} > {$MOD.NEW}</a></b> </span>
- {/if}
- <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%" border="0" cellspacing="0" cellpadding="0">
- <tr><td colspan="2"> </td></tr>
- <tr>
-
- <td colspan="2">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="small">
- <tr>
- <td width="5%" valign="top" align="right" nowrap>
- <img src="{$IMAGE_PATH}ViewTemplate.gif" align="left" />
- </td>
- <td width="5%" valign="top" align="right" nowrap>
- <b><font color='red'>*</font>{$UMOD.LBL_TEMPLATE_NAME}</b><br />
- <br />
- <b>{$UMOD.LBL_DESCRIPTION}{$UMOD.LBL_COLON}</b><br />
- <br /><br />
- <b><font color='red'>{$APP.LBL_REQUIRED_SYMBOL}</font>{$UMOD.LBL_FOLDER}{$UMOD.LBL_COLON}</b>
-
- </td>
- <td width="85%" align="left" style="padding-left:10px;">
- <input name="templatename" type="text" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" value="{$TEMPLATENAME}" tabindex="1"/>
- <br />
- <textarea name="description" cols="30" rows="3" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" tabindex="2" >{$DESCRIPTION}</textarea>
- <br />
- {if $EMODE eq 'edit'}
- <select name="foldername" class="detailedViewTextBox" tabindex="3">
- {foreach item=arr from=$FOLDERNAME}
-
- <option value="{$FOLDERNAME}" {$arr}>{$FOLDERNAME}</option>
-
- {if $FOLDERNAME == 'Public'}
- <option value="Personal">{$UMOD.LBL_PERSONAL}</option>
- {else}
- <option value="Public">{$UMOD.LBL_PUBLIC}</option>
- {/if}
-
- {/foreach}
- </select>
- {else}
- <select name="foldername" class="detailedViewTextBox" tabindex="3" value="{$FOLDERNAME}">
- <option value="Personal">{$UMOD.LBL_PERSONAL}</option>
- <option value="Public" selected>{$UMOD.LBL_PUBLIC}</option>
- </select>
- {/if}
- </td>
- </tr>
- </table>
-
- </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- </tr>
- <tr>
- <td colspan="2" style="border:2px solid #CCCCCC;">
- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="small">
-
- <tr>
- <td width="15%" align="right" bgcolor="#F6F6F6"><b><font color='red'>*</font>{$UMOD.LBL_TEMPLATE_SUBJECT}</b></td>
- <td width="60%" style="border-right:1px dashed #CCCCCC;">
- <input name="subject" type="text" class="detailedViewTextBox" value="{$SUBJECT}" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" tabindex="4"/></td>
- <td width="25%" rowspan="3" style="padding:5px;text-align:left;vertical-align:top;">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="small">
- <tr><td style="color:#999999;">{$UMOD.LBL_USE_MERGE_FIELDS_TO_EMAIL_CONTENT}</td></tr>
-
- <tr><td><b><u>{$UMOD.LBL_AVAILABLE_MERGE_FIELDS}</u></b></td></tr>
- <tr><td> </td></tr>
-
- <tr><td><b>{$UMOD.LBL_SELECT_FIELD_TYPE}</b></td></tr>
- <tr><td><select class="detailedViewTextBox" id="entityType" ONCHANGE="modifyMergeFieldSelect(this, document.getElementById('mergeFieldSelect'));" tabindex="6">
- <OPTION VALUE="0" selected>{$APP.LBL_NONE}
- <OPTION VALUE="1">{$UMOD.LBL_ACCOUNT_FIELDS}
- <OPTION VALUE="2">{$UMOD.LBL_CONTACT_FIELDS}
-
- <OPTION VALUE="3" >{$UMOD.LBL_LEAD_FIELDS}
-
- <OPTION VALUE="4" >{$UMOD.LBL_USER_FIELDS}
-
- </select></td></tr>
- <tr><td> </td></tr>
- <tr><td><b>{$UMOD.LBL_SELECT_FIELD}</b></td></tr>
- <tr><td><select class="detailedViewTextBox" id="mergeFieldSelect" onchange="document.getElementById('mergeFieldValue').value=this.options[this.selectedIndex].value;" tabindex="7"><option value="0" selected>{$APP.LBL_NONE}</select></td></tr>
- <tr><td> </td></tr>
- <tr><td><b>{$UMOD.LBL_MERGE_FIELD_VALUE}</b></td></tr>
-
- <tr><td><input type="text" id="mergeFieldValue" name="variable" value="variable" class="detailedViewTextBoxOn" tabindex="8"/></td></tr>
- <tr><td style="color:#999999;">({$UMOD.LBL_COPY_AND_PASTE_MERGE_FIELD})</td></tr>
- </table>
- <script>
- modifyMergeFieldSelect(document.getElementById('mergeTypeSelect'), document.getElementById('mergeFieldSelect'));
- </script>
-
- </td>
-
- </tr>
- <tr>
- <td bgcolor="#F6F6F6"> </td>
-
- <td style="border-right:1px dashed #CCCCCC;"> </td>
- </tr>
- <tr>
- <td align="right" bgcolor="#F6F6F6" valign="top"><b>{$UMOD.LBL_TEMPLATE_MESSAGE}</b></td>
- <td style="border-right:1px dashed #CCCCCC;" nowrap>
- <textarea name="body" rows="10" class="detailedViewTextBox" onfocus="this.className='detailedViewTextBoxOn'" onblur="this.className='detailedViewTextBox'" tabindex="5">{$BODY}</textarea>
- </td>
- </tr>
-
- </table>
- </td>
- </tr>
- </table>
- </td>
- <td> </td>
- </tr>
- <tr><td colspan="2"> </td></tr>
- <tr>
-
- <td align="center">
- <input type="submit" value="{$APP.LBL_SAVE_BUTTON_LABEL}" class="small" onclick="this.form.action.value='saveemailtemplate'" tabindex="9"/>
- {if $EMODE eq 'edit'}
- <input type="submit" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" class="small" onclick="cancelForm(this.form)" tabindex="10"/>
- {else}
- <input type="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" class="small" onclick="window.history.back()" tabindex="10">
- {/if}
- </td>
- <td> </td>
- </tr>
-
-</table>
-
-</form>
-</td>
-</tr>
-</table>
-
-<script>
-
-function check4null(form)
-{ldelim}
-
- var isError = false;
- var errorMessage = "";
- // Here we decide whether to submit the form.
- if (trim(form.templatename.value) =='') {ldelim}
- isError = true;
- errorMessage += "\n template name";
- form.templatename.focus();
- {rdelim}
- if (trim(form.foldername.value) =='') {ldelim}
- isError = true;
- errorMessage += "\n folder name";
- form.foldername.focus();
- {rdelim}
- if (trim(form.subject.value) =='') {ldelim}
- isError = true;
- errorMessage += "\n subject";
- form.subject.focus();
- {rdelim}
-
- // Here we decide whether to submit the form.
- if (isError == true) {ldelim}
- alert("Missing required fields: " + errorMessage);
- return false;
- {rdelim}
- return true;
-
-{rdelim}
-
-init();
-
-</script>
-
-{$JAVASCRIPT}
-{include file='SettingsSubMenu.tpl'}
-
+{*<!--
+/*********************************************************************************
+ ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
+ * ("License"); You may not use this file except in compliance with the License
+ * The Original Code is: vtiger CRM Open Source
+ * The Initial Developer of the Original Code is vtiger.
+ * Portions created by vtiger are Copyright (C) vtiger.
+ * All Rights Reserved.
+ *
+ ********************************************************************************/
+-->*}
+<script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script>
+<script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
+<style type="text/css">@import url(../themes/blue/style.css);</style>
+
+<script language="JavaScript" type="text/javascript">
+ var allOptions = null;
+
+ function setAllOptions(inputOptions)
+ {ldelim}
+ allOptions = inputOptions;
+ {rdelim}
+
+ function modifyMergeFieldSelect(cause, effect)
+ {ldelim}
+ var selected = cause.options[cause.selectedIndex].value; id="mergeFieldValue"
+ var s = allOptions[cause.selectedIndex];
+
+ effect.length = s;
+ for (var i = 0; i < s; i++)
+ {ldelim}
+ effect.options[i] = s[i];
+ {rdelim}
+ document.getElementById('mergeFieldValue').value = '';
+ {rdelim}
+{literal}
+ function init()
+ {
+ var blankOption = new Option('--None--', '--None--');
+ var allOpts = new Object(0);
+ var options = null;
+
+ options = new Object(19);
+ options[0] = blankOption;
+
+
+ options[1] = new Option('Account: Account Name', '$accounts-accountname$');
+ options[2] = new Option('Account: Account Type', '$accounts-account_type$');
+ options[3] = new Option('Account: Industry', '$accounts-industry$');
+ options[4] = new Option('Account: Annual Revenue', '$accounts-annualrevenue$');
+ options[5] = new Option('Account: Phone', '$accounts-phone$');
+ options[6] = new Option('Account: Email', '$accounts-email1$');
+ options[7] = new Option('Account: Rating', '$accounts-rating$');
+ options[8] = new Option('Account: Website', '$accounts-website$');
+ options[9] = new Option('Account: Fax', '$accounts-fax$');
+
+ allOpts[1] = options;
+
+ options = new Object(11);
+ options[0] = blankOption;
+
+ options[1] = new Option('Contact: First Name', '$contacts-firstname$');
+ options[2] = new Option('Contact: Last Name', '$contacts-lastname$');
+ options[3] = new Option('Contact: Salutation', '$contacts-salutationtype$');
+ options[4] = new Option('Contact: Title', '$contacts-title$');
+ options[5] = new Option('Contact: Email', '$contacts-email$');
+ options[6] = new Option('Contact: Department', '$contacts-department$');
+ options[7] = new Option('Contact: Other Email','$contacts-otheremail$');
+ options[8] = new Option('Contact: Phone', '$contacts-phone$');
+ options[9] = new Option('Contact: Mobile', '$contacts-mobile$');
+ options[10] = new Option('Contact: Currency', '$contacts-currency$');
+
+ allOpts[2] = options;
+
+
+ options = new Object(19);
+ options[0] = blankOption;
+
+
+ options[1] = new Option('Lead: First Name', '$leads-firstname$');
+ options[2] = new Option('Lead: Last Name', '$leads-lastname$');
+ options[3] = new Option('Lead: Lead Source', '$leads-leadsource$');
+ options[4] = new Option('Lead: Status', '$leads-leadstatus$');
+ options[5] = new Option('Lead: Rating', '$leads-rating$');
+ options[6] = new Option('Lead: Industry', '$leads-industry$');
+ options[7] = new Option('Lead: Yahoo ID', '$leads-yahooid$');
+ options[8] = new Option('Lead: Email', '$leads-email$');
+ options[9] = new Option('Lead: Annual Revenue', '$leads-annualrevenue$');
+ options[10] = new Option('Lead: Title', '$leads-designation$');
+ options[11] = new Option('Lead: Salutation', '$leads-salutation$');
+
+ allOpts[3] = options;
+
+ options = new Object(19);
+ options[0] = blankOption;
+
+ options[1] = new Option('User: First Name', '$users-first_name$');
+ options[2] = new Option('User: Last Name', '$users-last_name$');
+ options[3] = new Option('User: Title', '$users-title$');
+ options[4] = new Option('User: Department', '$users-department$');
+ options[5] = new Option('User: HomePhone', '$users-phone_home$');
+ options[6] = new Option('User: Mobile', '$users-phone_mobile$');
+ options[7] = new Option('User: Signature', '$users-signature$');
+ options[8] = new Option('User: Email', '$users-email$');
+ options[9] = new Option('User: Street', '$users-address_street$');
+ options[10] = new Option('User: City', '$users-address_city$');
+ options[11] = new Option('User: State', '$users-address_state$');
+ options[11] = new Option('User: Country', '$users-address_country$');
+ options[11] = new Option('User: PostalCode', '$users-address_postalcode$');
+
+ allOpts[4] = options;
+
+ setAllOptions(allOpts);
+ }
+
+ function cancelForm(frm)
+ {
+ frm.action.value='detailviewemailtemplate';
+ frm.parenttab.value='Settings';
+ frm.submit();
+ }
+{/literal}
+</script>
+
+<br>
+<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
+<tbody><tr>
+ <td valign="top"><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td>
+ <td class="showPanelBg" style="padding: 10px;" valign="top" width="100%">
+<br>
+ <div align=center>
+
+ {include file='SetMenu.tpl'}
+ <!-- DISPLAY -->
+ <table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine">
+ <form action="index.php" method="post" name="templatecreate" onsubmit="return check4null(templatecreate);">
+ <input type="hidden" name="action">
+ <input type="hidden" name="mode" value="{$EMODE}">
+ <input type="hidden" name="module" value="Users">
+ <input type="hidden" name="templateid" value="{$TEMPLATEID}">
+ <input type="hidden" name="parenttab" value="PARENTTAB}">
+ <tr>
+ <td width=50 rowspan=2 valign=top><img src="{$IMAGE_PATH}ViewTemplate.gif" alt="Users" width="45" height="60" border=0 title="Users"></td>
+ {if $EMODE eq 'edit'}
+ <td class=heading2 valign=bottom><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}</a> > {$MOD.LBL_EDIT} "{$TEMPLATENAME}" </b></td>
+ {else}
+ <td class=heading2 valign=bottom><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}</a> > {$MOD.LBL_CREATE_EMAIL_TEMPLATES} </b></td>
+ {/if}
+
+ </tr>
+ <tr>
+ <td valign=top class="small">{$UMOD.LBL_EMAIL_TEMPLATE_DESC}</td>
+ </tr>
+ </table>
+
+ <br>
+ <table border=0 cellspacing=0 cellpadding=10 width=100% >
+ <tr>
+ <td>
+
+ <table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
+ <tr>
+ {if $EMODE eq 'edit'}
+ <td class="big"><strong>{$UMOD.LBL_PROPERTIES} "{$TEMPLATENAME}" </strong></td>
+ {else}
+ <td class="big"><strong>{$MOD.LBL_CREATE_EMAIL_TEMPLATES}</strong></td>
+ {/if}
+ <td class="small" align=right>
+ <input type="submit" value="{$APP.LBL_SAVE_BUTTON_LABEL}" class="crmButton small save" onclick="this.form.action.value='saveemailtemplate'; this.form.parenttab.value='Settings'" >
+ {if $EMODE eq 'edit'}
+ <input type="submit" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" class="crmButton small cancel" onclick="cancelForm(this.form)" />
+ {else}
+ <input type="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" class="crmButton small cancel" onclick="window.history.back()" >
+ {/if}
+ </td>
+ </tr>
+ </table>
+
+ <table border=0 cellspacing=0 cellpadding=5 width=100% >
+ <tr>
+ <td width=20% class="small cellLabel"><font color="red">*</font><strong>{$UMOD.LBL_NAME}</strong></td>
+ <td width=80% class="small cellText"><input name="templatename" type="text" value="{$TEMPLATENAME}" class="detailedViewTextBox" tabindex="1"> </td>
+ </tr>
+ <tr>
+ <td valign=top class="small cellLabel"><strong>{$UMOD.LBL_DESCRIPTION}</strong></td>
+ <td class="cellText small" valign=top><span class="small cellText">
+ <input name="description" type="text" value="{$DESCRIPTION}" class="detailedViewTextBox" tabindex="2">
+ </span></td>
+ </tr>
+ <tr>
+ <td valign=top class="small cellLabel"><strong>{$UMOD.LBL_FOLDER}</strong></td>
+ <td class="cellText small" valign=top>
+ {if $EMODE eq 'edit'}
+ <select name="foldername" class="small" tabindex="" style="width:100%" tabindex="3">
+ {foreach item=arr from=$FOLDERNAME}
+ <option value="{$FOLDERNAME}" {$arr}>{$FOLDERNAME}</option>
+ {if $FOLDERNAME == 'Public'}
+ <option value="Personal">{$UMOD.LBL_PERSONAL}</option>
+ {else}
+ <option value="Public">{$UMOD.LBL_PUBLIC}</option>
+ {/if}
+ {/foreach}
+ </select>
+ {else}
+ <select name="foldername" class="small" tabindex="" value="{$FOLDERNAME}" style="width:100%" tabindex="3">
+ <option value="Personal">{$UMOD.LBL_PERSONAL}</option>
+ <option value="Public" selected>{$UMOD.LBL_PUBLIC}</option>
+ </select>
+ {/if}
+
+ </td>
+ </tr>
+
+
+ <tr>
+ <td colspan="2" valign=top class="cellText small"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="thickBorder">
+ <tr>
+ <td valign=top><table width="100%" border="0" cellspacing="0" cellpadding="5" >
+ <tr>
+ <td colspan="3" valign="top" class="small" style="background-color:#cccccc"><strong>{$UMOD.LBL_EMAIL_TEMPLATE}</strong></td>
+ </tr>
+ <tr>
+ <td width="15%" valign="top" class="cellLabel small"><font color='red'>*</font>{$UMOD.LBL_SUBJECT}</td>
+ <td width="85%" colspan="2" class="cellText small"><span class="small cellText">
+ <input name="subject" type="text" value="{$SUBJECT}" class="detailedViewTextBox" tabindex="4">
+ </span></td>
+ </tr>
+ <tr>
+ <td valign="top" width=10% class="cellLabel small">{$UMOD.LBL_MESSAGE}</td>
+ <td valign="top" width=60% class="cellText small"><p><textarea name="body" style="width:90%;height:200px" class=small tabindex="5">{$BODY}</textarea></p>
+ </td>
+ <td valign="top" width=30% class="cellText small" style="border-left:2px dotted #cccccc;"><table width="100%" border="0" cellspacing="0" cellpadding="5" >
+ <tr>
+ <td class="small"><strong>{$UMOD.LBL_MERGE_FIELDS}<br>
+ </strong>{$UMOD.LBL_USE_MERGE_FIELDS_TO_EMAIL_CONTENT}</td>
+ </tr>
+ <tr>
+ <td class="small" nowrap><strong>{$UMOD.LBL_STEP} 1. {$UMOD.LBL_SELECT_FIELD_TYPE}</strong></td>
+ </tr>
+ <tr><td><select class="detailedViewTextBox" id="entityType" ONCHANGE="modifyMergeFieldSelect(this, document.getElementById('mergeFieldSelect'));" tabindex="6">
+ <OPTION VALUE="0" selected>{$APP.LBL_NONE}
+ <OPTION VALUE="1">{$UMOD.LBL_ACCOUNT_FIELDS}
+ <OPTION VALUE="2">{$UMOD.LBL_CONTACT_FIELDS}
+ <OPTION VALUE="3" >{$UMOD.LBL_LEAD_FIELDS}
+ <OPTION VALUE="4" >{$UMOD.LBL_USER_FIELDS}
+ </select></td></tr>
+ <tr>
+ <td class="small"><strong>{$UMOD.LBL_STEP} 2. {$UMOD.LBL_SELECT_FIELD} </strong></td>
+ </tr>
+ <tr><td><select class="detailedViewTextBox" id="mergeFieldSelect" onchange="document.getElementById('mergeFieldValue').value=this.options[this.selectedIndex].value;" tabindex="7"><option value="0" selected>{$APP.LBL_NONE}</select></td></tr>
+ <tr>
+ <td class="small"><strong>{$UMOD.LBL_STEP} 3. {$UMOD.LBL_COPY_PASTE} </strong></td>
+ </tr>
+ <tr><td><input type="text" id="mergeFieldValue" name="variable" value="variable" class="detailedViewTextBoxOn" tabindex="8"/></td></tr>
+ </table></td>
+ </tr>
+ </table></td>
+
+ </tr>
+ </table></td>
+ </tr>
+ </table>
+ <br>
+ <table border=0 cellspacing=0 cellpadding=5 width=100% >
+ <tr>
+ <td class="small" nowrap align=right><a href="#top">{$MOD.LBL_SCROLL}</a></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+
+
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </form>
+ </table>
+
+ </div>
+
+</td>
+ <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td>
+ </tr>
+</tbody>
+</table>
+<script>
+
+function check4null(form)
+{ldelim}
+
+ var isError = false;
+ var errorMessage = "";
+ // Here we decide whether to submit the form.
+ if (trim(form.templatename.value) =='') {ldelim}
+ isError = true;
+ errorMessage += "\n template name";
+ form.templatename.focus();
+ {rdelim}
+ if (trim(form.foldername.value) =='') {ldelim}
+ isError = true;
+ errorMessage += "\n folder name";
+ form.foldername.focus();
+ {rdelim}
+ if (trim(form.subject.value) =='') {ldelim}
+ isError = true;
+ errorMessage += "\n subject";
+ form.subject.focus();
+ {rdelim}
+
+ // Here we decide whether to submit the form.
+ if (isError == true) {ldelim}
+ alert("Missing required fields: " + errorMessage);
+ return false;
+ {rdelim}
+ return true;
+
+{rdelim}
+
+init();
+
+</script>
Modified: vtigercrm/trunk/Smarty/templates/DetailViewEmailTemplate.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/DetailViewEmailTemplate.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/DetailViewEmailTemplate.tpl Tue Jun 20 00:59:19 2006
@@ -1,99 +1,117 @@
-{*<!--
-/*********************************************************************************
- ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
- * ("License"); You may not use this file except in compliance with the License
- * The Original Code is: vtiger CRM Open Source
- * The Initial Developer of the Original Code is vtiger.
- * Portions created by vtiger are Copyright (C) vtiger.
- * All Rights Reserved.
- *
- ********************************************************************************/
--->*}
-<script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
-<style type="text/css">@import url(themes/blue/style.css);</style>
-
-<table width="100%" border="0" cellpadding="0" cellspacing="0" class="small">
-<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%" class="small">
- <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_TEMPLATE_INFORMATION} "{$TEMPLATENAME}"</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%" border="0" cellspacing="0" cellpadding="0">
- <form method="post" action="index.php" name="etemplatedetailview">
- <input type="hidden" name="action" >
- <input type="hidden" name="module" value="Users">
- <input type="hidden" name="templatename" value="{$TEMPLATENAME}">
- <input type="hidden" name="templateid" value="{$TEMPLATEID}">
- <input type="hidden" name="foldername" value="{$FOLDERNAME}">
-
- <tr><td colspan="2"> </td></tr>
- <tr><td colspan="2">
- <table width="100%" border="0" cellpadding="0" cellspacing="0" class="small">
- <tr><td width="75%" valign="middle" >
- <img src="{$IMAGE_PATH}ViewTemplate.gif" align="left" />
- <span class="genHeaderBig">{$TEMPLATENAME}</span><br />
- <span class="dashMnuUnSel">{$TEMPLATENAME} {$UMOD.LBL_TEMPLATE_HEADER} </span>
- </td>
- <td width="25%" align="right" valign="bottom"><input type="submit" name="Button" value="{$UMOD.LBL_EDIT_TEMPLATE}" class="small" onclick="this.form.action.value='editemailtemplate'"/></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- </tr>
-
- <tr>
- <td colspan="2" style="border:2px solid #CCCCCC;">
- <table width="100%" border="0" cellpadding="5" cellspacing="0" class="small">
- <tr>
-
- <td width="25%" align="right" bgcolor="#F6F6F6"><b>{$UMOD.LBL_FOLDER}</b></td>
- <td width="75%" class="mnuTab">{$FOLDERNAME}</td>
- </tr>
- <tr><td bgcolor="#F6F6F6"> </td>
- <td> </td></tr>
-
- <tr>
-
- <td width="25%" align="right" bgcolor="#F6F6F6"><b>{$UMOD.LBL_SUBJECT}</b></td>
- <td width="75%" class="mnuTab">{$SUBJECT}</td>
- </tr>
- <tr><td bgcolor="#F6F6F6"> </td>
- <td> </td></tr>
-
- <tr>
- <td align="right" bgcolor="#F6F6F6" valign="top"><b>{$UMOD.LBL_MESSAGE}</b></td>
- <td width="75%" valign="top" class="mnuTab">{$BODY}</td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- <td> </td>
-
-</form> </tr>
-</table>
-<!-- END -->
-
-
-</td>
-</tr>
-</table>
-
-{$JAVASCRIPT}
-{include file='SettingsSubMenu.tpl'}
-
-
+{*<!--
+/*********************************************************************************
+ ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
+ * ("License"); You may not use this file except in compliance with the License
+ * The Original Code is: vtiger CRM Open Source
+ * The Initial Developer of the Original Code is vtiger.
+ * Portions created by vtiger are Copyright (C) vtiger.
+ * All Rights Reserved.
+ *
+ ********************************************************************************/
+-->*}
+<script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script>
+<br>
+<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
+<tbody><tr>
+ <td valign="top"><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td>
+ <td class="showPanelBg" style="padding: 10px;" valign="top" width="100%">
+<br>
+ <div align=center>
+
+ {include file='SetMenu.tpl'}
+
+ <!-- DISPLAY -->
+ <table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine">
+ <form method="post" action="index.php" name="etemplatedetailview">
+ <input type="hidden" name="action" value="editemailtemplate">
+ <input type="hidden" name="module" value="Users">
+ <input type="hidden" name="templatename" value="{$TEMPLATENAME}">
+ <input type="hidden" name="templateid" value="{$TEMPLATEID}">
+ <input type="hidden" name="foldername" value="{$FOLDERNAME}">
+ <input type="hidden" name="parenttab" value="{$PARENTTAB}">
+ <tr>
+ <td width=50 rowspan=2 valign=top><img src="{$IMAGE_PATH}ViewTemplate.gif" width="45" height="60" border=0 ></td>
+ <td class=heading2 valign=bottom><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}</a> > {$MOD.LBL_VIEWING} "{$TEMPLATENAME}" </b></td>
+ </tr>
+ <tr>
+ <td valign=top class="small">{$UMOD.LBL_EMAIL_TEMPLATE_DESC}</td>
+ </tr>
+ </table>
+
+ <br>
+ <table border=0 cellspacing=0 cellpadding=10 width=100% >
+ <tr>
+ <td>
+
+ <table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
+ <tr>
+ <td class="big"><strong>{$UMOD.LBL_PROPERTIES} "{$TEMPLATENAME}" </strong></td>
+ <td class="small" align=right>
+ <input class="crmButton edit small" type="submit" name="Button" value="{$APP.LBL_EDIT_BUTTON_LABEL}" class="small" onclick="this.form.action.value='editemailtemplate'; this.form.parenttab.value='Settings'">
+ </td>
+ </tr>
+ </table>
+
+ <table border=0 cellspacing=0 cellpadding=5 width=100% >
+ <tr>
+ <td width=20% class="small cellLabel"><strong>{$UMOD.LBL_NAME}</strong></td>
+ <td width=80% class="small cellText"><strong>{$TEMPLATENAME}</strong></td>
+ </tr>
+ <tr>
+ <td valign=top class="small cellLabel"><strong>{$UMOD.LBL_DESCRIPTION}</strong></td>
+ <td class="cellText small" valign=top>{$DESCRIPTION}</td>
+ </tr>
+ <tr>
+ <td valign=top class="small cellLabel"><strong>{$UMOD.LBL_FOLDER}</strong></td>
+ <td class="cellText small" valign=top>{$FOLDERNAME}</td>
+ </tr>
+
+
+ <tr>
+ <td colspan="2" valign=top class="cellText small"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="thickBorder">
+ <tr>
+ <td valign=top><table width="100%" border="0" cellspacing="0" cellpadding="5" >
+ <tr>
+ <td colspan="2" valign="top" class="small" style="background-color:#cccccc"><strong>{$UMOD.LBL_EMAIL_TEMPLATE}</strong></td>
+ </tr>
+ <tr>
+ <td width="15%" valign="top" class="cellLabel small">{$UMOD.LBL_SUBJECT}</td>
+ <td width="85%" class="cellText small">{$SUBJECT}</td>
+ </tr>
+ <tr>
+ <td valign="top" class="cellLabel small">{$UMOD.LBL_MESSAGE}</td>
+ <td class="cellText small">{$BODY}</td>
+ </tr>
+ </table></td>
+
+ </tr>
+ </table></td>
+ </tr>
+ </table>
+ <br>
+ <table border=0 cellspacing=0 cellpadding=5 width=100% >
+ <tr>
+ <td class="small" nowrap align=right><a href="#top">{$MOD.LBL_SCROLL}</a></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+
+
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </form>
+ </table>
+
+ </div>
+
+</td>
+ <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td>
+ </tr>
+</tbody>
+</table>
Modified: vtigercrm/trunk/Smarty/templates/ListEmailTemplates.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/ListEmailTemplates.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/ListEmailTemplates.tpl Tue Jun 20 00:59:19 2006
@@ -1,155 +1,155 @@
-{*<!--
-/*********************************************************************************
- ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
- * ("License"); You may not use this file except in compliance with the License
- * The Original Code is: vtiger CRM Open Source
- * The Initial Developer of the Original Code is vtiger.
- * Portions created by vtiger are Copyright (C) vtiger.
- * All Rights Reserved.
- *
- ********************************************************************************/
--->*}
-<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="{$UMOD.LBL_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="{$UMOD.LBL_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}">{$UMOD.LNK_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="#">{$UMOD.LNK_GO_TO_TOP}</a></div>
- </td>
- </tr>
- </form>
- </table>
-
- </td>
- <td> </td>
- </tr>
-</table>
-<!-- END -->
-
-</td>
-</tr>
-</table>
-
-{$JAVASCRIPT}
-{include file='SettingsSubMenu.tpl'}
-
-
+{*<!--
+/*********************************************************************************
+ ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
+ * ("License"); You may not use this file except in compliance with the License
+ * The Original Code is: vtiger CRM Open Source
+ * The Initial Developer of the Original Code is vtiger.
+ * Portions created by vtiger are Copyright (C) vtiger.
+ * All Rights Reserved.
+ *
+ ********************************************************************************/
+-->*}
+<script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script>
+<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+';';
+ xx=1;
+ {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>
+<br>
+<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
+<tbody><tr>
+ <td valign="top"><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td>
+ <td class="showPanelBg" style="padding: 10px;" valign="top" width="100%">
+<br>
+ <div align=center>
+
+ {include file='SetMenu.tpl'}
+
+ <!-- DISPLAY -->
+ <table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine">
+ <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 width=50 rowspan=2 valign=top><img src="{$IMAGE_PATH}ViewTemplate.gif" width="45" height="60" border=0></td>
+ <td class=heading2 valign=bottom><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS}</a> > {$UMOD.LBL_EMAIL_TEMPLATES} </b></td>
+ </tr>
+ <tr>
+ <td valign=top class="small">{$UMOD.LBL_EMAIL_TEMPLATE_DESC}</td>
+ </tr>
+ </table>
+
+ <br>
+ <table border=0 cellspacing=0 cellpadding=10 width=100% >
+ <tr>
+ <td>
+
+ <table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
+ <tr>
+ <td class="big"><strong>{$UMOD.LBL_EMAIL_TEMPLATES}</strong></td>
+ <td class="small" align=right>
+ </td>
+ </tr>
+ </table>
+
+ <table border=0 cellspacing=0 cellpadding=5 width=100% class="listTableTopButtons">
+ <tr>
+ <td class=small><input type="submit" value="{$UMOD.LBL_DELETE}" onclick="return massDelete();" class="crmButton delete small"></td>
+ <td class=small align=right><input class="crmButton create small" type="submit" value="{$UMOD.LBL_NEW_TEMPLATE}" name="profile" class="classBtn" onclick="this.form.action.value='createemailtemplate';this.form.parenttab.value='Settings';"></td>
+ </tr>
+ </table>
+ <table border="0" cellspacing="0" cellpadding="5" width="100%" class="listTable">
+ <tr>
+ <td width="2%" class="colHeader small">#</td>
+ <td width="3%" class="colHeader small">{$UMOD.LBL_LIST_SELECT}</td>
+ <td width="25%" class="colHeader small">{$UMOD.LBL_EMAIL_TEMPLATE}</td>
+ <td width="50%" class="colHeader small">{$UMOD.LBL_DESCRIPTION}</td>
+ <td width="20%" class="colHeader small">{$UMOD.LBL_TEMPLATE_TOOLS}</td>
+ </tr>
+ {foreach name=emailtemplate item=template from=$TEMPLATES}
+ <tr>
+ <td class="listTableRow small" valign=top>{$smarty.foreach.emailtemplate.iteration}</td>
+ <td class="listTableRow small" valign=top><input type="checkbox" name="selected_id" value="{$template.templateid}" onClick=toggleSelectAll(this.name,"selectall") class=small></td>
+ <td class="listTableRow small" valign=top>
+ <a href="index.php?module=Users&action=detailviewemailtemplate&parenttab=Settings&templateid={$template.templateid}" ><b>{$template.templatename}</b></a>
+ </td>
+ <td class="listTableRow small" valign=top>{$template.description}</td>
+ <td class="listTableRow small" valign=top>
+ <a href="index.php?module=Users&action=detailviewemailtemplate&parenttab=Settings&templateid={$template.templateid}">{$UMOD.LNK_SAMPLE_EMAIL}</a>
+ </td>
+ </tr>
+ {/foreach}
+ </table>
+ <table border=0 cellspacing=0 cellpadding=5 width=100% >
+ <tr>
+ <td class="small" nowrap align=right><a href="#top">{$MOD.LBL_SCROLL}</a></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+
+
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </form>
+ </table>
+
+ </div>
+</td>
+ <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td>
+ </tr>
+</tbody>
+</table>
More information about the vtigercrm-commits
mailing list