[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 {*<!-- 2 /********************************************************************************* 3 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 * 10 ********************************************************************************/ 11 -->*} 12 13 <script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script> 14 <script> 15 function ifselected() 16 {ldelim} 17 18 19 var sel =document.massdelete.selected_id.length; 20 var returnval=false; 21 22 for(i=0; i < sel; i++) 23 {ldelim} 24 25 if(document.massdelete.selected_id[i].checked == true) 26 {ldelim} 27 returnval=true; 28 break; 29 {rdelim} 30 31 {rdelim} 32 33 34 if(returnval==true) 35 {ldelim} 36 document.getElementById("myProfile").style.display="none"; 37 {rdelim} 38 else 39 {ldelim} 40 document.getElementById("myProfile").style.display="block"; 41 {rdelim} 42 43 {rdelim} 44 45 46 function massDelete() 47 {ldelim} 48 49 x = document.massdelete.selected_id.length; 50 idstring = ""; 51 52 if ( x == undefined) 53 {ldelim} 54 55 if (document.massdelete.selected_id.checked) 56 {ldelim} 57 document.massdelete.idlist.value=document.massdelete.selected_id.value+';'; 58 59 60 xx=1; 61 {rdelim} 62 else 63 {ldelim} 64 document.massdelete.profile.style.display="none"; 65 alert("Please select at least one entity"); 66 67 return false; 68 {rdelim} 69 {rdelim} 70 else 71 {ldelim} 72 xx = 0; 73 for(i = 0; i < x ; i++) 74 {ldelim} 75 if(document.massdelete.selected_id[i].checked) 76 {ldelim} 77 idstring = document.massdelete.selected_id[i].value +";"+idstring 78 xx++ 79 {rdelim} 80 {rdelim} 81 if (xx != 0) 82 {ldelim} 83 document.massdelete.idlist.value=idstring; 84 {rdelim} 85 else 86 {ldelim} 87 alert("Please select at least one entity"); 88 return false; 89 {rdelim} 90 {rdelim} 91 if(confirm("Are you sure you want to delete the selected "+xx+" records ?")) 92 {ldelim} 93 document.massdelete.action="index.php?module=Users&action=deleteemailtemplate&return_module=Users&return_action=listemailtemplates"; 94 {rdelim} 95 else 96 {ldelim} 97 return false; 98 {rdelim} 99 100 {rdelim} 101 </script> 102 <br> 103 <table align="center" border="0" cellpadding="0" cellspacing="0" width="98%"> 104 <tbody><tr> 105 <td valign="top"><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td> 106 <td class="showPanelBg" style="padding: 10px;" valign="top" width="100%"> 107 <br> 108 <div align=center> 109 110 {include file='SetMenu.tpl'} 111 112 <!-- DISPLAY --> 113 <table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine"> 114 <form name="massdelete" method="POST"> 115 <input name="idlist" type="hidden"> 116 <input name="module" type="hidden" value="Users"> 117 <input name="action" type="hidden" value="deleteemailtemplate"> 118 <tr> 119 <td width=50 rowspan=2 valign=top><img src="{$IMAGE_PATH}ViewTemplate.gif" width="45" height="60" border=0></td> 120 <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> 121 </tr> 122 <tr> 123 <td valign=top class="small">{$UMOD.LBL_EMAIL_TEMPLATE_DESC}</td> 124 </tr> 125 </table> 126 127 <br> 128 <table border=0 cellspacing=0 cellpadding=10 width=100% > 129 <tr> 130 <td> 131 132 <table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading"> 133 <tr> 134 <td class="big"><strong>{$UMOD.LBL_EMAIL_TEMPLATES}</strong></td> 135 <td class="small" align=right> 136 </td> 137 </tr> 138 </table> 139 140 <table border=0 cellspacing=0 cellpadding=5 width=100% class="listTableTopButtons"> 141 <tr> 142 <td class=small><input type="submit" value="{$UMOD.LBL_DELETE}" onclick="return massDelete();" class="crmButton delete small"></td> 143 <td class=small align=right id="new_template"><div id = "myProfile"><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';"></div></td> 144 </tr> 145 </table> 146 <table border="0" cellspacing="0" cellpadding="5" width="100%" class="listTable"> 147 <tr> 148 <td width="2%" class="colHeader small">#</td> 149 <td width="3%" class="colHeader small">{$UMOD.LBL_LIST_SELECT}</td> 150 <td width="25%" class="colHeader small">{$UMOD.LBL_EMAIL_TEMPLATE}</td> 151 <td width="50%" class="colHeader small">{$UMOD.LBL_DESCRIPTION}</td> 152 <td width="20%" class="colHeader small">{$UMOD.LBL_TEMPLATE_TOOLS}</td> 153 </tr> 154 {foreach name=emailtemplate item=template from=$TEMPLATES} 155 <tr> 156 <td class="listTableRow small" valign=top>{$smarty.foreach.emailtemplate.iteration}</td> 157 <td class="listTableRow small" valign=top><input type="checkbox" name="selected_id" value="{$template.templateid}" onClick="ifselected(); " class=small></td> 158 <td class="listTableRow small" valign=top> 159 <a href="index.php?module=Users&action=detailviewemailtemplate&parenttab=Settings&templateid={$template.templateid}" ><b>{$template.templatename}</b></a> 160 </td> 161 <td class="listTableRow small" valign=top>{$template.description} </td> 162 <td class="listTableRow small" valign=top> 163 <a href="index.php?module=Users&action=detailviewemailtemplate&parenttab=Settings&templateid={$template.templateid}">{$UMOD.LNK_SAMPLE_EMAIL}</a> 164 </td> 165 </tr> 166 {/foreach} 167 </table> 168 <table border=0 cellspacing=0 cellpadding=5 width=100% > 169 <tr> 170 <td class="small" nowrap align=right><a href="#top">{$MOD.LBL_SCROLL}</a></td> 171 </tr> 172 </table> 173 </td> 174 </tr> 175 </table> 176 177 178 179 </td> 180 </tr> 181 </table> 182 </td> 183 </tr> 184 </form> 185 </table> 186 187 </div> 188 </td> 189 <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td> 190 </tr> 191 </tbody> 192 </table>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |