everseiko/application/views/vAdmin.php

163 lines
6.8 KiB
PHP
Raw Permalink Normal View History

2020-01-02 23:02:57 +07:00
<html>
<head>
<title>Admin Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="<?php echo base_url(); ?>asset/bootstrap/css/bootstrap.css" rel="stylesheet">
<!--table sorter-->
<link href="<?php echo base_url(); ?>asset/tablesorter/demo_table.css" rel="stylesheet">
<style type="text/css">
body {padding-top: 40px;padding-bottom: 40px;}
.well-white {
min-height: 20px;
margin-bottom: 0px;
background-color: #fff;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}
ul#sidebar{border: outset 1px;margin-top:15px;border-radius:5px;padding:10px;list-style:none;}
#sidebar li a{display:block;color:#777;outline:none;font-weight:bold;text-decoration:none;line-height:30px;padding:0px 20px;}
#sidebar li a:hover,#sidebar li.selected a{background:#C0C0C0;color:#fff;}
#sidebar li a:hover{background:#CDFFFF;color:#000;}
#steps{height:auto;overflow:hidden;border-left:outset 1px;padding:15px;}
.formside{display:block;}
.staffside, statsside{display:none;}
.stafflist{border:inset 1px rgba(0, 0, 0, 0.05);border-radius:5px;padding:30px;background-color:#F0F0F0 ;}
.modal-body input{padding: 11px 0px 11px 11px;height : 36px;}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
/* display: none; <- Crashes Chrome on hover */
-webkit-appearance: none;
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}
</style>
<link href="<?php echo base_url(); ?>asset/css/style.css" rel="stylesheet">
<script type="text/javascript" language="javascript" src="<?php echo base_url(); ?>asset/tablesorter/jquery.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo base_url(); ?>asset/tablesorter/jquery.dataTables.min.js"></script>
<script type="text/javascript" charset="utf-8">
var loading = "<div id='loadingcontent'><img src='<?php echo base_url(); ?>asset/img/loading7.gif' alt='loading' style='float:right;margin:100px 500px;'/></div>";
var imgloading = "<img src='<?php echo base_url(); ?>asset/img/ajax_loading.gif' alt='loading' id='imgloading' width='20px;' style='float:right;margin-top:12px;display:block;' />";
$(document).ready(function() {
setTimeout(function(){
$("div.alert").fadeOut("slow", function () {
$("div.alert").remove();
});
}, 3000);
$('#content').html(loading);
$("#content").load("user/loadform");
});
$("#sidebar li a").live('click', function(event) {
$('#imgloading').remove();
$(imgloading).appendTo($(this));
$('#content').html(loading);
$(".selected", event.delegateTarget).removeClass("selected");
$(this).parent().addClass("selected");
event.preventDefault();
var href = $(this).attr('href');
var base_url = 'http://localhost/everseiko/'
$.ajax({
url: base_url+href,
success: function()
{
$("#content").load(href);
$('#content').fadeIn(3000);
$('#imgloading').remove();
},
error: function(XMLHttpRequest, textStatus, errorThrown)
{
//alert("Status: " + textStatus);
alert("Error: " + errorThrown);
}
});
});
</script>
<link href="<?php echo base_url(); ?>asset/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
</head>
<body>
<!--Navigation bar-->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="#"><i class="icon-wrench icon-white"></i> Everseiko</a>
<div class="nav-collapse collapse">
<ul class="nav pull-right">
<li id="fat-menu" class="dropdown">
<a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown" style="background-color:#fff;">
<i class="icon-user"></i>
<?php echo $this->auth->CI->session->userdata('nama'); ?><b class="caret"></b></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
<li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>">
<i class="icon-tags"></i>
<?php echo $this->auth->CI->session->userdata('role'); ?></a></li>
<li role="presentation" class="divider"></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>user/logout"><i class="icon-off"></i> Logout</a></li>
</ul>
</li>
</ul>
<ul class="nav">
<!--
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
-->
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<!--Container fluid-->
<div class="row-fluid">
<!--sidebar-->
<div class="span3">
<ul id="sidebar">
<li id="form" class="selected" ><a href="user/loadform" ><i class="icon-list-alt"></i> Form </a></li>
<li id="staff"><a href="user/loadstaff" ><i class="icon-user"></i> Sales </a></li>
<li id="sellingout"><a href="user/loadsellingout" ><i class="icon-share-alt"></i> Selling Out </a></li>
<li id="volume"><a href="user/loadvolume"><i class=""></i> Volume </a></li>
</ul>
</div>
<!--Content-->
<div class="span9" id="steps">
<div class="container-fluid">
<?php
if ($this->session->userdata('status')=='1' )
{
$tipe = $this->session->userdata('tipe');
echo "
<div id='note' class='alert ".$tipe."'>
<button type='button' class='close' data-dismiss='alert'>&times;</button>
".$this->session->userdata('message')."
</div>";
}
?>
<div id="content" style="diplay:none;">
</div>
</div>
</div><!--/span10-->
</div>
</div>
<!--javascript-->
<script src="<?php echo base_url(); ?>asset/bootstrap/js/bootstrap-dropdown.js"></script>
<script src="<?php echo base_url(); ?>asset/bootstrap/js/bootstrap-tab.js"></script>
<script src="<?php echo base_url(); ?>asset/bootstrap/js/bootstrap-collapse.js"></script>
<script src="<?php echo base_url(); ?>asset/bootstrap/js/bootstrap-modal.js"></script>
<script src="<?php echo base_url(); ?>asset/bootstrap/js/bootstrap-alert.js"></script>
</body>
</html>