ASP+ACCESS教师档案管理系统

3.1  系统功能模块图

3.2  E-R模型图

3.3  系统使用流程图

3.4  各个模块功能简介:

本系统分为五个功能模块,它们分别是教师信息录入模块、教师信息修改模块、教师信息查询模块、教师信息打印模块。

下面分别介绍各个模块的功能用途,以及使用。

1.教师信息录入模块

教师信息录入模块,主要是用来记录教师的各种信息主要分为四个部分:基本情况、学历情况、工作成绩、社会兼职等。基本情况需要填写姓名、性别、身份证号、入校时间、出身年月、所学专业、家庭住址等信息。这些是一个教师的最基本的情况,也是必须填写的。学历情况要求填写三次接受教育的时间,毕业的学校以及所学的专业。工作成绩包括三个部分:教学成果、科研成果、所著的学术著作等。社会兼职分为学术团体和社会团体的兼职。需要填写担任的职务、任职的时间以及团体的名称。备注中可以就其他没有说清楚的问题加以补充。

教师信息修改模块

教师信息修改模块主要是对教师的进行修改、删除等操作。此模块以教师的姓名作为关键字对教师的整体信息一一列举。点击修改按钮就会跳到教师信息页面,教师的基本情况、学历情况、工作成绩、社会兼职等信息可以任意做修改和补充。点击删除按钮就会弹出一个对话框让管理员确认是否真的删除,点击是就会删除信息,若选择否则信息不会被删除。此外该模块为了提高管理员修改信息的效率还提供了以姓名为关键字的检索,找到的教师信息会用黄色的长条突出显示出来,这样管理员就不必逐个查找了。

2. 教师信息查询模块

信息查询模块与信息修改模块有一些交叉的部分比如说信息查询模块也可以对教师的基本信息进行修改删除等操作,基本方法与修改模块很相似。可以说信息查询模块就是信息修改模块的补充和延伸。但是在在信息查询模块中,查询的能力更加强大,它可以以姓名、入校时间、所学专业、所在基本单位等为关键字进行查询,查询结果也是以黄色长条的形式显示出来。可以说查询修改模块结合起来使用,可以大大提高管理员管理信息的效率,增强系统的可用性。

3. 信息打印模块

信息打印模块就是对教师的基本信息打印输出。基本信息包括基本情况、学历情况、工作成绩、社会兼职等。打印输出就是将这些信息转化为Word文档,然后打印。另外这个模块中也可以查询,其实是为了方便打印某个教师而做的,如果要打印某个教师的信息,只要简单查询一下,用不了多少时间他的信息入口就可以找到很方便的就可以将信息打印出来。

4. 帐户管理模块

帐户管理模块就是对各个帐户进行管理。主要有修改账号、添加账号、删除账号等几个功能

4.2  系统主要界面介绍

1. 图4.3是该教师档案管理的登录界面,也就是欢迎登录界面。

图4.3 教师档案管理

2. 图4.4是系统功能主界面,里面包括了录入信息,修改信息,查询信息,打印信息以及帐号管理等功能。如图4.4所示:

图4.4 功能主界面

3. 教师信息提交页面

教师信息提交页面就是将教师的基本信息包括基本信息,学历情况,社会兼职,备注等信息,提交给数据库。如图4.5所示:

                      

图4.5 教师信息提交页面

4. 教师信息修改界面

    教师信息修改界面能够完成查找然后对找到的记录修改并且删除的操作。如图4.6所示:

                                 

图4.6  教师信息修改

5. 教师信息查询界面

    教师信息查询界面能够完成按照姓名、工作单位等关键字的检索,最后查到结果。如图4.7所示:

图4.7 教师信息查询

6 帐户管理界面

帐户管理界面能够完成修改帐户、添加帐户、删除帐户的操作。如图4.8所示:

图4.8 帐户管理界面

4.3 用户使用注意事项

1、本系统采用access+asp开发,系统要求:windows9X+pws win2000(或更高)+IIS、IE 4.0以上及相关打印设备

2、 处于安全考虑,建议安装使用前,先修改数据库路径(默认为"tcadmin\tcmdb")及数据库名称,然后修改文件tcconn.asp相应路径设置

3、本系统所有日期格式均为:yyyy-mm-dd,例如:2004-03-28.请按此格式输入日期,否则日期数据拒绝存入数据库

4、档案输出文件为word(*.doc)格式。由于个人配置及环境不一,所以输出后建议用MS word稍作编辑

5、系统所有查找定位均支持模糊查找。例:输入关键词:"李",选择条件按 "姓名" 查找,则记录列表将显示所有姓名中含有"李"字的教师记录

6、教师业务档案输出时,建议先保存后编辑,以免给你造成不必要的麻烦

7、教师查询页面学院首页指向:tcadmin/user_search.asp

8、教师业务档案管理系统登陆页面学院首页调用:login.htm ,调用方法:首页插入代码:<iframe src="你的路径/tcadmin/login.htm" scrolling="no" frameborder="0"></ifram>

5.1 录入信息模块代码

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>

<%

if request.Cookies("flag")<>"loginok" then

response.write "<script language=JavaScript>{window.alert('网络超时或你还未登录,请重新登陆!');window.location.href='index.htm';}</script>"

