| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/(Del)pathways.org.hk/MIS20140127/old20140314/LeaveApplication/ |
Upload File : |
<?php
class General {
public static function fields() {
return array(
'id', 'createby', 'createdate', 'lastupby', 'lastupdate',
);
}
public static function genderOptions() {
return array(
1 => 'Male',
2 => '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">></span></li>-->
<!-- <li><a href="index.php">Staff</a> <span class="divider">></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>