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.147.27.152
Current Path : /var/www/html/oums/ |
| Current File : /var/www/html/oums/user_setup.php |
<?php include("src/sys_session.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/user_setup.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:25%;">
<select class='form-input' id='seldeptcode' onChange='load_grid_data(20,1);'>
<?php
if ($type_id == 'ADMIN') {
$mysql = "select * from masdept where fdeleted<>'T' order by fdeptname";
} else {
$mysql = "select * from masdept inner join masdept_user on masdept.fdeptcode = masdept_user.fdeptcode and fusercode='$user_id' order by fdeptname";
}
$myres = mysqli_query($mycon, $mysql);
if (mysqli_num_rows($myres) > 1) {
echo "<option value='%%'>ALL [DEPARTEMENTS]</option>";
}
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[fdeptcode]'>$myrow[fdeptname]</option>";
}
?>
</select>
</td>
<td style="width:25%;">
<select class="form-input" id="selemplstat" 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:25%;">
<select class='form-input' id='selusertype' onChange='load_grid_data(20,1);'>
<?php
$mysql = "select fusertype,ftypedesc from sys_user_type order by fuserordr";
$myres = mysqli_query($mycon, $mysql);
if (mysqli_num_rows($myres) > 1) {
echo "<option value='%%'>ALL [TYPES]</option>";
}
while ($myrow = mysqli_fetch_assoc($myres)) {
echo "<option value='$myrow[fusertype]'>$myrow[ftypedesc]</option>";
}
?>
</select>
</td>
<td style="width:25%;">
<input type="text" class="form-input" id="txtemplfind" onInput="load_grid_data(20,1);" style="width:100%;" placeholder="Search name">
</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">Employee Details</div>
<div class="panel-body" style="position: relative;">
<div style="position: absolute; top:10px; right: 5px;">
<img id="imgemplphot" class="image_passport" src="img-empl/blank.png"></br>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">User Name</label>
<div class="col-sm-1">
<input type="text" class="form-control text-center text-uppercase disabled" id="txtemplcode" />
</div>
<div class="col-sm-6">
<input type="text" class="form-control text-uppercase disabled" id="txtemplname" />
</div>
</div>
<div class=" form-group">
<label for="" class="col-sm-2 control-label">Client</label>
<div class="col-sm-1">
<input type="text" class="form-control text-center text-uppercase disabled" id="txtdeptcode" />
</div>
<div class="col-sm-6">
<input type="text" class="form-control text-uppercase disabled" id="txtdeptname" />
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Designation</label>
<div class="col-sm-3">
<input type="text" class="form-control text-left text-uppercase disabled" id="txtempldesn" />
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Empl. Type</label>
<div class="col-sm-3">
<input type="text" class="form-control text-uppercase disabled" id="txtempltype" />
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">Mobile No.</label>
<div class="col-sm-3">
<input type="text" class="form-control text-uppercase disabled" id="txtemplmobl" />
</div>
</div>
</div>
</div>
<div class="panel panel-primary" style="width:1024px;margin-left:auto;margin-right:auto;">
<div class="panel-heading">User Details</div>
<div class="panel-body">
<div class="form-group">
<label for="" class="col-sm-2 control-label">User ID</label>
<div class="col-sm-4">
<input type="text" class="form-control text-uppercase" id="txtusercode" maxlength="20" />
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">User Type</label>
<div class="col-sm-4">
<?php
echo "<select class='form-input' id='txtusertype'>";
if ($type_id == 'ADMIN') {
$mysql = "select * from sys_user_type order by fuserordr";
} elseif ($type_id == 'CHIEF') {
$mysql = "select * from sys_user_type where fuserordr>0 order by fuserordr";
} elseif ($type_id == 'SUPER') {
$mysql = "select * from sys_user_type where fuserordr>1 order by fuserordr";
} else {
$mysql = "select * from sys_user_type where fuserordr>2 order by fuserordr";
}
$myres = mysqli_query($mycon, $mysql);
if (mysqli_num_rows($myres) > 1) {
echo "<option value=0>--Select--</option>";
}
while ($row = mysqli_fetch_assoc($myres)) {
echo "<option value='$row[fusertype]'>$row[ftypedesc]</option>";
}
echo "</select>";
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|