response.end

end if

%>

<html>

<head>

<title>教师业务管理系统</title>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="keywords" content="兰州理工大学石油化工学院学院,明星设计,lyz.cn@126.com,L.Y.Z">

<LINK href="css.css" type=text/css rel=stylesheet>

</head>

<body background="img/bg.gif" topmargin="0" leftmargin="0">

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#99CC00">

  <tr>

    <td height="30">&nbsp;</td>

  </tr>

  <tr>

    <td>&nbsp;</td>

  </tr>

  <tr>

    <td>&nbsp;&nbsp;&nbsp;

&nbsp;您现在正在操作:<span class="style8">录入信息</span></td>

  </tr>

  <tr>

    <td><form name="form1" method="post" action="admin_saveup.asp">

       <table width="754" border="0" align="center" cellpadding="0" cellspacing="0">

      <tr>

        <td><img src="img/jb.gif" width="754" height="27"></td>

      </tr>

      <tr>

        <td background="img/table_bg.gif"><table width="754"  border="0" cellpadding="0" cellspacing="0">

          <tr>

            <td>&nbsp;</td>

            <td>&nbsp;</td>

            <td>&nbsp;</td>

          </tr>

          <tr>

            <td width="70">&nbsp;</td>

            <td width="616"><table width="100%"  border="0" cellspacing="0" cellpadding="0">

                <tr>

                  <td><table width="616"  border="0" cellpadding="0" cellspacing="0">

                      <tr>

                        <td width="36">姓名</td>

                        <td width="130"><input name="txt_name" type="text" id="txt_name" size="14" maxlength="14"></td>

                        <td width="33">性别</td>

                        <td width="66"><select name="txt_sex">

                          <option value="男" selected>男</option>

                          <option value="女">女</option>

                        </select></td>

                        <td width="60">出生年月</td>

                        <td width="122"><input name="txt_birt" type="text" id="txt_birt" value="19" size="14" maxlength="14"></td>

                        <td width="60">入校时间</td>

                        <td width="109"><input name="txt_indate" type="text" id="txt_indate" value="20" size="14" maxlength="14"></td>

                      </tr>

                  </table></td>

                </tr>

                <tr>

                  <td><table width="616"  border="0" cellpadding="0" cellspacing="0">

                      <tr>

                        <td width="61">身份证号</td>

                        <td width="172"><input name="txt_code" type="text" id="txt_code" size="20" maxlength="20"></td>

                        <td width="142">家庭住址、联系电话</td>

                        <td width="241"><input name="txt_address" type="text" id="txt_address" size="36"></td>

                      </tr>

                  </table></td>

                </tr>

                <tr>

                  <td><table width="616"  border="0" cellpadding="0" cellspacing="0">

                      <tr>

                        <td width="61">所学专业</td>

                        <td width="204"><input name="txt_zhy" type="text" id="txt_zhy" size="24"></td>

                        <td width="86">所在基层单位</td>

                        <td width="265"><input name="txt_dw" type="text" id="txt_dw" size="36"></td>

                      </tr>

                  </table></td>

                </tr>

            </table></td>

            <td width="68">&nbsp;</td>

          </tr>

          <tr>

            <td>&nbsp;</td>

            <td>&nbsp;</td>

            <td>&nbsp;</td>

          </tr>

        </table></td>

      </tr>

      <tr>

        <td background="img/table_btom.gif">&nbsp;</td>

      </tr>

    </table>

      <table width="754" border="0" align="center" cellpadding="0" cellspacing="0">

        <tr>

          <td><img src="img/xl.gif" width="754" height="27"></td>

        </tr>

        <tr>

          <td background="img/table_bg.gif"><table width="754"  border="0" cellpadding="0" cellspacing="0">

            <tr>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td width="70">&nbsp;</td>

              <td width="79">&nbsp;</td>

              <td width="106">毕业时间</td>

              <td width="194">毕业学校</td>

              <td width="244">所学专业</td>

              <td width="61">&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td>第一次教育</td>

              <td><input name="txt_xl_bydate1" type="text" id="txt_xl_bydate1" value="19" size="14" maxlength="14"></td>

              <td><input name="txt_xl_byschool1" type="text" id="txt_xl_byschool1" size="24"></td>

              <td><input name="txt_xl_zhy1" type="text" id="txt_xl_zhy1" size="32"></td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td>第二次教育</td>

              <td><input name="txt_xl_bydate2" type="text" id="txt_xl_bydate2" value="19" size="14" maxlength="14"></td>

              <td><input name="txt_xl_byschool2" type="text" id="txt_xl_byschool2" size="24"></td>

              <td><input name="txt_xl_zhy2" type="text" id="txt_xl_zhy2" size="32"></td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td>第三次教育</td>

              <td><input name="txt_xl_bydate3" type="text" id="txt_xl_bydate3" value="19" size="14" maxlength="14"></td>

              <td><input name="txt_xl_byschool3" type="text" id="txt_xl_byschool3" size="24"></td>

              <td><input name="txt_xl_zhy3" type="text" id="txt_xl_zhy3" size="32"></td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

            </tr>

          </table></td>

        </tr>

        <tr>

          <td background="img/table_btom.gif">&nbsp;</td>

        </tr>

      </table>

      <table width="754" border="0" align="center" cellpadding="0" cellspacing="0">

        <tr>

          <td><img src="img/chj.gif" width="754" height="27"></td>

        </tr>

        <tr>

          <td background="img/table_bg.gif"><table width="754"  border="0" cellpadding="0" cellspacing="0">

            <tr>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td width="70">&nbsp;</td>

              <td width="70" valign="top">教学成果</td>

              <td width="551"><textarea name="txt_work_jx" cols="78" rows="5" id="txt_work_jx"></textarea></td>

              <td width="63">&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td valign="top">科研成果</td>

              <td><textarea name="txt_work_ky" cols="78" rows="5" id="txt_work_ky"></textarea></td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td valign="top">学术专著</td>

              <td><textarea name="txt_work_xsh" cols="78" rows="5" id="txt_work_xsh"></textarea></td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

            </tr>

          </table></td>

        </tr>

        <tr>

          <td background="img/table_btom.gif">&nbsp;</td>

        </tr>

      </table>

      <table width="754" border="0" align="center" cellpadding="0" cellspacing="0">

        <tr>

          <td><img src="img/shh.gif" width="754" height="27"></td>

        </tr>

        <tr>

          <td background="img/table_bg.gif"><table width="754"  border="0" cellpadding="0" cellspacing="0">

            <tr>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td width="70">&nbsp;</td>

              <td width="70">&nbsp;</td>

              <td width="160">职务</td>

              <td width="156">任职时间</td>

              <td width="241">学术团体名称</td>

              <td width="57">&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td rowspan="3" valign="top">学术团体</td>

              <td><input name="txt_shh_xsh_zhw1" type="text" id="txt_shh_xsh_zhw1" size="16"></td>

              <td><input name="txt_shh_xsh_date1" type="text" id="txt_shh_xsh_date1" value="200" size="14" maxlength="14"></td>

              <td><input name="txt_shh_xsh_name1" type="text" id="txt_shh_xsh_name1" size="32"></td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td><input name="txt_shh_xsh_zhw2" type="text" id="txt_shh_xsh_zhw2" size="16"></td>

              <td><input name="txt_shh_xsh_date2" type="text" id="txt_shh_xsh_date2" value="200" size="14" maxlength="14"></td>

              <td><input name="txt_shh_xsh_name2" type="text" id="txt_shh_xsh_name2" size="32"></td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td><input name="txt_shh_xsh_zhw3" type="text" id="txt_shh_xsh_zhw3" size="16"></td>

              <td><input name="txt_shh_xsh_date3" type="text" id="txt_shh_xsh_date3" value="200" size="14"></td>

              <td><input name="txt_shh_xsh_name3" type="text" id="txt_shh_xsh_name3" size="32"></td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td rowspan="3" valign="top">社会团体</td>

              <td><input name="txt_shh_shh_zhw1" type="text" id="txt_shh_shh_zhw1" size="16"></td>

              <td><input name="txt_shh_shh_date1" type="text" id="txt_shh_shh_date1" value="200" size="14" maxlength="14"></td>

              <td><input name="txt_shh_shh_name1" type="text" id="txt_shh_shh_name1" size="32"></td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td><input name="txt_shh_shh_zhw2" type="text" id="txt_shh_shh_zhw2" size="16"></td>

              <td><input name="txt_shh_shh_date2" type="text" id="txt_shh_shh_date2" value="200" size="14" maxlength="14"></td>

              <td><input name="txt_shh_shh_name2" type="text" id="txt_shh_shh_name2" size="32"></td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td><input name="txt_shh_shh_zhw3" type="text" id="txt_shh_shh_zhw3" size="16"></td>

              <td><input name="txt_shh_shh_date3" type="text" id="txt_shh_shh_date3" value="200" size="14" maxlength="14"></td>

              <td><input name="txt_shh_shh_name3" type="text" id="txt_shh_shh_name3" size="32"></td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

            </tr>

          </table></td>

        </tr>

        <tr>

          <td background="img/table_btom.gif">&nbsp;</td>

        </tr>

      </table>

      <table width="754" border="0" align="center" cellpadding="0" cellspacing="0">

        <tr>

          <td><img src="img/bzh.gif" width="754" height="27"></td>

        </tr>

        <tr>

          <td background="img/table_bg.gif"><table width="754"  border="0" cellpadding="0" cellspacing="0">

            <tr>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td width="70">&nbsp;</td>

              <td width="59" valign="top">备注</td>

              <td width="579"><textarea name="txt_bzh" cols="78" rows="5" id="txt_bzh"></textarea></td>

              <td width="46">&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

              <td>&nbsp;</td>

            </tr>

            <tr>

              <td>&nbsp;</td>

              <td colspan="2" align="center"><input type="submit" name="Submit" value="提交">

