]]jkjjgdjffksdkdxdsghfghdfghfgdfsdsdfsdfsfdsbcxvxcbccwewqeqwewqskfgj
במ12[cxvbcxvbxcvbcxvcxvbcvxcvbsdfsdfsdfsdfsdfsdfxcvbxcvxbbxqwqewqewv;'
/
home
/
u506006416
/
domains
/
crystalmiracle.co.in
/
public_html
/
admin
/
Upload FileeE
HOME
<?php include("header.php"); $sel_obj= new config(); ?> <?php @$post_id=$_GET['post_id']; if(isset($post_id) and !empty($post_id)){ $where = array( 'p_id' => $_GET["post_id"] ); if($sel_obj->delete("product", $where)) { $sel_obj->delete("multi_p_img", $where); $sel_obj->delete("multiple_category", $where); $sel_obj->alert('all_product.php?a=1'); } } ?> <?php include("sidebar.php");?> <div class="content-wrapper"> <div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1 class="m-0 text-dark">Products</h1> </div> <!-- /.col --> <div class="col-sm-6"> <ol class="breadcrumb float-sm-right"> <li class="breadcrumb-item"><a href="#">Home</a></li> <li class="breadcrumb-item active">Products</li> </ol> </div> <!-- /.col --> </div> <!-- /.row --> </div> <!-- /.container-fluid --> </div> <!-- /.content-header --> <!-- Main content --> <section class="content"> <div class="container-fluid"> <!-- Small boxes (Stat box) --> <!-- /.row --> <!-- Main row --> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h3 class="card-title"><a href="product.php" class="btn btn-info float-right">Add Product</a></h3> </div> <!-- /.card-header --> <div class="card-body"> <table id="example1" class="table table-bordered table-striped"> <thead> <?php if(!empty($_GET['a'])){ echo $msg="<div class='alert alert-success'> <strong>Delete Succesfully</strong> </div>"; echo " <script type='text/javascript'> var timer = setTimeout(function() { window.location='all_product.php' },1000); </script>"; } ?> <tr> <th>S.No</th> <th>Image</th> <!-- <th>Category-Brand</th> --> <th width="22%">Product Name</th> <th>M.R.P.(₹)</th> <th>Selling Price(₹)</th> <th>Quantity</th> <th>Status</th> <th width="12%">Action</th> </tr> </thead> <tbody> <?php $a=0; $condition1 = "`type`= 1"; $query=$sel_obj->display_rcd('product',$condition1); if(is_array($query) || !empty($query)) { foreach ($query as $data) { ?> <tr> <td><?php echo $a+1;?></td> <td><img class="img-thumbnail" width="75" height="50" src="upload/<?php echo $data['p_img'];?>"></td> <td class="td_alignvertical"><span><?php echo $data['p_name'];?></span></td> <td><?php echo $data['price'];?></td> <td><?php echo $data['d_price'];?></td> <td class="td_alignvertical"> <?php if ($data['quan_available']<10) { ?> <span class="text-danger"><?php echo $data['quan_available'];?></span> <?php }else{ ?> <span class="text-dark"><?php echo $data['quan_available'];?></span> <?php } ?> </td> <td> <?php if($data['status']=='1'){?> <span class="badge badge-success">Enabled</span><?php } else {?> <span class="badge badge-danger">Disabled</span><?php }?> </td> <td class="td_alignvertical"> <a href="product.php?edit=1&post_id=<?php echo $data["p_id"];?>" class="btn btn-info"><i class="fa fa-edit"></i></a> | <a href="all_product.php?delete=1&post_id=<?php echo $data['p_id']; ?>" style="color:#fff;" class="btn btn-danger btn-sm delete_coupon" class="btn btn-danger"><i class="fa fa-trash"></i></a> </td> </tr> <?php $a++; } } ?> </tbody> </table> </div> <!-- /.card-body --> </div> </div> </div> <!-- /.row (main row) --> </div> <!-- /.container-fluid --> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php include("footer.php");?> <script type="text/javascript"> $(document).on('click','.delete_coupon',function(){ var post_id = $(this).attr("id"); if(confirm("Are you sure you want to delete ?")) { // window.location.href = "all_coupon.php?delete=1&post_id="+post_id; return true; } else { return false; } }); </script> <script type="text/javascript"> window.setTimeout(function() { $(".alert").fadeTo(1000, 0).slideUp(100, function(){ $(this).remove(); }); }, 1000); </script>