file_get_contents
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
u247928417
/
domains
/
riddi.in
/
public_html
/
admin
/
Filename :
view-store.php
back
Copy
<?php include ("session/session.php"); error_reporting(0); include ("config/config.php"); $str_list = "SELECT * FROM `stores` WHERE `status_store` = 'Active'"; $str_list_res =mysqli_query($conn,$str_list) or die(mysqli_error()); if (isset($_REQUEST['store_del'])) { $del_store = "UPDATE `stores` SET `status_store`='Inactive' WHERE `store_id` = '" . $_REQUEST['store_del'] . "'"; $del_res =mysqli_query($conn,$del_store) or die(mysqli_error()); if ($del_res) { echo '<script>alert("Store Information is deleted successfully.")</script>'; echo "<meta http-equiv='refresh' content='0; url=view-store'/>"; } } ?> <!DOCTYPE html> <html lang="en"> <head> <?php include './panel-files/head.php'; ?> </head> <body> <?php include './panel-files/header.php'; include './panel-files/menu.php'; ?> <!-- /subnavbar --> <div class="main"> <div class="main-inner"> <div class="container"> <center> <a href="add-store">Add Store</a> / <a href="inactive-store">View Inactive Store</a> </center> <div class="row"> <div class="span2"> <div class="widget widget-nopad"> <div class="widget-content"> </div> </div> </div> <div class="span12"> <div class="widget widget-nopad"> <div class="widget-header"> <i class="icon-list-alt"></i> <h3> List of Active Stores </h3> </div> <div class="widget-content"> <div class="widget big-stats-container"> <div class="widget-content" align="center"> <?php if ($row = mysqli_num_rows($str_list_res)) { echo '<table class="table table-striped table-bordered"> <thead> <tr> <th> Store Code </th> <th> Store Name </th> <th> Store Contact </th> <th> Store Address </th> <th> Store Location </th> <th> City </th> <th class="td-actions"> Action</th> </tr> </thead>'; while ($str_list_data = mysqli_fetch_assoc($str_list_res)) { echo '<tbody> <tr> <td>' . $str_list_data['store_code'] . '</td> <td>' . $str_list_data['store_name'] . '</td> <td>' . $str_list_data['store_contact_no'] . '</td> <td>' . $str_list_data['store_address'] . '</td> <td>' . $str_list_data['store_location'] . '</td> <td>' . $str_list_data['city'] . '</td> <td> <a href="edit-store?store_id=' . $str_list_data['store_id'] . '"><i class="icon-pencil"></i></a> <a href="view-store?store_del=' . $str_list_data['store_id'] . '" onClick="return checkdelete();"><i class="icon-trash"></i></a> </td> </tr>'; } echo '</tbody> </table>'; } else { ?> <h6 class="bigstats"> <div class="controls"> <div class="alert alert-info"> <strong>Warning !</strong> No store added. </div> </div> </h6> <?php } ?> </div> </div> </div> </div> </div> </div> </div> <!-- /container --> </div> <!-- /main-inner --> </div> <?php include('panel-files/footer.php');?> <!-- /footer-inner --> </div> <script type="text/javascript"> $(document).ready(function () { var navListItems = $('div.setup-panel div a'), allWells = $('.setup-content'), allNextBtn = $('.nextBtn'); allWells.hide(); navListItems.click(function (e) { e.preventDefault(); var $target = $($(this).attr('href')), $item = $(this); if (!$item.hasClass('disabled')) { navListItems.removeClass('btn-primary').addClass('btn-default'); $item.addClass('btn-primary'); allWells.hide(); $target.show(); $target.find('input:eq(0)').focus(); } }); allNextBtn.click(function(){ var curStep = $(this).closest(".setup-content"), curStepBtn = curStep.attr("id"), nextStepWizard = $('div.setup-panel div a[href="#' + curStepBtn + '"]').parent().next().children("a"), curInputs = curStep.find("input[type='text'],input[type='url'],textarea[textarea]"), isValid = true; $(".form-group").removeClass("has-error"); for(var i=0; i<curInputs.length; i++){ if (!curInputs[i].validity.valid){ isValid = false; $(curInputs[i]).closest(".form-group").addClass("has-error"); } } if (isValid) nextStepWizard.removeAttr('disabled').trigger('click'); }); $('div.setup-panel div a.btn-primary').trigger('click'); }); </script> </body> </html>