&nbsp;&nbsp;&nbsp;&nbsp;

      <input type="reset" name="Submit2" value="重置"></td>

              <td>&nbsp;</td>

            </tr>

          </table></td>

        </tr>

        <tr>

          <td background="img/table_btom.gif">&nbsp;</td>

        </tr>

      </table>      </form>  </td>

  </tr>

  <tr>

    <td>&nbsp;</td>

  </tr>

</table>

<center><img src="img/admin_top.gif" width="778" height="66"></center>

</body>

</html>

5.2 查询模块实现代码

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>

<!--#include file="tcconn.asp" -->

<%

if request.Cookies("flag")<>"loginok" then

response.write "<script language=JavaScript>{window.alert('网络超时或你还未登录,请重新登陆!');window.location.href='index.htm';}</script>"

response.end

end if

tc_key=trim(request("key"))

tc_key=replace(tc_key,"'","")

tc_cond=request("cond")

if tc_key="" then

set rs=conn.execute("select tc_id,tc_name,tc_dw from tcinfor order by tc_id desc")

else

set rs=conn.execute("select tc_id,tc_name,tc_dw from tcinfor where "&tc_cond&" like '%"&tc_key&"%' order by tc_id desc")

end if

%>

<%

Dim rs_numRows

rs_numRows = 0

