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>
|
Reference in New Issue
Block a user