📄 setup.asp
字号:
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/set.asp"-->
<!--#include file="inc/dll.asp"-->
<%
if request.form("setup")<>"" then
sql="select inputdate from Huaihi_tongji"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
rs("inputdate")=request.Form("date")
rs.update
rs.close
Response.Write("<script language=javascript>alert('安装成功成功!');this.top.location.href='index.asp';</script>")
set rs=nothing
end if
%>
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="img/admin.css" type=text/css rel=stylesheet>
<title>淮海高科管理系统 [Huaihi] 安装向导</title>
<DIV STYLE="BORDER: buttonhighlight 2px outset; FONT-SIZE: 8pt; Z-INDEX:
4; FONT-FAMILY: Tahoma; POSITION: absolute;BACKGROUND:#D4D0C8;
DISPLAY: none; WIDTH: 350px; CURSOR: default" ID="divProgressDialog"
onselectstart="window.event.returnValue=false;">
<DIV STYLE="PADDING: 3px; FONT-WEIGHT: bolder; COLOR: captiontext;
BORDER-BOTTOM: white 2px groove; BACKGROUND:url(img/admintitle.gif)"><b> <img src=img/ie.gif border=0 width=15 height=15 align=absMiddle> 安装初始化</b></DIV>
<DIV STYLE="PADDING:5px" align=center>正在初始化数据……</DIV>
<DIV STYLE="PADDING:5px"><DIV ID="divProgressOuter" STYLE="BACKGROUND-COLOR:#ffffff;BORDER:1px solid #000;WIDTH:336px;HEIGHT:15px"><DIV ID="divProgressInner" STYLE="COLOR:white;TEXT-ALIGN:center;BACKGROUND-COLOR:#4E5384;MARGIN:0px;WIDTH:0px;HEIGHT:13px;"></DIV></DIV></DIV>
<DIV STYLE="BORDER-TOP: white 2px groove; PADDING-BOTTOM: 5px; PADDING-TOP: 3px;
BACKGROUND:#D4D0C8; TEXT-ALIGN: center"><INPUT STYLE="FONT-FAMILY: Tahoma; FONT-SIZE: 8pt" TYPE="button" ID="btnCancel" onclick="window.close()" VALUE="取 消" class=adminbutton></DIV></DIV>
<DIV ID="divModal" STYLE="BACKGROUND-COLOR: D4D0C8; FILTER: alpha(opacity=100); LEFT: 0px; POSITION:
absolute; TOP: 0px; Z-INDEX: 3" onclick="window.event.cancelBubble=true; window.event.returnValue=false;"></DIV>
<body onload="startLongProcess();">
<script>
var NUMBER_OF_REPETITIONS = 50;
var nRepetitions = 0;
var g_oTimer = null;
function startLongProcess()
{
divProgressDialog.style.display = "";
resizeModal();
btnCancel.focus();
window.onresize = resizeModal;
window.onbeforeunload = showWarning;
continueLongProcess();
}
function updateProgress(nNewPercent)
{
// Update our pseudo progress bar
divProgressInner.style.width = (parseInt(divProgressOuter.style.width)
* nNewPercent / 100)+ "px";
}
function stopLongProcess()
{
if (g_oTimer != null)
{
// Clear the timer so we don't get called back an extra time
window.clearTimeout(g_oTimer);
g_oTimer = null;
}
// Hide the fake modal DIV
divModal.style.width = "0px";
divModal.style.height = "0px";
divProgressDialog.style.display = "none";
// Remove our event handlers
window.onresize = null;
window.onbeforeunload = null;
nRepetitions = 0;
}
function continueLongProcess()
{if (nRepetitions < NUMBER_OF_REPETITIONS){
//timeout
var nTimeoutLength = Math.random() * 800;
updateProgress(100 * nRepetitions / NUMBER_OF_REPETITIONS);
g_oTimer = window.setTimeout("continueLongProcess();", nTimeoutLength);
nRepetitions++;}
else
{stopLongProcess();}}
function showWarning()
{return "您要取消安装程序吗,这样会导致系统无法正常工作!";}
function resizeModal()
{divModal.style.width = document.body.scrollWidth;
divModal.style.height = document.body.scrollHeight;
divProgressDialog.style.left = ((document.body.offsetWidth -
divProgressDialog.offsetWidth) / 2);
divProgressDialog.style.top = ((document.body.offsetHeight -
divProgressDialog.offsetHeight) / 2);}</script>
</head>
<body scroll=no><center><br><br><br><br><br>
<form method="post" name="form">
<input name="date" type="hidden" value="<%=date()%>">
<input name="setup" type="submit" value="点击安装" class=button>
</form></center>
<%
rs.close
set rs=nothing%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -