first commit
This commit is contained in:
46
application/views/back/Order.php
Normal file
46
application/views/back/Order.php
Normal file
@ -0,0 +1,46 @@
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>asset/css/jquery.dataTables.css">
|
||||
<div class="col-sm-10" id="contents">
|
||||
<h3>Order</h3>
|
||||
<hr>
|
||||
<div class="col-sm-10">
|
||||
<table class="table" id="tbl">
|
||||
<thead><tr>
|
||||
<td>Nama</td>
|
||||
<td>Kota/Kab</td>
|
||||
<td>Provinsi</td>
|
||||
<td>Jumlah Barang</td>
|
||||
<td>Total Harga</td>
|
||||
<td>Tanggal</td>
|
||||
<td>Status</td>
|
||||
<td>Action</td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php foreach($table as $tb) {?>
|
||||
<tr>
|
||||
<td><?php echo $tb['nama']; ?></td>
|
||||
<td><?php echo $tb['kota_kab']; ?></td>
|
||||
<td><?php echo $tb['provinsi']; ?></td>
|
||||
<td><?php echo $tb['jumlah']; ?></td>
|
||||
<td><?php echo $tb['total_harga'] ?></td>
|
||||
<td><?php echo $tb['tgl'] ?></td>
|
||||
<td><?php echo $tb['status'] ?></td>
|
||||
<td>
|
||||
<a href="<?php echo site_url("su/order/order_view/".$tb['id'])?>">View</a>
|
||||
Delete
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>asset/js/jquery.dataTables.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#tbl').DataTable({
|
||||
"pageLength": 5,
|
||||
"lengthMenu": [ 5, 10, 25, 50, 75, 100 ],
|
||||
"processing": true
|
||||
});
|
||||
});
|
||||
</script>
|
39
application/views/back/barang.php
Normal file
39
application/views/back/barang.php
Normal file
@ -0,0 +1,39 @@
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>asset/css/jquery.dataTables.css">
|
||||
<div class="col-sm-10" id="contents">
|
||||
<h3>Barang</h3>
|
||||
<hr>
|
||||
<div class="col-sm-10">
|
||||
<table class="table" id="tbl">
|
||||
<thead><tr>
|
||||
<td>Nama</td>
|
||||
<td>Kode Barang</td>
|
||||
<td>Harga</td>
|
||||
<td>Kategori</td>
|
||||
<td>Stok</td>
|
||||
<td>Action</td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php foreach($table as $tb) {?>
|
||||
<tr>
|
||||
<td><?php echo $tb['nama']; ?></td>
|
||||
<td><?php echo $tb['kdbarang']; ?></td>
|
||||
<td><?php echo $tb['harga']; ?></td>
|
||||
<td><?php echo $tb['kategori'] ?></td>
|
||||
<td><?php echo $tb['stok'] ?></td>
|
||||
<td>View Edit Delete</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<script src="<?php echo base_url()?>asset/js/jquery.dataTables.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#tbl').DataTable({
|
||||
"pageLength": 5,
|
||||
"lengthMenu": [ 5, 10, 25, 50, 75, 100 ],
|
||||
"processing": true
|
||||
});
|
||||
});
|
||||
</script>
|
5
application/views/back/contentTemp.php
Normal file
5
application/views/back/contentTemp.php
Normal file
@ -0,0 +1,5 @@
|
||||
<div class="col-sm-10" id="contents">
|
||||
<p>
|
||||
Hello World!!
|
||||
</p>
|
||||
</div>
|
5
application/views/back/dashboard.php
Normal file
5
application/views/back/dashboard.php
Normal file
@ -0,0 +1,5 @@
|
||||
<div class="col-sm-10" id="contents">
|
||||
<p>
|
||||
Hello World!!
|
||||
</p>
|
||||
</div>
|
28
application/views/back/footer.php
Normal file
28
application/views/back/footer.php
Normal file
@ -0,0 +1,28 @@
|
||||
<footer class="text-center" style="position: fixed;height: 50px;bottom: 0;width: 100%;">Copyright <a href="http://allazhar.com"><strong>AllAzhar.com</strong></a></footer>
|
||||
|
||||
<div class="modal" id="addWidgetModal">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><EFBFBD></button>
|
||||
<h4 class="modal-title">Add Widget</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>Add a widget stuff here..</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a href="#" data-dismiss="modal" class="btn">Close</a>
|
||||
<a href="#" class="btn btn-primary">Save changes</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dalog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
<!-- script references -->
|
||||
|
||||
<script src="<?php echo base_url()?>asset/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="<?php echo base_url()?>asset/js/scripts.js"></script>
|
||||
</body>
|
||||
</html>
|
85
application/views/back/header.php
Normal file
85
application/views/back/header.php
Normal file
@ -0,0 +1,85 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta charset="utf-8">
|
||||
<title><?php echo $title ?></title>
|
||||
<meta name="generator" content="Bootply" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<link href="<?php echo base_url()?>asset/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<link href="<?php echo base_url()?>asset/css/styles.css" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>asset/css/customadmin.css" rel="stylesheet">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
/*
|
||||
var loading = "<div id='contents'><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");
|
||||
// });
|
||||
|
||||
$(document).on('click','.sidebar li:not(.nav) a', function(event) {
|
||||
//$('#imgloading').remove();
|
||||
//$(imgloading).appendTo($(this));
|
||||
//$('#contents').html(loading);
|
||||
//$(".selected", event.delegateTarget).removeClass("selected");
|
||||
//$(this).parent().addClass("selected");
|
||||
event.preventDefault();
|
||||
var href = $(this).attr('href');
|
||||
var base_url = 'http://localhost/toko2/index.php/su/'
|
||||
$.ajax({
|
||||
url: base_url+href,
|
||||
success: function()
|
||||
{
|
||||
$("#contents").load(href);
|
||||
$('#contents').fadeIn(3000);
|
||||
//$('#imgloading').remove();
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown)
|
||||
{
|
||||
//alert("Status: " + textStatus);
|
||||
alert("Error: " + errorThrown);
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
*/
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- header -->
|
||||
<div id="top-nav" class="navbar navbar-inverse navbar-static-top">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#">Dashboard</a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" role="button" data-toggle="dropdown" href="#"><i class="glyphicon glyphicon-user"></i> <?php echo $User ?> <span class="caret"></span></a>
|
||||
<ul id="g-account-menu" class="dropdown-menu" role="menu">
|
||||
<li><a href="#">My Profile</a></li>
|
||||
<li><a href="<?php echo site_url('welcome') ?>">Toko</a></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href="<?php echo site_url('user/logout') ?>"><i class="glyphicon glyphicon-lock"></i> Logout</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
30
application/views/back/sidebar.php
Normal file
30
application/views/back/sidebar.php
Normal file
@ -0,0 +1,30 @@
|
||||
<!-- Main -->
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-2 sidebar" id="sideadmin">
|
||||
<!-- Left column -->
|
||||
<ul class="nav nav-stacked sidebarbody">
|
||||
<li class="<?php if($aktif=="Home")echo "active" ?>"> <a href="Dashboard"><i class="glyphicon glyphicon-home"></i> Home</a></li>
|
||||
<li class="<?php if($aktif=="Order")echo "active" ?>"><a href="<?php echo site_url("su\order")?>"><i class="glyphicon glyphicon-shopping-cart"></i> Order <?php if($order->ttl > 0){ ?><span class="badge badge-info"><?php echo $order->ttl?></span><?php } ?></a></li>
|
||||
<li class="nav-header"> <a href="#" style="pointer-events: none" data-toggle="collapse" data-target="#menu1"><i class="glyphicon glyphicon-stats"></i> Statistic </a>
|
||||
<ul class="nav nav-stacked" id="menu1" style="margin-left:20px;">
|
||||
<li class="<?php if($aktif=="Sales")echo "active" ?>"><a href="#">Sales</a></li>
|
||||
<li class="<?php if($aktif=="Transactions")echo "active" ?>"><a href="#">Transactions</a></li>
|
||||
<li class="<?php if($aktif=="Views")echo "active" ?>"><a href="#">Views</a></li>
|
||||
<li class="<?php if($aktif=="Requests")echo "active" ?>"><a href="#">Requests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="<?php if($aktif=="Barang")echo "active" ?>"><a href="<?php echo site_url("su\barangAdm")?>"><i class="glyphicon glyphicon-apple"></i> Barang</a></li>
|
||||
<li class="<?php if($aktif=="Member")echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-user"></i> Member</a></li>
|
||||
<li class="nav-header"> <a href="#" style="pointer-events: none" data-toggle="collapse" data-target="#menu2"><i class="glyphicon glyphicon-cog"></i> Options </a>
|
||||
<ul class="nav nav-stacked" id="menu2" style="margin-left:20px;">
|
||||
<li class="<?php if($aktif=="Toko")echo "active" ?>"><a href="#">Toko</a></li>
|
||||
<li class="<?php if($aktif=="Slideshow")echo "active" ?>"><a href="#">Slideshow</a></li>
|
||||
<li class="<?php if($aktif=="Kategori")echo "active" ?>"><a href="#">Kategori</a></li>
|
||||
<li class="<?php if($aktif=="About")echo "active" ?>"><a href="#">About</a></li>
|
||||
<li class="<?php if($aktif=="Contact")echo "active" ?>"><a href="#">Contact</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /col-3 -->
|
67
application/views/back/tambahBarang.php
Normal file
67
application/views/back/tambahBarang.php
Normal file
@ -0,0 +1,67 @@
|
||||
<div class="col-sm-10" id="contents">
|
||||
<a href="#"><h3>Tambah Barang</h3></a>
|
||||
<hr>
|
||||
<div class="col-sm-7">
|
||||
<form class="form-horizontal" id="form" action="tambah_conf" method="post" name="fo1">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Nama</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" placeholder="Nama" name="nama" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Kode</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" placeholder="Kode Barang" name="kode" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Harga</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" class="form-control" placeholder="Harga" name="harga" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Deskripsi</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea class="form-control" rows="3" name="desc" placeholder="Deskripsi Produk" required></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Kategori</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" name="kat">
|
||||
<?php foreach ($kategori as $ka){
|
||||
echo "<option value='".$ka->id."'>".$ka->nama."</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Stok</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="number" class="form-control" placeholder="Stok" name="stok" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Tags</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" placeholder="Tags" name="Tags" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">Foto</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" placeholder="Pilih File" name="foto" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-2 col-sm-10">
|
||||
<button type="submit" class="btn btn-default">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
152
application/views/back/testAdminDashboard.php
Normal file
152
application/views/back/testAdminDashboard.php
Normal file
@ -0,0 +1,152 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta charset="utf-8">
|
||||
<title>Dashboard Admin</title>
|
||||
<meta name="generator" content="Bootply" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<link href="<?php echo base_url()?>asset/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<link href="<?php echo base_url()?>asset/css/styles.css" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>asset/css/custom.css" rel="stylesheet">
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
/*
|
||||
var loading = "<div id='contents'><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");
|
||||
// });
|
||||
|
||||
$(document).on('click','.sidebar li:not(.nav) a', function(event) {
|
||||
//$('#imgloading').remove();
|
||||
//$(imgloading).appendTo($(this));
|
||||
//$('#contents').html(loading);
|
||||
//$(".selected", event.delegateTarget).removeClass("selected");
|
||||
//$(this).parent().addClass("selected");
|
||||
event.preventDefault();
|
||||
var href = $(this).attr('href');
|
||||
var base_url = 'http://localhost/toko2/index.php/su/'
|
||||
$.ajax({
|
||||
url: base_url+href,
|
||||
success: function()
|
||||
{
|
||||
$("#contents").load(href);
|
||||
$('#contents').fadeIn(3000);
|
||||
//$('#imgloading').remove();
|
||||
},
|
||||
error: function(XMLHttpRequest, textStatus, errorThrown)
|
||||
{
|
||||
//alert("Status: " + textStatus);
|
||||
alert("Error: " + errorThrown);
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
*/
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- header -->
|
||||
<div id="top-nav" class="navbar navbar-inverse navbar-static-top">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#">Dashboard</a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" role="button" data-toggle="dropdown" href="#"><i class="glyphicon glyphicon-user"></i> Admin <span class="caret"></span></a>
|
||||
<ul id="g-account-menu" class="dropdown-menu" role="menu">
|
||||
<li><a href="#">My Profile</a></li>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href="#"><i class="glyphicon glyphicon-lock"></i> Logout</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Main -->
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-sm-2 sidebar" id="sideadmin">
|
||||
<!-- Left column -->
|
||||
<ul class="nav nav-stacked sidebarbody">
|
||||
<li class="active"> <a href="Dashboard"><i class="glyphicon glyphicon-home"></i> Home</a></li>
|
||||
<li><a href="#"><i class="glyphicon glyphicon-shopping-cart"></i> Order <span class="badge badge-info">4</span></a></li>
|
||||
<li class="nav-header"> <a href="#" style="pointer-events: none" data-toggle="collapse" data-target="#menu1"><i class="glyphicon glyphicon-stats"></i> Statistic </a>
|
||||
<ul class="nav nav-stacked" id="menu1" style="margin-left:20px;">
|
||||
<li><a href="#">Sales</a></li>
|
||||
<li><a href="#">Transactions</a></li>
|
||||
<li><a href="#">Views</a></li>
|
||||
<li><a href="#">Requests</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="barangAdm/"><i class="glyphicon glyphicon-apple"></i> Barang</a></li>
|
||||
<li><a href="#"><i class="glyphicon glyphicon-user"></i> Member</a></li>
|
||||
<li class="nav-header"> <a href="#" style="pointer-events: none" data-toggle="collapse" data-target="#menu2"><i class="glyphicon glyphicon-cog"></i> Options </a>
|
||||
<ul class="nav nav-stacked" id="menu2" style="margin-left:20px;">
|
||||
<li><a href="#">Toko</a></li>
|
||||
<li><a href="#">Slideshow</a></li>
|
||||
<li><a href="#">Kategori</a></li>
|
||||
<li><a href="#">About</a></li>
|
||||
<li><a href="#">Contact</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /col-3 -->
|
||||
|
||||
<div class="col-sm-10" id="contents">
|
||||
|
||||
</div>
|
||||
<!--/col-span-9-->
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Main -->
|
||||
|
||||
<footer class="text-center" style="position: fixed;height: 50px;bottom: 0;width: 100%;">Copyright <a href="http://allazhar.com"><strong>AllAzhar.com</strong></a></footer>
|
||||
|
||||
<div class="modal" id="addWidgetModal">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><EFBFBD></button>
|
||||
<h4 class="modal-title">Add Widget</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>Add a widget stuff here..</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a href="#" data-dismiss="modal" class="btn">Close</a>
|
||||
<a href="#" class="btn btn-primary">Save changes</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dalog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
<!-- script references -->
|
||||
|
||||
<script src="<?php echo base_url()?>asset/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script src="<?php echo base_url()?>asset/js/scripts.js"></script>
|
||||
</body>
|
||||
</html>
|
21
application/views/back/updateBarang.php
Normal file
21
application/views/back/updateBarang.php
Normal file
@ -0,0 +1,21 @@
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<form id="form" class="form-" action="../update_conf" method="post" name="fo1">
|
||||
<input type="hidden" name="id" value="<?php echo $barang->id?>"><br/>
|
||||
<input type="text" placeholder="Nama" name="nama" value="<?php echo $barang->nama?>"><br/>
|
||||
<input type="text" placeholder="Kode Barang" name="kode" value="<?php echo $barang->kdbarang?>"><br/>
|
||||
<input type="text" placeholder="Harga" name="harga" value="<?php echo $barang->harga?>"><br/>
|
||||
<input type="text" placeholder="Deskripsi" name="desc" value="<?php echo $barang->deskripsi?>"><br/>
|
||||
Kategori<select name="kat">
|
||||
<?php foreach ($kategori as $ka){
|
||||
echo "<option value='".$ka->id."'>".$ka->nama."</option>";
|
||||
}
|
||||
?>
|
||||
</select></br>
|
||||
<input type="text" placeholder="Tags" name="tag" value="<?php echo $barang->tags?>"><br/>
|
||||
<input type="text" placeholder="Stok" name="stok" value="<?php echo $barang->stok?>"><br/>
|
||||
<button>OK</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
47
application/views/back/vieworder.php
Normal file
47
application/views/back/vieworder.php
Normal file
@ -0,0 +1,47 @@
|
||||
<div class="col-sm-10" id="contents">
|
||||
<?php //print_r($data['profil'][0]) ?>
|
||||
Nama = <?php echo $data['profil'][0]['Nama'] ?> </br>
|
||||
Email = <?php echo $data['profil'][0]['email'] ?> </br>
|
||||
Telp = <?php echo $data['profil'][0]['telp'] ?> </br>
|
||||
Alamat = <?php echo $data['profil'][0]['Alamat'] ?> </br>
|
||||
Kota/Kab = <?php echo $data['profil'][0]['kota_kab'] ?> </br>
|
||||
Provinsi = <?php echo $data['profil'][0]['provinsi'] ?> </br>
|
||||
<hr>
|
||||
Barang
|
||||
<table>
|
||||
<thead><tr>
|
||||
<td width="100px">Nama</td>
|
||||
<td width="50px">Qty</td>
|
||||
<td>Harga</td>
|
||||
<td>Total</td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php foreach ($data['barang'] as $brg) { ?>
|
||||
<tr>
|
||||
<td><?php echo $brg['nama'] ?></td>
|
||||
<td><?php echo $brg['qty'] ?></td>
|
||||
<td><?php echo $brg['harga'] ?></td>
|
||||
<td><?php echo $brg['harga']*$brg['qty'] ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
<tfoot><tr style="border-top:solid 1px #000000">
|
||||
<td colspan="3">Total</td>
|
||||
<td><?php echo $data['transaksi'][0]['total_harga'] ?></td>
|
||||
</tr></tfoot>
|
||||
</table>
|
||||
<hr>
|
||||
Tanggal Order = <?php echo $data['transaksi'][0]['tanggal_order']?></br>
|
||||
Tanggal Kirim =</br>
|
||||
Pembayaran = <?php if($data['transaksi'][0]['cara_bayar']==1)echo "Transfer";else echo "Cash On Delivery" ?> </br>
|
||||
|
||||
<form method="POST" action="<?php echo site_url("su/order/update_order/".$data['transaksi'][0]['id']) ?>">
|
||||
Status = <select name="status">
|
||||
<option value="PENDING" <?php if ($data['transaksi'][0]['status']=="PENDING")echo "selected"?>>Pending</option>
|
||||
<option value="SHIPPED" <?php if ($data['transaksi'][0]['status']=="SHIPPED")echo "selected"?>>Shipped</option>
|
||||
<option value="CANCEL" <?php if ($data['transaksi'][0]['status']=="CANCEL")echo "selected"?>>Cancel</option>
|
||||
</select>
|
||||
<input type="submit"></input>
|
||||
<button type="button" onClick="history.back();return false;">Back</button>
|
||||
</form>
|
||||
</div>
|
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";
|
25
application/views/errors/cli/error_exception.php
Normal file
25
application/views/errors/cli/error_exception.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
An uncaught Exception was encountered
|
||||
|
||||
Type: <?php echo get_class($exception); ?>
|
||||
Message: <?php echo $message; ?>
|
||||
Filename: <?php echo $exception->getFile(); ?>
|
||||
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']; ?>
|
||||
Line: <?php echo $error['line']; ?>
|
||||
Function: <?php echo $error['function']; ?>
|
||||
|
||||
<?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";
|
25
application/views/errors/cli/error_php.php
Normal file
25
application/views/errors/cli/error_php.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
A PHP Error was encountered
|
||||
|
||||
Severity: <?php echo $severity;?>
|
||||
Message: <?php echo $message;?>
|
||||
Filename: <?php echo $filepath;?>
|
||||
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'];?>
|
||||
Line: <?php echo $error['line'];?>
|
||||
Function: <?php echo $error['function'];?>
|
||||
|
||||
<?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>
|
71
application/views/front/Cart.php
Normal file
71
application/views/front/Cart.php
Normal file
@ -0,0 +1,71 @@
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="row">
|
||||
<ul class="list-group" id="menu2">
|
||||
<li class="list-group-item <?php if ($active=="Home") echo "active" ?>"><a href="<?php echo site_url('welcome') ?>"><i class="glyphicon glyphicon-home"></i> Home</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Produk") echo "active" ?>"><a href="<?php echo site_url('product') ?>"><i class="glyphicon glyphicon-baby-formula"></i> Produk</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Testimoni") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-thumbs-up"></i> Testimoni</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Cara Berberlanja") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-info-sign"></i> Cara Berbelanja</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Contact Us") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-earphone"></i> Contact Us</a></li>
|
||||
<li class="list-group-item <?php if ($active=="About Us") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-briefcase"></i> About Us</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="row">
|
||||
<ul class="list-group" id="kategori">
|
||||
<?php foreach($kategori as $kat) { ?>
|
||||
<li class="list-group-item <?php if ($active=="Home") echo "active" ?>"><a href="#"> <?php echo $kat['Nama'] ?></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-9">
|
||||
<div class="row">
|
||||
|
||||
<h1>Cart</h1>
|
||||
<?php echo form_open(site_url('cart/update')); ?>
|
||||
<table cellpadding="6" cellspacing="1" style="width:100%" border="0">
|
||||
<tr>
|
||||
<th>QTY</th>
|
||||
<th>Item Description</th>
|
||||
<th style="text-align:right">Item Price</th>
|
||||
<th style="text-align:right">Sub-Total</th>
|
||||
</tr>
|
||||
<?php $i = 1; ?>
|
||||
<?php foreach ($this->cart->contents() as $items): ?>
|
||||
<?php echo form_hidden($i.'[rowid]', $items['rowid']); ?>
|
||||
<tr>
|
||||
<td><?php echo form_input(array('name' => $i.'[qty]', 'value' => $items['qty'], 'maxlength' => '3', 'size' => '5')); ?></td>
|
||||
<td>
|
||||
<?php echo $items['name']; ?>
|
||||
<?php if ($this->cart->has_options($items['rowid']) == TRUE): ?>
|
||||
<p>
|
||||
<?php foreach ($this->cart->product_options($items['rowid']) as $option_name => $option_value): ?>
|
||||
<strong><?php echo $option_name; ?>:</strong> <?php echo $option_value; ?><br />
|
||||
<?php endforeach; ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td style="text-align:right"><?php echo $this->cart->format_number($items['price']); ?></td>
|
||||
<td style="text-align:right">$<?php echo $this->cart->format_number($items['subtotal']); ?></td>
|
||||
</tr>
|
||||
<?php $i++; ?>
|
||||
<?php endforeach; ?>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
<td class="right"><strong>Total</strong></td>
|
||||
<td class="right">$<?php echo $this->cart->format_number($this->cart->total()); ?></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<p><?php echo form_submit('update', 'Update your Cart'); ?>
|
||||
<a href="<?php echo site_url('cart/check_out')?>"><button type="button">Checkout</button></a>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
19
application/views/front/Checkout.php
Normal file
19
application/views/front/Checkout.php
Normal file
@ -0,0 +1,19 @@
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<form id="form" class="form-" action="<?php echo site_url('cart/check_out_conv');?>" method="post" name="fo1">
|
||||
<input type="text" placeholder="Nama" name="nama"><br/>
|
||||
<input type="text" placeholder="Email" name="email"><br/>
|
||||
<input type="text" placeholder="Alamat" name="alamat"><br/>
|
||||
<input type="text" placeholder="Kota/Kab" name="kota"><br/>
|
||||
<input type="text" placeholder="Provinsi" name="prov"><br/>
|
||||
<input type="text" placeholder="Telp" name="telp"><br/>
|
||||
Total Belanja = <?php echo $this->cart->total();?><br />
|
||||
<select name="cara_bayar">
|
||||
<option value="1">Transfer</option>
|
||||
<option value="1">Cash</option>
|
||||
</select><br/>
|
||||
<input type="hidden" name="tipe" value="online"><br/>
|
||||
<button>OK</button>
|
||||
</body>
|
||||
</html>
|
573
application/views/front/Home.php
Normal file
573
application/views/front/Home.php
Normal file
@ -0,0 +1,573 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-success">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">Best Selling Item</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
<div id="carousel-example" class="carousel slide hidden-xs" data-ride="carousel">
|
||||
<!-- Wrapper for slides -->
|
||||
<div class="carousel-inner">
|
||||
<div class="item active">
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-sm-offset-1" style="margin-left:120px">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product A</h5>
|
||||
<h5 class="price-text-color">$7.99</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_001.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product B</h5>
|
||||
<h5 class="price-text-color">$9.99</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_002.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product C</h5>
|
||||
<h5 class="price-text-color">$7.58</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_003.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-sm-offset-1" style="margin-left:120px">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Another product</h5>
|
||||
<h5 class="price-text-color">$3.75</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_001.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product</h5>
|
||||
<h5 class="price-text-color">$7.17</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_001.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product</h5>
|
||||
<h5 class="price-text-color">$19.99</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_002.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Controls -->
|
||||
<a class="left carousel-control" href="#carousel-example" role="button" data-slide="prev" style="background-image:none;color:#337ab7">
|
||||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="right carousel-control" href="#carousel-example" role="button" data-slide="next" style="background-image:none;color:#337ab7">
|
||||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="panel panel-success">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">New Item</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
<div id="carousel-example2" class="carousel slide hidden-xs" data-ride="carousel">
|
||||
<!-- Wrapper for slides -->
|
||||
<div class="carousel-inner">
|
||||
<div class="item active">
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-sm-offset-1" style="margin-left:120px">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product A</h5>
|
||||
<h5 class="price-text-color">$7.99</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_001.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product B</h5>
|
||||
<h5 class="price-text-color">$9.99</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_002.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product C</h5>
|
||||
<h5 class="price-text-color">$7.58</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_003.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-sm-offset-1" style="margin-left:120px">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Another product</h5>
|
||||
<h5 class="price-text-color">$3.75</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_001.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product</h5>
|
||||
<h5 class="price-text-color">$7.17</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_001.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="col-item">
|
||||
<div class="info">
|
||||
<div class="row">
|
||||
<div class="price col-md-6">
|
||||
<h5>Product</h5>
|
||||
<h5 class="price-text-color">$19.99</h5>
|
||||
</div>
|
||||
<div class="rating hidden-sm col-md-6">
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
<i class="price-text-color fa fa-star"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="photo">
|
||||
<img src="http://www.prepbootstrap.com/Content/images/template/productslider/product_002.jpg" class="img-responsive" alt="a" />
|
||||
</div>
|
||||
<div class="info">
|
||||
<div class="separator clear-left">
|
||||
<p class="btn-add">
|
||||
<i class="fa fa-shopping-cart"></i><a href="#" class="hidden-sm">Add to cart</a>
|
||||
</p>
|
||||
<p class="btn-details">
|
||||
<i class="fa fa-list"></i><a href="#" class="hidden-sm">More details</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="clearfix">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Controls -->
|
||||
<a class="left carousel-control" href="#carousel-example2" role="button" data-slide="prev" style="background-image:none;color:#337ab7">
|
||||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="right carousel-control" href="#carousel-example2" role="button" data-slide="next" style="background-image:none;color:#337ab7">
|
||||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>asset/font-awesome/css/font-awesome.min.css" />
|
||||
<style>
|
||||
.col-item
|
||||
{
|
||||
border: 2px solid #2323A1;
|
||||
border-radius: 5px;
|
||||
background: #FFF;
|
||||
}
|
||||
.col-item .photo img
|
||||
{
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.col-item .info
|
||||
{
|
||||
padding: 10px;
|
||||
border-radius: 0 0 5px 5px;
|
||||
margin-top: 1px;
|
||||
}
|
||||
.col-item:hover .info {
|
||||
background-color: rgba(215, 215, 244, 0.5);
|
||||
}
|
||||
.col-item .price
|
||||
{
|
||||
/*width: 50%;*/
|
||||
float: left;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.col-item .price h5
|
||||
{
|
||||
line-height: 20px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.price-text-color
|
||||
{
|
||||
color: #00990E;
|
||||
}
|
||||
|
||||
.col-item .info .rating
|
||||
{
|
||||
color: #003399;
|
||||
}
|
||||
|
||||
.col-item .rating
|
||||
{
|
||||
/*width: 50%;*/
|
||||
float: left;
|
||||
font-size: 17px;
|
||||
text-align: right;
|
||||
line-height: 52px;
|
||||
margin-bottom: 10px;
|
||||
height: 52px;
|
||||
}
|
||||
|
||||
.col-item .separator
|
||||
{
|
||||
border-top: 1px solid #FFCCCC;
|
||||
}
|
||||
|
||||
.clear-left
|
||||
{
|
||||
clear: left;
|
||||
}
|
||||
|
||||
.col-item .separator p
|
||||
{
|
||||
line-height: 20px;
|
||||
margin-bottom: 0;
|
||||
margin-top: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.col-item .separator p i
|
||||
{
|
||||
margin-right: 5px;
|
||||
}
|
||||
.col-item .btn-add
|
||||
{
|
||||
width: 50%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-item .btn-add
|
||||
{
|
||||
border-right: 1px solid #CC9999;
|
||||
}
|
||||
|
||||
.col-item .btn-details
|
||||
{
|
||||
width: 50%;
|
||||
float: left;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.controls
|
||||
{
|
||||
margin-top: 20px;
|
||||
}
|
||||
[data-slide="prev"]
|
||||
{
|
||||
margin-right: 10px;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
14
application/views/front/footer.php
Normal file
14
application/views/front/footer.php
Normal file
@ -0,0 +1,14 @@
|
||||
<div class="container" id="foooter">
|
||||
|
||||
<hr>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<p>Copyright © Your Website 2014</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</div>
|
173
application/views/front/header.php
Normal file
173
application/views/front/header.php
Normal file
@ -0,0 +1,173 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta charset="utf-8">
|
||||
<title><?php echo $title ?></title>
|
||||
<meta name="generator" content="Bootply" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<link href="<?php echo base_url()?>asset/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<link href="<?php echo base_url()?>asset/css/styles.css" rel="stylesheet">
|
||||
<link href="<?php echo base_url()?>asset/css/custom.css" rel="stylesheet">
|
||||
<style>
|
||||
a.navbar-brand{
|
||||
background: url(<?php echo base_url()."asset/images/logo.png" ?>) top left no-repeat;
|
||||
background-size: 40px 40px;
|
||||
background-position: center;
|
||||
width:40px;
|
||||
padding-top:10px;
|
||||
margin-left:10px;
|
||||
text-align:center;
|
||||
}
|
||||
.navbar-center
|
||||
{
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
margin-top:10px;
|
||||
}
|
||||
.navbar-center a
|
||||
{
|
||||
border: solid 1px #000000;
|
||||
padding: 5px;
|
||||
}
|
||||
</style>
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
|
||||
<script src="<?php echo base_url()?>asset/bootstrap/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
//script here
|
||||
$(document).ready(function() {
|
||||
var cartcntn = $( "div.cart-content" ).html();
|
||||
$("#cartbt").popover({
|
||||
placement : 'bottom', //placement of the popover. also can use top, bottom, left or right
|
||||
title : '<div style="text-align:center; font-size:14px;"> Keranjang</div>', //this is the top title bar of the popover. add some basic css
|
||||
html: 'true', //needed to show html of course
|
||||
content : cartcntn, //this is the content of the html box. add the image here or anything you want really.
|
||||
trigger: 'hover'
|
||||
});
|
||||
var logincntn = $( "div.login-content" ).html();
|
||||
$("#loginbt").popover({
|
||||
placement : 'bottom', //placement of the popover. also can use top, bottom, left or right
|
||||
title : '<div style="text-align:center; font-size:14px;"> Keranjang</div>', //this is the top title bar of the popover. add some basic css
|
||||
html: 'true', //needed to show html of course
|
||||
content : logincntn //this is the content of the html box. add the image here or anything you want really.
|
||||
//trigger: 'hover'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- nav header -->
|
||||
<div id="top-nav" class="navbar navbar-default navbar-fixed-top">
|
||||
<div class="container-fluid">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<!--<a class="navbar-brand" href="#"></a>-->
|
||||
<div class="navbar-center">
|
||||
<form class="navbar-form" role="search" style="display:inline">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" placeholder="Search Product" style="width:300px">
|
||||
<div class="input-group-btn">
|
||||
<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<a href="<?php echo site_url('cart') ?>" id="cartbt" style="display:inline" class="btn btn-primary">
|
||||
<i class="glyphicon glyphicon-shopping-cart"></i> Keranjang Belanja(<span id="total-cart" style="display: inline-block;"><?php echo $this->cart->total_items(); ?></span>)
|
||||
</a>
|
||||
<div class="cart-content" style="display:none">
|
||||
<div id="popOverCart" style="">
|
||||
<table>
|
||||
<thead><tr>
|
||||
<td width="100px">Nama</td>
|
||||
<td width="50px">Qty</td>
|
||||
<td>Harga</td>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php foreach ($this->cart->contents() as $items): ?>
|
||||
<tr>
|
||||
<td><?php echo $items['name']; ?></td>
|
||||
<td><?php echo $items['qty']; ?></td>
|
||||
<td>Rp. <?php echo $this->cart->format_number($items['price']); ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
<tfoot><tr style="border-top:solid 1px #000000">
|
||||
<td>Total</td>
|
||||
<td colspan="2"><b>Rp. <?php echo $this->cart->format_number($this->cart->total()); ?></b></td>
|
||||
</tr></tfoot>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<?php if($this->session->userdata('logged_in')){ ?>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" role="button" data-toggle="dropdown" href="#"><i class="glyphicon glyphicon-user"></i> <?php echo $this->session->userdata('username') ?> <span class="caret"></span></a>
|
||||
<ul id="g-account-menu" class="dropdown-menu" role="menu">
|
||||
<li><a href="#">My Profile</a></li>
|
||||
<?php if ($this->session->userdata('type') == "ADMIN"){ ?>
|
||||
<li><a href="<?php echo site_url('su/dashboard') ?>">Admin Panel</a></li>
|
||||
<?php } ?>
|
||||
<li role="separator" class="divider"></li>
|
||||
<li><a href="<?php echo site_url('user/logout') ?>"><i class="glyphicon glyphicon-lock"></i> Logout</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<?php }else{ ?>
|
||||
<li id="loginbt"><a role="button" href="#"><i class="glyphicon glyphicon-user"></i> Login <span class="caret"></span></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<div class="login-content" style="display:none">
|
||||
<!--
|
||||
<div id="popOverLogin">
|
||||
<form action="<?php echo site_url('user/login') ?>" method="post">
|
||||
<input type="text" name="username" placeholder="Username">
|
||||
<input type="password" name="password" placeholder="Password">
|
||||
<input type="submit" value="Login">
|
||||
</form>
|
||||
</div>
|
||||
-->
|
||||
|
||||
<div class="container">
|
||||
<form id="login-form" class="form-horizontal" style="" action="<?php echo site_url('user/login') ?>" method="post">
|
||||
<div class="col-md-4">
|
||||
<div class="form-group">
|
||||
<div class="col-sm-8">
|
||||
<input type="text" name="username" class="form-control" id="inputEmail3" placeholder="Username">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-8">
|
||||
<input type="password" name="password" class="form-control" id="inputPassword3" placeholder="Password">
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-primary" type="submit">Log in</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- header -->
|
||||
<div class="container" id="main-body">
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<!-- logo -->
|
||||
<div class="row">
|
||||
<div class="col-md-1" id="logo">
|
||||
<img src="<?php echo base_url()."asset/images/bglogo.png" ?>"alt="logo" width="700px"></img>
|
||||
</div>
|
||||
</div>
|
61
application/views/front/produk.php
Normal file
61
application/views/front/produk.php
Normal file
@ -0,0 +1,61 @@
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="row">
|
||||
<ul class="list-group" id="menu2">
|
||||
<li class="list-group-item <?php if ($active=="Home") echo "active" ?>"><a href="<?php echo site_url('welcome') ?>"><i class="glyphicon glyphicon-home"></i> Home</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Produk") echo "active" ?>"><a href="<?php echo site_url('product') ?>"><i class="glyphicon glyphicon-baby-formula"></i> Produk</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Testimoni") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-thumbs-up"></i> Testimoni</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Cara Berberlanja") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-info-sign"></i> Cara Berbelanja</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Contact Us") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-earphone"></i> Contact Us</a></li>
|
||||
<li class="list-group-item <?php if ($active=="About Us") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-briefcase"></i> About Us</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="row">
|
||||
<ul class="list-group" id="kategori">
|
||||
<?php foreach($kategori as $kat) { ?>
|
||||
<li class="list-group-item <?php if ($active=="Home") echo "active" ?>"><a href="#"> <?php echo $kat['Nama'] ?></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="row">
|
||||
<?php
|
||||
$a = 0;
|
||||
foreach($barang as $brg)
|
||||
{
|
||||
$a=$a+1;
|
||||
?>
|
||||
<form action="<?php echo site_url('cart/tambah') ?>" method="post">
|
||||
<input type="hidden" name="id" value="<?php echo $brg['id']?>">
|
||||
<input type="hidden" name="nama" value="<?php echo $brg['nama']?>">
|
||||
<input type="hidden" name="harga" value="<?php echo $brg['harga']?>">
|
||||
<div class="col-sm-4 col-lg-4 col-md-4">
|
||||
<div class="thumbnail">
|
||||
<img src="http://placehold.it/320x150" alt="">
|
||||
<div class="caption">
|
||||
<h4 class="pull-right">Rp. <?php echo $brg['harga']?></h4>
|
||||
<h4><a href="#"><?php echo $brg['nama']?></a></h4>
|
||||
<p><?php echo $brg['deskripsi']?>.</p>
|
||||
</div>
|
||||
<div class="ratings">
|
||||
<p class="pull-right">
|
||||
<input type="hidden" name="qty" value="1">
|
||||
<button class="btn btn-xs btn-primary"><i class="glyphicon glyphicon-shopping-cart"></i> Add to Cart</button>
|
||||
</p>
|
||||
<p>
|
||||
<?php if(($brg['stok'])>0)echo "In Stock";
|
||||
else echo "out of stock";?><br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php }?>
|
||||
<?php echo $pagination ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
29
application/views/front/shopstep.php
Normal file
29
application/views/front/shopstep.php
Normal file
@ -0,0 +1,29 @@
|
||||
<div class="row bs-wizard">
|
||||
<div class="col-xs-3 bs-wizard-step complete">
|
||||
<div class="text-center bs-wizard-stepnum">Step 1</div>
|
||||
<div class="progress"><div class="progress-bar"></div></div>
|
||||
<a href="#" class="bs-wizard-dot"><img src="<?php echo base_url()."asset/images/man251.png" ?>" /></a>
|
||||
<div class="bs-wizard-info text-center"> Pilih Produk</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-3 bs-wizard-step active"><!-- complete -->
|
||||
<div class="text-center bs-wizard-stepnum">Step 2</div>
|
||||
<div class="progress"><div class="progress-bar"></div></div>
|
||||
<a href="#" class="bs-wizard-dot"><img src="<?php echo base_url()."asset/images/full22.png" ?>" /></a>
|
||||
<div class="bs-wizard-info text-center"> Periksa Keranjang Belanja Anda</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-3 bs-wizard-step disabled"><!-- complete -->
|
||||
<div class="text-center bs-wizard-stepnum">Step 3</div>
|
||||
<div class="progress"><div class="progress-bar"></div></div>
|
||||
<a href="#" class="bs-wizard-dot"><img src="<?php echo base_url()."asset/images/shopping145.png" ?>" /></a>
|
||||
<div class="bs-wizard-info text-center"> Checkout</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-3 bs-wizard-step disabled"><!-- active -->
|
||||
<div class="text-center bs-wizard-stepnum">Step 4</div>
|
||||
<div class="progress"><div class="progress-bar"></div></div>
|
||||
<a href="#" class="bs-wizard-dot"><img src="<?php echo base_url()."asset/images/happy50.png" ?>" /></a>
|
||||
<div class="bs-wizard-info text-center"> Selesai</div>
|
||||
</div>
|
||||
</div>
|
0
application/views/front/sidebarb.php
Normal file
0
application/views/front/sidebarb.php
Normal file
58
application/views/front/slideshow.php
Normal file
58
application/views/front/slideshow.php
Normal file
@ -0,0 +1,58 @@
|
||||
<div class="row row-slideshow">
|
||||
<div class="col-md-3" id="menu">
|
||||
<!--
|
||||
<ul class="mainmenu nav nav-stacked">
|
||||
<li>Home</li>
|
||||
<li>Produk</li>
|
||||
<li>Testimoni</li>
|
||||
<li>Cara Berbelanja</li>
|
||||
<li>Contact Us</li>
|
||||
<li>About Us</li>
|
||||
</ul>
|
||||
-->
|
||||
<ul class="list-group" id="menu-home">
|
||||
<li class="list-group-item <?php if ($active=="Home") echo "active" ?>"><a href="<?php echo site_url('welcome') ?>"><i class="glyphicon glyphicon-home"></i> Home</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Produk") echo "active" ?>"><a href="<?php echo site_url('product') ?>"><i class="glyphicon glyphicon-baby-formula"></i> Produk</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Testimoni") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-thumbs-up"></i> Testimoni</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Cara Berberlanja") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-info-sign"></i> Cara Berbelanja</a></li>
|
||||
<li class="list-group-item <?php if ($active=="Contact Us") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-earphone"></i> Contact Us</a></li>
|
||||
<li class="list-group-item <?php if ($active=="About Us") echo "active" ?>"><a href="#"><i class="glyphicon glyphicon-briefcase"></i> About Us</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-9" id="slideshow">
|
||||
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
|
||||
<!-- Indicators -->
|
||||
<ol class="carousel-indicators">
|
||||
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
|
||||
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
|
||||
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
|
||||
</ol>
|
||||
<!-- Wrapper for slides -->
|
||||
<div class="carousel-inner" role="listbox">
|
||||
<div class="item active">
|
||||
<img src="<?php echo base_url()."asset/images/slider1.jpg" ?>" alt="...">
|
||||
<div class="carousel-caption">
|
||||
<h3>Toko</h3>
|
||||
<p>Dzaky</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="<?php echo base_url()."asset/images/slider2.jpg" ?>" alt="...">
|
||||
<div class="carousel-caption">
|
||||
<h3>Toko</h3>
|
||||
<p>Dzaky</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Controls -->
|
||||
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
|
||||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
||||
<span class="sr-only">Previous</span>
|
||||
</a>
|
||||
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
|
||||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
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>
|
15
application/views/test.php
Normal file
15
application/views/test.php
Normal file
@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<ul>
|
||||
<?php
|
||||
foreach ($kategori as $k) {
|
||||
//echo $k->Nama;
|
||||
if ( $k->id !=0){
|
||||
echo "<li>".$k->Nama."</li>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
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