%>

<%

Dim Repeat1__numRows

Dim Repeat1__index

Repeat1__numRows = 10

Repeat1__index = 0

rs_numRows = rs_numRows + Repeat1__numRows

%>

<%

'  *** Recordset Stats, Move To Record, and Go To Record: declare stats variables

Dim rs_total

Dim rs_first

Dim rs_last

' set the record count

rs_total = rs.RecordCount

' set the number of rows displayed on this page

If (rs_numRows < 0) Then

  rs_numRows = rs_total

Elseif (rs_numRows = 0) Then

  rs_numRows = 1

End If

' set the first and last displayed record

rs_first = 1

rs_last  = rs_first + rs_numRows - 1

' if we have the correct record count, check the other stats

If (rs_total <> -1) Then

  If (rs_first > rs_total) Then

    rs_first = rs_total

  End If

  If (rs_last > rs_total) Then

    rs_last = rs_total

  End If

  If (rs_numRows > rs_total) Then

    rs_numRows = rs_total

  End If

End If

%>

<%

' *** Recordset Stats: if we don't know the record count, manually count them

If (rs_total = -1) Then

  ' count the total records by iterating through the recordset

  rs_total=0

  While (Not rs.EOF)

    rs_total = rs_total + 1

    rs.MoveNext

  Wend

  ' reset the cursor to the beginning

  If (rs.CursorType > 0) Then

    rs.MoveFirst

  Else

    rs.Requery

  End If

  ' set the number of rows displayed on this page

  If (rs_numRows < 0 Or rs_numRows > rs_total) Then

    rs_numRows = rs_total

  End If

  ' set the first and last displayed record

  rs_first = 1

  rs_last = rs_first + rs_numRows - 1

 

  If (rs_first > rs_total) Then

    rs_first = rs_total

  End If

  If (rs_last > rs_total) Then

    rs_last = rs_total

  End If

End If

%>

<%

Dim MM_paramName

%>

<%

' *** Move To Record and Go To Record: declare variables

Dim MM_rs

Dim MM_rsCount

Dim MM_size

Dim MM_uniqueCol

Dim MM_offset

Dim MM_atTotal

Dim MM_paramIsDefined

Dim MM_param

Dim MM_index

Set MM_rs    = rs

MM_rsCount   = rs_total

MM_size      = rs_numRows

MM_uniqueCol = ""

MM_paramName = ""

MM_offset = 0

MM_atTotal = false

MM_paramIsDefined = false

If (MM_paramName <> "") Then

  MM_paramIsDefined = (Request.QueryString(MM_paramName) <> "")

End If

%>

<%

' *** Move To Record: handle 'index' or 'offset' parameter

if (Not MM_paramIsDefined And MM_rsCount <> 0) then

  ' use index parameter if defined, otherwise use offset parameter

  MM_param = Request.QueryString("index")

  If (MM_param = "") Then

    MM_param = Request.QueryString("offset")

  End If

  If (MM_param <> "") Then

    MM_offset = Int(MM_param)

  End If

  ' if we have a record count, check if we are past the end of the recordset

  If (MM_rsCount <> -1) Then

    If (MM_offset >= MM_rsCount Or MM_offset = -1) Then  ' past end or move last

      If ((MM_rsCount Mod MM_size) > 0) Then         ' last page not a full repeat region

        MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)

      Else

        MM_offset = MM_rsCount - MM_size

      End If

    End If

  End If

  ' move the cursor to the selected record

  MM_index = 0

  While ((Not MM_rs.EOF) And (MM_index < MM_offset Or MM_offset = -1))

    MM_rs.MoveNext

    MM_index = MM_index + 1

  Wend

  If (MM_rs.EOF) Then

    MM_offset = MM_index  ' set MM_offset to the last possible record

  End If

End If

%>

<%

' *** Move To Record: if we dont know the record count, check the display range

