]]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']; $cat_id=$_GET['sub_cat']; if(isset($post_id) and !empty($post_id)) { $where = array( 'id' => $_GET["post_id"] ); if($sel_obj->delete("pincode", $where)) { $sel_obj->alert('pincode.php?a=1'); } } if($_SERVER['REQUEST_METHOD']=='POST' AND isset($_POST['submit'])) { if(!empty($_POST["multid"])) { $array[]=$_POST["multid"]; $rowCount=count($array); for($i = 0; $i < $rowCount; $i++) { foreach($array=$_POST["multid"] as $value) { $where_multi_delete = array( 't_id' => $value ); $del_all=$sel_obj->delete("pincode", $where_multi_delete); } } if($del_all) { ?> <script type="text/javascript"> alert("delete ok"); </script> <?php } } else { ?> <script type="text/javascript">alert("No item selected");</script> <?php } } $get_ticket_cat_id_con="`cat_id`=".$cat_id; $get_ticket_cat_id_query=$sel_obj->display_rcd('categories',$get_ticket_cat_id_con); if(is_array($get_ticket_cat_id_query) || !empty($get_ticket_cat_id_query)) { foreach ($get_ticket_cat_id_query as $ticket_cat) { } } $ticket_name=$ticket_cat['category_name']; $ticket_number=$ticket_cat['parent_id']; ?> <?php include("sidebar.php");?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1 class="m-0 text-dark">Pincode</h1> </div><!-- /.col --> <div class="col-sm-6"> <ol class="breadcrumb float-sm-right"> </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"> <form method="POST"> <div class="card-header"> <h3 class="card-title"><a href="add_pincode.php" class="btn btn-info float-left">Add Pincode</a> </h3> <h3 class="card-title float-right"> <button type="submit" onclick='confirm("Are you sure you want to delete...?");' name="submit" class="btn btn-danger"> <i class="fa fa-trash"></i> Delete All</button></h3> </div> <!-- /.card-header --> <div class="card-body"> <input type="hidden" value="<?php echo $cat_id;?>" id="cat_id"> <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>"; ?> <script> var timer = setTimeout(function() { window.location = "pincode.php"; },500); </script> <?php } ?> <tr> <td><input type="checkbox" id="check_all"></td> <th>S.No</th> <th>Pincode</th> <th>Action</th> </tr> </thead> <tbody> <?php $a=0; $query=$sel_obj->select('pincode'); if(is_array($query) || !empty($query)) { foreach ($query as $sub_data) { ?> <tr> <td><input type="checkbox" class="value_all" name="multid[]" value="<?php echo $sub_data['id'];?>"></td> <td><?php echo $a+1;?></td> <td><?php echo $sub_data['pincode'];?></td> <td class="td_alignvertical"> <a href="add_pincode.php?edit=1&post_id=<?php echo $sub_data["id"];?>" class="btn btn-info" data-toggle="tooltip" data-original-title="Edit"><i class="fa fa-edit"></i></a> | <a href="pincode.php?delete=1&post_id=<?php echo $sub_data['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> </form> </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...?")) { return true; } else { return false; } }); </script> <script type="text/javascript"> window.setTimeout(function() { $(".alert").fadeTo(1000, 0).slideUp(100, function(){ $(this).remove(); }); }, 1000); </script> <script type="text/javascript"> $(document).on("click","#check_all", function() { $('.value_all').prop('checked', this.checked); }); </script>