[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 {*<!-- 2 3 /********************************************************************************* 4 ** The contents of this file are subject to the vtiger CRM Public License Version 1.0 5 * ("License"); You may not use this file except in compliance with the License 6 * The Original Code is: vtiger CRM Open Source 7 * The Initial Developer of the Original Code is vtiger. 8 * Portions created by vtiger are Copyright (C) vtiger. 9 * All Rights Reserved. 10 * 11 ********************************************************************************/ 12 13 -->*} 14 <script type="text/javascript" src="modules/{$MODULE}/{$SINGLE_MOD}.js"></script> 15 <script language="JavaScript" type="text/javascript" src="include/js/dtlviewajax.js"></script> 16 <script src="include/scriptaculous/scriptaculous.js" type="text/javascript"></script> 17 <div id="convertleaddiv" style="display:block;position:absolute;left:225px;top:150px;"></div> 18 <span id="crmspanid" style="display:none;position:absolute;" onmouseover="show('crmspanid');"> 19 <a class="link" align="right" href="javascript:;">{$APP.LBL_EDIT_BUTTON}</a> 20 </span> 21 <script> 22 function tagvalidate() 23 {ldelim} 24 if(document.getElementById('txtbox_tagfields').value != '') 25 SaveTag('txtbox_tagfields','{$ID}','{$MODULE}'); 26 else 27 {ldelim} 28 alert("Please enter a tag"); 29 return false; 30 {rdelim} 31 {rdelim} 32 function DeleteTag(id) 33 {ldelim} 34 $("vtbusy_info").style.display="inline"; 35 Effect.Fade('tag_'+id); 36 new Ajax.Request( 37 'index.php', 38 {ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim}, 39 method: 'post', 40 postBody: "file=TagCloud&module={$MODULE}&action={$MODULE}Ajax&ajxaction=DELETETAG&tagid=" +id, 41 onComplete: function(response) {ldelim} 42 getTagCloud(); 43 $("vtbusy_info").style.display="none"; 44 {rdelim} 45 {rdelim} 46 ); 47 {rdelim} 48 49 </script> 50 51 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 52 <tr> 53 <td> 54 {include file='Buttons_List1.tpl'} 55 56 <!-- Contents --> 57 <table border=0 cellspacing=0 cellpadding=0 width=98% align=center> 58 <tr> 59 <td valign=top><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td> 60 <td class="showPanelBg" valign=top width=100%> 61 <!-- PUBLIC CONTENTS STARTS--> 62 <div class="small" style="padding:20px" > 63 64 <table align="center" border="0" cellpadding="0" cellspacing="0" width="95%"> 65 <tr> 66 <td> 67 <span class="lvtHeaderText"><font color="purple">[ {$ID} ] </font>{$NAME} - {$MOD[$SINGLE_MOD]} {$APP.LBL_INFORMATION}</span> <span id="vtbusy_info" style="display:none;" valign="bottom"><img src="{$IMAGE_PATH}vtbusy.gif" border="0"></span><span id="vtbusy_info" style="visibility:hidden;" valign="bottom"><img src="{$IMAGE_PATH}vtbusy.gif" border="0"></span> 68 </td> 69 <td> </td> 70 </tr> 71 <tr height=20> 72 <td>{$UPDATEINFO}</td> 73 </tr> 74 </table> 75 76 <hr noshade size=1> 77 78 <!-- Entity and More information tabs --> 79 <table border=0 cellspacing=0 cellpadding=0 width=95% align=center> 80 <tr> 81 <td> 82 <table border=0 cellspacing=0 cellpadding=3 width=100% class="small"> 83 <tr> 84 <td class="dvtTabCache" style="width:10px" nowrap> </td> 85 <td class="dvtSelectedCell" align=center nowrap>{$MOD[$SINGLE_MOD]} {$APP.LBL_INFORMATION}</td> 86 <td class="dvtTabCache" style="width:10px"> </td> 87 {if $SinglePane_View eq 'false'} 88 <td class="dvtUnSelectedCell" align=center nowrap><a href="index.php?action=CallRelatedList&module={$MODULE}&record={$ID}&parenttab={$CATEGORY}">{$APP.LBL_MORE} {$APP.LBL_INFORMATION}</a></td> 89 {/if} 90 <td class="dvtTabCache" style="width:100%"> </td> 91 </tr> 92 </table> 93 </td> 94 </tr> 95 <tr> 96 <td valign=top align=left > 97 <table border=0 cellspacing=0 cellpadding=3 width=100% class="dvtContentSpace"> 98 <tr> 99 100 <td align=left style="padding:10px;"> 101 <!-- content cache --> 102 <!-- Entity informations display - starts --> 103 <table border=0 cellspacing=0 cellpadding=0 width=100%> 104 <tr> 105 <td style="padding:10px;border-right:1px dashed #CCCCCC;" width="80%"> 106 107 108 109 <!-- The following table is used to display the buttons --> 110 <form action="index.php" method="post" name="DetailView" id="form"> 111 {include file='DetailViewHidden.tpl'} 112 <table border=0 cellspacing=0 cellpadding=0 width=100%> 113 {strip} 114 <tr> 115 <td colspan=4 style="padding:5px"> 116 <table border=0 cellspacing=0 cellpadding=0 width=100%> 117 <tr> 118 <td> 119 {if $EDIT_DUPLICATE eq 'permitted'} 120 <input title="{$APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{$APP.LBL_EDIT_BUTTON_KEY}" class="crmbutton small edit" onclick="this.form.return_module.value='{$MODULE}'; this.form.return_action.value='DetailView'; this.form.return_id.value='{$ID}';this.form.module.value='{$MODULE}';this.form.action.value='EditView'" type="submit" name="Edit" value="{$APP.LBL_EDIT_BUTTON_LABEL}"> 121 {/if} 122 </td> 123 <td align=right> 124 {if $EDIT_DUPLICATE eq 'permitted'} 125 <input title="{$APP.LBL_DUPLICATE_BUTTON_TITLE}" accessKey="{$APP.LBL_DUPLICATE_BUTTON_KEY}" class="crmbutton small create" onclick="this.form.return_module.value='{$MODULE}'; this.form.return_action.value='DetailView'; this.form.isDuplicate.value='true';this.form.module.value='{$MODULE}'; this.form.action.value='EditView'" type="submit" name="Duplicate" value="{$APP.LBL_DUPLICATE_BUTTON_LABEL}"> 126 {/if} 127 {if $DELETE eq 'permitted'} 128 <input title="{$APP.LBL_DELETE_BUTTON_TITLE}" accessKey="{$APP.LBL_DELETE_BUTTON_KEY}" class="crmbutton small delete" onclick="this.form.return_module.value='{$MODULE}'; this.form.return_action.value='index'; this.form.action.value='Delete'; return confirm('{$APP.NTC_DELETE_CONFIRMATION}')" type="submit" name="Delete" value="{$APP.LBL_DELETE_BUTTON_LABEL}"> 129 {/if} 130 </td> 131 </tr> 132 </table> 133 <!-- Commented the buttons in DetailView because these buttons have been given as links 134 {if $MODULE eq 'Quotes' || $MODULE eq 'PurchaseOrder' || $MODULE eq 'SalesOrder' || $MODULE eq 'Invoice'} 135 {if $CREATEPDF eq 'permitted'} 136 <input title="Export To PDF" accessKey="Alt+e" class="small" onclick="this.form.return_module.value='{$MODULE}'; this.form.return_action.value='DetailView'; this.form.return_id.value='{$ID}'; this.form.module.value='{$MODULE}'; {if $MODULE eq 'SalesOrder'} this.form.action.value='CreateSOPDF'" {else} this.form.action.value='CreatePDF'" {/if} type="submit" name="Export To PDF" value="{$APP.LBL_EXPORT_TO_PDF}"> 137 {/if} 138 {/if} 139 {if $MODULE eq 'Quotes'} 140 {if $CONVERTSALESORDER eq 'permitted'} 141 <input title="{$APP.LBL_CONVERTSO_BUTTON_TITLE}" accessKey="{$APP.LBL_CONVERTSO_BUTTON_KEY}" class="crmbutton small create" onclick="this.form.return_module.value='SalesOrder'; this.form.return_action.value='DetailView'; this.form.convertmode.value='quotetoso';this.form.module.value='SalesOrder'; this.form.action.value='EditView'" type="submit" name="Convert To SalesOrder" value="{$APP.LBL_CONVERTSO_BUTTON_LABEL}"> 142 {/if} 143 {/if} 144 {if $MODULE eq 'Potentials' || $MODULE eq 'Quotes' || $MODULE eq 'SalesOrder'} 145 {if $CONVERTINVOICE eq 'permitted'} 146 <input title="{$APP.LBL_CONVERTINVOICE_BUTTON_TITLE}" accessKey="{$APP.LBL_CONVERTINVOICE_BUTTON_KEY}" class="crmbutton small create" onclick="this.form.return_module.value='{$MODULE}'; this.form.return_action.value='DetailView'; this.form.return_id.value='{$ID}';this.form.convertmode.value='{$CONVERTMODE}';this.form.module.value='Invoice'; this.form.action.value='EditView'" type="submit" name="Convert To Invoice" value="{$APP.LBL_CONVERTINVOICE_BUTTON_LABEL}"> 147 {/if} 148 {/if} 149 --> 150 </td> 151 </tr> 152 {/strip} 153 </table> 154 <!-- Button displayed - finished--> 155 156 <!-- Entity information(blocks) display - start --> 157 {foreach key=header item=detail from=$BLOCKS} 158 <table border=0 cellspacing=0 cellpadding=0 width=100% class="small"> 159 <tr> 160 <td> </td> 161 <td> </td> 162 <td> </td> 163 <td align=right> 164 </td> 165 </tr> 166 <tr> 167 {strip} 168 <td colspan=4 class="dvInnerHeader" > 169 <b> 170 {$header} 171 </b> 172 </td> 173 {/strip} 174 </tr> 175 176 {foreach item=detail from=$detail} 177 <tr style="height:25px"> 178 {foreach key=label item=data from=$detail} 179 {assign var=keyid value=$data.ui} 180 {assign var=keyval value=$data.value} 181 {assign var=keytblname value=$data.tablename} 182 {assign var=keyfldname value=$data.fldname} 183 {assign var=keyoptions value=$data.options} 184 {assign var=keysecid value=$data.secid} 185 {assign var=keyseclink value=$data.link} 186 {assign var=keycursymb value=$data.cursymb} 187 {assign var=keysalut value=$data.salut} 188 {assign var=keycntimage value=$data.cntimage} 189 {assign var=keyadmin value=$data.isadmin} 190 191 192 {if $label ne ''} 193 {if $keycntimage ne ''} 194 <td class="dvtCellLabel" align=right width=25%><input type="hidden" id="hdtxt_IsAdmin" value={$keyadmin}></input>{$keycntimage}</td> 195 {elseif $label neq 'Tax Class'}<!-- Avoid to display the label Tax Class --> 196 {if $keyid eq '71' || $keyid eq '72'} <!--CurrencySymbol--> 197 <td class="dvtCellLabel" align=right width=25%><input type="hidden" id="hdtxt_IsAdmin" value={$keyadmin}></input>{$label} ({$keycursymb})</td> 198 {else} 199 <td class="dvtCellLabel" align=right width=25%><input type="hidden" id="hdtxt_IsAdmin" value={$keyadmin}></input>{$label}</td> 200 {/if} 201 {/if} 202 {if $EDIT_PERMISSION eq 'yes'} 203 {include file="DetailViewUI.tpl"} 204 {else} 205 {include file="DetailViewFields.tpl"} 206 {/if} 207 {else} 208 <td class="dvtCellLabel" align=right> </td> 209 <td class="dvtCellInfo" align=left > </td> 210 {/if} 211 {/foreach} 212 </tr> 213 {/foreach} 214 </table> 215 {/foreach} 216 {*-- End of Blocks--*} 217 <!-- Entity information(blocks) display - ends --> 218 219 <br> 220 221 <!-- Product Details informations --> 222 {$ASSOCIATED_PRODUCTS} 223 224 </td> 225 <!-- The following table is used to display the buttons --> 226 <table border=0 cellspacing=0 cellpadding=0 width=100%> 227 <tr> 228 <td style="padding:10px;border-right:1px dashed #CCCCCC;" width="80%"> 229 {if $SinglePane_View eq 'false'} 230 <table border=0 cellspacing=0 cellpadding=0 width=100%> 231 {strip} 232 <tr> 233 <td colspan=4 style="padding:5px"> 234 <table border=0 cellspacing=0 cellpadding=0 width=100%> 235 <tr> 236 <td> 237 {if $EDIT_DUPLICATE eq 'permitted'} 238 <input title="{$APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{$APP.LBL_EDIT_BUTTON_KEY}" class="crmbutton small edit" onclick="this.form.return_module.value='{$MODULE}'; this.form.return_action.value='DetailView'; this.form.return_id.value='{$ID}';this.form.module.value='{$MODULE}';this.form.action.value='EditView'" type="submit" name="Edit" value="{$APP.LBL_EDIT_BUTTON_LABEL}"> 239 {/if} 240 </td> 241 <td align=right> 242 {if $EDIT_DUPLICATE eq 'permitted'} 243 <input title="{$APP.LBL_DUPLICATE_BUTTON_TITLE}" accessKey="{$APP.LBL_DUPLICATE_BUTTON_KEY}" class="crmbutton small create" onclick="this.form.return_module.value='{$MODULE}'; this.form.return_action.value='DetailView'; this.form.isDuplicate.value='true';this.form.module.value='{$MODULE}'; this.form.action.value='EditView'" type="submit" name="Duplicate" value="{$APP.LBL_DUPLICATE_BUTTON_LABEL}"> 244 {/if} 245 {if $DELETE eq 'permitted'} 246 <input title="{$APP.LBL_DELETE_BUTTON_TITLE}" accessKey="{$APP.LBL_DELETE_BUTTON_KEY}" class="crmbutton small delete" onclick="this.form.return_module.value='{$MODULE}'; this.form.return_action.value='index'; this.form.action.value='Delete'; return confirm('{$APP.NTC_DELETE_CONFIRMATION}')" type="submit" name="Delete" value="{$APP.LBL_DELETE_BUTTON_LABEL}"> 247 {/if} 248 </td> 249 </tr> 250 </table> 251 252 <!-- Commented the buttons in DetailView because these buttons have been given as links 253 {if $MODULE eq 'Quotes' || $MODULE eq 'PurchaseOrder' || $MODULE eq 'SalesOrder' || $MODULE eq 'Invoice'} 254 {if $CREATEPDF eq 'permitted'} 255 <input title="Export To PDF" accessKey="Alt+e" class="small" onclick="this.form.return_module.value='{$MODULE}'; this.form.return_action.value='DetailView'; this.form.return_id.value='{$ID}'; this.form.module.value='{$MODULE}'; {if $MODULE eq 'SalesOrder'} this.form.action.value='CreateSOPDF'" {else} this.form.action.value='CreatePDF'" {/if} type="submit" name="Export To PDF" value="{$APP.LBL_EXPORT_TO_PDF}"> 256 {/if} 257 {/if} 258 {if $MODULE eq 'Quotes'} 259 {if $CONVERTSALESORDER eq 'permitted'} 260 <input title="{$APP.LBL_CONVERTSO_BUTTON_TITLE}" accessKey="{$APP.LBL_CONVERTSO_BUTTON_KEY}" class="crmbutton small create" onclick="this.form.return_module.value='SalesOrder'; this.form.return_action.value='DetailView'; this.form.convertmode.value='quotetoso';this.form.module.value='SalesOrder'; this.form.action.value='EditView'" type="submit" name="Convert To SalesOrder" value="{$APP.LBL_CONVERTSO_BUTTON_LABEL}"> 261 {/if} 262 {/if} 263 {if $MODULE eq 'Potentials' || $MODULE eq 'Quotes' || $MODULE eq 'SalesOrder'} 264 {if $CONVERTINVOICE eq 'permitted'} 265 <input title="{$APP.LBL_CONVERTINVOICE_BUTTON_TITLE}" accessKey="{$APP.LBL_CONVERTINVOICE_BUTTON_KEY}" class="crmbutton small create" onclick="this.form.return_module.value='{$MODULE}'; this.form.return_action.value='DetailView'; this.form.return_id.value='{$ID}';this.form.convertmode.value='{$CONVERTMODE}';this.form.module.value='Invoice'; this.form.action.value='EditView'" type="submit" name="Convert To Invoice" value="{$APP.LBL_CONVERTINVOICE_BUTTON_LABEL}"> 266 {/if} 267 {/if} 268 --> 269 </td> 270 </tr> 271 {/strip} 272 </table> 273 {/if} 274 </form> 275 <table border=0 cellspacing=0 cellpadding=0 width=100%> 276 <tr> 277 <td style="border-right:1px dashed #CCCCCC;" width="100%"> 278 {if $SinglePane_View eq 'true'} 279 {include file= 'RelatedListNew.tpl'} 280 {/if} 281 </td></tr></table> 282 </td></tr></table> 283 <!-- Button displayed - finished--> 284 <!-- Inventory Actions - ends --> 285 <td width=22% valign=top style="padding:10px;"> 286 <!-- right side InventoryActions --> 287 {include file="Inventory/InventoryActions.tpl"} 288 289 <br> 290 <!-- To display the Tag Clouds --> 291 <div> 292 {include file="TagCloudDisplay.tpl"} 293 </div> 294 </td> 295 </tr> 296 </table> 297 </td> 298 </tr> 299 </table> 300 <!-- PUBLIC CONTENTS STOPS--> 301 </td> 302 <td align=right valign=top> 303 <img src="{$IMAGE_PATH}showPanelTopRight.gif"> 304 </td> 305 </tr> 306 </table> 307 </div> 308 </td> 309 </tr> 310 </table> 311 <!-- Contents - end --> 312 313 <script> 314 function getTagCloud() 315 {ldelim} 316 new Ajax.Request( 317 'index.php', 318 {ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim}, 319 method: 'post', 320 postBody: 'module={$MODULE}&action={$MODULE}Ajax&file=TagCloud&ajxaction=GETTAGCLOUD&recordid={$ID}', 321 onComplete: function(response) {ldelim} 322 $("tagfields").innerHTML=response.responseText; 323 $("txtbox_tagfields").value =''; 324 {rdelim} 325 {rdelim} 326 ); 327 {rdelim} 328 getTagCloud(); 329 </script> 330 331 </td> 332 </tr> 333 </table> 334 <script language="javascript"> 335 var fieldname = new Array({$VALIDATION_DATA_FIELDNAME}); 336 var fieldlabel = new Array({$VALIDATION_DATA_FIELDLABEL}); 337 var fielddatatype = new Array({$VALIDATION_DATA_FIELDDATATYPE}); 338 </script> 339
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 |