-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlessonedit.php
138 lines (136 loc) · 4.12 KB
/
lessonedit.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?php
include_once("lang/lang-en.php");
?>
<!DOCTYPE html>
<html lang="<?php echo $lang['HTML_LANG'];?>">
<head>
<meta charset="utf-8">
<title>Lesson</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Le styles -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="bootstrap/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="#">CES Scheduler</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="index.php">Home</a></li>
<li><a href="studentlist.php">Student</a></li>
<li><a href="teacherlist.php">Teacher</a></li>
<li><a href="checkin.php">Check-In</a></li>
<li class="dropdown">
<a href="#" id="dLabel" class="dropdown-toggle" role="button" data-toggle="dropdown">
Report
<b class="caret"></b>
</a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
<li role="presentation"><a href="finance.php">Finance Report</a></li>
<li role="presentation"><a href="bookkeep.php">Monthly Bookkeeping</a></li>
</ul>
</li>
</ul>
<ul class="nav pull-right">
<li><a href="#">Settings</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container"> <!-- container -->
<h1>Lesson</h1>
<form class="well">
<div class="row">
<div class="span12">
<label>Date</label>
<input type="date" value="2013-06-30">
<input type="time" class="span2" value="19:00:00">
<input type="time" class="span2" value="20:00:00">
</div>
</div>
<div class="row">
<div class="span3">
<label>Student</label>
<input type="text" value="Bob" disabled="disabled">
</div>
<div class="span3">
<label>Teacher</label>
<select>
<option>Daphne</option>
</select>
</div>
<div class="span3">
<label>Room</label>
<select>
<option>1A</option>
<option>2B</option>
</select>
</div>
</div>
<div class="row">
<div class="span3">
<label>Subject</label>
<select>
<option>Music</option>
</select>
</div>
<div class="span3">
<label>Class</label>
<select>
<option>Private Lesson | 400NT</option>
<option>Group Lesson | 1000NT</option>
<option>special Lesson | 500NT</option>
</select>
</div>
<div class="span3">
<label>Custom Fee</label>
<label class="checkbox inline">
<input type="checkbox" name="fee" id="feecheckbox" style="margin-top:-4px;">
</label>
<input id="feeinput" type="text" class="span1" value="400NT" disabled="disabled">
</div>
</div>
<div class="row">
<div class="span3">
<label>Status</label>
<select>
<option>Pending</option>
<option>Complete</option>
</select>
</div>
</div>
<div class="row">
<div class="span12">
<button type="submit" class="btn btn-primary">Save</button>
<a href="checkin.php" class="btn">Back</a>
</div>
</div>
</form>
</div> <!-- /container -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
$("#feecheckbox").click(function() {
$input = $("#feeinput");
$input.prop('disabled', function (_, val) { return ! val;});
});
</script>
</body>
</html>