<?php
include_once 'conn.php';
session_start();
$id=$_GET["id"];
$jj=$_POST["jj"];
if ($jj=="1" )
{
$sql="select * from shijuanshengcheng where id=".$id;
$query=mysql_query($sql);
$rowscount=mysql_num_rows($query);
$cj=0;
$sql2="select * from danxuanti where id in (".mysql_result($query,$i,danxuanti).")";
$query2=mysql_query($sql2);
$rowscount2=mysql_num_rows($query2);
if($rowscount2>0)
{
for($i2=0;$i2<$rowscount2;$i2++)
{
if ($_POST["xztxxa".$i2]==$_POST["xztshitida".$i2])
{
$cj=$cj+mysql_result($query,0,danxuanfenzhi);
}
else
{
$sqltmp="insert into cuotijilu(username,cuotiid,lb) values('".$_SESSION["username"]."','".mysql_result($query2,$i2,id)."','单选题')";
mysql_query($sqltmp);
}
}
}
$cj2=0;
$sql2="select * from tiankongti where id in (".mysql_result($query,$i,tiankongti).")";
$query2=mysql_query($sql2);
$rowscount2=mysql_num_rows($query2);
if($rowscount2>0)
{
for($i2=0;$i2<$rowscount2;$i2++)
{
if ($_POST["dxtxxa".$i2]==$_POST["dxtshitida".$i2])
{
$cj2=$cj2+mysql_result($query,0,tiankongfenzhi);
}
else
{
$sqltmp="insert into cuotijilu(username,cuotiid,lb) values('".$_SESSION["username"]."','".mysql_result($query2,$i2,id)."','填空题')";
mysql_query($sqltmp);
}
}
}
$cj3=0;
$sql3="select * from panduanti where id in (".mysql_result($query,$i,panduanti).")";
$query3=mysql_query($sql3);
$rowscount3=mysql_num_rows($query3);
if($rowscount3>0)
{
for($i2=0;$i2<$rowscount3;$i2++)
{
if ($_POST["pdtxxa".$i2]==$_POST["pdtshitida".$i2])
{
echo $_POST["pdtxxa".$i2];
echo $_POST["pdtshitida".$i2];
$cj3=$cj3+mysql_result($query,0,panduanfenzhi);
}
else
{
$sqltmp2="insert into cuotijilu(username,cuotiid,lb) values('".$_SESSION["username"]."','".mysql_result($query3,$i2,id)."','判断题')";
mysql_query($sqltmp2);
}
}
}
$zf=$cj+$cj2+$cj3;
$sql="insert into chengji(yonghuming,danxuanti,tiankongti,panduanti,zf,bianhao,kemu) values('".$_SESSION["username"]."',".$cj.",".$cj2.",".$cj3.",".$zf.",'".mysql_result($query,$i,bianhao)."','".mysql_result($query,$i,kemu)."')";
mysql_query($sql);
echo "<script>javascript:alert('交卷成功!您本次成绩为:单选题".$cj."分,填空题".$cj2."分,判断题".$cj3.",总分".$zf."分!');location.href='chengji2.php';</script>";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>单选题</title><link rel="stylesheet" href="css.css" type="text/css">
</head>
<body>
<?php
$sql="select * from shijuanshengcheng where id=".$id;
$query=mysql_query($sql);
$rowscount=mysql_num_rows($query);
if($rowscount>0)
{
?>
<p>试卷编号:<?php echo mysql_result($query,0,bianhao)?>,课程:<?php echo mysql_result($query,0,kemu)?> 时间:1小时,现在开始计时!剩余<SPAN id=tiao></SPAN>秒 </p>
<SCRIPT language=javascript>
<!--
function clock(){i=i-1
document.getElementById('tiao').innerHTML=i;
if(i>0) {
setTimeout("clock();",1000);
}
else {
alert("考试时间到,系统自动交卷!");
document.form1.submit();
}
}
var i=3600
clock()
//-->
</SCRIPT>
<table bgcolor="#ffffff" border="0" cellspacing="0"
height="203" width="100%">
<tbody>
<tr>
<td><form action="?id=<?php echo $id?>" method="post" name="form1" id="form1">
<table width="100%" height="103" border="1" cellpadding="1" cellspacing="0" bordercolor="#F8C878">
<tr>
<td height="33" colspan="3">单选题</td>
</tr>
<?php
$sql2="select * from danxuanti where id in (".mysql_result($query,0,danxuanti).")";
$query2=mysql_query($sql2);
$rowscount2=mysql_num_rows($query2);
if($rowscount2>0)
{
for($i2=0;$i2<$rowscount2;$i2++)
{
?>
<tr>
<td width="9%" height="33">试题:</td>
<td colspan="2">题目:<?php echo mysql_result($query2,$i2,timu)?>
<input name="xztshitida<?php echo $i2?>" type="hidden" id="xztshitida<?php echo $i2?>" value="<?php echo mysql_result($query2,$i2,daan)?>" /></td>
</tr>
<tr>
<td rowspan="2">选项</td>
<td width="52%"><input type="radio" name="xztxxa<?php echo $i2?>" value="A" />
选项A:<?php echo mysql_result($query2,$i2,xuanxiangA)?></td>
<td width="39%"><input type="radio" name="xztxxa<?php echo $i2?>" value="B" />
选项B:<?php echo mysql_result($query2,$i2,xuanxiangB)?></td>
</tr>
<tr>
<td><input type="radio" name="xztxxa<?php echo $i2?>" value="C" />
选项C:<?php echo mysql_result($query2,$i2,xuanxiangC)?></td>
<td><input type="radio" name="xztxxa<?php echo $i2?>" value="D" />
选项D:<?php echo mysql_result($query2,$i2,xuanxiangD)?></td>
</tr>
<?php
}
}
?>
</table>
<table width="100%" height="103" border="1" cellpadding="1" cellspacing="0" bordercolor="#F8C878">
<tr>
<td height="33" colspan="3">填空题</td>
</tr>
<?php
$sql2="select * from tiankongti where id in (".mysql_result($query,0,tiankongti).")";
$query2=mysql_query($sql2);
$rowscount2=mysql_num_rows($query2);
if($rowscount2>0)
{
for($i2=0;$i2<$rowscount2;$i2++)
{
?>
<tr>
<td width="9%" height="33">试题:</td>
<td colspan="2">题目:<?php echo mysql_result($query2,$i2,timu)?>
<input name="dxtshitida<?php echo $i2?>" type="hidden" id="dxtshitida<?php echo $i2?>" value="<?php echo mysql_result($query2,$i2,daan)?>" /></td>
</tr>
<tr>
<td>您的答案:</td>
<td colspan="2"><input name="dxtxxa<?php echo $i2?>" type="text" id="dxtxxa<?php echo $i2?>" /></td>
</tr>
<?php
}
}
?>
</table>
<table width="100%" height="103" border="1" cellpadding="1" cellspacing="0" bordercolor="#F8C878">
<tr>
<td height="33" colspan="3">判断题</td>
</tr>
<?php
$sql3="select * from panduanti where id in (".mysql_result($query,0,panduanti).")";
$query3=mysql_query($sql3);
$rowscount3=mysql_num_rows($query3);
if($rowscount3>0)
{
for($i2=0;$i2<$rowscount3;$i2++)
{
?>
<tr>
<td width="9%" height="33">试题:</td>
<td colspan="2">题目:<?php echo mysql_result($query3,$i2,timu)?>
<input name="pdtshitida<?php echo $i2?>" type="hidden" id="pdtshitida<?php echo $i2?>" value="<?php echo mysql_result($query3,$i2,daan)?>" /></td>
</tr>
<tr>
<td>您的答案:</td>
<td colspan="2"><input type="radio" name="pdtxxa<?php echo $i2?>" value="对" />
对
<input type="radio" name="pdtxxa<?php echo $i2?>" value="错" />
错</td>
</tr>
<?php
}
}
?>
</table>
<input type="submit" name="Submit" value="交卷" />
<input name="jj" type="hidden" id="jj" value="1" />
</form>
<p> </p></td>
</tr>
</tbody>
</table>
<p> </p>
<p> </p>
<?php
}
?>
</td>
<td width="22" background="qtimages/1_02_02_01_02_03.jpg"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
php在线考试系统 php5版本 没有使用任何框架 .zip
共164个文件
php:70个
gif:36个
jpg:27个
需积分: 0 1 下载量 105 浏览量
2024-01-17
12:43:20
上传
评论
收藏 3.53MB ZIP 举报
温馨提示
软件开发设计:应用软件开发、系统软件开发、移动应用开发、网站开发Node.js、C++、Java、python、web、C#等语言的项目开发与学习资料 硬件与设备:单片机、EDA、proteus、RTOS、包括计算机硬件、服务器、网络设备、存储设备、移动设备等 操作系统:LInux、Android树莓派、安卓开发、微机操作系统、网络操作系统、分布式操作系统等。此外,还有嵌入式操作系统、智能操作系统等。 网络与通信:数据传输、信号处理、网络协议、网络与通信硬件、网络安全网络与通信是一个非常广泛的领域,它涉及到计算机科学、电子工程、数学等多个学科的知识。 云计算与大数据:包括云计算平台、大数据分析、人工智能、机器学习等,云计算是一种基于互联网的计算方式,通过这种方式,共享的软硬件资源和信息可以按需提供给计算机和其他设备。
资源推荐
资源详情
资源评论
收起资源包目录
php在线考试系统 php5版本 没有使用任何框架 .zip (164个子文件)
admin_skin.css 16KB
topleft_skin.css 6KB
datepicker.css 5KB
public.css 4KB
CssAdmin.css 4KB
css.css 2KB
manage_menu.css 2KB
alogin_skin.css 2KB
dtree.css 815B
newdiv_window.css 626B
global.css 518B
WdatePicker.css 158B
Thumbs.db 204KB
Thumbs.db 92KB
Footer.gif 17KB
SignUp.gif 3KB
SignIn.gif 3KB
loader_bar.gif 2KB
loadbar.gif 2KB
the_formbtn.gif 2KB
img.gif 2KB
wrapper_Bg001.gif 1KB
HeaderBg.gif 1KB
datePicker.gif 1KB
man.gif 1003B
Index_FooterLine.gif 939B
nolines_plus.gif 870B
nolines_minus.gif 861B
editor_ebarbg.gif 820B
editor_sebar.gif 818B
Index_TopLine.gif 745B
MHeaderBg.gif 506B
common_btn.gif 438B
btn_bgs.gif 391B
nmenu_t.gif 373B
Left_NavTop.gif 238B
LeftBG.gif 198B
LanguageLine.gif 167B
Upload.gif 111B
Tool.gif 108B
Left_Nav.gif 105B
line.gif 103B
plus.gif 89B
plusbottom.gif 88B
minus.gif 86B
minusbottom.gif 85B
join.gif 69B
joinbottom.gif 66B
line.gif 66B
empty.gif 62B
My97DatePicker.htm 1KB
about.htm 969B
login.html 4KB
13400699440gw0.jpg 225KB
1340070029dc64.jpg 110KB
1493232108v2tg.jpg 82KB
1340069970gp0a.jpg 57KB
login.jpg 39KB
1493318906g12s.jpg 39KB
1340069838pb96.jpg 37KB
1340070002x47w.jpg 35KB
15837338552sn5.jpg 27KB
1490213333292c.jpg 26KB
nopic.jpg 24KB
Logo_Main.jpg 21KB
1490166747bq1v.jpg 20KB
bbgg.jpg 11KB
1.jpg 10KB
common_btn.jpg 9KB
14932320623dw2.jpg 7KB
1490157905ttmm.jpg 7KB
14901579380ati.jpg 6KB
14902134443avf.jpg 6KB
1490157857cpew.jpg 6KB
1490157882ly53.jpg 5KB
head_menu_bg.jpg 361B
r_news_title_bg.jpg 321B
l_com_title_bg.jpg 321B
title_bg.jpg 311B
bg.jpg 307B
calendar.js 22KB
dtree.js 16KB
WdatePicker.js 7KB
zh-cn.js 383B
config.js 230B
shijuan_detail2.php 8KB
shijuanshengcheng_add.php 6KB
jiaoshixinxi_list.php 6KB
jingwurenyuan_add.php 6KB
xueshengxinxi_add.php 5KB
jingwurenyuan_list.php 5KB
shijuan_detail3.php 5KB
xueshengxinxi_list.php 5KB
shijuan_detail.php 5KB
jiaoshixinxi_add.php 5KB
jiaoshixinxi_updt.php 4KB
jingwurenyuan_updt.php 4KB
qunzuxinxi_list.php 4KB
jingwurenyuan_updt2.php 4KB
qunzuxinxi_list3.php 4KB
共 164 条
- 1
- 2
资源评论
妄北y
- 粉丝: 1w+
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 适用于tensorflow-2.11.0 CUDA版本11.2的cuDNN8.1版本
- 5Y study学习平台2016计算机基础-综合测试(8)_哔哩哔哩_bilibili_2580252704.mp4
- (大赛作品)STM32实现的F072RB NUCLEO智能家居控制.zip
- STM32实现的数字示波器源码+数字信号处理教程、配套实例.zip
- 【cookie续续】【cookie续续】【cookie续续】
- 低功耗STM32实现的F411开发板(原理图+PCB源文件+官方例程+驱动等).zip
- 基于stm32实现的 nucleo-L476的智能灯(操作说明+源码).zip
- 基于STM32实现的 NUCLEO板设计彩色LED照明灯(纯cubeMX开发).zip
- 基于STM32实现的 的联合调试侦听设备解决方案(原理图、PCB源文件、调试工具、视频).zip
- 基于STM32实现的 人群定位、调速智能风扇设计(程序、设计报告、视频演示).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功