[ 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 <script language="JavaScript" type="text/javascript" src="include/js/customview.js"></script> 12 <script language="javascript"> 13 function getCustomFieldList(customField) 14 {ldelim} 15 var modulename = customField.options[customField.options.selectedIndex].value; 16 $('module_info').innerHTML = '{$MOD.LBL_CUSTOM_FILED_IN} "'+modulename+'" {$APP.LBL_MODULE}'; 17 new Ajax.Request( 18 'index.php', 19 {ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim}, 20 method: 'post', 21 postBody: 'module=Settings&action=SettingsAjax&file=CustomFieldList&fld_module='+modulename+'&parenttab=Settings&ajax=true', 22 onComplete: function(response) {ldelim} 23 $("cfList").innerHTML=response.responseText; 24 {rdelim} 25 {rdelim} 26 ); 27 {rdelim} 28 29 {literal} 30 function deleteCustomField(id, fld_module, colName, uitype) 31 { 32 if(confirm("Are you sure?")) 33 { 34 document.form.action="index.php?module=Settings&action=DeleteCustomField&fld_module="+fld_module+"&fld_id="+id+"&colName="+colName+"&uitype="+uitype 35 document.form.submit() 36 } 37 } 38 39 function getCreateCustomFieldForm(customField,id,tabid,ui) 40 { 41 var modulename = customField; 42 new Ajax.Request( 43 'index.php', 44 {queue: {position: 'end', scope: 'command'}, 45 method: 'post', 46 postBody: 'module=Settings&action=SettingsAjax&file=CreateCustomField&fld_module='+customField+'&parenttab=Settings&ajax=true&fieldid='+id+'&tabid='+tabid+'&uitype='+ui, 47 onComplete: function(response) { 48 $("createcf").innerHTML=response.responseText; 49 gselected_fieldtype = ''; 50 } 51 } 52 ); 53 54 } 55 function makeFieldSelected(oField,fieldid) 56 { 57 if(gselected_fieldtype != '') 58 { 59 $(gselected_fieldtype).className = 'customMnu'; 60 } 61 oField.className = 'customMnuSelected'; 62 gselected_fieldtype = oField.id; 63 selFieldType(fieldid) 64 document.getElementById('selectedfieldtype').value = fieldid; 65 } 66 function CustomFieldMapping() 67 { 68 document.form.action="index.php?module=Settings&action=LeadCustomFieldMapping"; 69 document.form.submit(); 70 } 71 var gselected_fieldtype = ''; 72 {/literal} 73 </script> 74 <div id="createcf" style="display:block;position:absolute;width:500px;"></div> 75 <br> 76 <table align="center" border="0" cellpadding="0" cellspacing="0" width="98%"> 77 <tbody><tr> 78 <td valign="top"><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td> 79 <td class="showPanelBg" style="padding: 10px;" valign="top" width="100%"> 80 <br> 81 82 <div align=center> 83 {include file='SetMenu.tpl'} 84 <!-- DISPLAY --> 85 {if $MODE neq 'edit'} 86 <b><font color=red>{$DUPLICATE_ERROR} </font></b> 87 {/if} 88 89 <table class="settingsSelUITopLine" border="0" cellpadding="5" cellspacing="0" width="100%"> 90 <tbody><tr> 91 <td rowspan="2" valign="top" width="50"><img src="{$IMAGE_PATH}custom.gif" alt="Users" title="Users" border="0" height="48" width="48"></td> 92 <td class="heading2" valign="bottom"><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS}</a> > {$MOD.LBL_CUSTOM_FIELD_SETTINGS}</b></td> 93 </tr> 94 95 <tr> 96 <td class="small" valign="top">{$MOD.LBL_CREATE_AND_MANAGE_USER_DEFINED_FIELDS}</td> 97 </tr> 98 </tbody></table> 99 100 <br> 101 <table border="0" cellpadding="10" cellspacing="0" width="100%"> 102 <tbody><tr> 103 <td> 104 105 <table class="tableHeading" border="0" cellpadding="5" cellspacing="0" width="100%"> 106 <tbody><tr> 107 <td class="big" nowrap><strong><span id="module_info">{$MOD.LBL_CUSTOM_FILED_IN} "{$APP.$MODULE}" {$APP.LBL_MODULE}</span></strong> </td> 108 <td class="small" align="right"> 109 {$MOD.LBL_SELECT_CF_TEXT} 110 <select name="pick_module" class="importBox" onChange="getCustomFieldList(this)"> 111 {foreach key=sel_value item=value from=$MODULES} 112 {if $MODULE eq $sel_value} 113 {assign var = "selected_val" value="selected"} 114 {else} 115 {assign var = "selected_val" value=""} 116 {/if} 117 <option value="{$sel_value}" {$selected_val}>{$APP.$value}</option> 118 {/foreach} 119 </select> 120 </td> 121 </tr> 122 </tbody> 123 </table> 124 <div id="cfList"> 125 {include file="CustomFieldEntries.tpl"} 126 </div> 127 <table border="0" cellpadding="5" cellspacing="0" width="100%"> 128 <tr> 129 130 <td class="small" align="right" nowrap="nowrap"><a href="#top">{$MOD.LBL_SCROLL}</a></td> 131 </tr> 132 </table> 133 </td> 134 </tr> 135 </table> 136 <!-- End of Display --> 137 138 </td> 139 </tr> 140 </table> 141 </td> 142 </tr> 143 </table> 144 </div> 145 146 </td> 147 <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td> 148 </tr> 149 </tbody> 150 </table> 151 <br>
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 |