-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstudent.php
68 lines (62 loc) · 1.94 KB
/
student.php
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<html>
<body>
Add a course </br>
<?php
$con = new MongoClient();
if($con){
$db = $con->acadSchedular;
$col = $db->courses;
$cursor = $col->find(array("course_name"=>array('$ne'=>null)), (array("_id" => 0, "course_name" => 1)));
//$cursor = $col->find();
//echo "size ";
//echo $cursor->count();
//echo iterator_to_array($cursor);
echo '<form action="addcourse_student.php" method="POST">';
echo "<select name='course_num' value='course_num'>course";
while($r = $cursor->getNext()) {
//echo "jai mata di";
echo "<option value=".$r['course_name'].">".$r['course_name']."</option>";
}
echo "</select>";
echo '<input name="submitForm" id="submitForm" type="submit" value="Add" />
</form>';
/* echo '<form action="addcourse_student.php" method="POST">';
echo "<select name='dropdown' value='course_num' id='course_num'>course";
echo "<option value='sexy'>sexy</option>";
echo "<option value='sexy2'>sexy2</option>";
echo "</select>";
echo '<input name="submitForm" id="submitForm" type="submit" value="Add" />
</form>';
*/
}
else echo "dfdf";
?>
</br>
create an event
<form action="nonAcademic.php" method="POST">
Title:
<input type="text" id="title" name="title" />
</br>
Date</br>
DD<input type="text" id="course_num" name="date[]"/>
MM<input type="text" id="course_num" name="date[]"/>
YY<input type="text" id="course_num" name="date[]"/>
</br>
Timing
<select name="timing">
<option value="8-9">8-9</option>
<option value="9-10">9-10</option>
<option value="10-11">10-11</option>
<option value="11-12">11-12</option>
<option value="12-1">12-1</option>
<option value="1-2">1-2</option>
<option value="2-3">2-3</option>
<option value="3-4">3-4</option>
</select>
Add people to the event
<input type="text" id="members" name=members/>
</br>
<input name="submitForm" id="submitForm" type="submit" value="Add" />
</form>
</body>
</html>