Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.129.63.214
Current Path : /var/www/html/oums/ |
| Current File : /var/www/html/oums/departments.php |
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" media="screen" href="assets/datepicker/grid/js/themes/redmond/jquery-ui.custom.css">
<link rel="stylesheet" type="text/css" media="screen" href="assets/datepicker/grid/js/jqgrid/css/ui.jqgrid.css">
<script src="assets/datepicker/grid/js/jquery.min.js" type="text/javascript"></script>
<script src="assets/datepicker/grid/js/themes/jquery-ui.custom.min.js" type="text/javascript"></script>
<script src="js/departments.js" type="text/javascript"></script>
</head>
<body onLoad="load_page();">
<?php include("header.php"); ?>
<div id="page-middle">
<div class="page-container panel panel-primary">
<div class="page-container-head panel-heading">
<div id="page-container-titl" class="pull-left"></div>
<div id="page-container-link" class="pull-right"></div>
<div class="clearfix"></div>
</div>
<div id="page-container-body" class="panel-body">
<div id="page-container-main">
<table style="width:100%;">
<tr>
<td style="width:30%;">
<?php
if ($type_id == 'ADMIN') {
$user_dept = "";
} else {
$user_dept = "inner join masdept_user du on dp.fdeptcode = du.fdeptcode and du.fusercode='$user_id'";
}
echo "<select class='form-input' id='seldepttype' onChange='load_grid_data(20,1);' style='width:100%;'>";
$mysql = "select distinct dt.fdepttype,ftypedesc from masdept_type dt
inner join masdept dp on dt.fdepttype = dp.fdepttype
" . $user_dept . "
order by ftypeordr";
$myres = mysqli_query($mycon, $mysql);
if (mysqli_num_rows($myres) > 1) {
echo "<option value='%'>ALL [DEPT. TYPES]</option>";
}
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[fdepttype]'>$myrow[ftypedesc]</option>";
}
echo "</select>";
?>
</td>
<td style="width:30%;">
<select class="form-input" id="seldeptstat" onChange="load_grid_data(20,1);" style="width:100%;">
<option value="T">ACTIVE [STATUS]</option>
<option value="F">INACTIVE [STATUS]</option>
<option value="%">ALL [STATUS]</option>
</select>
</td>
<td style="width:30%;">
<input type="text" id="txtdeptfind" class="form-input" onInput="load_grid_data(20,1);" placeholder="Search department">
</td>
</tr>
</table>
</div>
<div id="page-container-grid"></div>
<div id="page-container-form" class="form-horizontal">
<div id="lblpagemode" class="page_mode"></div>
<div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
<div class="panel-heading">Department Details</div>
<div class="panel-body" style="position: relative;">
<div style="position: absolute; top:10px; right: 5px;">
<img id="imgdeptlogo" class="image_square" src="img-dept/blank.png" onClick="brow_logo_path();"></br>
<input type="button" id="btndeptlogo" class="btn btn-primary" value="Browse" style="width:130px;" onClick="brow_logo_path();" /></br>
<input type="file" id="fildeptlogo" class="form-control" style="width:130px; visibility:hidden;" onchange="chck_logo_file(this);" /></br>
<input type="hidden" id="txtdeptlogo" class="form-control" readonly="readonly" style="width:130px;" />
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Client Code</label>
<div class="col-sm-2">
<input type="text" class="form-control text-center text-uppercase" id="txtdeptcode" maxlength="4" />
</div>
<label for="" class="col-sm-4 control-label">Short Name</label>
<div class="col-sm-2">
<input type="text" class="form-control text-center" id="txtdeptshrt" maxlength="10" />
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Client Name</label>
<div class="col-sm-8">
<input type="text" class="form-control text-uppercase" id="txtdeptname" />
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Client Type</label>
<div class="col-sm-4">
<?php
echo "<select class='form-control' id='txtdepttype'>";
$mysql = "select * from masdept_type order by ftypeordr";
$myres = mysqli_query($mycon, $mysql);
if (mysqli_num_rows($myres) > 1) {
echo "<option value=''>--Select--</option>";
}
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[fdepttype]'>$myrow[ftypedesc]</option>";
}
echo "</select>";
?>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">In-Charge</label>
<div class="col-sm-4">
<?php
echo "<select class='form-control' id='txtdepthead'>";
$mysql = "select * from masempl where femplstat='T' and fusertype in (select fusertype from sys_user_type where fuserordr<2) order by femplname";
$myres = mysqli_query($mycon, $mysql);
if (mysqli_num_rows($myres) > 1) {
echo "<option value=''>--Select--</option>";
}
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[femplcode]'>$myrow[femplname]</option>";
}
echo "</select>";
?>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Status?</label>
<div class="col-sm-2">
<select class="form-control" id="txtdeptstat">
<option value="T">ACTIVE</option>
<option value="F">INACTIVE</option>
</select>
</div>
</div>
</div>
</div>
<div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
<div class="panel-heading">Attendance Details</div>
<div class="panel-body" style="position: relative;">
<div class="form-group">
<label for="" class="col-sm-2 control-label">Enable Attendance?</label>
<div class="col-sm-2">
<select class="form-control" id="txtattnenbl">
<option value="T">YES</option>
<option value="F">NO</option>
</select>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Login Time (Weekdays)</label>
<div class="col-sm-2">
<?php
echo "<select class='form-control' id='txtlogitime'>";
$mysql = "select * from mastime order by ftimecode";
$myres = mysqli_query($mycon, $mysql);
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[ftimecode]'>$myrow[ftimedesc]</option>";
}
echo "</select>";
?>
</div>
<label for="" class="col-sm-2 control-label">Logout Time (Weekdays)</label>
<div class="col-sm-2">
<?php
echo "<select class='form-control' id='txtlogotime'>";
$mysql = "select * from mastime order by ftimecode";
$myres = mysqli_query($mycon, $mysql);
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[ftimecode]'>$myrow[ftimedesc]</option>";
}
echo "</select>";
?>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Login Time (Saturday)</label>
<div class="col-sm-2">
<?php
echo "<select class='form-control' id='txtsatdlogi'>";
$mysql = "select * from mastime order by ftimecode";
$myres = mysqli_query($mycon, $mysql);
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[ftimecode]'>$myrow[ftimedesc]</option>";
}
echo "</select>";
?>
</div>
<label for="" class="col-sm-2 control-label">Logout Time (Saturday)</label>
<div class="col-sm-2">
<?php
echo "<select class='form-control' id='txtsatdlogo'>";
$mysql = "select * from mastime order by ftimecode";
$myres = mysqli_query($mycon, $mysql);
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[ftimecode]'>$myrow[ftimedesc]</option>";
}
echo "</select>";
?>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Freeze Date</label>
<div class="col-sm-2">
<input type="text" class="form-control text-center" id="txtattnfrze" maxlength="10" />
</div>
</div>
</div>
</div>
<div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
<div class="panel-heading">Salary Details</div>
<div class="panel-body" style="position: relative;">
<div class="form-group">
<label for="" class="col-sm-2 control-label">Enable Salary?</label>
<div class="col-sm-2">
<select class="form-control" id="txtsalrenbl">
<option value="T">YES</option>
<option value="F">NO</option>
</select>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Bank Name</label>
<div class="col-sm-4">
<?php
echo "<select class='form-control' id='txtdeptbank'>";
$mysql = "select * from masbank order by fbankname";
$myres = mysqli_query($mycon, $mysql);
if (mysqli_num_rows($myres) > 1) {
echo "<option value=''>--Select--</option>";
}
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[ftimecode]'>$myrow[ftimedesc]</option>";
}
echo "</select>";
?>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Coding Salary / Pkt.</label>
<div class="col-sm-2">
<input type="text" class="form-control text-right" id="txtcoderate" maxlength="6" onKeyDown="return decimals_only(event);" />
</div>
</div>
</div>
</div>
<div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
<div class="panel-heading">Expenses Details</div>
<div class="panel-body" style="position: relative;">
<div class="form-group">
<label for="" class="col-sm-2 control-label">Enable Expenses?</label>
<div class="col-sm-2">
<select class="form-control" id="txtexpnenbl">
<option value="T">YES</option>
<option value="F">NO</option>
</select>
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Freeze Date</label>
<div class="col-sm-2">
<input type="text" class="form-control text-center" id="txtexpnfrze" maxlength="10" />
</div>
</div>
</div>
</div>
<div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
<div class="panel-heading">Location Details</div>
<div class="panel-body" style="position: relative;">
<div class="form-group">
<label for="" class="col-sm-2 control-label">GPS Address</label>
<div class="col-sm-6">
<input type="text" class="form-control text-left" id="txtcgpsaddr" maxlength="100" />
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">GPS Coornidates</label>
<div class="col-sm-6">
<input type="text" class="form-control text-left" id="txtcgpsloca" maxlength="60" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|