[ 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 14 <script type="text/javascript" src="modules/{$MODULE}/{$SINGLE_MOD}.js"></script> 15 <script type="text/javascript" src="include/js/general.js"></script> 16 <script> 17 18 function getImportSavedMap(impoptions) 19 {ldelim} 20 var mapping = impoptions.options[impoptions.options.selectedIndex].value; 21 22 //added to show the delete link 23 if(mapping != -1) 24 document.getElementById("delete_mapping").style.visibility = "visible"; 25 else 26 document.getElementById("delete_mapping").style.visibility = "hidden"; 27 28 new Ajax.Request( 29 'index.php', 30 {ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim}, 31 method: 'post', 32 postBody: 'module=Import&mapping='+mapping+'&action=ImportAjax', 33 onComplete: function(response) {ldelim} 34 $("importmapform").innerHTML = response.responseText; 35 {rdelim} 36 {rdelim} 37 ); 38 {rdelim} 39 function deleteMapping() 40 {ldelim} 41 var options_collection = document.getElementById("saved_source").options; 42 var mapid = options_collection[options_collection.selectedIndex].value; 43 44 new Ajax.Request( 45 'index.php', 46 {ldelim}queue: {ldelim}position: 'end', scope: 'command'{rdelim}, 47 method: 'post', 48 postBody: 'module=Import&mapping='+mapid+'&action=ImportAjax&delete_map='+mapid, 49 onComplete: function(response) {ldelim} 50 $("importmapform").innerHTML = response.responseText; 51 {rdelim} 52 {rdelim} 53 ); 54 55 //we have emptied the map name from the select list 56 document.getElementById("saved_source").options[options_collection.selectedIndex] = null; 57 document.getElementById("delete_mapping").style.visibility = "hidden"; 58 alert("This map has been deleted. You cannot use this map again"); 59 {rdelim} 60 61 </script> 62 <!-- header - level 2 tabs --> 63 {include file='Buttons_List1.tpl'} 64 65 <table align="center" border="0" cellpadding="0" cellspacing="0" width="98%" class="small"> 66 <tbody> 67 <tr> 68 <td valign="top"><img src="{$IMAGE_PATH}showPanelTopLeft.gif" /></td> 69 <td class="showPanelBg" valign="top" width="100%"> 70 <table cellpadding="0" cellspacing="0" width="100%" class="small"> 71 <tr> 72 <td width="75%" valign=top> 73 <form enctype="multipart/form-data" name="Import" method="POST" action="index.php"> 74 <input type="hidden" name="module" value="{$MODULE}"> 75 <input type="hidden" name="action" value="Import"> 76 <input type="hidden" name="step" value="3"> 77 <input type="hidden" name="has_header" value="{$HAS_HEADER}"> 78 <input type="hidden" name="source" value="{$SOURCE}"> 79 <input type="hidden" name="delimiter" value="{$DELIMITER}"> 80 <input type="hidden" name="tmp_file" value="{$TMP_FILE}"> 81 <input type="hidden" name="return_module" value="{$RETURN_MODULE}"> 82 <input type="hidden" name="return_id" value="{$RETURN_ID}"> 83 <input type="hidden" name="return_action" value="{$RETURN_ACTION}"> 84 <input type="hidden" name="parenttab" value="{$CATEGORY}"> 85 86 <!-- IMPORT LEADS STARTS HERE --> 87 <br /> 88 <table align="center" cellpadding="5" cellspacing="0" width="95%" class="mailClient importLeadUI small"> 89 <tr> 90 <td class="mailClientBg genHeaderSmall" height="50" valign="middle" align="left" >{$MOD.LBL_MODULE_NAME} {$MODULE}</td> 91 </tr> 92 <tr> 93 <td> </td> 94 </tr> 95 <tr> 96 <td align="left" style="padding-left:40px;"> 97 <span class="genHeaderGray">{$MOD.LBL_STEP_2_3} </span> 98 <span class="genHeaderSmall">{$MODULE} {$MOD.LBL_LIST_MAPPING} </span> 99 </td> 100 </tr> 101 <tr> 102 <td align="left" style="padding-left:40px;"> 103 {$MOD.LBL_STEP_2_MSG} {$MODULE} {$MOD.LBL_STEP_2_MSG1} 104 {$MOD.LBL_STEP_2_TXT} {$MODULE}. 105 </td> 106 </tr> 107 <tr> 108 <td> </td> 109 </tr> 110 <tr> 111 <td align="left" style="padding-left:40px;" > 112 <input type="checkbox" name="use_saved_mapping" id="saved_map_checkbox" onclick="ActivateCheckBox()" /> 113 {$MOD.LBL_USE_SAVED_MAPPING} {$SAVED_MAP_LISTS} 114 </td> 115 </tr> 116 <tr> 117 <td align="left"style="padding-left:40px;padding-right:40px;"> 118 <table style="background-color: rgb(204, 204, 204);" class="small" border="0" cellpadding="5" cellspacing="1" width="100%" > 119 <tr bgcolor="white"> 120 <td width="25%" class="lvtCol" align="center"><b>{$MOD.LBL_MAPPING}</b></td> 121 {if $HASHEADER eq 1} 122 <td width="25%" bgcolor="#E1E1E1" ><b>{$MOD.LBL_HEADERS}</b></td> 123 <td width="25%" ><b>{$MOD.LBL_ROW} 1</b></td> 124 <td width="25%" ><b>{$MOD.LBL_ROW} 2</b></td> 125 {else} 126 <td width="25%" ><b>{$MOD.LBL_ROW} 1</b></td> 127 <td width="25%" ><b>{$MOD.LBL_ROW} 2</b></td> 128 <td width="25%" ><b>{$MOD.LBL_ROW} 3</b></td> 129 {/if} 130 </tr> 131 </table> 132 {assign var="Firstrow" value=$FIRSTROW} 133 {assign var="Secondrow" value=$SECONDROW} 134 {assign var="Thirdrow" value=$THIRDROW} 135 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 136 <tr> 137 <td width="25%" valign="top"> 138 <div id="importmapform"> 139 {include file="ImportMap.tpl"} 140 </div> 141 </td> 142 <td valign="top"> 143 <table border="0" cellpadding="0" cellspacing="1" width="100%" valign="top" class="small"> 144 {foreach name=iter item=row1 from=$Firstrow} 145 {assign var="counter" value=$smarty.foreach.iter.iteration} 146 {math assign="num" equation="x - y" x=$counter y=1} 147 <tr bgcolor="white" > 148 {if $HASHEADER eq 1} 149 <td bgcolor="#E1E1E1" width="33%" height="30"> {$row1}</td> 150 <td width="34%"> {$Secondrow[$num]}</td> 151 <td> {$Thirdrow[$num]}</td> 152 {else} 153 <td width="31%" height="30"> {$row1}</td> 154 <td width="30%"> {$Secondrow[$num]}</td> 155 <td> {$Thirdrow[$num]}</td> 156 {/if} 157 </tr> 158 {/foreach} 159 </table> 160 </td> 161 </tr> 162 </table> 163 </td> 164 </tr> 165 <tr> 166 <td align="left" style="padding-left:40px;" > 167 <input type="checkbox" name="save_map" id="save_map" onclick="set_readonly(this.form)" /> 168 {$MOD.LBL_SAVE_AS_CUSTOM} 169 <input type="text" readonly name="save_map_as" id="save_map_as" value="" class="importBox" > 170 </td> 171 </tr> 172 <tr > 173 <td align="right" style="padding-right:40px;" class="reportCreateBottom" > 174 <input type="submit" name="button" value=" ‹ {$MOD.LBL_BACK} " class="crmbutton small cancel" onclick="this.form.action.value='Import';this.form.step.value='1'; return true;" /> 175 176 <input type="submit" name="button" value=" {$MOD.LBL_IMPORT_NOW} › " class="crmbutton small save" onclick="this.form.action.value='Import';this.form.step.value='3'; return validate_import_map();" /> 177 </td> 178 </tr> 179 </table> 180 </form> 181 <!-- IMPORT LEADS ENDS HERE --> 182 </td> 183 </tr> 184 </table> 185 </td> 186 </tr> 187 </table> 188
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 |