⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stu_cxsetup.asp

📁 学校成绩查询系统是一个非常好的软件请大家试试
💻 ASP
字号:
<!--#include file="Admin_IsLogin.asp" -->
<!--#include file="dataconn.asp"-->
<%
action=request.querystring("action")
listming=trim(request.form("listming"))
listming2=trim(request.form("listming2"))
if action="setupming" then
conn.execute("update cominfo set cxsetup='"&listming&"'")
end if
if action="setupks" then
conn.execute("update cominfo set cxsetup2='"&listming2&"'")
end if
set rs=conn.execute("select cxsetup,cxsetup2 from cominfo")
cxsetup=rs("cxsetup").value
cxsetup2=rs("cxsetup2").value
select case  cxsetup
case "0"
cxsetup="不显示名次"
case "2"
cxsetup="仅显示总分排名"
end select

if cxsetup2="0" then
cxsetup2="可查历次考试成绩。"
else
cxsetup2="仅能查当前考试成绩。"
end if
rs.close
set rs=nothing
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../inc/admin_style.css" type=text/css rel=stylesheet>
<title>前台设置</title>
<style type="text/css">
<!--
.STYLE1 {color: #FFFFFF}
.STYLE2 {color: #FF0000}
-->
</style>
</head>
<body>
<p> </p>
<table width="90%" border="0" align="center" cellpadding="5" cellspacing="0">
  <tr>
    <td height="22" valign="top" style="FILTER: progid:DXImageTransform.Microsoft.Gradient(gradientType=1,startColorStr=#3b839f,endColorStr=#eff4ff)"><span class="style1">&nbsp;&nbsp;&nbsp;</span><span class="topbg STYLE1"><strong>前台成绩查询设置</strong></span>&nbsp;</td>
  </tr>
</table>
<br>
<br>
<form name="form1" method="post" action="?action=setupming">
  <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td>1. 前台成绩查询是否显示名次:
        <label>
          <select name="listming" id="listming">
			<option value="2" >显示总分排名</option>
            <option value="0">不显示</option>
          </select>
        &nbsp;&nbsp;
        <input type="submit" name="Submit" value="确定">
      (不要求看到名次可选不显示排名)</label></td>
    </tr>
  </table>
</form>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>当前状态:<span class="STYLE2"><%=cxsetup%></span></td>
  </tr>
</table>
<p> </p>
<form name="form2" method="post" action="?action=setupks">
  <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td>2. 前台成绩查询是否只显示当前考试:
        <label>
          <select name="listming2" id="listming2">
            <option value="1" selected="selected">是</option>
            <option value="0">否,可以查历次考试</option>
          </select>
        &nbsp;&nbsp;
        <input type="submit" name="Submit" value="确定">
      </label></td>
    </tr>
  </table>
</form>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>当前状态:<span class="STYLE2"><%=cxsetup2%></span></td>
  </tr>
</table>
<p> </p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -