📄 step3.tpl
字号:
<td class="dataField"><slot> <select id='sigDigits' onchange='setSigDigits(this.value);' name='importlocale_default_currency_significant_digits'>{$sigDigits}</select> </slot></td> </tr> <tr> <td class="dataLabel"><slot> <i>{$MOD.LBL_LOCALE_EXAMPLE_NAME_FORMAT}</i>: </slot></td> <td class="dataField"><slot> <input type="text" disabled id="sigDigitsExample" name="sigDigitsExample"> </slot></td> </tr> <tr> <td class="dataLabel"><slot>{$MOD.LBL_NUMBER_GROUPING_SEP}</slot></td> <td class="dataField"><slot> <input tabindex='4' name='importlocale_num_grp_sep' id='default_number_grouping_seperator' type='text' maxlength='1' size='1' value='{$NUM_GRP_SEP}' onkeydown='setSigDigits();' onkeyup='setSigDigits();'> </slot></td> </tr> <tr> <td class="dataLabel"><slot>{$MOD.LBL_DECIMAL_SEP}</slot></td> <td class="dataField"><slot> <input tabindex='4' name='importlocale_dec_sep' id='default_decimal_seperator' type='text' maxlength='1' size='1' value='{$DEC_SEP}' onkeydown='setSigDigits();' onkeyup='setSigDigits();'> </slot></td> </tr> <tr> <td class="dataLabel" valign="top">{$MOD.LBL_LOCALE_DEFAULT_NAME_FORMAT}: </td> <td class="dataField" valign="top"> <input onkeyup="setPreview();" onkeydown="setPreview();" id="default_locale_name_format" type="text" tabindex='4' name="importlocale_default_locale_name_format" value="{$default_locale_name_format}"> <br />{$MOD.LBL_LOCALE_NAME_FORMAT_DESC} </td> </tr> <tr> <td class="dataLabel" valign="top"><i>{$MOD.LBL_LOCALE_EXAMPLE_NAME_FORMAT}:</i> </td> <td class="dataField" valign="top"><input tabindex='4' name="no_value" id="nameTarget" value="" disabled size="50"></td> </tr> </table> </div> </td> <td valign="top" width="50%"> <div> <h4>{$MOD.LBL_VERIFY_DUPS} {sugar_help text=$MOD.LBL_VERIFY_DUPLCATES_HELP}</h4> {$TAB_CHOOSER} </div> </td> </tr> </table> </td></tr></table>{$JAVASCRIPT_CHOOSER}{if $NOTETEXT != '' || $required_fields != ''}<p><b>{$MOD.LBL_NOTES}</b><ul><li>{$MOD.LBL_REQUIRED_NOTE}{$required_fields}</li>{$NOTETEXT}</ul></p>{/if}<br /><table width="100%" cellpadding="2" cellspacing="0" border="0"><tr> <td align="left"> <input title="{$MOD.LBL_BACK}" accessKey="" id="goback" class="button" type="submit" name="button" value=" {$MOD.LBL_BACK} "> <input title="{$MOD.LBL_IMPORT_NOW}" accessKey="" id="importnow" class="button" type="button" name="button" value=" {$MOD.LBL_IMPORT_NOW} "> </td></tr></table></form>{literal}<script type="text/javascript"><!--/** * Singleton to handle processing the import */ProcessImport = new function(){ /* * number of file to process processed */ this.fileCount = 0; /* * total files to processs */ this.fileTotal = {/literal}{$FILECOUNT-1}{literal}; /* * total records to process */ this.recordCount = {/literal}{$RECORDCOUNT}{literal}; /* * maximum number of records per file */ this.recordThreshold = {/literal}{$RECORDTHRESHOLD}{literal}; /* * submits the form */ this.submit = function() { document.getElementById("importstep3").tmp_file.value = document.getElementById("importstep3").tmp_file_base.value + '-' + this.fileCount; YAHOO.util.Connect.setForm(document.getElementById("importstep3")); YAHOO.util.Connect.asyncRequest('POST', 'index.php', { success: function(o) { if (o.responseText != '') { this.failure(o); } else { var locationStr = "index.php?module=Import" + "&action=Last" + "&type={/literal}{$TYPE}{literal}" + "&import_module={/literal}{$IMPORT_MODULE}{literal}"; if ( ProcessImport.fileCount >= ProcessImport.fileTotal ) { Ext.MessageBox.updateProgress(1,'{/literal}{$MOD.LBL_IMPORT_COMPLETE}{literal}'); document.location.href = locationStr; } else { document.getElementById("importstep3").save_map_as.value = ''; ProcessImport.fileCount++; ProcessImport.submit(); } } }, failure: function(o) { Ext.MessageBox.minWidth = 500; Ext.MessageBox.alert('{/literal}{$MOD.LBL_IMPORT_ERROR}{literal}', o.responseText, function() { window.location.reload(true) }); } }); var move = 0; if ( this.fileTotal > 0 ) { move = this.fileCount/this.fileTotal; } Ext.MessageBox.updateProgress( move, "{/literal}{$MOD.LBL_IMPORT_RECORDS}{literal} " + ((this.fileCount * this.recordThreshold) + 1) + " {/literal}{$MOD.LBL_IMPORT_RECORDS_TO}{literal} " + Math.min(((this.fileCount+1) * this.recordThreshold),this.recordCount) + " {/literal}{$MOD.LBL_IMPORT_RECORDS_OF}{literal} " + this.recordCount ); } /* * begins the form submission process */ this.begin = function() { d = new Date(); datestarted = 'Import Started: ' + d.formatDate('{/literal}{$datetimeformat}{literal}'); Ext.MessageBox.show({ title: '{/literal}{$STEP4_TITLE}{literal}', msg: datestarted, width: 500, progress:true, closable:false, animEl: 'importnow' }); this.submit(); }}--></script>{/literal}{ext_includes}{$JAVASCRIPT}{literal}<script type="text/javascript" language="Javascript"> // javascript moved to User.js var old_load = window.onload; window.onload = function() { old_load(); }{/literal}{$getNameJs}{literal}{/literal}{$getNumberJs}{literal}{/literal}{$currencySymbolJs}{literal} setSymbolValue(document.getElementById('currency_select').selectedIndex); setSigDigits();{/literal}{$confirmReassignJs}{literal}</script>{/literal}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -