ENGLISH 意见建议 网站地图 网站帮助
广泛智力汇聚   高效成果传播   先进机制培育
联盟首页  |  协同开发  |  开放源码库  |  安全告警  |  开源导航  |  文档中心  |  服务支持  |  共创论坛  |  关于联盟


注册会员 网站帮助
    您的位置 »
    今天是: 2010年11月22日    
项目搜索

完全匹配   
开源软件
软件分类表
新发布软件
其它网站镜像
代码片断
协同开发
文档
论坛
寻求协助
热点项目
站点状态
编译工厂

联系我们
关于联盟

代码片段库:
查看代码片段

浏览 | 提交新的代码片段 | 创建代码包

login.php

类型:
Class
类别:
Other
许可证:
GNU General Public License
语言:
PHP
 
描述:
登陆考试系统代码

该代码片段的版本系列:

片段ID 下载版本 提交时间 提交人 删除
48390.12004-03-16 02:55chengjun

点击"下载版本"来下载该代码片段.


最新版本的代码片段: 0.1


<?
  include("config.inc");
  require("common.inc");

  $sign = false;
  if((isset($student))and(isset($passwd))){
  //检查登录是否成功
    if(checkstudent($student,$passwd)==1){
      $date = FormatDateToString(8);

      //$sts:0新卷,1开始,2交卷
      $sts = checkdone($student,$date);
      if($sts==0){
        //今天第一次参加考试
        $student = strtoupper($student);
        $sql="insert into T_RESULT(STUDENT,STS,SCORE,DESCRIPTION,DATE,
          IPADDRESS)values('$student','1','0','','$date','$REMOTE_ADDR')";
        mysql_query($sql);
      }else{
        echo "重复进入考场,请与监考教师联系";
        exit;
      }

      //进入选择试卷页面
      session_start();
      if(!session_is_registered("userid"))
        session_register("userid");
      $userid = $student;

      $timeout = 0;

      $sign = true;
    }else{
      echo "错误的学生号或密码";
    }
  }
?>
<html><head><title>网络考场1.1</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
  <? if($sign==true){ ?>
  var screenwidth=screen.width-10;
  var screenheight=screen.height-56;
  newwin = window.open("field.htm","newwin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+screenwidth+",height="+screenheight+",top=0,left=0");
  newwin.focus;
  <? } ?>

</script>
</head>

<body>
<table width="100%" border="0" cellspacing="1">
<tr>
    <td height="37"  align="left" width="79%"> <img src="../image/title/title.gif" width="600" height="85"></td>
          <td width="21%" height="77">
      <table width="85" border="0" cellspacing="1" cellpadding="1" align="center">
        <tr>
          <td><font size="2" color="#004080">【<span
            onClick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://202.117.129.41');"
            style="CURSOR: hand">设为首页</span>】</font></td>
        </tr>
        <tr>
          <td><font size="2" color="#004080">【<a href="javascript:window.external.AddFavorite('http://202.117.129.41','远程工作联盟')"><font style="text-decoration: none">收藏本站</font></a>】</font></td>
        </tr>
        <tr>
          <td><font size="2"> <font color="#004080">【<a href="mailto:[email protected]"><font style="text-decoration: none">联系我们</font></a>】</font></font></td>
        </tr>
      </table>
          </td>
        </tr>
        <tr>
    <td height="20"  align="center" colspan="2"><font size="2">&nbsp; </font><img src="../image/title/navigation.gif" width="765" height="42" usemap="#Map" border="0"></td>
  <tr>
    <td colspan="2">
        <form name="form1" method="post" action="">
        <table width="100%" border="0">
          <tr bgcolor="#66CCFF">
            <td colspan="2">
              <div align="center"><font color="#000066"><b><font size="3">计算机知识网络考场</font></b></font></div>
            </td>
          </tr>
          <tr>
            <td width=45%>
              <div align="right"><font size="2">学生学号</font></div>
            </td>
            <td width="55%">
              <div align="left"> <font size="2">
                <input type="text" name="student">
                </font></div>
            </td>
          </tr>
          <tr>
            <td width="45%">
              <div align="right"><font size="2">考场密码</font></div>
            </td>
            <td width="55%">
              <div align="left"> <font size="2">
                <input type="password" name="passwd">
                </font></div>
            </td>
          </tr>
          <tr>
            <td colspan="2">
              <div align="center"> <font size="2">
                <input type="submit" name="Ok" value=" 进 入 ">
                <input type="reset" name="Reset" value=" 重 填 ">
                </font></div>
            </td>
          </tr>
        </table>
      </form>
      <p><font size="2"><strong>考场需知:</strong></font></p>
      <ol>
        <li><strong><font size="2" color=red>考试分为两个A、B两个单元进行,开始A单元中40分钟之内完成选择题;提交选择题答案之后进入B单元,显示编程题目;考生在剩余的考试时间内完成编程题,并且按照提示提交编程题存盘文件。</strong></font></li>
        <li><font size="2">登录学号:TT20020101 -- TT20020140,TT20020201 -- TT20020240,TT20020201 
          -- TT20020240,密码均为:1。 现有C语言测试、计算机文化基础测试各一套,每套有20道标准化选择题,要求30分钟内完成。</font></li>
        <li><font size="2">如果在登录过程中出现错误或不能登录,请及时报告监考教师。</font></li>
        <li><font size="2">请不要冒名顶替参加考试,不要恶意抢先登录其他同学学号。以作弊论处,取消考试资格,并且按照学校有关规章制度严惩。</font></li>
        <li><font size="2">当考生开始做考卷,系统自动记录考生当前考试状态,考生请不要试图连续重新做考卷。</font></li>
        <li><font size="2">考生交卷后,计算机系统会立即给出本次考试单项选择题部分的得分情况。</font></li>
        <li><font size="2">软件提供:成军(计算机软件工程实验室)</font></li>
        <li><font size="2">最后修改:2003年7月1日</font></li>
      </ol>
    </td>
  </tr>
<script language="javascript">
<!--form1.student.focus();-->
</script>
</table>
<? include("../map.inc"); ?>
</body></html>
		

提交新版本

如果您修改了一个代码片段并且觉得很应该让别人共享,您可以把这作为这个代码片段的最新版本提交上来.


联盟团体会员
合作伙伴
© 共创软件联盟 版权所有
联盟服务条款 | 联盟隐私权规则 | 联系我们
电话: (8610)68313388-5949 | 传真: (8610)88377936
京ICP备05056057号