[ 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 type="text/javascript" src="include/js/reflection.js"></script> 16 <script src="include/scriptaculous/prototype.js" type="text/javascript"></script> 17 <script src="include/scriptaculous/scriptaculous.js" type="text/javascript"></script> 18 <script language="JavaScript" type="text/javascript" src="include/js/dtlviewajax.js"></script> 19 <span id="crmspanid" style="display:none;position:absolute;" onmouseover="show('crmspanid');"> 20 <a class="link" align="right" href="javascript:;">{$APP.LBL_EDIT_BUTTON}</a> 21 </span> 22 23 {if $MODULE eq 'Leads' or $MODULE eq 'Contacts' or $MODULE eq 'Accounts'} 24 <form name="SendMail"><div id="sendmail_cont" style="z-index:100001;position:absolute;"></div></form> 25 {/if} 26 27 <div id="convertleaddiv" style="display:block;position:absolute;left:225px;top:150px;"></div> 28 <script> 29 {literal} 30 31 function callConvertLeadDiv(id) 32 { 33 new Ajax.Request( 34 'index.php', 35 {queue: {position: 'end', scope: 'command'}, 36 method: 'post', 37 postBody: 'module=Leads&action=LeadsAjax&file=ConvertLead&record='+id, 38 onComplete: function(response) { 39 $("convertleaddiv").innerHTML=response.responseText; 40 eval($("conv_leadcal").innerHTML); 41 } 42 } 43 ); 44 } 45 {/literal} 46 47 function tagvalidate() 48 {ldelim} 49 if(document.getElementById('txtbox_tagfields').value != '') 50 SaveTag('txtbox_tagfields','{$ID}','{$MODULE}'); 51 else 52 {ldelim} 53 alert("Please enter a tag"); 54 return false; 55 {rdelim} 56 {rdelim} 57 function DeleteTag(id) 58 {ldelim} 59 $("vtbusy_info").style.display="inline"; 60 Effect.Fade('tag_'+id); 61 new Ajax.Request( 62 'index.php', 63 {ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim}, 64 method: 'post', 65 postBody: "file=TagCloud&module={$MODULE}&action={$MODULE}Ajax&ajxaction=DELETETAG&tagid=" +id, 66 onComplete: function(response) {ldelim} 67 getTagCloud(); 68 $("vtbusy_info").style.display="none"; 69 {rdelim} 70 {rdelim} 71 ); 72 {rdelim} 73 </script> 74 {if $MODULE eq 'Accounts' || $MODULE eq 'Contacts' || $MODULE eq 'Leads'} 75 {if $MODULE eq 'Accounts'} 76 {assign var=address1 value='$MOD.LBL_BILLING_ADDRESS'} 77 {assign var=address2 value='$MOD.LBL_SHIPPING_ADDRESS'} 78 {/if} 79 {if $MODULE eq 'Contacts'} 80 {assign var=address1 value='$MOD.LBL_PRIMARY_ADDRESS'} 81 {assign var=address2 value='$MOD.LBL_ALTERNATE_ADDRESS'} 82 {/if} 83 <div id="locateMap" onMouseOut="fninvsh('locateMap')" onMouseOver="fnvshNrm('locateMap')"> 84 <table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%"> 85 <tr> 86 <td> 87 {if $MODULE eq 'Accounts'} 88 <a href="javascript:;" onClick="fninvsh('locateMap'); searchMapLocation( 'Main' );" class="calMnu">{$MOD.LBL_BILLING_ADDRESS}</a> 89 <a href="javascript:;" onClick="fninvsh('locateMap'); searchMapLocation( 'Other' );" class="calMnu">{$MOD.LBL_SHIPPING_ADDRESS}</a> 90 {/if} 91 92 {if $MODULE eq 'Contacts'} 93 <a href="javascript:;" onClick="fninvsh('locateMap'); searchMapLocation( 'Main' );" class="calMnu">{$MOD.LBL_PRIMARY_ADDRESS}</a> 94 <a href="javascript:;" onClick="fninvsh('locateMap'); searchMapLocation( 'Other' );" class="calMnu">{$MOD.LBL_ALTERNATE_ADDRESS}</a> 95 {/if} 96 97 </td> 98 </tr> 99 </table> 100 </div> 101 {/if} 102 103 104 <table width="100%" cellpadding="2" cellspacing="0" border="0"> 105 <tr> 106 <td> 107 108 {include file='Buttons_List1.tpl'} 109 110 <!-- Contents --> 111 <table border=0 cellspacing=0 cellpadding=0 width=98% align=center> 112 <tr> 113 <td valign=top><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td> 114 <td class="showPanelBg" valign=top width=100%> 115 <!-- PUBLIC CONTENTS STARTS--> 116 <div class="small" style="padding:10px" > 117 118 <table align="center" border="0" cellpadding="0" cellspacing="0" width="95%"><tr><td> 119 <span class="dvHeaderText">[ {$ID} ]{$NAME} - {$APP[$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></td><td> </td></tr> 120 <tr height=20><td>{$UPDATEINFO}</td></tr> 121 </table> 122 <br> 123 124 <!-- Account details tabs --> 125 <table border=0 cellspacing=0 cellpadding=0 width=95% align=center> 126 <tr> 127 <td> 128 <table border=0 cellspacing=0 cellpadding=3 width=100% class="small"> 129 <tr> 130 <td class="dvtTabCache" style="width:10px" nowrap> </td> 131 {if $MODULE eq 'Notes' || $MODULE eq 'Faq' || $MODULE eq 'Webmails' || ($MODULE eq 'Calendar' && $ACTIVITY_MODE eq 'Task')} 132 <td class="dvtSelectedCell" align=center nowrap>{$APP[$SINGLE_MOD]} {$APP.LBL_INFORMATION}</td> 133 <td class="dvtTabCache" style="width:100%"> </td> 134 {else} 135 <td class="dvtSelectedCell" align=center nowrap>{$APP[$SINGLE_MOD]} {$APP.LBL_INFORMATION}</td> 136 <td class="dvtTabCache" style="width:10px"> </td> 137 {if $SinglePane_View eq 'false'} 138 <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> 139 {/if} 140 <td class="dvtTabCache" style="width:100%"> </td> 141 {/if} 142 </tr> 143 </table> 144 </td> 145 </tr> 146 <tr> 147 <td valign=top align=left > 148 <table border=0 cellspacing=0 cellpadding=3 width=100% class="dvtContentSpace"> 149 <tr> 150 151 <td align=left> 152 <!-- content cache --> 153 154 <table border=0 cellspacing=0 cellpadding=0 width=100%> 155 <tr> 156 <td style="padding:5px"> 157 <!-- Command Buttons --> 158 <form action="index.php" method="post" name="DetailView" id="form"> 159 {include file='DetailViewHidden.tpl'} 160 <table border=0 cellspacing=0 cellpadding=0 width=100%> 161 {strip}<tr> 162 <td colspan=4 style="padding:5px"> 163 164 165 <table border=0 cellspacing=0 cellpadding=0 width=100%> 166 <tr> 167 <td> 168 169 {if $EDIT_DUPLICATE eq 'permitted'} 170 <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} "> 171 {/if} 172 {if $MODULE eq 'Webmails'} 173 <input title="Add to CRM" class="crmbutton small create" onclick="window.location='index.php?module={$MODULE}&action=Save&mailid={$ID}';return false;" type="submit" name="addtocrm" value="Add to CRM"> 174 <input title="Reply to Sender" class="crmbutton small create" onclick="window.location='index.php?module={$MODULE}&action=EditView&mailid={$ID}&reply=single&return_action=DetailView&return_module=Webmails&return_id={$ID}';return false;" type="submit" name="replytosender" value="Reply to Sender"> 175 <input title="Reply to All" class="crmbutton small create" onclick="window.location='index.php?module={$MODULE}&action=EditView&mailid={$ID}&reply=all&return_action=DetailView&return_module=Webmails&return_id={$ID}';return false;" type="submit" name="replytosender" value="Reply to All"> 176 {/if} 177 {if $MODULE eq 'Leads' || $MODULE eq 'Contacts'} 178 {if $SENDMAILBUTTON eq 'permitted'} 179 <input title="{$APP.LBL_SENDMAIL_BUTTON_TITLE}" accessKey="{$APP.LBL_SENDMAIL_BUTTON_KEY}" class="crmbutton small edit" onclick="fnvshobj(this,'sendmail_cont');sendmail('{$MODULE}',{$ID});" type="button" name="SendMail" value="{$APP.LBL_SENDMAIL_BUTTON_LABEL}"> 180 {/if} 181 {/if} 182 {if $MODULE eq 'Quotes' || $MODULE eq 'PurchaseOrder' || $MODULE eq 'SalesOrder' || $MODULE eq 'Invoice'} 183 {if $CREATEPDF eq 'permitted'} 184 <input title="Export To PDF" accessKey="Alt+e" 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.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}"> 185 {/if} 186 {/if} 187 {if $MODULE eq 'Quotes'} 188 {if $CONVERTSALESORDER eq 'permitted'} 189 <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}"> 190 {/if} 191 {/if} 192 {if $MODULE eq 'HelpDesk'} 193 {if $CONVERTASFAQ eq 'permitted'} 194 <input title="{$MOD.LBL_CONVERT_AS_FAQ_BUTTON_TITLE}" accessKey="{$MOD.LBL_CONVERT_AS_FAQ_BUTTON_KEY}" class="crmbutton small create" onclick="this.form.return_module.value='Faq'; this.form.return_action.value='DetailView'; this.form.action.value='ConvertAsFAQ';" type="submit" name="ConvertAsFAQ" value="{$MOD.LBL_CONVERT_AS_FAQ_BUTTON_LABEL}"> 195 {/if} 196 {/if} 197 198 {if $MODULE eq 'Potentials' || $MODULE eq 'Quotes' || $MODULE eq 'SalesOrder'} 199 {if $CONVERTINVOICE eq 'permitted'} 200 <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}"> 201 {/if} 202 {/if} 203 {if $MODULE eq 'Leads'} 204 {if $CONVERTLEAD eq 'permitted'} 205 <input title="{$APP.LBL_CONVERT_BUTTON_TITLE}" accessKey="{$APP.LBL_CONVERT_BUTTON_KEY}" class="crmbutton small create" onclick="callConvertLeadDiv('{$ID}');" type="button" name="Convert" value="{$APP.LBL_CONVERT_BUTTON_LABEL}"> 206 {/if} 207 {/if} 208 </td> 209 <td align=right> 210 {if $EDIT_DUPLICATE eq 'permitted'} 211 <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}"> 212 {/if} 213 {if $DELETE eq 'permitted'} 214 <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}"> 215 {/if} 216 217 </td> 218 </tr> 219 </table> 220 221 </td> 222 </tr>{/strip} 223 {foreach key=header item=detail from=$BLOCKS} 224 225 <!-- Detailed View Code starts here--> 226 <table border=0 cellspacing=0 cellpadding=0 width=100% class="small"> 227 <tr> 228 <td> </td> 229 <td> </td> 230 <td> </td> 231 <td align=right> 232 {if $header eq $MOD.LBL_ADDRESS_INFORMATION && ($MODULE eq 'Accounts' || $MODULE eq 'Contacts' || $MODULE eq 'Leads') } 233 {if $MODULE eq 'Leads'} 234 <input name="mapbutton" value="{$APP.LBL_LOCATE_MAP}" class="crmbutton small create" type="button" onClick="searchMapLocation( 'Main' )" title="{$APP.LBL_LOCATE_MAP}"> 235 {else} 236 <input name="mapbutton" value="{$APP.LBL_LOCATE_MAP}" class="crmbutton small create" type="button" onClick="fnvshobj(this,'locateMap');" onMouseOut="fninvsh('locateMap');" title="{$APP.LBL_LOCATE_MAP}"> 237 {/if} 238 {/if} 239 </td> 240 </tr> 241 242 <!-- This is added to display the existing comments --> 243 {if $header eq $MOD.LBL_COMMENTS || $header eq $MOD.LBL_COMMENT_INFORMATION} 244 <tr> 245 <td colspan=4 class="dvInnerHeader"> 246 <b>{$MOD.LBL_COMMENT_INFORMATION}</b> 247 </td> 248 </tr> 249 <tr> 250 <td colspan=4 class="dvtCellInfo">{$COMMENT_BLOCK}</td> 251 </tr> 252 <tr><td> </td></tr> 253 {/if} 254 255 256 257 258 259 <tr>{strip} 260 <td colspan=4 class="dvInnerHeader"> 261 <b> 262 {$header} 263 </b> 264 </td>{/strip} 265 </tr> 266 {foreach item=detail from=$detail} 267 <tr style="height:25px"> 268 {foreach key=label item=data from=$detail} 269 {assign var=keyid value=$data.ui} 270 {assign var=keyval value=$data.value} 271 {assign var=keytblname value=$data.tablename} 272 {assign var=keyfldname value=$data.fldname} 273 {assign var=keyoptions value=$data.options} 274 {assign var=keysecid value=$data.secid} 275 {assign var=keyseclink value=$data.link} 276 {assign var=keycursymb value=$data.cursymb} 277 {assign var=keysalut value=$data.salut} 278 {assign var=keycntimage value=$data.cntimage} 279 {assign var=keyadmin value=$data.isadmin} 280 281 282 283 {if $label ne ''} 284 {if $keycntimage ne ''} 285 <td class="dvtCellLabel" align=right width=25%><input type="hidden" id="hdtxt_IsAdmin" value={$keyadmin}></input>{$keycntimage}</td> 286 {elseif $keyid eq '71' || $keyid eq '72'}<!-- Currency symbol --> 287 <td class="dvtCellLabel" align=right width=25%>{$label}<input type="hidden" id="hdtxt_IsAdmin" value={$keyadmin}></input> ({$keycursymb})</td> 288 {else} 289 <td class="dvtCellLabel" align=right width=25%><input type="hidden" id="hdtxt_IsAdmin" value={$keyadmin}></input>{$label}</td> 290 {/if} 291 {if $EDIT_PERMISSION eq 'yes'} {include file="DetailViewUI.tpl"} 292 {else} {include file="DetailViewFields.tpl"} 293 {/if} 294 {else} 295 <td class="dvtCellLabel" align=right> </td> 296 <td class="dvtCellInfo" align=left > </td> 297 {/if} 298 {/foreach} 299 </tr> 300 {/foreach} 301 </table> 302 </td> 303 </tr> 304 <tr> <td style="padding:10px"> 305 {/foreach} 306 {*-- End of Blocks--*} 307 </td> 308 </tr> 309 <!-- Inventory - Product Details informations --> 310 <tr> 311 {$ASSOCIATED_PRODUCTS} 312 </tr> 313 {if $SinglePane_View eq 'false'} 314 <tr> 315 <td style="padding:10px"> 316 <table border=0 cellspacing=0 cellpadding=0 width=100%> 317 {strip}<tr nowrap> 318 <td colspan=4 style="padding:5px"> 319 <table border=0 cellspacing=0 cellpadding=0 width=100%> 320 <tr> 321 <td> 322 323 {if $EDIT_DUPLICATE eq 'permitted'} 324 <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} "> 325 {/if} 326 {if $MODULE eq 'Webmails'} 327 <input title="Add to CRM" class="crmbutton small create" onclick="window.location='index.php?module={$MODULE}&action=Save&mailid={$ID}';return false;" type="submit" name="addtocrm" value="Add to CRM"> 328 <input title="Reply to Sender" class="crmbutton small create" onclick="window.location='index.php?module={$MODULE}&action=EditView&mailid={$ID}&reply=single&return_action=DetailView&return_module=Webmails&return_id={$ID}';return false;" type="submit" name="replytosender" value="Reply to Sender"> 329 <input title="Reply to All" class="crmbutton small create" onclick="window.location='index.php?module={$MODULE}&action=EditView&mailid={$ID}&reply=all&return_action=DetailView&return_module=Webmails&return_id={$ID}';return false;" type="submit" name="replytosender" value="Reply to All"> 330 {/if} 331 {if $MODULE eq 'Leads' || $MODULE eq 'Contacts'} 332 {if $SENDMAILBUTTON eq 'permitted'} 333 <input title="{$APP.LBL_SENDMAIL_BUTTON_TITLE}" accessKey="{$APP.LBL_SENDMAIL_BUTTON_KEY}" class="crmbutton small edit" onclick="fnvshobj(this,'sendmail_cont');sendmail('{$MODULE}',{$ID});" type="button" name="SendMail" value="{$APP.LBL_SENDMAIL_BUTTON_LABEL}"> 334 {/if} 335 {/if} 336 {if $MODULE eq 'Quotes' || $MODULE eq 'PurchaseOrder' || $MODULE eq 'SalesOrder' || $MODULE eq 'Invoice'} 337 {if $CREATEPDF eq 'permitted'} 338 <input title="Export To PDF" accessKey="Alt+e" 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.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}"> 339 {/if} 340 {/if} 341 {if $MODULE eq 'Quotes'} 342 {if $CONVERTSALESORDER eq 'permitted'} 343 <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}"> 344 {/if} 345 {/if} 346 {if $MODULE eq 'HelpDesk'} 347 {if $CONVERTASFAQ eq 'permitted'} 348 <input title="{$MOD.LBL_CONVERT_AS_FAQ_BUTTON_TITLE}" accessKey="{$MOD.LBL_CONVERT_AS_FAQ_BUTTON_KEY}" class="crmbutton small create" onclick="this.form.return_module.value='Faq'; this.form.return_action.value='DetailView'; this.form.action.value='ConvertAsFAQ';" type="submit" name="ConvertAsFAQ" value="{$MOD.LBL_CONVERT_AS_FAQ_BUTTON_LABEL}"> 349 {/if} 350 {/if} 351 352 {if $MODULE eq 'Potentials' || $MODULE eq 'Quotes' || $MODULE eq 'SalesOrder'} 353 {if $CONVERTINVOICE eq 'permitted'} 354 <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}"> 355 {/if} 356 {/if} 357 {if $MODULE eq 'Leads'} 358 {if $CONVERTLEAD eq 'permitted'} 359 <input title="{$APP.LBL_CONVERT_BUTTON_TITLE}" accessKey="{$APP.LBL_CONVERT_BUTTON_KEY}" class="crmbutton small create" onclick="callConvertLeadDiv('{$ID}');" type="button" name="Convert" value="{$APP.LBL_CONVERT_BUTTON_LABEL}"> 360 {/if} 361 {/if} 362 </td> 363 <td align=right> 364 {if $EDIT_DUPLICATE eq 'permitted'} 365 <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}"> 366 {/if} 367 {if $DELETE eq 'permitted'} 368 <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}"> 369 {/if} 370 371 </td> 372 </tr> 373 </table> 374 375 </td> 376 377 378 </tr>{/strip} 379 </table> 380 </td></tr> 381 {/if} 382 </form> 383 {if $SinglePane_View eq 'true'} 384 {include file= 'RelatedListNew.tpl'} 385 {/if} 386 </table> 387 </td> 388 <td width=22% valign=top style="border-left:2px dashed #cccccc;padding:13px"> 389 <!-- right side relevant info --> 390 391 <!-- Tag cloud display --> 392 <table border=0 cellspacing=0 cellpadding=0 width=100% class="tagCloud"> 393 <tr> 394 <td class="tagCloudTopBg"><img src="{$IMAGE_PATH}tagCloudName.gif" border=0></td> 395 </tr> 396 <tr> 397 <td><div id="tagdiv" style="display:visible;"><input class="textbox" type="text" id="txtbox_tagfields" name="textbox_First Name" value="" style="width:100px;margin-left:5px;"></input> <input name="button_tagfileds" type="button" class="crmbutton small save" value="{$APP.LBL_TAG_IT}" onclick="return tagvalidate()"/></div></td> 398 </tr> 399 <tr> 400 <td class="tagCloudDisplay" valign=top> <span id="tagfields">{$ALL_TAG}</span></td> 401 </tr> 402 </table> 403 <!-- End Tag cloud display --> 404 <!-- Mail Merge--> 405 <br> 406 {if $MERGEBUTTON eq 'permitted'} 407 <form action="index.php" method="post" name="TemplateMerge" id="form"> 408 <input type="hidden" name="module" value="{$MODULE}"> 409 <input type="hidden" name="parenttab" value="{$CATEGORY}"> 410 <input type="hidden" name="record" value="{$ID}"> 411 <input type="hidden" name="action"> 412 <table border=0 cellspacing=0 cellpadding=0 width=100% class="rightMailMerge"> 413 <tr> 414 <td class="rightMailMergeHeader"><b>{$WORDTEMPLATEOPTIONS}</b></td> 415 </tr> 416 <tr style="height:25px"> 417 <td class="rightMailMergeContent"> 418 <select name="mergefile">{foreach key=templid item=tempflname from=$TOPTIONS}<option value="{$templid}">{$tempflname}</option>{/foreach}</select> 419 <input class="crmbutton small create" value="{$APP.LBL_MERGE_BUTTON_LABEL}" onclick="this.form.action.value='Merge';" type="submit"></input> 420 </td> 421 </tr> 422 </table> 423 </form> 424 {/if} 425 </td> 426 </tr> 427 </table> 428 429 430 431 432 </div> 433 <!-- PUBLIC CONTENTS STOPS--> 434 </td> 435 </tr> 436 </table> 437 438 {if $MODULE eq 'Products'} 439 <script language="JavaScript" type="text/javascript" src="modules/Products/Productsslide.js"></script> 440 <script language="JavaScript" type="text/javascript">Carousel();</script> 441 {/if} 442 443 <script> 444 function getTagCloud() 445 {ldelim} 446 new Ajax.Request( 447 'index.php', 448 {ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim}, 449 method: 'post', 450 postBody: 'module={$MODULE}&action={$MODULE}Ajax&file=TagCloud&ajxaction=GETTAGCLOUD&recordid={$ID}', 451 onComplete: function(response) {ldelim} 452 $("tagfields").innerHTML=response.responseText; 453 $("txtbox_tagfields").value =''; 454 {rdelim} 455 {rdelim} 456 ); 457 {rdelim} 458 getTagCloud(); 459 </script> 460 <!-- added for validation --> 461 <script language="javascript"> 462 var fieldname = new Array({$VALIDATION_DATA_FIELDNAME}); 463 var fieldlabel = new Array({$VALIDATION_DATA_FIELDLABEL}); 464 var fielddatatype = new Array({$VALIDATION_DATA_FIELDDATATYPE}); 465 </script> 466 </td> 467 468 <td align=right valign=top><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td> 469 </tr></table> 470
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 |