📄 setup.asp
字号:
<!--#include file="../inc/open.asp" -->
<%if session("adminadmin")=false then
response.redirect("../quit.asp")
end if%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="../inc/css.css" -->
<title>系统设置</title>
</head>
<body>
<!--#include file="../inc/top.asp" -->
<!--#include file="../inc/menu.asp" -->
<%
str="select * from config"
set rs=conn.execute(str)
%>
<%'此处修改
yn=request.querystring("yn")
if yn="yes" then
home=trim(request.form("home"))
if home="" then
home="http://www.zyzx.jsol.net"
end if
school=trim(request.form("school"))
if school="" then
school="上海市张堰中学"
end if
xsid=trim(request.form("xsid"))
if xsid="" then
xsid="31011"
end if
testkemo=trim(request.form("testkemo"))
if testkemo="" then
testkemo="信息科技"
end if
tihao=request.form("tihao")
if tihao="yes" then
tihao=1
else
tihao=0
end if
str="update config set homelink='"&home&"',school_name='"&school&"',student_id='"&xsid&"',kemo='"&testkemo&"',st_no="&tihao&""
conn.execute(str)
end if
%>
<table width="770" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="ff99cc" bgcolor="edebeb">
<tr>
<td width="200" valign="top"><table width="163" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="unnamed6"> </td>
</tr>
<tr>
<td background="../images/nxmt_lj_46.gif" class="unnamed10"> </td>
</tr>
<tr>
<td background="../images/nxmt_lj_44.gif" class="unnamed6"> </td>
</tr>
<tr>
<td background="../images/nxmt_lj_44.gif"><table width="140" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="unnamed14"> 超级管理员已经登录。在此可对在线考试系统进行设置。</td>
</tr>
</table></td>
</tr>
<tr>
<td background="../images/nxmt_lj_44.gif" class="unnamed6"> </td>
</tr>
<tr>
<td background="../images/nxmt_lj_44.gif" class="unnamed12"><div align="center"><a href=stlx_setup.asp?lx=no>设置为没有练习状态</a></div></td>
</tr>
<tr>
<td background="../images/nxmt_lj_44.gif" class="unnamed6"> </td>
</tr>
<tr>
<td background="../images/nxmt_lj_44.gif"><div align="center"><a href=stlx_setup.asp?lx=yes class="unnamed12">设置为练习状态</a></div></td>
</tr>
<tr>
<td background="../images/nxmt_lj_44.gif" class="unnamed6"> </td>
</tr>
<tr>
<td background="../images/nxmt_lj_44.gif"><div align="center" class="unnamed14"><a href="../quit.asp" class="unnamed14wu">退 出</a></div></td>
</tr>
<tr>
<td background="../images/nxmt_lj_44.gif" class="unnamed4"> </td>
</tr>
<tr>
<td background="../images/nxmt_lj_45.gif" class="unnamed10"> </td>
</tr>
</table></td>
<td width="570" valign="top"><table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="unnamed12"> </td>
</tr>
</table>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><form name="form1" method="post" action="setup.asp?yn=yes">
<table width="500" border="1" cellspacing="0" cellpadding="0">
<tr valign="middle" bgcolor="#CCCCCC">
<td height="30" colspan="3" class="unnamed14"> <div align="center" class="unnamed18"><strong><font color="#0000FF">系
统 设 置</font></strong></div></td>
</tr>
<tr class="unnamed12">
<td width="15%" height="25"><div align="center">主页地址:</div></td>
<td width="40%" height="25">
<input name="home" type="text" id="home" value=<%=rs("homelink")%> maxlength="100"></td>
<td width="45%">按回到首页时的链接地址</td>
</tr>
<tr class="unnamed12">
<td width="15%" height="25"><div align="center">学校全名:</div></td>
<td width="40%" height="25">
<input name="school" type="text" id="school" value="<%=rs("school_name")%>" maxlength="100"></td>
<td width="45%" height="25">学校的全名</td>
</tr>
<tr class="unnamed12">
<td width="15%" height="25"><div align="center">学籍卡号:</div></td>
<td width="40%" height="25">
<input name="xsid" type="text" id="xsid" value="<%=rs("student_id")%>"></td>
<td width="45%" height="25">学生考试学籍卡出现的默认部分</td>
</tr>
<tr class="unnamed12">
<td width="15%" height="25"><div align="center">考试科目:</div></td>
<td width="40%" height="25">
<input name="testkemo" type="text" id="testkemo" value="<%=rs("kemo")%>"></td>
<td width="45%" height="25">进行考试的科目</td>
</tr>
<tr class="unnamed12">
<td width="15%" height="25"><div align="center">题库题号:</div></td>
<td width="40%" height="25">
<select name="tihao" id="tihao">
<option value="yes" <%if rs("st_no")=1 then%>selected<%end if%>>出现</option>
<option value="no"<%if rs("st_no")=0 then%>selected<%end if%>>不出现</option>
</select></td>
<td width="45%" height="25">考试时是否出现试题在总题库中的编号</td>
</tr>
<tr valign="bottom" class="unnamed12">
<td height="40" colspan="3">
<div align="center">
<INPUT class=unnamed5 onclick=javascript:history.go(-1) type=button value= 返 回 >
<input type="submit" name="Submit" value="完 成">
<input type="reset" name="Submit2" value="重 填">
</div></td>
</tr>
</table>
</form></td>
</tr>
</table>
</td>
</tr>
</table>
<!--#include file="../inc/bottom.inc" -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -