📄 sheetview.asp
字号:
<!-- #include file = "../include/asphead.asp" -->
<!-- #include file = "../include/function.asp" -->
<%CheckUser()%>
<link href="../include/main.css" rel="stylesheet" type="text/css">
<script src="../include/function.js" type="text/javascript"></script>
<script ID="clientEventHandlersJS" LANGUAGE="javascript">
<!--
function LocalDC()
{
return true;
}
function Next()
{
if(LocalDC()==true)
{
DisableButton();
document.frmData.target ="SaveArea";
document.frmData.action="saveheadselect.asp";
document.frmData.submit();
}
}
function InitParentButton()
{
if(SheetHasData.value=='1')
{
window.parent.document.all['btnNext'].disabled =false;
}
}
function DisableButton()
{
window.parent.document.all['btnCancel'].disabled =true;
window.parent.document.all['btnPre'].disabled =true;
window.parent.document.all['btnNext'].disabled =true;
}
//-->
</script>
<%
dim WExcel
set WExcel=server.CreateObject("WExcel.ImExport")
dim i
dim ExcelSheet,Head,ListCount,ListData
dim strResult,SheetHasData
strResult=""
ExcelSheet=Request.Cookies("ImExport")("ExcelSheet")
Head=Request.Cookies("ImExport")("Head")
if Head="" then
Head=1
else
if Head<=0 then
Head=1
end if
end if
WExcel.GetSheetViewPage cint(UserID),cstr(ExcelSheet),cint(Head),ListCount,ListData
if ListCount<=0 then
strResult="所选的工作表(Sheet)中无数据。"
SheetHasData="0"
else
SheetHasData="1"
end if
CheckErr
%>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</HEAD>
<BODY LANGUAGE=javascript onload="return InitParentButton()">
<form METHOD="post" name="frmData">
<%if SheetHasData<>"1" then%>
<table width="100%" CELLSPACING="1" CELLPADDING="0">
<tr height=100>
<td bgcolor=white>
<%=strResult%>
</td>
</tr>
</table>
<%else%>
<table width="100%" CELLSPACING="1" CELLPADDING="0" bgcolor=999999>
<%
for i=1 to ListCount
Response.Write ListData(i-1)
next
%>
</table>
<%end if%>
<iframe id="SaveArea" name="SaveArea" style="visibility:hidden" width="0" height="0" frameborder="0" src="">
</iframe>
</form>
<input TYPE="hidden" NAME="SheetHasData" value="<%=SheetHasData%>">
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -