hu_editor/dialog/importexcel.htm
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script type="text/javascript" src="dialog.js"></script>
<script type="text/javascript">
document.write ("<link href='../skin/" + config.Skin + "/dialog.css' type='text/css' rel='stylesheet'>");
document.write ("<TITLE>" + lang["DlgExcel"] + "</TITLE>");
var eWebEditorActiveX;
function ok(){
if (!dialogArguments.CheckActiveXVersion()){
var arr = showModalDialog("installactivex.htm", dialogArguments, "dialogWidth:0px;dialogHeight:0px;help:no;scroll:no;status:no");
return;
}
if (d_sheet.length<=0){
alert(lang["DlgExcelInvalidFile"]);
return;
}
var n_Index = d_sheet.options[d_sheet.selectedIndex].value;
var s_File = d_file.value;
var s_PostUrl = getSitePath() + getWebEditorRootPath() + "/" + config.ServerExt + "/upload." + config.ServerExt + "?action=local&type=local&style=" + config.StyleName + "&cusdir=" + config.CusDir;
var n_OptimizeMode = 1;
if (d_opt2.checked){
n_OptimizeMode = 2;
}
var b_opt1vml = d_opt1vml.checked;
var b_opt1space = d_opt1space.checked;
var b_opt1table = d_opt1table.checked;
var b_opt1overflow = d_opt1overflow.checked;
var b_opt2image = d_opt2image.checked;
var b_opt2space = d_opt2space.checked;
var b_opt2table = d_opt2table.checked;
divProcessing.style.display="";
if (eWebEditorActiveX){eWebEditorActiveX=null}
eWebEditorActiveX = new ActiveXObject("eWebEditorClient.eWebEditor");
eWebEditorActiveX.ImportExcelSheet(s_File, n_Index, s_PostUrl, n_OptimizeMode, b_opt1vml, b_opt1space, b_opt1table, b_opt1overflow, b_opt2image, b_opt2space, b_opt2table);
window.setTimeout("CheckActiveXStatus()", 100);
}
function CheckActiveXStatus(){
if (eWebEditorActiveX.Status!="ok"){
window.setTimeout("CheckActiveXStatus()", 100);
return;
}
var s_Error = eWebEditorActiveX.Error;
if (s_Error!=""){
var s_ErrorCode = s_Error.substring(0,s_Error.indexOf(":"));
switch(s_ErrorCode){
case "InvalidFile":
alert(lang["DlgExcelInvalidFile"]);
后面还有 217 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
