/var/www/(Del)pathways.org.hk/MIS20140127/old20140314/LeaveApplication/Student_Approve.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<?php

class General {

    public static function 
fields() {
        return array(
            
'id''createby''createdate''lastupby''lastupdate',
        );
    }

    public static function 
genderOptions() {
        return array(
            
=> 'Male',
            
=> 'Female',
        );
    }

}

$genderOptions General::genderOptions();

date_default_timezone_set("Hongkong");
$today date("Y-m-d");

$get_pass 0;
$disabled "";
if (isset(
$_GET['pass'])) {
    
$get_pass $_GET['pass'];
}
?>
<?php 
require_once '../include/head.php'?>
<?php 
require_once '../include/checkuser.php'?>
<?php 
require_once '../include/Nav_bar.php'?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <script>
            $(function() {
                $('div input').height(20); //fix size for input box
                $('.date-picker').datetimepicker({pickTime: false});
                $('#SDate').val('<?= $today ?>'); //Generate by system 
                $('#EDate').val('<?= $today ?>'); //Generate by system 
            });
        </script>
    </head>
    <body>
        <div class="text-right">
            <ul class="breadcrumb">
                <!--<li><a href="#">Master</a> <span class="divider">&gt;</span></li>-->
<!--                <li><a href="index.php">Staff</a> <span class="divider">&gt;</span></li>-->
                <li class="active">Leave Application</li>
            </ul>
        </div>

        <div class="container-fluid pathways-container">
            <!--<a class="btn pull-right" <?= ($name != "") ? 'href="historyfrom.php?root_id=' $RootID '&action=Insert"' 'disabled="disabled"' ?> ><i class="icon-plus"></i>Add</a>-->
            <h2>Student Approve</h2>

            <form  class="form-horizontal" action="" method="post" >
                <div class="control-group">
                    <?php
                    $attribute 
'last_name';
                    
$label 'Last Name';
                    
?>
                    <label class="control-label" for="<?= $attribute ?>"><?= $label ?></label>
                    <div class="controls form-inline">
                        <!-- Store the Root ID here, and pass to $_Post after submited -->
                        <input type="hidden" id="TempRootID" name="TempRootID" value="0" />
                        <input type="text" id="<?= $attribute ?>" name="<?= $attribute ?>" class="required" value="" placeholder="<?= $label ?>" maxlength="200" disabled="disabled" />
                        <?php
                        $attribute 
'first_name';
                        
$label 'First Name';
                        
?>
                        <label class="control-label" style="float:none" for="<?= $attribute ?>"><?= $label ?></label>
                        <input type="text" id="<?= $attribute ?>" name="<?= $attribute ?>" class="required" style="margin-left:15px" value="" placeholder="<?= $label ?>" maxlength="200" disabled="disabled"  />
                    </div>
                </div>
                <div class="control-group">
                    <?php
                    $attribute 
'zh_name';
                    
$label '中文姓名';
                    
?>
                    <label class="control-label" for="<?= $attribute ?>"><?= $label ?></label>
                    <div class="controls form-inline">
                        <input type="text" id="<?= $attribute ?>" name="<?= $attribute ?>" class="" value="" placeholder="<?= $label ?>" maxlength="200" disabled="disabled"  />
                        <?php
                        $attribute 
'gender';
                        
$label 'Gender';
                        
?>
                        <label class="control-label" style="float:none" for="<?= $attribute ?>"><?= $label ?></label>
                        <select id="<?= $attribute ?>" name="<?= $attribute ?>" class="" style="margin-left:15px" placeholder="<?= $label ?>" disabled="disabled"  >
                            <!--                            <option value=""></option>-->
                            <?php foreach ($genderOptions as $genderValue => $genderLabel) { ?>
                                <option value="<?= $genderValue ?>"><?= $genderLabel ?></option>
                            <?php ?>
                        </select>
                    </div>
                </div>
                <div class="control-group">
                    <?php
                    $attribute 
'SDate';
                    
$label 'Start Date';
                    
?>
                    <label class="control-label" for="<?= $attribute ?>"><?= $label ?></label>
                    <div class="controls form-inline">
                        <div class="input-append date-picker">
                            <input type="text" id="<?= $attribute ?>" name="<?= $attribute ?>" class="dateISO" value="" data-format="yyyy-MM-dd" placeholder="<?= $label ?>" maxlength="200" disabled="disabled" />
                            <!--<span class="add-on"><i data-time-icon="icon-time" data-date-icon="icon-calendar"></i></span>-->
                        </div>
                        <?php
                        $attribute 
'EDate';
                        
$label 'End Date';
                        
?>
                        <label class="control-label" style="float:none;margin-left:20px" for="<?= $attribute ?>" ><?= $label ?></label>
                        <div class="input-append date-picker">
                            <input type="text" id="<?= $attribute ?>" name="<?= $attribute ?>" style="margin-left:20px" class="dateISO" value="" data-format="yyyy-MM-dd" placeholder="<?= $label ?>" maxlength="200" disabled="disabled" />
                            <!--<span class="add-on"><i data-time-icon="icon-time" data-date-icon="icon-calendar"></i></span>-->
                        </div>

                    </div>
                </div>
                <div class="control-group">
                    <?php
                    $attribute 
'STime';
                    
$label 'Start Time';
                    
?>
                    <label class="control-label" for="<?= $attribute ?>"><?= $label ?></label>
                    <div class="controls form-inline">

                        <input type="text" id="<?= $attribute ?>" name="<?= $attribute ?>" placeholder="<?= $label ?>" disabled="disabled" value="Whole Day" />

                        <?php
                        $attribute 
'ETime';
                        
$label 'End Time';
                        
?>
                        <label class="control-label" style="float:none" for="<?= $attribute ?>" ><?= $label ?></label>

                        <input type="text" id="<?= $attribute ?>" name="<?= $attribute ?>" style="margin-left:15px" placeholder="<?= $label ?>" disabled="disabled" value="Whole Day" />


                    </div>
                </div>
                <hr>
                    <h5>Lesson</h5>
                    <table class="table table-striped table-bordered table-hover table-condensed" style="width:100%" >
                        <thead>
                            <tr>
    <!--                            <th style="min-width:130px; width:50px">View</th>-->
                                <th style="min-width:50px; width:50px;width:10%">Action</th>
                                <th style="width:10%" >Date</th>
                                <th style="width:10%" >Time</th>
                                <th style="width:10%" >Program</th>
                                <th style="width:10%" >Subject</th>
<!--                                <th style="width:10%" >Staff</th>
                                <th style="width:10%" >Sudent</th>-->
                                <!--<th style="width:10%" >Make up</th>-->
    <!--                            <th>AdminEdit</th>-->
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>
                                    <?php
                                    
if($get_pass == 1){
                                        
$disabled 'disabled';
                                    }
                                    
?>
                                    <a href="../Event/Event_DetailFrom.php?event_id=1" class="btn" <?= $disabled?> >Make Up</a>
                                    <button  class="btn" id="">None</button>
                                </td>
                                <td>
                                    <?php print '<b>' $today '</b>'?>
                                </td>
                                <td>
                                    12:00  - 13:00
                                </td>
                                <td>
                                    ASSP
                                </td>
                                <td>
                                    Eng
                                </td>
<!--                                <td>
                                    
                                </td>
                                <td>
                                    
                                </td>-->
                            </tr>

                        </tbody>
                    </table>
                    <button  class="btn btn-danger" id="">Approve</button>
                    <button  class="btn btn-danger" type="button" onclick="history.back();" >Back</button>
            </form>
        </div>
    </body>
</html>