-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdisp.php
More file actions
executable file
·42 lines (42 loc) · 1.28 KB
/
disp.php
File metadata and controls
executable file
·42 lines (42 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
global $database;
?>
<html>
<head>
<title>Exam settings</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<script src="js/jquery.js"></script>
<script>
$(document).ready(function(){
$("#subject").change(loadtopics);
function loadtopics()
{
$.post("exammanger.php",{subject:$("#subject").val()},function(data){
$("#topic").html(data);
});
}
$.post("exammanger.php",{subject:$("#subject").val()},function(data){
$("#topic").html(data);
});
});
</script>
<style>
body{background-color:#D08437;}
tr{background-color:#4B2C0C;border-bottom:1px solid #000; }
table{border-collapse: collapse;}
td{font-size:20px;color:#fff;}
</style>
</head>
<body>
<form action="" method="post">
<table align="center" height="190px" width="500px" border="0">
<caption>考试设置</caption>
<tr ><td >选择科目</td><td><select id="subject" name="subjectid"><?php $database->psubs($session->branchid); ?></select></td></tr>
<tr><td>选择章节</td><td><select id="topic" name="topicid"></select></td></tr>
<tr><td>选择题目数</td><td><select name="marks"><option value=10>10</option><option value=30>30</option</select></td></tr>
<tr><td></td><td><input type="submit" value="go" id="sub"></td></tr>
</table>
</form>
</body>
</html>