If (MM_rsCount = -1) Then

  ' walk to the end of the display range for this page

  MM_index = MM_offset

  While (Not MM_rs.EOF And (MM_size < 0 Or MM_index < MM_offset + MM_size))

    MM_rs.MoveNext

    MM_index = MM_index + 1

  Wend

  ' if we walked off the end of the recordset, set MM_rsCount and MM_size

  If (MM_rs.EOF) Then

    MM_rsCount = MM_index

    If (MM_size < 0 Or MM_size > MM_rsCount) Then

      MM_size = MM_rsCount

    End If

  End If

  ' if we walked off the end, set the offset based on page size

  If (MM_rs.EOF And Not MM_paramIsDefined) Then

    If (MM_offset > MM_rsCount - MM_size Or MM_offset = -1) Then

      If ((MM_rsCount Mod MM_size) > 0) Then

        MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)

      Else

        MM_offset = MM_rsCount - MM_size

      End If

    End If

  End If

  ' reset the cursor to the beginning

  If (MM_rs.CursorType > 0) Then

    MM_rs.MoveFirst

  Else

    MM_rs.Requery

  End If

  ' move the cursor to the selected record

  MM_index = 0

  While (Not MM_rs.EOF And MM_index < MM_offset)

    MM_rs.MoveNext

    MM_index = MM_index + 1

  Wend

End If

%>

<%

' *** Move To Record: update recordset stats

' set the first and last displayed record

rs_first = MM_offset + 1

rs_last  = MM_offset + MM_size

If (MM_rsCount <> -1) Then

  If (rs_first > MM_rsCount) Then

    rs_first = MM_rsCount

  End If

  If (rs_last > MM_rsCount) Then

    rs_last = MM_rsCount

  End If

End If

' set the boolean used by hide region to check if we are on the last record

MM_atTotal = (MM_rsCount <> -1 And MM_offset + MM_size >= MM_rsCount)

%>

<%

' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters

Dim MM_keepNone

Dim MM_keepURL

Dim MM_keepForm

Dim MM_keepBoth

Dim MM_removeList

Dim MM_item

Dim MM_nextItem

' create the list of parameters which should not be maintained

MM_removeList = "&index="

If (MM_paramName <> "") Then

  MM_removeList = MM_removeList & "&" & MM_paramName & "="

End If

MM_keepURL=""

MM_keepForm=""

MM_keepBoth=""

MM_keepNone=""

' add the URL parameters to the MM_keepURL string

For Each MM_item In Request.QueryString

  MM_nextItem = "&" & MM_item & "="

  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then

    MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))

  End If

Next

' add the Form variables to the MM_keepForm string

For Each MM_item In Request.Form

  MM_nextItem = "&" & MM_item & "="

  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then

    MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))

  End If

Next

' create the Form + URL string and remove the intial '&' from each of the strings

MM_keepBoth = MM_keepURL & MM_keepForm

If (MM_keepBoth <> "") Then

  MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)

End If

If (MM_keepURL <> "")  Then

  MM_keepURL  = Right(MM_keepURL, Len(MM_keepURL) - 1)

End If

If (MM_keepForm <> "") Then

  MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)

End If

' a utility function used for adding additional parameters to these strings

Function MM_joinChar(firstItem)

  If (firstItem <> "") Then

    MM_joinChar = "&"

  Else

    MM_joinChar = ""

  End If

End Function

%>

<%

' *** Move To Record: set the strings for the first, last, next, and previous links

Dim MM_keepMove

Dim MM_moveParam

Dim MM_moveFirst

Dim MM_moveLast

Dim MM_moveNext

Dim MM_movePrev

Dim MM_urlStr

Dim MM_paramList

Dim MM_paramIndex

Dim MM_nextParam

MM_keepMove = MM_keepBoth

MM_moveParam = "index"

' if the page has a repeated region, remove 'offset' from the maintained parameters

If (MM_size > 1) Then

  MM_moveParam = "offset"

  If (MM_keepMove <> "") Then

    MM_paramList = Split(MM_keepMove, "&")

    MM_keepMove = ""

    For MM_paramIndex = 0 To UBound(MM_paramList)

      MM_nextParam = Left(MM_paramList(MM_paramIndex), InStr(MM_paramList(MM_paramIndex),"=") - 1)

      If (StrComp(MM_nextParam,MM_moveParam,1) <> 0) Then

        MM_keepMove = MM_keepMove & "&" & MM_paramList(MM_paramIndex)

      End If

    Next

    If (MM_keepMove <> "") Then

      MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1)

    End If

  End If

End If

' set the strings for the move to links

If (MM_keepMove <> "") Then

  MM_keepMove = Server.HTMLEncode(MM_keepMove) & "&"

End If

MM_urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "="

MM_moveFirst = MM_urlStr & "0"

MM_moveLast  = MM_urlStr & "-1"

MM_moveNext  = MM_urlStr & CStr(MM_offset + MM_size)

If (MM_offset - MM_size < 0) Then

  MM_movePrev = MM_urlStr & "0"

Else

  MM_movePrev = MM_urlStr & CStr(MM_offset - MM_size)

End If

%>

<html>

<head>

<title>教师业务管理系统</title>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="keywords" content="兰州理工大学石油化工学院学院,明星设计,lyz.cn@126.com,L.Y.Z">

<LINK href="css.css" type=text/css rel=stylesheet>

</head>

<body background="img/bg.gif" topmargin="0" leftmargin="0">

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#99CC00">

  <tr>

    <td height="30">&nbsp;</td>

  </tr>

  <tr>

    <td><img src="img/admin_top.gif" width="778" height="66"></td>

  </tr>

  <tr>

    <td>&nbsp;&nbsp;&nbsp; &nbsp;您现在正在操作:<span class="style8">查询信息</span></td>

  </tr>

  <tr>

    <td>

        <table width="754" border="0" align="center" cellpadding="0" cellspacing="0">

          <tr>

            <td><img src="img/admin_search.gif" width="754" height="27"></td>

          </tr>

          <tr>

            <td background="img/table_bg.gif">

                     <form name="form1" method="post" action="">

                     <table width="754"  border="0" cellspacing="0" cellpadding="0">

              <tr>

                <td width="105">&nbsp;</td>

                <td width="97">&nbsp;</td>

                <td width="147">&nbsp;</td>

                <td width="24">&nbsp;</td>

                <td width="170">&nbsp;</td>

                <td width="58">&nbsp;</td>

                <td width="65">&nbsp;</td>

                <td width="88">&nbsp;</td>

              </tr>

              <tr>

                <td>&nbsp;</td>

                <td>请输入关键词:</td>

                <td><input name="key" type="text" id="key" size="20"></td>

                <td align="center">按</td>

                <td><select name="cond" id="cond">

                  <option value="tc_name">姓名</option>

                  <option value="tc_indate">入校时间</option>

                  <option value="tc_zhy">所学专业</option>

                  <option value="tc_dw">所在基层单位</option>

                </select></td>

                <td><input type="submit" name="Submit" value="查询"></td>

                <td><input type="reset" name="Submit2" value="重来"></td>

                <td>&nbsp;</td>

              </tr>

              <tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

              </tr>

            </table>

                     </form>

                     </td>

          </tr>

          <tr>

            <td background="img/table_btom.gif">&nbsp;</td>

          </tr>

        </table>

        <table width="754" border="0" align="center" cellpadding="0" cellspacing="0">

          <tr>

            <td><img src="img/admin_list.gif" width="754" height="27"></td>

          </tr>

          <tr>

            <td background="img/table_bg.gif">

<table width="754"  border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="70">&nbsp;</td>

    <td width="140">&nbsp;</td>

    <td width="166">&nbsp;</td>

    <td width="166">&nbsp;</td>

    <td width="166">&nbsp;</td>

    <td width="46">&nbsp;</td>

  </tr>

  <tr>

    <td>&nbsp;</td>

    <td colspan="3">共计&nbsp;<i><%=(rs_total)%></i>&nbsp;条记录,当前显示第&nbsp;<i><%=(rs_first)%></i>&nbsp;条到第&nbsp;<i><%=(rs_last)%></i>&nbsp;条</td>

    <td>&nbsp;</td>

    <td>&nbsp;</td>

  </tr>

    <tr>

    <td>&nbsp;</td>

    <td>&nbsp;</td>

    <td>&nbsp;</td>

    <td>&nbsp;</td>

    <td>&nbsp;</td>

    <td>&nbsp;</td>

  </tr>

  <tr>

    <td>&nbsp;</td>

    <td>      <% If MM_offset <> 0 Then %>

      <A HREF="<%=MM_moveFirst%>" class="4">第一页</A>

      <% End If ' end MM_offset <> 0 %></td>

    <td>      <% If MM_offset <> 0 Then %>

      <A HREF="<%=MM_movePrev%>" class="4">上一页</A>

      <% End If ' end MM_offset <> 0 %></td>

    <td>      <% If Not MM_atTotal Then %>

      <A HREF="<%=MM_moveNext%>" class="4">下一页</A>

      <% End If ' end Not MM_atTotal %></td>

    <td>      <% If Not MM_atTotal Then %>

      <A HREF="<%=MM_moveLast%>" class="4">最末页</A>

      <% End If ' end Not MM_atTotal %></td>

    <td>&nbsp;</td>

  </tr>

</table>

<table width="754"  border="0" cellspacing="0" cellpadding="0">

              <tr>

                <td width="67">&nbsp;</td>

                <td width="115">&nbsp;</td>

                <td width="369">&nbsp;</td>

                <td width="97">&nbsp;</td>

                <td width="52">&nbsp;</td>

                <td width="54">&nbsp;</td>

              </tr>

              <tr>

                <td>&nbsp;</td>

                <td><b>姓名</b></td>

                <td><b>所在基层单位</b></td>

                <td><b>查看/修改</b></td>

                <td><b>删除</b></td>

                <td>&nbsp;</td>

              </tr>

              <%

While ((Repeat1__numRows <> 0) AND (NOT rs.EOF))

%>

              <tr onMouseOver="this.style.backgroundColor='#99CC00'" onMouseOut ="this.style.backgroundColor=''">

                <td>&nbsp;</td>

                <td><%=(rs.Fields.Item("tc_name").Value)%></td>

                <td><%=(left(rs.Fields.Item("tc_dw").Value,26))%></td>

                <td><input name="btm1" type="button" id="btm1"  style="font-family: 新细明体, 宋体, Arial; font-size: 9pt; height:20px;background-color:#D4D0C8;" οnclick=" window.location='admin_edit.asp?id=<%=rs("tc_id")%>'" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#D4D0C8'" value="查看/修改"></td>

                <td><input type="button" value="删除" οnclick="if (confirm('确实要此条记录吗?')) window.location='admin_del.asp?id=<%=rs("tc_id")%>'" style="font-family: 新细明体, 宋体, Arial; font-size: 9pt; height:20px;background-color:#D4D0C8;" onMouseOver="this.style.backgroundColor='#FFC864'" onMouseOut="this.style.backgroundColor='#D4D0C8'"></td>

                <td>&nbsp;</td>

              </tr>

              <%

  Repeat1__index=Repeat1__index+1

  Repeat1__numRows=Repeat1__numRows-1

  rs.MoveNext()

Wend

%>

<tr>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

                <td>&nbsp;</td>

              </tr>

            </table>

<table width="754"  border="0" cellpadding="0" cellspacing="0">

  <tr>

    <td width="70">&nbsp;</td>

    <td width="140">      <% If MM_offset <> 0 Then %>

      <A HREF="<%=MM_moveFirst%>" class="4">第一页</A>

      <% End If ' end MM_offset <> 0 %></td>

    <td width="166">      <% If MM_offset <> 0 Then %>

      <A HREF="<%=MM_movePrev%>" class="4">上一页</A>

      <% End If ' end MM_offset <> 0 %></td>

    <td width="166">      <% If Not MM_atTotal Then %>

      <A HREF="<%=MM_moveNext%>" class="4">下一页</A>

      <% End If ' end Not MM_atTotal %></td>

    <td width="166">

      <% If Not MM_atTotal Then %>

      <A HREF="<%=MM_moveLast%>" class="4">最末页</A>

      <% End If ' end Not MM_atTotal %></td>

    <td width="46">&nbsp;</td>

  </tr>

</table>              </td>

          </tr>

          <tr>

            <td background="img/table_btom.gif">&nbsp;</td>

          </tr>

        </table>

    </td>

  </tr>

  <tr>

    <td>&nbsp;</td>

  </tr>

</table>

</body>

</html>

<%

rs.Close()

Set rs = Nothing

%>

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/640972.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

AI赋能银行业务新突破:合合信息助力银行流水智能识别系统

官.网地址&#xff1a;合合TextIn - 合合信息旗下OCR云服务产品 在银行零售与对公业务中&#xff0c;流水单作为分析申请人财务情况的重要材料&#xff0c;是银行业务的重要数据来源。小微企业也常常使用流水代替财报&#xff0c;用以反映企业的财务与经营情况。如何高效地识别…

LoFTR 笔记和理解

文章目录 解决什么实际问题&#xff1f;算法结构 解决什么实际问题&#xff1f; 主要是解决传统特征匹配和之前的基于深度学习特征匹配不稳定和不准确的问题。传统的特征匹配方法主要依赖于特征点的检测&#xff0c;如果特征点的检测出现问题&#xff0c;比如某一些的关键点没…

Unity Physics入门

概述 在unity中物理属性是非常重要的&#xff0c;它可以模拟真实物理的效果在unity中&#xff0c;其中的组件是非常多的&#xff0c;让我们来学习一下这部分的内容吧。 Unity组件入门篇总目录----------点击导航 Character Controller(角色控制) 说明&#xff1a;组件是Unity提…

元年科技数据智能研发部负责人张亚东受邀为第十三届中国PMO大会演讲嘉宾

全国PMO专业人士年度盛会 北京元年科技股份有限公司数据智能研发部负责人张亚东先生受邀为PMO评论主办的2024第十三届中国PMO大会演讲嘉宾&#xff0c;演讲议题为“大模型时代&#xff0c;AI创新型工具提升项目管理效率”。大会将于6月29-30日在北京举办&#xff0c;敬请关注&a…

VOS3000被DDOS攻击后该怎么办

VOS3000遭受DDoS攻击的应对措施 当VOS3000遭受DDoS攻击时&#xff0c;可以采取以下几个步骤来应对&#xff1a; 立即启动防火墙&#xff1a;尽管难以完全阻止DDoS攻击&#xff0c;但防火墙可以在一定程度上帮助抵御攻击&#xff0c;减轻其造成的危害。 联系服务器提供商&#…

JVM运行时内存:垃圾回收

文章目录 1. 什么是垃圾2. 为什么需要垃圾回收3. Java 中垃圾回收的重点区域是什么4. 常见的垃圾回收算法 1. 什么是垃圾 垃圾 是指 在运行程序中没有任何指针指向的对象&#xff0c;这个对象就是需要被回收的垃圾。 如果不及时对内存中的垃圾进行清理&#xff0c;那么&#…

【问题解决】Android Studio Jellyfish新建Kotlin项目后Gradle Sync及Maven下载很慢

创建新项目之后&#xff0c;Gradle Sync和Build都很慢&#xff0c;因为下载Gradle和Maven等工具。 代码默认配置 settings.gradle.kts pluginManagement {repositories {google {content {includeGroupByRegex("com\\.android.*")includeGroupByRegex("com\\.g…

单片机io扩展

输入输出扩展 i2c扩展 方案1:PCF8575 PCF8575双向IO口扩展模块 16位输入输出I2C通讯 单片机级联扩展板 方案2&#xff1a;PCA955A 输出扩展 74HC595 io口扩展模块输出口扩展 参考链接 中微爱芯发[2004] 1号           签发人&#xff1a; (szlcsc.com)https://…

vue项目elementui刷新页面弹窗问题

bug&#xff1a;每次刷新页面都有这个鬼弹窗。 刚开始以为是自己的代码问题&#xff0c;于是我翻遍了每一行代码&#xff0c;硬是没找出问题。 后来在网上找了些资料&#xff0c;原来是引入的问题。 解决方案&#xff1a; 改一下引入方式即可。 错误姿势 import Vue from …

构建高效AI代理:单代理与多代理架构的策略与挑战

AI代理架构正成为实现复杂任务自动化的关键技术。这些代理不仅需要处理信息、做出决策&#xff0c;还要能够与外部环境进行交互。随着ChatGPT等生成式AI应用的兴起&#xff0c;研究者们开始探索下一代AI应用&#xff0c;其中AI代理的角色愈发重要。单代理架构以其简洁高效的特点…

牛皮!亚信安全《2024国家级攻防演练100+必修高危漏洞合集》.pdf

上次分享了2023攻防演练高危漏洞&#xff0c;获得了很多粉丝的好评。 今天再分享一份由亚信安全服务团队结合自身的“外部攻击面管理”服务能力和专业的红队能力&#xff0c;最新发布的《2024攻防演练必修高危漏洞合集》&#xff0c;一共108页&#xff0c;非常详细&#xff0c…

五分钟部署开源运维平台Spug结合内网穿透实现远程登录管理

文章目录 前言1. Docker安装Spug2 . 本地访问测试3. Linux 安装cpolar4. 配置Spug公网访问地址5. 公网远程访问Spug管理界面6. 固定Spug公网地址 前言 Spug 面向中小型企业设计的轻量级无 Agent 的自动化运维平台&#xff0c;整合了主机管理、主机批量执行、主机在线终端、文件…

【产品经理】输出

引言&#xff1a;        在最近频繁的产品管理职位面试中&#xff0c;我深刻体会到了作为产品经理需要的不仅仅是对市场和技术的敏锐洞察&#xff0c;更多的是在复杂多变的环境中&#xff0c;如何运用沟通、领导力和决策能力来引导产品从概念走向市场。这一系列博客将分享…

RoboMaster机甲大师赛

RoboMaster机甲大师赛 RoboMaster机甲大师赛中部赛区承办方主要赛事&#xff1a;机甲大师高校联盟赛&#xff08;RMUL,RoboMaster University League&#xff09;组别概况比赛规则 RoboMaster机甲大师赛中部赛区 昨天现场观看了机甲师中部赛区&#xff0c;感觉很受震撼&#x…

dmanywhere的docker制作

dmanywhere的docker制作 官网地址&#xff1a; http://www.dmanywhere.cn/ 下载相关执行文件。 Dockerfile的默认命名是“Dockerfile”&#xff0c; 在构建镜像时&#xff0c;如果没有指定Dockerfile文件&#xff0c;Docker通常会寻找名为“Dockerfile”的文件 1.Dockerf…

校园二手书交易|基于SprinBoot+vue的校园二手书交易管理系统(源码+数据库+文档)

校园二手书交易管理系统 目录 基于SprinBootvue的校园二手书交易管理系统 一、前言 二、系统设计 三、系统功能设计 1系统功能模块 2管理员功能模块 3 卖家用户功能模块 4 用户功能模块 四、数据库设计 五、核心代码 六、论文参考 七、最新计算机毕设选题推荐 八…

类图的六大关系

类图中的六大关系包括&#xff1a;继承关系、实现关系、关联关系、聚合关系、组合关系和依赖关系。 1. 继承关系 继承是一种类与类之间的关系&#xff0c;表示一种泛化和特化的关系。子类继承父类的特性和行为。 class Animal {void eat() {System.out.println("This an…

Kafka之【存储消息】

数据已经由生产者Producer发送给Kafka集群&#xff0c;当Kafka接收到数据后&#xff0c;会将数据写入本地文件中。 存储组件 Kafka 的消息存储涉及多个关键组件&#xff0c;每个组件在消息的存储和管理过程中扮演着特定的角色。以下是 Kafka 存储消息过程中涉及的主要存储组件及…

解决ModuleNotFoundError: No module named ‘dnnlib‘问题

复现论文采用了大佬的库&#xff0c;这时候运行报错&#xff1a; 尝试采用&#xff1a;pip install dnnlib解决&#xff0c;但下载源中并不包含该依赖。 解决方法&#xff1a; pip install https://github.com/podgorskiy/dnnlib/releases/download/0.0.1/dnnlib-0.0.1-py3-n…

python数据类型之列表

目录 1.创建列表 2.列表基础操作 常用操作 对列表元素顺序随机打乱 列表下标和切片 字符串分割为列表 列表位移 列表切片替换 3.列表内置方法 4.列表排序 简单排序 使用key参数按指定规则排序 二维列表排序 自定义排序规则函数 5.列表排序算法 选择排序 柱状图…