add rssa-pintar to git
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<section class="content-header">
|
||||
<br />
|
||||
<ol class="breadcrumb">
|
||||
<li class="active"><a href="#"><i class="fa fa-home"></i> Home</a></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/jQuery/jQuery-2.1.4.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/chartjs/Chart.min.js"></script>
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
$tipeuserText="Admin";
|
||||
|
||||
|
||||
$iduser=$this->session->userdata('s_ID_User_suratpnm');
|
||||
$foto="";
|
||||
$namalengkap="";
|
||||
|
||||
$data = $this->db->query("select * from master_user
|
||||
inner join master_tipeuser on master_user.mu_tipeuser_id = master_tipeuser.mt_id
|
||||
where mu_id='$iduser'")->result();
|
||||
foreach($data as $dat){
|
||||
if($dat->mu_nama_user){
|
||||
$namalengkap=$dat->mu_nama_lengkap;
|
||||
$tipeuserText=$dat->mt_nama;
|
||||
}else{
|
||||
$namalengkap="-";
|
||||
$tipeuserText="-";
|
||||
}
|
||||
|
||||
$foto="admin.png";
|
||||
|
||||
}
|
||||
?>
|
||||
<header class="main-header">
|
||||
<a href="#" class="logo">
|
||||
<span class="logo-mini"><b>A</b>L3</span>
|
||||
<span class="logo-lg"><b>Admin </b>LTE3</span>
|
||||
</a>
|
||||
<nav class="navbar navbar-static-top" role="navigation">
|
||||
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
</a>
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<img src="<?php echo base_url(); ?>img/<?php echo $foto;?>" class="user-image" alt="User Image">
|
||||
<span class="hidden-xs"><?php echo $namalengkap;?></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="user-header">
|
||||
<img src="<?php echo base_url(); ?>img/<?php echo $foto;?>" class="img-circle" alt="User Image">
|
||||
<p>
|
||||
<?php echo $namalengkap;?> - <?php echo $tipeuserText;?>
|
||||
</p>
|
||||
|
||||
</li>
|
||||
<li class="user-footer">
|
||||
<div class="pull-right">
|
||||
<a href="<?php echo base_url();?>index.php/login/logout" class="btn btn-default btn-flat">Sign out</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
@@ -0,0 +1,85 @@
|
||||
<aside class="main-sidebar">
|
||||
<section class="sidebar">
|
||||
|
||||
<ul class="sidebar-menu">
|
||||
<li class="header">MENU</li>
|
||||
<!-- MENU -->
|
||||
<?php
|
||||
$linknow=$this->uri->segment(1, 0);
|
||||
$linkseg1=$this->uri->segment(1);
|
||||
$linkseg2=$this->uri->segment(2);
|
||||
$linkseg3=$linkseg1."/".$linkseg2;
|
||||
//echo $linkseg3;
|
||||
$TU = $this->session->userdata('s_FK_TipeUser_suratpnm');
|
||||
$UM = $this->db->query("select * from master_user_menu where mum_tipeuser_id='$TU' order by 'mum_menu_id' asc")->result();
|
||||
foreach($UM as $usermenu){
|
||||
$menudata1 = $this->db->query("select * from master_menu where mm_id=$usermenu->mum_menu_id and mm_level=1 and mm_aktif=1")->result();
|
||||
foreach($menudata1 as $menuD){
|
||||
if($menuD->mm_link!='#'){
|
||||
|
||||
//--------------------------start cek posisi tidak memiliki parent-----------------//
|
||||
$aktifBig="";
|
||||
if($linknow===$menuD->mm_link){
|
||||
$aktifBig="class='active'";
|
||||
}
|
||||
//--------------------------end cek posisi tidak memiliki parent-------------------//
|
||||
|
||||
?>
|
||||
<li <?php echo $aktifBig;?> >
|
||||
<a href="<?php echo base_url();?>index.php/<?php echo $menuD->mm_link;?>">
|
||||
<i class="<?php echo $menuD->mm_icon;?>"></i> <span><?php echo $menuD->mm_nama;?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}else{
|
||||
|
||||
//--------------------------start cek posisi jika memiliki parent-----------------//
|
||||
$aktifTreeView="";
|
||||
$linkcekParent=$this->db->query("SELECT * FROM master_menu WHERE mm_link='$linknow'")->result();
|
||||
foreach($linkcekParent as $cekthis){
|
||||
$linkcekParent2=$this->db->query("SELECT * FROM master_menu WHERE mm_id='$cekthis->mm_parent'")->result();
|
||||
foreach($linkcekParent2 as $cekthis2){
|
||||
if($cekthis2->mm_nama==$menuD->mm_nama){
|
||||
$aktifTreeView="active";
|
||||
}
|
||||
}
|
||||
}
|
||||
//--------------------------end cek posisi jika memiliki parent-------------------//
|
||||
|
||||
?>
|
||||
<li class="treeview <?php echo $aktifTreeView;?>">
|
||||
<a href="#">
|
||||
<i class="<?php echo $menuD->mm_icon;?>"></i> <span><?php echo $menuD->mm_nama;?></span> <i class="fa fa-angle-left pull-right"></i>
|
||||
</a>
|
||||
<ul class="treeview-menu">
|
||||
<?php
|
||||
$menudata2 = $this->db->query("SELECT * FROM master_user_menu INNER JOIN master_menu ON master_user_menu.mum_menu_id = master_menu.mm_id WHERE mm_parent=$menuD->mm_id AND mum_tipeuser_id=$TU and mm_aktif=1")->result();
|
||||
foreach($menudata2 as $menuParent){
|
||||
|
||||
//--------------------------start cek posisi pada parent-----------------//
|
||||
$aktifParent="";
|
||||
if($linknow===$menuParent->mm_link){
|
||||
if($linkseg2){}else{$aktifParent="class='active'";}
|
||||
}
|
||||
if($linkseg3===$menuParent->mm_link){
|
||||
$aktifParent="class='active'";
|
||||
}
|
||||
//--------------------------end cek posisi pada parent-------------------//
|
||||
|
||||
?>
|
||||
<li <?php echo $aktifParent;?>><a href="<?php echo base_url();?>index.php/<?php echo $menuParent->mm_link;?>"><i class="fa fa-caret-right"></i><?php echo $menuParent->mm_nama;?></a></li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!-- MENU -->
|
||||
</ul>
|
||||
</section>
|
||||
</aside>
|
||||
@@ -0,0 +1,189 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<link rel="icon" type="image/png" href="<?php echo base_url();?>img/logo-rssa.png" />
|
||||
<title>AdminLTE 3</title>
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/bootstrap/css/bootstrap.min.css"/>
|
||||
|
||||
<!--link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"/-->
|
||||
<!--link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"/-->
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/font-awesome/css/font-awesome.min.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/font-awesome/css/font-awesome.css"/>
|
||||
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/assets/ionicons.min.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/dist/css/AdminLTE.min.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/dist/css/skins/_all-skins.min.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/plugins/iCheck/flat/blue.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/plugins/jvectormap/jquery-jvectormap-1.2.2.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/plugins/datepicker/datepicker3.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/plugins/daterangepicker/daterangepicker-bs3.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/plugins/datatables/dataTables.bootstrap.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/plugins/select2/select2.min.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/dist/css/skins/_all-skins.min.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/plugins/iCheck/all.css"/>
|
||||
|
||||
</head>
|
||||
<body class="hold-transition sidebar-mini wysihtml5-supported skin-purple-light">
|
||||
<div class="wrapper">
|
||||
<div class="row-fluid">
|
||||
<?php $this->load->view("includes/header"); ?>
|
||||
</div>
|
||||
<div id="main-container">
|
||||
<?php $this->load->view("includes/sidebar"); ?>
|
||||
<div class="content-wrapper">
|
||||
<?php $this->load->view($main_content); ?>
|
||||
</div>
|
||||
<footer class="main-footer">
|
||||
<div class="pull-right hidden-xs">
|
||||
<b>Admin LTE DEF Ver.</b> 0.1
|
||||
</div>
|
||||
<strong><a href="http://rsusaifulanwar.jatimprov.go.id">RSUD Dr. Saiful Anwar Malang</a></strong> | Jl. Jaksa Agung Suprapto No. 2 Malang | Telp : 0341- 362101 | Fax : 0341-369384
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/jQuery/jQuery-2.1.4.min.js"></script>
|
||||
|
||||
<!--script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script-->
|
||||
<script src="<?php echo base_url();?>/assets/jquery-ui.min.js"></script>
|
||||
<script>$.widget.bridge('uibutton', $.ui.button);</script>
|
||||
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/sparkline/jquery.sparkline.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/knob/jquery.knob.js"></script>
|
||||
|
||||
<!--script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.2/moment.min.js"></script-->
|
||||
<script src="<?php echo base_url();?>/assets/moment.min.js"></script>
|
||||
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/daterangepicker/daterangepicker.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/datepicker/bootstrap-datepicker.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/slimScroll/jquery.slimscroll.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/fastclick/fastclick.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/dist/js/app.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/dist/js/demo.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/datatables/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/datatables/dataTables.bootstrap.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/select2/select2.full.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/input-mask/jquery.inputmask.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/input-mask/jquery.inputmask.extensions.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/slimScroll/jquery.slimscroll.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/fastclick/fastclick.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/dist/js/demo.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/iCheck/icheck.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/js/terbilang.js"></script>
|
||||
<script src="<?php echo base_url();?>/js/terbilang.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/js/my.js"></script>
|
||||
|
||||
<script>
|
||||
$(function () {
|
||||
$("#example1").DataTable();
|
||||
$("#example2").DataTable();
|
||||
$("#example3").DataTable();
|
||||
$("#example4").DataTable();
|
||||
$("#example5").DataTable();
|
||||
$("#example6").DataTable();
|
||||
// $('#example2').DataTable({
|
||||
// "paging" : true,
|
||||
// "lengthChange" : false,
|
||||
// "searching" : false,
|
||||
// "ordering" : true,
|
||||
// "info" : true,
|
||||
// "autoWidth" : false
|
||||
// });
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
// $(function () {
|
||||
// $(".select2").select2();
|
||||
// $("#datemask").inputmask("dd/mm/yyyy", {"placeholder": "dd/mm/yyyy"});
|
||||
// $("#datemask2").inputmask("mm/dd/yyyy", {"placeholder": "mm/dd/yyyy"});
|
||||
// $("[data-mask]").inputmask();
|
||||
//
|
||||
// $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
|
||||
// checkboxClass: 'icheckbox_minimal-blue',
|
||||
// radioClass: 'iradio_minimal-blue'
|
||||
// });
|
||||
//
|
||||
// $('input[type="checkbox"].minimal-red, input[type="radio"].minimal-red').iCheck({
|
||||
// checkboxClass: 'icheckbox_minimal-red',
|
||||
// radioClass: 'iradio_minimal-red'
|
||||
// });
|
||||
//
|
||||
// $('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({
|
||||
// checkboxClass: 'icheckbox_flat-green',
|
||||
// radioClass: 'iradio_flat-green'
|
||||
// });
|
||||
// });
|
||||
</script>
|
||||
<script>
|
||||
$(function () {
|
||||
//Initialize Select2 Elements
|
||||
$(".select2").select2();
|
||||
|
||||
//Datemask dd/mm/yyyy
|
||||
$("#datemask").inputmask("dd/mm/yyyy", {"placeholder": "dd/mm/yyyy"});
|
||||
//Datemask2 mm/dd/yyyy
|
||||
$("#datemask2").inputmask("mm/dd/yyyy", {"placeholder": "mm/dd/yyyy"});
|
||||
//Money Euro
|
||||
$("[data-mask]").inputmask();
|
||||
|
||||
//Date range picker
|
||||
$('#reservation').daterangepicker();
|
||||
//Date range picker with time picker
|
||||
$('#reservationtime').daterangepicker({timePicker: true, timePickerIncrement: 30, format: 'MM/DD/YYYY h:mm A'});
|
||||
//Date range as a button
|
||||
$('#daterange-btn').daterangepicker(
|
||||
{
|
||||
ranges: {
|
||||
'Today': [moment(), moment()],
|
||||
'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
|
||||
'Last 7 Days': [moment().subtract(6, 'days'), moment()],
|
||||
'Last 30 Days': [moment().subtract(29, 'days'), moment()],
|
||||
'This Month': [moment().startOf('month'), moment().endOf('month')],
|
||||
'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
|
||||
},
|
||||
startDate: moment().subtract(29, 'days'),
|
||||
endDate: moment()
|
||||
},
|
||||
function (start, end) {
|
||||
$('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'));
|
||||
}
|
||||
);
|
||||
|
||||
//iCheck for checkbox and radio inputs
|
||||
$('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
|
||||
checkboxClass: 'icheckbox_minimal-blue',
|
||||
radioClass: 'iradio_minimal-blue'
|
||||
});
|
||||
//Red color scheme for iCheck
|
||||
$('input[type="checkbox"].minimal-red, input[type="radio"].minimal-red').iCheck({
|
||||
checkboxClass: 'icheckbox_minimal-red',
|
||||
radioClass: 'iradio_minimal-red'
|
||||
});
|
||||
//Flat red color scheme for iCheck
|
||||
$('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({
|
||||
checkboxClass: 'icheckbox_flat-green',
|
||||
radioClass: 'iradio_flat-green'
|
||||
});
|
||||
|
||||
//Colorpicker
|
||||
//$(".my-colorpicker1").colorpicker();
|
||||
//color picker with addon
|
||||
//$(".my-colorpicker2").colorpicker();
|
||||
|
||||
//Timepicker
|
||||
//$(".timepicker").timepicker({
|
||||
// showInputs: false
|
||||
//});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
|
||||
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<title>RSSA | Log in</title>
|
||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/bootstrap/css/bootstrap.min.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/assets/font-awesome.min.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/assets/ionicons.min.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/dist/css/AdminLTE.min.css"/>
|
||||
<link rel="stylesheet" href="<?php echo base_url();?>/theme/bootstrap/plugins/iCheck/square/blue.css"/>
|
||||
</head>
|
||||
<body class="hold-transition login-page">
|
||||
<div class="login-box">
|
||||
<div class="login-logo">
|
||||
<a href="#"><b>Surat</b>RSSA</a>
|
||||
</div>
|
||||
<div class="login-box-body">
|
||||
<p class="login-box-msg">Masukan Nama User dan Password</p>
|
||||
<p><?php echo $error?></p>
|
||||
<form action="<?php echo base_url();?>index.php/login/process" name="process" method="post">
|
||||
<div class="form-group has-feedback">
|
||||
<input name="username" class="form-control" placeholder="Nama User"/>
|
||||
<span class="glyphicon glyphicon-user form-control-feedback"></span>
|
||||
</div>
|
||||
<div class="form-group has-feedback">
|
||||
<input name="password" type="password" class="form-control" placeholder="Password"/>
|
||||
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<input type="submit" value="Login" class="btn bg-purple btn-block btn-flat" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/jQuery/jQuery-2.1.4.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="<?php echo base_url();?>/theme/bootstrap/plugins/iCheck/icheck.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,26 @@
|
||||
<body class="hold-transition skin-blue sidebar-mini">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<small></small>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="<?php echo base_url()?>index.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
|
||||
<li class="active"><?php echo $title ?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="error-page">
|
||||
<h2 class="headline text-yellow"> 404</h2>
|
||||
<div class="error-content">
|
||||
<h3><i class="fa fa-warning text-yellow"></i> Oops! Halaman Tidak Di temukan.</h3>
|
||||
<p>
|
||||
Mohon Maaf Halaman sedang dalam perbaikan "<strong>maintenance</strong>" , coba nanti beberapa saat lakukan refresh halaman ( F5 ). Terima kasih. . . .
|
||||
</p>
|
||||
<form class="search-form">
|
||||
</form>
|
||||
</div><!-- /.error-content -->
|
||||
</div><!-- /.error-page -->
|
||||
</section><!-- /.content -->
|
||||
</body>
|
||||
@@ -0,0 +1,136 @@
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<small></small>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="<?php echo base_url()?>index.php/home"><i class="fa fa-dashboard"></i> Dashboard</a></li>
|
||||
<li>Setting</li>
|
||||
<li><a href="<?php echo base_url()?>index.php/hakakses">Hak Akses</a></li>
|
||||
<li class="active"><?php echo $title ?></li>
|
||||
</ol>
|
||||
</section>
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"><?php echo $title ?> | <?php echo $tu->row('mt_nama');?> </h3>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<!-- form start -->
|
||||
<?php if(validation_errors()){ ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<h4><i class="icon fa fa-ban"></i> Alert!</h4>
|
||||
<?php echo validation_errors() ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<form class="form-horizontal" id="form" action="<?php echo(base_url()); ?>index.php/ps_hakakses/prosesedithakakses" method="post">
|
||||
<?php //echo form_open_multipart('index.php/user/prosesedit');?>
|
||||
<div class="box-body form-horizontal">
|
||||
<div class="box-body">
|
||||
<div class="box">
|
||||
<div class="box-body no-padding">
|
||||
<input type="hidden" name="id" value="<?php echo $tu->row('mt_id');?>"/>
|
||||
<table class="table table-striped">
|
||||
<tr>
|
||||
<th width="5%">No</th>
|
||||
<th width="55%">Menu</th>
|
||||
<th width="10%">Akses</th>
|
||||
<th width="10%">View</th>
|
||||
<th width="10%">Tambah</th>
|
||||
<th width="10%">Edit</th>
|
||||
<th width="10%">Delete</th>
|
||||
</tr>
|
||||
<?php
|
||||
$no=0;
|
||||
//$id_input="";
|
||||
foreach ($mn as $menu) {
|
||||
$parentmenu="";
|
||||
//----cek parent menu----------------------------//
|
||||
$this->db->where('mm_id', $menu->mm_parent);
|
||||
$cekParent = $this->db->get('master_menu');
|
||||
foreach ($cekParent->result() as $par)
|
||||
{
|
||||
$parentmenu="<code>".$par->mm_nama." /</code> ";
|
||||
}
|
||||
//----cek parent menu----------------------------//
|
||||
|
||||
$no++;
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td><input type='hidden' name='id_menu' value='".$menu->mm_id."'>".$parentmenu.$menu->mm_nama."</td>
|
||||
");
|
||||
$cekakses="";
|
||||
$cekview="";
|
||||
$cektambah="";
|
||||
$cekedit="";
|
||||
$cekdelete="";
|
||||
$idusermenu="";
|
||||
$setdisabled="";
|
||||
foreach($um as $usermenu){
|
||||
if($usermenu->mum_menu_id==$menu->mm_id){
|
||||
$cekakses="checked";
|
||||
|
||||
$this->db->where('mum_id', $usermenu->mum_id);
|
||||
$query1 = $this->db->get('master_user_menu');
|
||||
foreach ($query1->result() as $row1)
|
||||
{
|
||||
if($row1->mum_lihat=="lihat"){
|
||||
$cekview="checked";
|
||||
}
|
||||
if($row1->mum_tambah=="tambah"){
|
||||
$cektambah="checked";
|
||||
}
|
||||
if($row1->mum_ubah=="ubah"){
|
||||
$cekedit="checked";
|
||||
}
|
||||
if($row1->mum_hapus=="hapus"){
|
||||
$cekdelete="checked";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($actionform=="prosesview"){
|
||||
$setdisabled="disabled=''";
|
||||
}
|
||||
if($menu->mm_action=='true'){
|
||||
echo ("
|
||||
<td><input type='checkbox'".$setdisabled." id='action".$no."' name='akses[]' class='flat-red'".$cekakses." value='".$tu->row('mt_id')."-".$menu->mm_id."'></td>
|
||||
<td><input type='checkbox'".$setdisabled." id='view".$no."' name='view[]' class='flat-red'".$cekview." value='".$menu->mm_id."' ></td>
|
||||
<td><input type='checkbox'".$setdisabled." id='tambah".$no."' name='tambah[]' class='flat-red'".$cektambah." value='".$menu->mm_id."' ></td>
|
||||
<td><input type='checkbox'".$setdisabled." id='edit".$no."' name='edit[]' class='flat-red'".$cekedit." value='".$menu->mm_id."'></td>
|
||||
<td><input type='checkbox'".$setdisabled." id='delete".$no."' name='delete[]' class='flat-red'".$cekdelete." value='".$menu->mm_id."'></td>
|
||||
</tr>
|
||||
");
|
||||
|
||||
}else{
|
||||
echo ("
|
||||
<td><input type='checkbox'".$setdisabled." id='action".$no."' name='akses[]' class='flat-red'".$cekakses." value='".$tu->row('mt_id')."-".$menu->mm_id."'></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div><!-- /.box-body -->
|
||||
</div>
|
||||
</div><!-- /.box-body -->
|
||||
<div class="box-footer">
|
||||
<a href="<?php echo base_url();?>index.php/ps_hakakses" class="btn btn-default">Cancel</a>
|
||||
<?php if ($actionform!="prosesview"){ ?>
|
||||
<button type="submit" class="btn btn-warning">Submit</button>
|
||||
<?php } ?>
|
||||
</div><!-- /.box-footer -->
|
||||
</form>
|
||||
<!-- form end -->
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
</div><!-- /.col -->
|
||||
</div><!-- /.row -->
|
||||
</section>
|
||||
@@ -0,0 +1,62 @@
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<small></small>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="<?php echo base_url()?>index.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
|
||||
<li>Setting</li>
|
||||
<li><a href="<?php echo base_url()?>index.php/hakakses">Hak Akses</a></li>
|
||||
<li class="active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</section>
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"><?php echo $title; ?></h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<?php if(validation_errors()){ ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<h4><i class="icon fa fa-ban"></i> Alert!</h4>
|
||||
<?php echo validation_errors() ?>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
$setdisabled="";
|
||||
$setidedit="";
|
||||
$setnameedit="";
|
||||
if ($actionform=="prosesview"){
|
||||
$setdisabled="disabled=''";
|
||||
}
|
||||
if ($actionform!="prosesadd"){
|
||||
$setidedit=$ha->row('mt_id');
|
||||
$setnameedit=$ha->row('mt_nama');
|
||||
}
|
||||
|
||||
?>
|
||||
<form class="form-horizontal" id="form" action="<?php echo(base_url()); ?>index.php/ps_hakakses/<?php echo $actionform; ?>" method="post">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="namatipeuser" class="col-sm-2 control-label">Nama Tipe User</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="hidden" name="id" value="<?php echo $setidedit;?>"/>
|
||||
<input id="namatipeuser" class="form-control" <?php echo $setdisabled; ?> name="namatipeuser" type="text" placeholder="Masukan Nama Tipe User" autocomplete="off" value="<?php echo $setnameedit;?>"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<a href="<?php echo base_url();?>index.php/ps_hakakses" class="btn btn-default">Cancel</a>
|
||||
<?php if ($actionform!="prosesview"){ ?>
|
||||
<button type="submit" class="btn btn-warning">Submit</button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,95 @@
|
||||
<body class="hold-transition skin-blue sidebar-mini">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<?php
|
||||
//---------------------start check access action TAMBAH-------------------//
|
||||
if(!empty($this->vartambah)){ echo "<small> <a href='".base_url()."index.php/ps_hakakses/add' class='btn btn-block bg-purple btn-sm'>Tambah Baru</a> </small>";
|
||||
}else{ echo "<small></small>";}
|
||||
//---------------------end check access action TAMBAH-------------------//
|
||||
?>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="<?php echo base_url()?>index.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
|
||||
<li>Setting</li>
|
||||
<li class="active"><?php echo $title ?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"><?php echo $title ?></h3>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<h4> <i class="icon fa fa-check"></i> Alert!</h4>
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%">No</th>
|
||||
<th>Nama Tipe User</th>
|
||||
<th width="25%">Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($ha as $tipeuser) {
|
||||
$no++;
|
||||
//---------------------start check access action-------------------//
|
||||
$editbutton="";
|
||||
$edithakakses="";
|
||||
$deletebutton="";
|
||||
$viewbutton="";
|
||||
if(!empty($this->varedit)){
|
||||
$editbutton="<a href='".base_url()."index.php/ps_hakakses/edit/".$tipeuser->mt_id."' class='btn btn-warning btn-xs'><i class='fa fa-edit'></i> Edit</a> ";
|
||||
}
|
||||
if(!empty($this->varedit)){
|
||||
$edithakakses="<a href='".base_url()."index.php/ps_hakakses/edithakakses/".$tipeuser->mt_id."' class='btn btn-success btn-xs'><i class='fa fa-gear'></i> Hak Akses</a> ";
|
||||
}
|
||||
if(!empty($this->vardelete)){
|
||||
$deletebutton="<a onclick='del(".$tipeuser->mt_id.")' class='btn btn-danger btn-xs'><i class='fa fa-trash'></i> Delete</a><input type='hidden' id='isi".$tipeuser->mt_id."' value='".$tipeuser->mt_nama."'> ";
|
||||
}
|
||||
if(!empty($this->varview)){
|
||||
$viewbutton="<a href='".base_url()."index.php/ps_hakakses/view/".$tipeuser->mt_id."' class='btn btn-primary btn-xs'><i class='fa fa-eye'></i> View</a> ";
|
||||
}
|
||||
//---------------------end check access action-------------------//
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$tipeuser->mt_nama."</td>
|
||||
<td>".$viewbutton.$editbutton.$deletebutton.$edithakakses."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
</div><!-- /.col -->
|
||||
</div><!-- /.row -->
|
||||
</section>
|
||||
<div class="control-sidebar-bg"></div>
|
||||
</body>
|
||||
<script type="text/javascript">
|
||||
var url="<?php echo base_url();?>";
|
||||
function del(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin menghapus tipe user "+isi+"?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_hakakses/delete/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,156 @@
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<small></small>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="<?php echo base_url()?>index.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
|
||||
<li>Setting</li>
|
||||
<li><a href="<?php echo base_url()?>index.php/ps_userlogin">User Login</a></li>
|
||||
<li class="active"><?php echo $title;?></li>
|
||||
</ol>
|
||||
</section>
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"><?php echo $title; ?></h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<?php if(validation_errors()){ ?>
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<h4><i class="icon fa fa-ban"></i> Alert!</h4>
|
||||
<?php echo validation_errors() ?>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
$setdisabled ="";
|
||||
$setidedit ="";
|
||||
$setnama_lengkap ="";
|
||||
$setnama_user ="";
|
||||
$setpassword ="";
|
||||
$settipeuser ="";
|
||||
|
||||
|
||||
if ($actionform=="prosesview"){
|
||||
$setdisabled="disabled=''";
|
||||
}
|
||||
if ($actionform!="prosesadd"){
|
||||
$setidedit =$ul->row('mu_id');
|
||||
$setnama_lengkap =$ul->row('mu_nama_lengkap');
|
||||
$setnama_user =$ul->row('mu_nama_user');
|
||||
$setpassword =$ul->row('mu_password');
|
||||
$settipeuser =$ul->row('mu_tipeuser_id');
|
||||
}
|
||||
|
||||
?>
|
||||
<form class="form-horizontal" id="form" action="<?php echo(base_url()); ?>index.php/ps_userlogin/<?php echo $actionform; ?>" method="post" autocomplete="off">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="namalengkapuser" class="col-sm-2 control-label">Nama Lengkap</label>
|
||||
<div class="col-sm-6">
|
||||
<input type="hidden" name="id" value="<?php echo $setidedit;?>"/>
|
||||
<input id="namalengkapuser" class="form-control" <?php echo $setdisabled; ?> name="namalengkapuser" type="text" placeholder="Masukan Nama Lengkap" autocomplete="off" value="<?php echo $setnama_lengkap;?>"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="namauser" class="col-sm-2 control-label">Nama User</label>
|
||||
<div class="col-sm-6">
|
||||
<input id="namauser" class="form-control" <?php echo $setdisabled; ?> name="namauser" type="text" placeholder="Masukan Nama User" autocomplete="off" value="<?php echo $setnama_user;?>"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if($actionform!="prosesadd"){
|
||||
?>
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="passworduser" class="col-sm-2 control-label">Password</label>
|
||||
<div class="col-sm-6">
|
||||
<div class="input-group">
|
||||
<input disabled="" id="passworduser" class="form-control" name="passworduser" type="password" placeholder="Masukan Password" autocomplete="off" value=""/>
|
||||
<span class="input-group-addon">
|
||||
<input <?php echo $setdisabled; ?> id="setaktif" type="checkbox" onchange="aktif()" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<code>Ubah Password</code>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="passworduser" class="col-sm-2 control-label">Retype Password</label>
|
||||
<div class="col-sm-6">
|
||||
<input disabled="" id="repassworduser" class="form-control" <?php if($actionform!="prosesadd"){}?> name="repassworduser" type="password" placeholder="Masukan Retype Password" autocomplete="off" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function aktif(){
|
||||
if ($('#setaktif').is(":checked"))
|
||||
{
|
||||
$("#passworduser").prop('disabled', false);
|
||||
$("#repassworduser").prop('disabled', false);
|
||||
}else{
|
||||
document.getElementById('passworduser').value="";
|
||||
document.getElementById('repassworduser').value="";
|
||||
$("#passworduser").prop('disabled', true);
|
||||
$("#repassworduser").prop('disabled', true);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php }else{
|
||||
?>
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="passworduser" class="col-sm-2 control-label">Password</label>
|
||||
<div class="col-sm-6">
|
||||
<input id="passworduser" class="form-control" name="passworduser" type="password" placeholder="Masukan Password" autocomplete="off" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="passworduser" class="col-sm-2 control-label">Retype Password</label>
|
||||
<div class="col-sm-6">
|
||||
<input id="repassworduser" class="form-control" name="repassworduser" type="password" placeholder="Masukan Retype Password" autocomplete="off" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}?>
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="tipeuser" class="col-sm-2 control-label">Tipe User</label>
|
||||
<div class="col-sm-6">
|
||||
<select <?php echo $setdisabled; ?> id="tipeuser" name="tipeuser" class="form-control select" >
|
||||
<option value="">Pilih Tipe User</option>
|
||||
<?php
|
||||
foreach ($tu as $dat) {
|
||||
$select="";
|
||||
if($settipeuser==$dat->mt_id){$select="selected='selected'";}
|
||||
echo "<option value='".$dat->mt_id."'".$select.">".$dat->mt_nama."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<a href="<?php echo base_url();?>index.php/ps_userlogin" class="btn btn-default">Cancel</a>
|
||||
<?php if ($actionform!="prosesview"){ ?>
|
||||
<button type="submit" class="btn btn-warning">Submit</button>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,98 @@
|
||||
<body class="hold-transition skin-blue sidebar-mini">
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<?php
|
||||
//---------------------start check access action TAMBAH-------------------//
|
||||
if(!empty($this->vartambah)){ echo "<small> <a href='".base_url()."index.php/ps_userlogin/add' class='btn btn-block bg-purple btn-sm'>Tambah Baru</a> </small>";
|
||||
}else{ echo "<small></small>";}
|
||||
//---------------------end check access action TAMBAH-------------------//
|
||||
?>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="<?php echo base_url()?>index.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
|
||||
<li>Setting</li>
|
||||
<li class="active"><?php echo $title ?></li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title"><?php echo $title ?></h3>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
<?php if($this->session->flashdata('message')){?>
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<h4> <i class="icon fa fa-check"></i> Alert!</h4>
|
||||
<?php echo $this->session->flashdata('message');?>
|
||||
</div>
|
||||
<?php }?>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%">No</th>
|
||||
<th>Nama Lengkap</th>
|
||||
<th>Nama User</th>
|
||||
<th>Tipe User</th>
|
||||
<th width="20%">Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$no=0;
|
||||
foreach ($ul as $userlogin) {
|
||||
if($userlogin->mu_tipeuser_id!="1"){
|
||||
$no++;
|
||||
//---------------------start check access action-------------------//
|
||||
$editbutton="";
|
||||
$edithakakses="";
|
||||
$deletebutton="";
|
||||
$viewbutton="";
|
||||
if(!empty($this->varedit)){
|
||||
$editbutton="<a href='".base_url()."index.php/ps_userlogin/edit/".$userlogin->mu_id."' class='btn btn-warning btn-xs'><i class='fa fa-edit'></i> Edit</a> ";
|
||||
}
|
||||
if(!empty($this->vardelete)){
|
||||
$deletebutton="<a onclick='del(".$userlogin->mu_id.")' class='btn btn-danger btn-xs'><i class='fa fa-trash'></i> Delete</a><input type='hidden' id='isi".$userlogin->mu_id."' value='".$userlogin->mu_nama_user."'> ";
|
||||
}
|
||||
if(!empty($this->varview)){
|
||||
$viewbutton="<a href='".base_url()."index.php/ps_userlogin/view/".$userlogin->mu_id."' class='btn btn-primary btn-xs'><i class='fa fa-eye'></i> View</a> ";
|
||||
}
|
||||
//---------------------end check access action-------------------//
|
||||
echo("
|
||||
<tr>
|
||||
<td>".$no."</td>
|
||||
<td>".$userlogin->mu_nama_lengkap."</td>
|
||||
<td>".$userlogin->mu_nama_user."</td>
|
||||
<td>".$userlogin->mt_nama."</td>
|
||||
<td>".$viewbutton.$editbutton.$deletebutton.$edithakakses."</td>
|
||||
</tr>
|
||||
");
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
</div><!-- /.col -->
|
||||
</div><!-- /.row -->
|
||||
</section>
|
||||
<div class="control-sidebar-bg"></div>
|
||||
</body>
|
||||
<script type="text/javascript">
|
||||
var url="<?php echo base_url();?>";
|
||||
function del(id){
|
||||
var isi=document.getElementById('isi'+id).value;
|
||||
var r=confirm("Apakah anda ingin menghapus user "+isi+"?")
|
||||
if (r==true)
|
||||
window.location = url+"index.php/ps_userlogin/delete/"+id;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,88 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Welcome to CodeIgniter</title>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
::selection{ background-color: #E13300; color: white; }
|
||||
::moz-selection{ background-color: #E13300; color: white; }
|
||||
::webkit-selection{ background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#body{
|
||||
margin: 0 15px 0 15px;
|
||||
}
|
||||
|
||||
p.footer{
|
||||
text-align: right;
|
||||
font-size: 11px;
|
||||
border-top: 1px solid #D0D0D0;
|
||||
line-height: 32px;
|
||||
padding: 0 10px 0 10px;
|
||||
margin: 20px 0 0 0;
|
||||
}
|
||||
|
||||
#container{
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
-webkit-box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="container">
|
||||
<h1>Welcome to CodeIgniter!</h1>
|
||||
|
||||
<div id="body">
|
||||
<p>The page you are looking at is being generated dynamically by CodeIgniter.</p>
|
||||
|
||||
<p>If you would like to edit this page you'll find it located at:</p>
|
||||
<code>application/views/welcome_message.php</code>
|
||||
|
||||
<p>The corresponding controller for this page is found at:</p>
|
||||
<code>application/controllers/welcome.php</code>
|
||||
|
||||
<p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p>
|
||||
</div>
|
||||
|
||||
<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds</p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user