| 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/hkosl.com/nick/codeigniter/application/views/webadmin/ |
Upload File : |
<?php
$GLOBALS["datatable"] = 1;
$page_setting = array(
'controller' => current_controller(),
'scope' => __('System User'),
'permission' => array(
'view_sys_user'
)
);
validate_user_access($page_setting['permission'], 0);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include_once("head.php"); ?>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<?php include_once("header.php"); ?>
<?php include_once("menu.php"); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper" style="min-height: 916px;">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1><?= ($page_setting['scope']) ?>
<small></small>
</h1>
<ol class="breadcrumb">
<li><a href="<?= admin_url(''); ?>"><?= __('Home') ?></a></li>
<li class="active"><?= ($page_setting['scope']) ?></li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-xs-12">
<div class="box">
<!--<div class="box-header">
<h3 class="box-title">Hover Data Table</h3>
</div>-->
<!-- /.box-header -->
<div class="box-body">
<div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
<div class="row">
<div class="col-sm-12">
<?php if (validate_user_access(['create_sys_user'])) { ?>
<a href="<?= admin_url('bk_sys_user/create') ?>">
<button type="button" class="btn btn-primary pull-right" style="margin-bottom: 10px;">
<?= __('Create') ?>
</button>
</a>
<?php } ?>
<div class="clearfix"></div>
<table class="datatable width100p">
<thead>
<tr>
<th><?= __('Login ID') ?></th>
<th><?= __('Login Role') ?></th>
<th><?= __('Login Name') ?></th>
<th class="tr width1px"><?= __('Action') ?></th>
</tr>
</thead>
<tbody>
<?php if (!empty($sys_user_index)) {
foreach ($sys_user_index as $row) { ?>
<tr>
<td>
<a href="<?= admin_url($page_setting['controller'].'/modify/' . $row["id"]) ?>"><?= $row["login_id"] ?></a>
</td>
<td>
<a href="<?= admin_url($page_setting['controller'].'/modify/' . $row["id"]) ?>"><?= get_login_role_name($row["login_role"]) ?></a>
</td>
<td>
<a href="<?= admin_url($page_setting['controller'].'/modify/' . $row["id"]) ?>"><?= $row["login_name"] ?></a>
</td>
<td class="tr nowrap">
<?php if ($row["status"] == 1) { ?>
<a href="<?= admin_url($page_setting['controller'].'/status/' . $row["id"]. "/0") ?>">
<button type="button" class="btn btn-success"><?= __('Active') ?>
</button>
</a>
<?php } else { ?>
<a href="<?= admin_url($page_setting['controller'].'/status/' . $row["id"]. "/1") ?>">
<button type="button" class="btn btn-warning"><?= __('Inactive') ?>
</button>
</a>
<?php } ?>
<a href="<?= admin_url($page_setting['controller'].'/modify/' . $row["id"]) ?>">
<button type="button" class="btn btn-warning"><?= __('Modify') ?>
</button>
</a>
<?php if (validate_user_access(['delete_sys_user'])) { ?>
<button type="button" class="btn btn-danger" onclick="confirm_delete('<?= admin_url($page_setting['controller'].'/delete/' . $row["id"]) ?>');">
<?= __('Delete') ?>
</button>
<?php } ?>
</td>
</tr>
<?php }
} ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- /.box-body -->
</div>
<!-- /.box -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php include_once("footer.php"); ?>
</div>
<!-- ./wrapper -->
<?php include_once("script.php"); ?>
<script type="text/javascript">
$(function () {
});
</script>
</body>
</html>