Skip to content

Commit

Permalink
CoreConduit upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsandbots committed Apr 10, 2019
1 parent 013a6c8 commit 88449bd
Showing 1 changed file with 59 additions and 7 deletions.
66 changes: 59 additions & 7 deletions admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,100 +15,141 @@
?>
<?php include_once('layouts/header.php'); ?>

<!-- ************************* -->
<div class="row">
<div class="col-md-6">
<?php echo display_msg($msg); ?>
</div>
</div>
<!-- ************************* -->
<div class="row">
<div class="col-md-3">
<div class="panel panel-box clearfix">
<div class="panel-icon pull-left bg-green">

<i class="glyphicon glyphicon-user"></i>

</div>
<div class="panel-value pull-right">
<h2 class="margin-top"> <?php echo $c_user['total']; ?> </h2>
<p class="text-muted">Users</p>
</div>
</div>
</div>
<!-- ************************* -->
<div class="col-md-3">
<div class="panel panel-box clearfix">
<div class="panel-icon pull-left bg-red">

<i class="glyphicon glyphicon-list"></i>

</div>
<div class="panel-value pull-right">
<h2 class="margin-top"> <?php echo $c_categorie['total']; ?> </h2>
<p class="text-muted">Categories</p>
</div>
</div>
</div>
<!-- ************************* -->
<div class="col-md-3">
<div class="panel panel-box clearfix">
<div class="panel-icon pull-left bg-blue">

<i class="glyphicon glyphicon-shopping-cart"></i>

</div>
<div class="panel-value pull-right">
<h2 class="margin-top"> <?php echo $c_product['total']; ?> </h2>
<p class="text-muted">Products</p>
</div>
</div>
</div>
<!-- ************************* -->
<div class="col-md-3">
<div class="panel panel-box clearfix">
<div class="panel-icon pull-left bg-yellow">

<i class="glyphicon glyphicon-usd"></i>

</div>
<div class="panel-value pull-right">
<h2 class="margin-top"> <?php echo $c_sale['total']; ?></h2>
<p class="text-muted">Sales</p>
</div>
</div>
</div>
<!-- ************************* -->
</div>
<div class="row">

<script>
function closePanel()
{
var x = document.getElementById("myDIV");
if (x.style.display === "none")
{
x.style.display = "block";
} else {
x.style.display = "none";
}
}
</script>

<div class="row" id="myDIV">
<div class="col-md-12">
<div class="panel">
<div class="jumbotron text-center">
<h1>Thank You! for your support and love.</h1>
<p> <strong>OSWA-INV v2</strong> way more better then <strong> v1 </strong>.
</br>If you have a question regarding the usage of this applications, please ask on <a href="https://www.facebook.com/oswapp" title="Facebook" target="_blank">Facebook</a> OSWA Fan page.</p>
<div class="pull-right">
<a href="#" onclick="closePanel();" class="btn btn-xs btn-danger" data-toggle="tooltip" title="Close"><i class="glyphicon glyphicon-remove"></i></a>
</div>

<div class="jumbotron text-center">
<h3>Welcome!</h3>Contact support for additional assistance.
</div>

</div>
</div>
</div>
<!-- ************************* -->
<div class="row">
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
<strong>
<span class="glyphicon glyphicon-th"></span>
<span>Highest Saleing Products</span>
<span>Highest Selling Products</span>
</strong>
</div>

<div class="panel-body">
<table class="table table-striped table-bordered table-condensed">

<thead>
<tr>
<th>Title</th>
<th>Total Sold</th>
<th>Total Quantity</th>
<tr>
</thead>


<tbody>

<?php foreach ($products_sold as $product_sold): ?>

<tr>
<td><?php echo remove_junk(first_character($product_sold['name'])); ?></td>
<td><?php echo (int)$product_sold['totalSold']; ?></td>
<td><?php echo (int)$product_sold['totalQty']; ?></td>
</tr>

<?php endforeach; ?>


<tbody>
</table>
</div>
</div>
</div>
<!-- ************************* -->
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
Expand All @@ -128,6 +169,8 @@
</tr>
</thead>
<tbody>


<?php foreach ($recent_sales as $recent_sale): ?>
<tr>
<td class="text-center"><?php echo count_id();?></td>
Expand All @@ -141,11 +184,15 @@
</tr>

<?php endforeach; ?>


</tbody>
</table>
</div>
</div>
</div>
<!-- ************************* -->

<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading">
Expand All @@ -157,6 +204,8 @@
<div class="panel-body">

<div class="list-group">


<?php foreach ($recent_products as $recent_product): ?>
<a class="list-group-item clearfix" href="edit_product.php?id=<?php echo (int)$recent_product['id'];?>">
<h4 class="list-group-item-heading">
Expand All @@ -171,10 +220,13 @@
</span>
</h4>
<span class="list-group-item-text pull-right">
<?php echo remove_junk(first_character($recent_product['categorie'])); ?>
<?php echo remove_junk(first_character($recent_product['category'])); ?>
</span>
</a>

<?php endforeach; ?>


</div>
</div>
</div>
Expand Down

0 comments on commit 88449bd

Please sign in to comment.