project done before
This commit is contained in:
8
application/views/errors/cli/error_404.php
Normal file
8
application/views/errors/cli/error_404.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
8
application/views/errors/cli/error_db.php
Normal file
8
application/views/errors/cli/error_db.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nDatabase error: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
21
application/views/errors/cli/error_exception.php
Normal file
21
application/views/errors/cli/error_exception.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
An uncaught Exception was encountered
|
||||
|
||||
Type: <?php echo get_class($exception), "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $exception->getFile(), "\n"; ?>
|
||||
Line Number: <?php echo $exception->getLine(); ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
8
application/views/errors/cli/error_general.php
Normal file
8
application/views/errors/cli/error_general.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
||||
21
application/views/errors/cli/error_php.php
Normal file
21
application/views/errors/cli/error_php.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
A PHP Error was encountered
|
||||
|
||||
Severity: <?php echo $severity, "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $filepath, "\n"; ?>
|
||||
Line Number: <?php echo $line; ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
11
application/views/errors/cli/index.html
Normal file
11
application/views/errors/cli/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
64
application/views/errors/html/error_404.php
Normal file
64
application/views/errors/html/error_404.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>404 Page Not Found</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-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;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
64
application/views/errors/html/error_db.php
Normal file
64
application/views/errors/html/error_db.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Database Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-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;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
32
application/views/errors/html/error_exception.php
Normal file
32
application/views/errors/html/error_exception.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>An uncaught Exception was encountered</h4>
|
||||
|
||||
<p>Type: <?php echo get_class($exception); ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $exception->getFile(); ?></p>
|
||||
<p>Line Number: <?php echo $exception->getLine(); ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file']; ?><br />
|
||||
Line: <?php echo $error['line']; ?><br />
|
||||
Function: <?php echo $error['function']; ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
64
application/views/errors/html/error_general.php
Normal file
64
application/views/errors/html/error_general.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-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;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
33
application/views/errors/html/error_php.php
Normal file
33
application/views/errors/html/error_php.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>A PHP Error was encountered</h4>
|
||||
|
||||
<p>Severity: <?php echo $severity; ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $filepath; ?></p>
|
||||
<p>Line Number: <?php echo $line; ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file'] ?><br />
|
||||
Line: <?php echo $error['line'] ?><br />
|
||||
Function: <?php echo $error['function'] ?>
|
||||
</p>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
11
application/views/errors/html/index.html
Normal file
11
application/views/errors/html/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/views/errors/index.html
Normal file
11
application/views/errors/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
11
application/views/index.html
Normal file
11
application/views/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
58
application/views/login/atas.php
Normal file
58
application/views/login/atas.php
Normal file
@ -0,0 +1,58 @@
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||
<div class="card card-stats">
|
||||
<div class="card-body ">
|
||||
<div class="row">
|
||||
<div class="col-5 col-md-4">
|
||||
<div class="icon-big text-center icon-warning">
|
||||
<i class="fa fa-cart-plus text-warning"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-7 col-md-8">
|
||||
<div class="numbers">
|
||||
<p class="card-category">Jumlah Barang</p>
|
||||
<p class="card-title"><?=$count?>
|
||||
<p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer ">
|
||||
<hr>
|
||||
<!-- div class="stats">
|
||||
<i class="fa fa-refresh"></i> Update Now
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||
<div class="card card-stats">
|
||||
<div class="card-body ">
|
||||
<div class="row">
|
||||
<div class="col-5 col-md-4">
|
||||
<div class="icon-big text-center icon-warning">
|
||||
<i class="fa fa-user-circle text-success"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-7 col-md-8">
|
||||
<div class="numbers">
|
||||
<p class="card-category">Jumlah Admin</p>
|
||||
<p class="card-title">1
|
||||
<p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer ">
|
||||
<hr>
|
||||
<!-- <div class="stats">
|
||||
<i class="fa fa-calendar-o"></i> Last day
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
27
application/views/login/footer.php
Normal file
27
application/views/login/footer.php
Normal file
@ -0,0 +1,27 @@
|
||||
<footer class="footer footer-black footer-white ">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<nav class="footer-nav">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="https://www.creative-tim.com" target="_blank">Creative Tim</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="http://blog.creative-tim.com/" target="_blank">Blog</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://www.creative-tim.com/license" target="_blank">Licenses</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="credits ml-auto">
|
||||
<span class="copyright">
|
||||
©
|
||||
<script>
|
||||
document.write(new Date().getFullYear())
|
||||
</script>, made with <i class="fa fa-heart heart"></i> by Creative Tim
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
20
application/views/login/head.php
Normal file
20
application/views/login/head.php
Normal file
@ -0,0 +1,20 @@
|
||||
<meta charset="utf-8" />
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="<?=base_url()?>assets/img/apple-icon.png">
|
||||
<link rel="icon" type="image/png" href="<?=base_url()?>assets/img/favicon.png">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<title>
|
||||
Barcode Scan | Halaman Utama
|
||||
</title>
|
||||
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
|
||||
<!-- Fonts and icons -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet" />
|
||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
|
||||
<!-- CSS Files -->
|
||||
<link href="<?=base_url()?>assets/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="<?=base_url()?>assets/css/paper-dashboard.css?v=2.0.0" rel="stylesheet" />
|
||||
|
||||
<style type="text/css">
|
||||
.swal-modal .swal-text{
|
||||
text-align: center
|
||||
}
|
||||
</style>
|
||||
486
application/views/login/index.php
Normal file
486
application/views/login/index.php
Normal file
@ -0,0 +1,486 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('login/head'); ?>
|
||||
<link href="<?=base_url()?>assets/css/barcode.css" rel="stylesheet" />
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="<?=base_url()?>assets/js/datatables/jquery.dataTables.min.css">
|
||||
</head>
|
||||
|
||||
<body class="">
|
||||
<div class="wrapper ">
|
||||
|
||||
<?php $this->load->view('login/sidebar'); ?>
|
||||
|
||||
<div class="main-panel">
|
||||
|
||||
<?php $this->load->view('login/navbar'); ?>
|
||||
|
||||
<div class="content">
|
||||
|
||||
<?php $this->load->view('login/atas'); ?>
|
||||
|
||||
<div class="modal fade" id="lihat_informasi" tabindex="-1" role="dialog" aria-labelledby="myModalLabel-2">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
|
||||
<div class="modal-body">
|
||||
<h5 class="card-title" id="judul_modal">Detail Barang</h5>
|
||||
<div class="form-group">
|
||||
<label>ID</label>
|
||||
<input type="" id="id" class="form-control" disabled="">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Nama Barang</label>
|
||||
<textarea name="nama" id="nama_edit" class="form-control" style="resize: none" disabled="" placeholder="Nama Barang"></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>Harga Barang</label>
|
||||
<input type="" id="harga_edit" name="harga" class="form-control" disabled="" placeholder="Harga Barang">
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button id="button_edit" class="btn btn-primary btn-sm waves-effect waves-light" onclick="edit()">Edit Detail</button>
|
||||
<button type="button" class="btn btn-default btn-sm waves-effect waves-light" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<div class="card ">
|
||||
<div class="card-header ">
|
||||
<h5 class="card-title">Penambahan Barang</h5>
|
||||
<!-- <p class="card-category">Last Campaign Performance</p> -->
|
||||
</div>
|
||||
<div class="card-body ">
|
||||
<div id="sini_js" style="display: none"></div>
|
||||
<form id="sini_form">
|
||||
|
||||
<input type="hidden" name="id_pertama" id="id_pertama">
|
||||
<input type="hidden" name="id_kedua" id="id_kedua">
|
||||
|
||||
<div class="row" id="text_reset" style="display: none">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<center><h6>Klik <i>Reset</i> Untuk Scan Kembali Barcode</h6></center>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<center><div id="interactive" class="viewport"></div></center>
|
||||
<div class="controls">
|
||||
<fieldset class="reader-config-group">
|
||||
<center><span>Hidupkan Flashlight</span>
|
||||
<input type="checkbox" name="settings_torch" /></center>
|
||||
</fieldset>
|
||||
</div>
|
||||
<label>Nama Barang</label>
|
||||
<!-- <input type="text" class="form-control" placeholder="Nama Barang" id="nama" name="nama"> -->
|
||||
<textarea class="form-control" name="nama" id="nama" placeholder="Nama Barang"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label>Harga Barang</label>
|
||||
<input type="text" class="form-control" placeholder="Harga Barang" id="harga" name="harga" maxlength="7">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="form-group">
|
||||
<label>Foto Barang</label>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<center><button type="button" onclick="reset()" class="btn btn-danger btn-round">Reset</button>
|
||||
<button type="button" class="btn btn-info btn-round" onclick="tambah()">Tambah</button>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="card-footer ">
|
||||
<!-- <div class="legend">
|
||||
<i class="fa fa-circle text-primary"></i> Opened
|
||||
<i class="fa fa-circle text-warning"></i> Read
|
||||
<i class="fa fa-circle text-danger"></i> Deleted
|
||||
<i class="fa fa-circle text-gray"></i> Unopened
|
||||
</div> -->
|
||||
<hr>
|
||||
<div class="stats">
|
||||
<i class="fa fa-calendar"></i> Terakhir Ditambah
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<div class="card card-chart">
|
||||
<div class="card-header">
|
||||
<h5 class="card-title">List Barang</h5>
|
||||
<!-- <p class="card-category">Line Chart with Points</p> -->
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="table1" class="table table-striped table-bordered" width="100%" cellspacing="0" >
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>Nama</th>
|
||||
<th>Harga</th>
|
||||
<th>Aksi</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<!-- <div class="chart-legend">
|
||||
<i class="fa fa-circle text-info"></i> Tesla Model S
|
||||
<i class="fa fa-circle text-warning"></i> BMW 5 Series
|
||||
</div> -->
|
||||
<hr/>
|
||||
<div class="card-stats">
|
||||
<i class="fa fa-check"></i> Jumlah :
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('login/footer'); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('login/script'); ?>
|
||||
<!-- <script src="vendor/jquery-1.9.0.min.js" type="text/javascript"></script> -->
|
||||
<!-- <script src="http://webrtc.github.io/adapter/adapter-latest.js" type="text/javascript"></script> -->
|
||||
<script src="<?=base_url()?>dist/adapter.js" type="text/javascript"></script>
|
||||
<script src="<?=base_url()?>dist/quagga.js" type="text/javascript"></script>
|
||||
<script src="<?=base_url()?>dist/live_w_locator.js" type="text/javascript"></script>
|
||||
<script src="<?=base_url()?>sweet-alert/block/jquery.blockUI.js"></script>
|
||||
<script src="<?=base_url()?>assets/js/datatables/jquery.dataTables.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var url = "https://scan-barcode.kuwakuwi.com/home"
|
||||
function reset(){
|
||||
$("#text_reset").attr('style', 'display : none');
|
||||
$("#interactive").attr('style', 'display : block');
|
||||
$("#id_pertama").val(null)
|
||||
$("#id_kedua").val(null)
|
||||
$("#nama").val(null)
|
||||
$("#harga").val(null)
|
||||
App.init();
|
||||
}
|
||||
|
||||
function tambah() {
|
||||
// console.log('sini tambah');
|
||||
if ($("#id_pertama").val() == null || $("#id_kedua").val() == null || $("#id_pertama").val() == '' || $("#id_kedua").val() == '') {
|
||||
toastnya("interactive","Barcode Harus Discan Terlebih Dahulu")
|
||||
}
|
||||
else if ($("#nama").val() == null || $("#nama").val() == '') {
|
||||
toastnya("nama","Nama Barang Harus Terisi")
|
||||
}
|
||||
else if ($("#harga").val() == null || $("#harga").val() == '') {
|
||||
toastnya("harga","Harga Barang Harus Terisi")
|
||||
}
|
||||
else{
|
||||
let data = $('#sini_form').serializeArray();
|
||||
let harga = $("#harga").val();
|
||||
harga = harga.replace(/\,/g,'');
|
||||
data = jQuery.grep(data, function(value) {
|
||||
return value['name'] != 'id_pertama' && value['name'] != 'id_kedua' && value['name'] != 'harga' && value['name'] != 'settings_torch';
|
||||
});
|
||||
let id_barcode = [{"name" : "id" ,"value" : $("#id_pertama").val()}];
|
||||
harga = [{"name" : "harga" ,"value" : harga}];
|
||||
data = data.concat(id_barcode,harga)
|
||||
console.log(data)
|
||||
$.ajax({
|
||||
// url: "https://scan-barcode.kuwakuwi.com/home/",
|
||||
url: url,
|
||||
type: 'post',
|
||||
data: {data : data, proses : 'tambah'},
|
||||
// dataType: 'json',
|
||||
beforeSend: function(res) {
|
||||
$.blockUI({
|
||||
message: "Sedang Diproses",
|
||||
css: {
|
||||
border: 'none',
|
||||
padding: '15px',
|
||||
backgroundColor: '#000',
|
||||
'-webkit-border-radius': '10px',
|
||||
'-moz-border-radius': '10px',
|
||||
opacity: .5,
|
||||
color: '#fff'
|
||||
} });
|
||||
},
|
||||
success: function (response) {
|
||||
$.unblockUI();
|
||||
console.log(response);
|
||||
$("#sini_js").html(response)
|
||||
// location.reload();
|
||||
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
$.unblockUI();
|
||||
swal({
|
||||
// title: "Submit Keperluan ?",
|
||||
text: "Koneksi Internet Anda Mungkin Hilang Atau Terputus, Halaman Akan Terefresh Kembali",
|
||||
icon: "warning",
|
||||
buttons: {
|
||||
cancel: false,
|
||||
confirm: true,
|
||||
},
|
||||
// dangerMode: true,
|
||||
})
|
||||
.then((hehe) =>{
|
||||
location.reload();
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function toastnya(id,mesej){
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
};
|
||||
|
||||
toastr.error("<center>"+mesej+"</center>");
|
||||
$("#"+id).focus();
|
||||
}
|
||||
|
||||
$(document).on("click", ".lihat_informasi", function () {
|
||||
// console.log($(this).data('id'));
|
||||
let id = $(this).data('id');
|
||||
let data = $.ajax({
|
||||
// url: "<?=base_url()?>home/",
|
||||
url: url,
|
||||
type: 'post',
|
||||
data: {id : id, proses : 'cari_data'},
|
||||
async : false,
|
||||
// dataType: 'json',
|
||||
beforeSend: function(res) {
|
||||
$.blockUI({
|
||||
message: "Sedang Diproses",
|
||||
css: {
|
||||
border: 'none',
|
||||
padding: '15px',
|
||||
backgroundColor: '#000',
|
||||
'-webkit-border-radius': '10px',
|
||||
'-moz-border-radius': '10px',
|
||||
opacity: .5,
|
||||
color: '#fff'
|
||||
} });
|
||||
},
|
||||
success: function (response) {
|
||||
$.unblockUI();
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
$.unblockUI();
|
||||
swal({
|
||||
// title: "Submit Keperluan ?",
|
||||
text: "Koneksi Internet Anda Mungkin Hilang Atau Terputus, Halaman Akan Terefresh Kembali",
|
||||
icon: "warning",
|
||||
buttons: {
|
||||
cancel: false,
|
||||
confirm: true,
|
||||
},
|
||||
// dangerMode: true,
|
||||
})
|
||||
.then((hehe) =>{
|
||||
location.reload();
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
// console.log(JSON.parse(data.responseText));
|
||||
data = JSON.parse(data.responseText);
|
||||
$("#id").val(data.id);
|
||||
$("#nama_edit").val(data.nama);
|
||||
$("#harga_edit").val(numberWithCommas(data.harga));
|
||||
$("#button_edit").attr({
|
||||
'onclick' : "edit('"+data.id+"',0)"
|
||||
})
|
||||
});
|
||||
|
||||
function edit(id,e) {
|
||||
if (e == 0 ) {
|
||||
// $("#id").removeAttr('disabled');
|
||||
$("#nama_edit").removeAttr('disabled');
|
||||
$("#harga_edit").removeAttr('disabled');
|
||||
$("#button_edit").attr({
|
||||
'onclick' : "edit('"+id+"',1)"
|
||||
})
|
||||
e = 1;
|
||||
}
|
||||
else if (e == 1)
|
||||
{
|
||||
if ($("#nama_edit").val() == null || $("#nama_edit").val() == '') {
|
||||
toastnya("nama_edit","Nama Barang Harus Terisi")
|
||||
}
|
||||
else if ($("#harga_edit").val() == null || $("#harga_edit").val() == '') {
|
||||
toastnya("harga_edit","Harga Barang Harus Terisi")
|
||||
}
|
||||
else
|
||||
{
|
||||
swal({
|
||||
// title: "Submit Keperluan ?",
|
||||
text: "Yakin Ingin Update Detail Barang",
|
||||
icon: "info",
|
||||
buttons: {
|
||||
cancel: true,
|
||||
confirm: true,
|
||||
},
|
||||
dangerMode: true,
|
||||
})
|
||||
.then((hehe) =>{
|
||||
if (hehe) {
|
||||
let harga = $("#harga_edit").val();
|
||||
harga = harga.replace(/\,/g,'');
|
||||
let data = [{"name" : "nama" ,"value" : $("#nama_edit").val()}];
|
||||
harga = [{"name" : "harga" ,"value" : harga}];
|
||||
data = data.concat(harga)
|
||||
// console.log('jalnkan')
|
||||
$.ajax({
|
||||
// url: "<?=base_url()?>home/",
|
||||
url: url,
|
||||
type: 'post',
|
||||
data: {data : data, id : id, proses : 'edit'},
|
||||
// dataType: 'json',
|
||||
beforeSend: function(res) {
|
||||
$.blockUI({
|
||||
message: "Sedang Diproses",
|
||||
css: {
|
||||
border: 'none',
|
||||
padding: '15px',
|
||||
backgroundColor: '#000',
|
||||
'-webkit-border-radius': '10px',
|
||||
'-moz-border-radius': '10px',
|
||||
opacity: .5,
|
||||
color: '#fff'
|
||||
} });
|
||||
},
|
||||
success: function (response) {
|
||||
$.unblockUI();
|
||||
console.log(response);
|
||||
// $("#sini_js").html(response)
|
||||
location.reload();
|
||||
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown) {
|
||||
$.unblockUI();
|
||||
swal({
|
||||
// title: "Submit Keperluan ?",
|
||||
text: "Koneksi Internet Anda Mungkin Hilang Atau Terputus, Halaman Akan Terefresh Kembali",
|
||||
icon: "warning",
|
||||
buttons: {
|
||||
cancel: false,
|
||||
confirm: true,
|
||||
},
|
||||
// dangerMode: true,
|
||||
})
|
||||
.then((hehe) =>{
|
||||
location.reload();
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function numberWithCommas(x) {
|
||||
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
var table;
|
||||
$(document).ready(function() {
|
||||
|
||||
//datatables
|
||||
table = $('#table1').DataTable({
|
||||
// "searching": false,
|
||||
"ordering": false,
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"order": [],
|
||||
|
||||
"ajax": {
|
||||
// "url": "<?php echo base_url('home/')?>",
|
||||
"url": url,
|
||||
"type": "POST",
|
||||
data : {proses : 'tables'}
|
||||
},
|
||||
|
||||
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": [ 0 ],
|
||||
"orderable": false,
|
||||
},
|
||||
],
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var elem = document.getElementById("harga");
|
||||
var elem = document.getElementById("harga_edit");
|
||||
|
||||
elem.addEventListener("keydown",function(event){
|
||||
var key = event.which;
|
||||
if((key<48 || key>57) && key != 8) event.preventDefault();
|
||||
});
|
||||
|
||||
elem.addEventListener("keyup",function(event){
|
||||
var value = this.value.replace(/,/g,"");
|
||||
this.dataset.currentValue=parseInt(value);
|
||||
var caret = value.length-1;
|
||||
while((caret-3)>-1)
|
||||
{
|
||||
caret -= 3;
|
||||
value = value.split("");
|
||||
value.splice(caret+1,0,",");
|
||||
value = value.join("");
|
||||
}
|
||||
this.value = value;
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
112
application/views/login/login.php
Normal file
112
application/views/login/login.php
Normal file
@ -0,0 +1,112 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Login Admin | Barcode Scan</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="icon" type="image/png" href="<?=base_url()?>login_assets/images/icons/favicon.ico"/>
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?=base_url()?>login_assets/vendor/bootstrap/css/bootstrap.min.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?=base_url()?>login_assets/fonts/font-awesome-4.7.0/css/font-awesome.min.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?=base_url()?>login_assets/fonts/Linearicons-Free-v1.0.0/icon-font.min.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?=base_url()?>login_assets/vendor/animate/animate.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?=base_url()?>login_assets/vendor/css-hamburgers/hamburgers.min.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?=base_url()?>login_assets/vendor/animsition/css/animsition.min.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?=base_url()?>login_assets/vendor/select2/select2.min.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?=base_url()?>login_assets/vendor/daterangepicker/daterangepicker.css">
|
||||
<!--===============================================================================================-->
|
||||
<link rel="stylesheet" type="text/css" href="<?=base_url()?>login_assets/css/util.css">
|
||||
<link rel="stylesheet" type="text/css" href="<?=base_url()?>login_assets/css/main.css">
|
||||
<style type="text/css">
|
||||
.swal-modal .swal-text{
|
||||
text-align: center
|
||||
}
|
||||
</style>
|
||||
<!--===============================================================================================-->
|
||||
</head>
|
||||
<body style="background-color: #666666;">
|
||||
|
||||
<div class="limiter">
|
||||
<div class="container-login100">
|
||||
<div class="wrap-login100">
|
||||
<form class="login100-form validate-form" method="post">
|
||||
<span class="login100-form-title p-b-43">
|
||||
Halaman Login
|
||||
</span>
|
||||
|
||||
|
||||
<div class="wrap-input100 validate-input" data-validate = "Username Tidak Bisa Kosong">
|
||||
<input class="input100" type="text" name="username">
|
||||
<span class="focus-input100"></span>
|
||||
<span class="label-input100">Username</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="wrap-input100 validate-input" data-validate="Password Tidak Bisa Kosong">
|
||||
<input class="input100" type="password" name="password">
|
||||
<span class="focus-input100"></span>
|
||||
<span class="label-input100">Password</span>
|
||||
</div>
|
||||
|
||||
<div class="container-login100-form-btn">
|
||||
<!-- <button type="button" id="button_login" class="login100-form-btn">
|
||||
Login
|
||||
</button> -->
|
||||
<input type="submit" name="button_login" value="Login" class="login100-form-btn">
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
<div class="login100-more" style="background-image: url('<?=base_url()?>login_assets/images/bg-01.jpg');">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!--===============================================================================================-->
|
||||
<script src="<?=base_url()?>login_assets/vendor/jquery/jquery-3.2.1.min.js"></script>
|
||||
<!--===============================================================================================-->
|
||||
<script src="<?=base_url()?>login_assets/vendor/animsition/js/animsition.min.js"></script>
|
||||
<!--===============================================================================================-->
|
||||
<script src="<?=base_url()?>login_assets/vendor/bootstrap/js/popper.js"></script>
|
||||
<script src="<?=base_url()?>login_assets/vendor/bootstrap/js/bootstrap.min.js"></script>
|
||||
<!--===============================================================================================-->
|
||||
<script src="<?=base_url()?>login_assets/vendor/select2/select2.min.js"></script>
|
||||
<!--===============================================================================================-->
|
||||
<script src="<?=base_url()?>login_assets/vendor/daterangepicker/moment.min.js"></script>
|
||||
<script src="<?=base_url()?>login_assets/vendor/daterangepicker/daterangepicker.js"></script>
|
||||
<!--===============================================================================================-->
|
||||
<script src="<?=base_url()?>login_assets/vendor/countdowntime/countdowntime.js"></script>
|
||||
<script src="<?=base_url()?>sweet-alert/sweetalert.js"></script>
|
||||
<!--===============================================================================================-->
|
||||
<script src="<?=base_url()?>login_assets/js/main.js"></script>
|
||||
|
||||
<?php if ($this->session->flashdata('error')): ?>
|
||||
<script type="text/javascript">
|
||||
swal({
|
||||
title: "Login Gagal",
|
||||
text: "<?=$this->session->flashdata('error')?>",
|
||||
icon: "error",
|
||||
showLoaderOnConfirm: true,
|
||||
})
|
||||
|
||||
|
||||
</script>
|
||||
<?php endif ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
16
application/views/login/navbar.php
Normal file
16
application/views/login/navbar.php
Normal file
@ -0,0 +1,16 @@
|
||||
<!-- Navbar -->
|
||||
<nav class="navbar navbar-expand-lg navbar-absolute fixed-top navbar-transparent">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-wrapper">
|
||||
<div class="navbar-toggle">
|
||||
<button type="button" class="navbar-toggler">
|
||||
<span class="navbar-toggler-bar bar1"></span>
|
||||
<span class="navbar-toggler-bar bar2"></span>
|
||||
<span class="navbar-toggler-bar bar3"></span>
|
||||
</button>
|
||||
</div>
|
||||
<a class="navbar-brand" ><?=$header?> | Admin</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
64
application/views/login/script.php
Normal file
64
application/views/login/script.php
Normal file
@ -0,0 +1,64 @@
|
||||
<!-- Core JS Files -->
|
||||
<script src="<?=base_url()?>assets/js/core/jquery.min.js"></script>
|
||||
<script src="<?=base_url()?>assets/js/core/popper.min.js"></script>
|
||||
<script src="<?=base_url()?>assets/js/core/bootstrap.min.js"></script>
|
||||
<script src="<?=base_url()?>assets/js/plugins/perfect-scrollbar.jquery.min.js"></script>
|
||||
|
||||
<!-- Chart JS -->
|
||||
<script src="<?=base_url()?>assets/js/plugins/chartjs.min.js"></script>
|
||||
<!-- Notifications Plugin -->
|
||||
<script src="<?=base_url()?>assets/js/plugins/bootstrap-notify.js"></script>
|
||||
<!-- Control Center for Now Ui Dashboard: parallax effects, scripts for the example pages etc -->
|
||||
<script src="<?=base_url()?>assets/js/paper-dashboard.min.js?v=2.0.0" type="text/javascript"></script>
|
||||
<!-- Paper Dashboard DEMO methods, don't include it in your project! -->
|
||||
<script src="<?php echo base_url() ?>sweet-alert/sweetalert.js"></script>
|
||||
<!-- Control Center for Now Ui Dashboard: parallax effects, scripts for the example pages etc -->
|
||||
<script src="<?=base_url()?>sweet-alert/toastr/toastr.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="<?=base_url()?>sweet-alert/toastr/toastr.min.css">
|
||||
|
||||
<script type="text/javascript">
|
||||
function logout(){
|
||||
swal({
|
||||
title: "Yakin ingin Logout?",
|
||||
text: "Anda akan keluar dari sistem",
|
||||
icon: "warning",
|
||||
buttons: true,
|
||||
dangerMode: true,
|
||||
})
|
||||
.then((logout) => {
|
||||
if (logout) {
|
||||
|
||||
window.location.href ='<?php echo base_url("home/logout") ?>';
|
||||
} else {
|
||||
swal("Terima kasih kerana masih di sistem");
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<script type="text/javascript">
|
||||
swal({
|
||||
title: "Berhasil",
|
||||
text: "<?=$this->session->flashdata('success')?>",
|
||||
icon: "success",
|
||||
showLoaderOnConfirm: true,
|
||||
})
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<?php elseif ($this->session->flashdata('error')): ?>
|
||||
<script type="text/javascript">
|
||||
swal({
|
||||
title: "Berhasil",
|
||||
text: "<?=$this->session->flashdata('error')?>",
|
||||
icon: "error",
|
||||
showLoaderOnConfirm: true,
|
||||
})
|
||||
|
||||
|
||||
</script>
|
||||
<?php endif ?>
|
||||
33
application/views/login/sidebar.php
Normal file
33
application/views/login/sidebar.php
Normal file
@ -0,0 +1,33 @@
|
||||
<div class="sidebar" data-color="white" data-active-color="danger">
|
||||
<!--
|
||||
Tip 1: You can change the color of the sidebar using: data-color="blue | green | orange | red | yellow"
|
||||
-->
|
||||
<div class="logo">
|
||||
<a href="<?=base_url()?>home" class="simple-text logo-mini">
|
||||
<div class="logo-image-small">
|
||||
<img src="<?=base_url()?>assets/img/logo-small.png">
|
||||
</div>
|
||||
</a>
|
||||
<a href="http://www.creative-tim.com" class="simple-text logo-normal">
|
||||
Barcode
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<div class="sidebar-wrapper">
|
||||
<ul class="nav">
|
||||
<li <?php if ($this->uri->segment(2) == ''): ?>class="active"<?php endif ?>>
|
||||
<a href="./dashboard.html">
|
||||
<i class="nc-icon nc-bank"></i>
|
||||
<p>Halaman Utama</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a onclick="logout()">
|
||||
<i class="nc-icon nc-button-power"></i>
|
||||
<p>Logout</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
89
application/views/welcome_message.php
Normal file
89
application/views/welcome_message.php
Normal file
@ -0,0 +1,89 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!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; }
|
||||
|
||||
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;
|
||||
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. <?php echo (ENVIRONMENT === 'development') ? 'CodeIgniter Version <strong>' . CI_VERSION . '</strong>' : '' ?></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user