[ 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 <script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script> 13 <script> 14 function massDelete() 15 {ldelim} 16 if(typeof(document.massdelete.selected_id) == 'undefined') 17 return false; 18 x = document.massdelete.selected_id.length; 19 idstring = ""; 20 21 if ( x == undefined) 22 {ldelim} 23 24 if (document.massdelete.selected_id.checked) 25 {ldelim} 26 document.massdelete.idlist.value=document.massdelete.selected_id.value+';'; 27 xx=1; 28 {rdelim} 29 else 30 {ldelim} 31 alert("Please select at least one entity"); 32 return false; 33 {rdelim} 34 {rdelim} 35 else 36 {ldelim} 37 xx = 0; 38 for(i = 0; i < x ; i++) 39 {ldelim} 40 if(document.massdelete.selected_id[i].checked) 41 {ldelim} 42 idstring = document.massdelete.selected_id[i].value +";"+idstring 43 xx++ 44 {rdelim} 45 {rdelim} 46 if (xx != 0) 47 {ldelim} 48 document.massdelete.idlist.value=idstring; 49 {rdelim} 50 else 51 {ldelim} 52 alert("Please select at least one entity"); 53 return false; 54 {rdelim} 55 {rdelim} 56 if(confirm("Are you sure you want to delete the selected "+xx+" records ?")) 57 {ldelim} 58 document.massdelete.action.value= "deletewordtemplate"; 59 {rdelim} 60 else 61 {ldelim} 62 return false; 63 {rdelim} 64 65 {rdelim} 66 </script> 67 <br> 68 <table align="center" border="0" cellpadding="0" cellspacing="0" width="98%"> 69 <tbody><tr> 70 <td valign="top"><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td> 71 <td class="showPanelBg" style="padding: 10px;" valign="top" width="100%"> 72 <br> 73 <div align=center> 74 75 {include file='SetMenu.tpl'} 76 77 <!-- DISPLAY --> 78 <table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine"> 79 <form name="massdelete" method="POST"> 80 <input name="idlist" type="hidden"> 81 <input name="module" type="hidden" value="Users"> 82 <input name="parenttab" type="hidden" value="Settings"> 83 <input name="action" type="hidden"> 84 <tr> 85 <td width=50 rowspan=2 valign=top><img src="{$IMAGE_PATH}mailmarge.gif" alt="Users" width="48" height="48" border=0 title="Users"></td> 86 <td class=heading2 valign=bottom><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS}</a> > {$UMOD.LBL_WORD_TEMPLATES} </b></td> 87 </tr> 88 <tr> 89 <td valign=top class="small">{$MOD.LBL_MAIL_MERGE_DESC}</td> 90 </tr> 91 </table> 92 93 <br> 94 <table border=0 cellspacing=0 cellpadding=10 width=100% > 95 <tr> 96 <td> 97 98 <table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading"> 99 <tr> 100 <td class="big"><strong>{$UMOD.LBL_WORD_TEMPLATES}</strong></td> 101 <td class="small" align=right> 102 </td> 103 </tr> 104 </table> 105 106 <table border=0 cellspacing=0 cellpadding=5 width=100% class="listTableTopButtons"> 107 <tr> 108 <td class=small><input type="submit" value="{$UMOD.LBL_DELETE}" onclick="return massDelete();" class="crmButton delete small"></td> 109 <td class=small align=right><input class="crmButton create small" type="submit" value="{$UMOD.LBL_ADD_TEMPLATE}" name="profile" onclick="this.form.action.value='upload'; this.form.parenttab.value='Settings'"> </td> 110 </tr> 111 </table> 112 113 <table border=0 cellspacing=0 cellpadding=5 width=100% class="listTable"> 114 <tr> 115 <td width=2% class="colHeader small">#</td> 116 <td width=3% class="colHeader small">{$UMOD.LBL_LIST_SELECT}</td> 117 <td width=20% class="colHeader small">{$UMOD.LBL_TEMPLATE_FILE}</td> 118 <td width=50% class="colHeader small">{$UMOD.LBL_DESCRIPTION}</td> 119 <td width=15% class="colHeader small">{$UMOD.LBL_MODULENAMES}</td> 120 <td width=15% class="colHeader small">{$UMOD.LBL_LIST_TOOLS}</td> 121 </tr> 122 {foreach item=template name=mailmerge from=$WORDTEMPLATES} 123 <tr> 124 <td class="listTableRow small" valign=top>{$smarty.foreach.mailmerge.iteration}</td> 125 <td class="listTableRow small" valign=top><input type="checkbox" class=small name="selected_id" value="{$template.templateid}"></td> 126 <td class="listTableRow small" valign=top><b>{$template.filename}</b></a></td> 127 <td class="listTableRow small" valign=top>{$template.description} </td> 128 <td class="listTableRow small" valign=top>{$template.module}</td> 129 <td class="listTableRow small" valign=top><a href="index.php?module=Users&action=downloadfile&record={$template.templateid}">{$UMOD.LBL_DOWNLOAD}</a></td> 130 </tr> 131 {/foreach} 132 </table> 133 <table border=0 cellspacing=0 cellpadding=5 width=100% > 134 <tr> 135 <td class="small" nowrap align=right><a href="#top">{$MOD.LBL_SCROLL}</a></td> 136 </tr> 137 </table> 138 </td> 139 </tr> 140 </table> 141 142 143 144 </td> 145 </tr> 146 </table> 147 </td> 148 </tr> 149 </form> 150 </table> 151 152 </div> 153 </td> 154 <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td> 155 </tr> 156 </tbody> 157 </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 |