ok
Direktori : /proc/self/root/proc/thread-self/root/proc/self/root/home2/selectio/www/wedding-info/ |
Current File : //proc/self/root/proc/thread-self/root/proc/self/root/home2/selectio/www/wedding-info/religion.php |
<div id="reload"> <?php include('header.php'); $ids = $_GET['ids']; if(isset($ids) and $ids!=""){ $statement = $pdo->prepare("SELECT * FROM tbl_category WHERE sub_cat_id = $ids"); $statement->execute(); $datas = $statement->fetchAll(PDO::FETCH_ASSOC); $totalData = $statement->rowCount(); $statement_name = $pdo->prepare("SELECT * FROM tbl_category WHERE id = $ids"); $statement_name->execute(); $datas_name = $statement_name->fetchAll(PDO::FETCH_ASSOC); $heading =$datas_name[0]['cat_name']; $caste="Caste"; } else{ $statement = $pdo->prepare("SELECT * FROM tbl_category WHERE sub_cat_id =0"); $statement->execute(); $datas = $statement->fetchAll(PDO::FETCH_ASSOC); $totalData = $statement->rowCount(); $tag= $datas[0]["add_productdetails"]=="YES"?"Caste Avail":""; $heading=""; $Caste="Religion"; } ?> <div class="page-wrapper"> <div class="page-content" > <div class=" card card-body"> <div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3"> <div class="breadcrumb-title" style=" text-transform: capitalize;">Religion Details :<?=$heading?></div> <div class="ms-auto"> <div class="btn-group"> <a href="religion-create.php?ids=<?=$ids?>" class="btn btn-sm btn-add"><i class="lni lni-circle-plus"></i> Create <?=$caste?></a> </div> </div> </div> <div class="row g-3"> <div class="col-12 col-lg-4"> <div class="input-group mb-3"> <span class="input-group-text" id="basic-addon1"><i class="lni lni-search-alt"></i></span> <input type="text" class="form-control" id="search-address" autocomplete="off" placeholder="Search Details"> </div> </div> <!--address details start--> <div class="row" id="pickup_address_list"> <?php foreach($datas as $data){ ?> <div class="col-12 col-lg-3 col-sm-6 zodiac_<?=$data['id']?>"> <a href="religion.php?ids=<?=$data['id']?>" > <div class="card" style="position: relative;"> <p style=" position: absolute; width: 74px; background-color: darkgoldenrod; color: white; text-align: center; border-radius: 15px;"> <?=$tag ?></p> <center><img src="<?=$data['product_img']; ?>" alt="user avatar" style="width: 100%;height: 200px;"></center> <div class="col-12" style="padding:5px 5px;"> <center><b><?=$data['cat_name']?></b></center> </div> <div class="col-12" style="padding:10px 5px;"> <center> <a class="update" href="religion_edit.php?id=<?=$data['id'] ?>"><i class="lni lni-pencil-alt"></i> Update</a> <a class="delete" onclick="rel_delete(<?=$data['id'] ?>)"><i class="lni lni-trash"></i> Delete</a> </center> </div> </div></a> </div> <?php } ?> </div> <!--address details end--> </div><!---end row--> </div> </div> </div> </div> <script> function rel_delete(ids){ var result = confirm("Confirm want to delete this File Details?"); if(result){ $.ajax({ url: 'api/religion_delete.php?ids='+ids, type: 'post', dataType: 'json', cache: false, contentType: false, processData: false, success: function(response) { console.log(response); if (response['status'] == 200) { success(response['message']); $(".zodiac_"+ids).remove(); /*window.location.reload();*/ } else { warning(response['message']); } } }); }} </script> <?php include('footer.php'); ?>