ok
Direktori : /home2/selectio/public_html/wedding-info-new/ |
Current File : /home2/selectio/public_html/wedding-info-new/backupajay.php |
<?php include "header.php"; $u_id=$_SESSION['user']['id']; // $query = "select tbl_alliances_register.* ,(select COUNT(id) FROM tbl_rewards WHERE tbl_rewards.user_id=tbl_alliances_register.id and tbl_rewards.verification_status='1') as verify from tbl_alliances_register WHERE id = ". $u_id; $query = "select * from tbl_alliances_register WHERE id = ". $u_id; $prepared2 = $pdo->prepare($query); $prepared2->execute(); $result = $prepared2->fetchAll(PDO::FETCH_ASSOC); // folower // Assuming $u_id is the user ID you want to use in your SQL query // Prepare the SQL statement with a placeholder $sql = "SELECT * FROM `tbl_wishlist` WHERE alliance_id = ".$u_id; $prepared_f = $pdo->prepare($sql); $prepared_f->execute(); $results = $prepared_f->fetchAll(PDO::FETCH_ASSOC); $followers = $prepared_f->rowCount(); // Now $results contains the fetched rows from the database $query1 = "select * from tbl_seller_product_img where user_id = ".$u_id; $prepared3 = $pdo->prepare($query1); $prepared3->execute(); $result2 = $prepared3->fetchAll(PDO::FETCH_ASSOC); $pic_row = $prepared3->rowCount(); $query_rwd = "select * from tbl_rewards where user_id = ".$u_id; $prepared_rwd = $pdo->prepare($query_rwd); $prepared_rwd->execute(); $result_rwd = $prepared_rwd->fetchAll(PDO::FETCH_ASSOC); $pic_row_rwd = $prepared_rwd->rowCount(); $query2 = "select * from tbl_avl where user_id = ".$u_id; $prepared3 = $pdo->prepare($query2); $prepared3->execute(); $available = $prepared3->fetchAll(PDO::FETCH_ASSOC); $query = "select * from seller_product_forms where seller_id = ". $_SESSION['user']['id']; $prepared = $pdo->prepare($query); $prepared->execute(); $forms = $prepared->fetchAll(PDO::FETCH_ASSOC); //$query4 = "SELECT tbl_product.*, tbl_product_seller.* FROM tbl_product LEFT JOIN tbl_product_seller ON tbl_product_seller.product_ids = tbl_product.id WHERE tbl_product.sub_category_avl = 'NO' AND tbl_product.id IN ( SELECT cat FROM tbl_seller UNION SELECT sub_cat FROM tbl_seller )"; // SELECT * FROM `tbl_product` LEFT JOIN tbl_product_seller ON tbl_product_seller.product_ids=tbl_product.id LEFT JOIN seller_product_forms ON seller_product_forms.seller_id=1 WHERE tbl_product.id=4 $user_deatils = $pdo->prepare("SELECT * FROM `tbl_seller` WHERE id=".$u_id); error_log("SELECT * FROM `tbl_seller` WHERE id=".$u_id); error_log($u_id); $user_deatils->execute(); $usersss = $user_deatils->fetchAll(PDO::FETCH_ASSOC); error_log($usersss[0]['sub_cat']); if($usersss[0]['sub_cat']==""){ $category_id_seller = $usersss[0]['cat']; error_log($usersss[0]['cat']); }else{ $category_id_seller = $usersss[0]['sub_cat']; error_log($usersss[0]['cat']); } error_log("Category ID: ".$category_id_seller); $query4 = "SELECT * FROM `tbl_product` LEFT JOIN tbl_product_seller ON tbl_product_seller.product_ids=tbl_product.id WHERE tbl_product.id=".$category_id_seller.""; $prepared4 = $pdo->prepare($query4); $prepared4->execute(); $form = $prepared4->fetchAll(PDO::FETCH_ASSOC); error_log("SELECT * FROM `tbl_product` LEFT JOIN tbl_product_seller ON tbl_product_seller.product_ids=tbl_product.id LEFT JOIN seller_product_forms ON seller_product_forms.seller_id=".$_SESSION['user']['id'] . " WHERE tbl_product.id=".$category_id_seller.""); $query5 = "select seller_product_forms.id as id, seller_product_forms.seller_id as seller_id, seller_product_forms.field1 AS label1, seller_product_forms.field2 AS label2, seller_product_forms.field3 AS label3, seller_product_forms.field4 AS label4, seller_product_forms.field5 AS label5, seller_product_forms.field6 AS label6, seller_product_forms.field7 AS label7, seller_product_forms.field8 AS label8, seller_product_forms.field9 AS label9, seller_product_forms.field10 AS label10, seller_product_forms.field11 AS label11, seller_product_forms.field12 AS label12, seller_product_forms.field13 AS label13, seller_product_forms.field14 AS label14, seller_product_forms.field15 AS label15, tbl_product_seller.*, tbl_product.* FROM `tbl_product` LEFT JOIN `tbl_product_seller` ON `tbl_product_seller`.`product_ids` = `tbl_product`.`id` LEFT JOIN `seller_product_forms` ON `seller_product_forms`.`seller_id` = ".$_SESSION['user']['id']." WHERE `tbl_product`.`id` =".$category_id_seller.""; $prepared5 = $pdo->prepare($query5); $prepared5->execute(); $products = $prepared5->fetchAll(PDO::FETCH_ASSOC); ?> <style> .image-container { position: relative; } .image { width: 200px; /* Set the original width of the image */ height: auto; /* Maintain aspect ratio */ } .enlarged { width: 200px; height: auto; position: absolute; top: 31%; z-index: 9999; margin-left: 25%; } .category-slider-container { width: 100%; /* Set the desired width for your container */ overflow-x: scroll; /* Enable horizontal scrolling */ white-space: nowrap; /* Prevent items from wrapping to the next line */ } body{ font-family: sans-serif; margin: 0px; } </style> <!-- user avtar section --> <!-- profile section start --> <section class="top-space pt-0" style="position:relative"> <div class="profile-detail" style="padding-bottom: 0px;padding-top: 6px; margin-left: -10px;position:relative"> <div class="media"> <img src="assets/images/user/1.png" class="img-fluid" style="width: 44px;height: 44px; margin-left: 10px; padding-left: 0px; margin-left: 5px;;border: 2px solid blue;" alt="" /> <div class="media-body"> <span style="color:green;text-align:right;position:absolute;right: 17px;top: 11px;">Online <?=$u_id?> </span> <h3 style="font-size: small;"><b><?=$result[0]['name']?></b> </h3> </div> </div> </div> <div class="profile-detail" style="padding-top: 0px;padding-bottom: 0px;padding-left: 11px;"> <p style=" line-height:20px;margin-bottom: 0px;"><b><small><?php echo $result[0]['lgl_address'].",<br>".$result[0]['name'].",".$result[0]['city'] .",".$result[0]['state']?></small></b></p> </div> <small><button style="position: absolute; top: 12px; right: 3px; top: 70px; font-size: 10px; padding: 0px;" class="btn btn-sm btn-danger" data-bs-toggle="modal" data-bs-target="#rewards">Rewards</button></small> </section> <!-- profile section end --> <!-- user avtar end --> <style> .follower_row{ padding: 50px; padding-top: 5px; padding-bottom: 5px; } .inner{ display: grid; place-items: center; /*height: 5vh;*/ } .custom-file-upload { border: 1px solid #ccc; display: inline-block; padding: 6px 12px; cursor: pointer; } .inner .btn.btn-sm { font-size: 14px; padding: 4px 14px; margin-bottom: 14px; } </style> <pre> <?php print_r($products) ?> </pre> <div class="row" style="padding-bottom: 20px; --bs-gutter-x: -2.5rem;" > <p><?=$result[0]['cat']?></p> <p><?=$result[0]['sub_cat']?></p> <div class="col-6 col-sm-6 inner" > <h3><b><?=$pic_row?></b></h3> <p>Photos</p> <button class="btn btn-solid btn-sm" data-bs-toggle="modal" data-bs-target="#editt" ><small> Edit </small> </button> <a href="#" class="btn btn-solid btn-sm">Invoice </a> </div> <div class="col-6 col-sm-6 inner" > <h3><b><?=$followers?></b></h3> <a href="followers.php"> <p>Followers</p> </a> <button class="btn btn-solid btn-sm" data-bs-toggle="modal" data-bs-target="#deactive" ><small> Disable Account </small> </button> <button class="btn btn-solid btn-sm" data-bs-toggle="modal" data-bs-target="#available" ><small> Available time </small> </button> </div> </div> <!--people deactivate start--> <div class="modal fade" id="rewards" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true" style=""> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel">Rewards</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div> <!--test--> <form id="rewards_form" method="post" enctype="multipart/form-data" > <div class="row" > <div class="col-12 col-sm-12 " > <div hidden style='padding:14px'> <label for="rewardss" class="custom-file-upload"> <input id="rewardss" name="rewards[]" type="file" /> <i class="fa fa-cloud-upload"></i> Choose Img</label><input id="submit_rewards" class="custom-file-upload" type="submit" value="upload" /> </div> <div style='padding:14px; margin:auto';> <div id="sortableImgThumbnailPreviewrewards"> </div> </div> </div> </div> </form> <div class="row" > <div class="col-4" > <a id="rewards_img"><img style=" padding: 23px; width: 120px; border: 1px solid grey; border-radius: 31px; margin: 6px 9px;;" src="assets/images/products/add.png" alt="" class="img-fluid " /></a> </div> <?php foreach ($result_rwd as $rwd) { ?> <div class="col-sm-4 col-4"> <div class="product-box ratio_square"> <h5 style=" padding-left: 95px;"><i onClick="showAlertrwd('<?=$rwd['id']?>')" class="iconly-Delete icli"></i></h5> <div class="img-part image-container"> <?php if($rwd['verification_status']==1){ ?> <img src="images/gif/verified.gif" style="width: 30px;border-radius: 50%; position: relative; bottom: 110px; left: 1px;" /> <?php } else{ ?> <img src="images/gif/pending.gif" style="width: 20px;border-radius: 50%; position: relative; bottom: 110px; left: 1px;" /> <?php } ?> <img src="<?=$rwd['photo']?>" alt="" class="img-fluid bg-img image" /> </div> </div> </div> <?php } ?> <div class="col-12" > <center><p class="text-danger" > <?=$result[0]['verify']?> out of 7 days completed. <?=(7-$result[0]['verify'])?> days left to unlock 1 month free plan </p></center> </div> </div> </div> </div> </div> </div> <!--people deactivate end--> <!--people deactivate start--> <div class="modal fade" id="deactive" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true" style=""> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel">Deactivate</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div> <center><a href="#" class="btn btn-solid btn-sm" data-bs-toggle="modal" data-bs-target="#delete" > <small>Permanently Deactivate </small></a> </center> <center><button class="btn btn-solid btn-sm" data-bs-toggle="modal" data-bs-target="#staticBackdrop" ><small> Temporarily Suspend </small> </button> </center> </div> </div> </div> </div> <!--people deactivate end--> <!--people cedit start--> <!--add modal starts--> <div class="modal fade" id="add_modal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true" style=""> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel">Form</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div> <!--tab end--> <section class="pt-0 tab-section"> <div class="tab-section"> <div class="tab-content px-15"> <div class="tab-pane fade show active" id="trending"> <div class="row gy-3 gx-3"> <?php include 'scroll.php'?> <div class="row" > <?php foreach ($form as $input) {?> <form id="seller_form" > <div class="col-12 col-sm-12"> <div <?=($input['field1'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field1" class="form-label"><?=$input['field1']?></label> <input type="field1_datatype" name="field1" id="field1" value="<?=$forms[0]['field1']?>" class="form-control" > </div> <div <?=($input['field2'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field2" class="form-label"><?=$input['field2']?></label> <input type="field2_datatype" name="field2" id="field2" value="<?=$forms[0]['field2']?>" class="form-control" > </div> <div <?=($input['field3'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field3" class="form-label"><?=$input['field3']?></label> <input type="field3_datatype" name="field3" id="field3" value="<?=$forms[0]['field3']?>" class="form-control" > </div> <div <?=($input['field4'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field4" class="form-label"><?=$input['field4']?></label> <input type="field4_datatype" name="field4" id="field4" value="<?=$forms[0]['field4']?>" class="form-control" > </div> <div <?=($input['field5'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field5" class="form-label"><?=$input['field5']?></label> <input type="field5_datatype" name="field5" id="field5" value="<?=$forms[0]['field5']?>" class="form-control" > </div> <div <?=($input['field6'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field6" class="form-label"><?=$input['field6']?></label> <input type="field6_datatype" name="field6" id="field6" value="<?=$forms[0]['field6']?>" class="form-control" > </div> <div <?=($input['field7'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field7" class="form-label"><?=$input['field7']?></label> <input type="field7_datatype" name="field7" id="field7" value="<?=$forms[0]['field7']?>" class="form-control" > </div> <div <?=($input['field8'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field8" class="form-label"><?=$input['field8']?></label> <input type="field8_datatype" name="field8" id="field8" value="<?=$forms[0]['field8']?>" class="form-control" > </div> <div <?=($input['field9'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field9" class="form-label"><?=$input['field9']?></label> <input type="field9_datatype" name="field9" id="field9" value="<?=$forms[0]['field9']?>" class="form-control" > </div> <div <?=($input['field10'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field10" class="form-label"><?=$input['field10']?></label> <input type="field10_datatype" name="field10" id="field10" value="<?=$forms[0]['field10']?>" class="form-control" > </div> <div <?=($input['field11'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field11" class="form-label"><?=$input['field11']?></label> <input type="field11_datatype" name="field11" id="field11" value="<?=$forms[0]['field11']?>" class="form-control" > </div> <div <?=($input['field12'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field12" class="form-label"><?=$input['field12']?></label> <input type="field12_datatype" name="field12" id="field12" value="<?=$forms[0]['field12']?>" class="form-control" > </div> <div <?=($input['field13'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field13" class="form-label"><?=$input['field13']?></label> <input type="field13_datatype" name="field13" id="field13" value="<?=$forms[0]['field13']?>" class="form-control" > </div> <div <?=($input['field14'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field14" class="form-label"><?=$input['field14']?></label> <input type="field14_datatype" name="field14" id="field14" value="<?=$forms[0]['field14']?>" class="form-control" > </div> <div <?=($input['field15'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field15" class="form-label"><?=$input['field15']?></label> <input type="field15_datatype" name="field15" id="field15" value="<?=$forms[0]['field15']?>" class="form-control" > </div> <br> <center><input type="submit" class="btn btn-sm btn-danger " /> </center> <br> </div> </form> <?php } ?> </div> </div> </div> </div> </div> <!--people cedit end--> <!--people calling time start--> <div class="modal fade" id="available" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel">Temproarily Disable</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <form id="available_form" > <div class="table-responsive-sm"> <table class="table table-striped"> <tr> <th></th> <th><label for="startDateTimePicker" class="form-label">Start Time:</label></th> <th><label for="startDateTimePicker" class="form-label">End Time:</label></th> </tr> <tr> <td>Monday</td> <td> <input type="time" name="mon_start_time" id="mo" class="form-control" value="<?=$available[0]['monday_start'] ?>" > </td> <td> <input type="time" name="mon_end_time" value="<?=$available[0]['monday_end'] ?>" class="form-control" > </td> </tr> <tr> <td>Tuesday</td> <td> <input type="time" name="tue_start_time" id="mo" class="form-control"value="<?=$available[0]['tuesday_start'] ?>" > </td> <td> <input type="time" name="tue_end_time" class="form-control"value="<?=$available[0]['tuesday_end'] ?>" > </td> </tr> <tr> <td>Wednesday</td> <td> <input type="time" name="wed_start_time" id="mo" class="form-control"value="<?=$available[0]['wednesday_start'] ?>" > </td> <td> <input type="time" name="wed_end_time" class="form-control"value="<?=$available[0]['wednesday_end'] ?>" > </td> </tr> <tr> <td>Thursday</td> <td> <input type="time" name="thur_start_time" id="mo" class="form-control"value="<?=$available[0]['thursday_start'] ?>" > </td> <td> <input type="time" name="thur_end_time" class="form-control"value="<?=$available[0]['thursday_end'] ?>" > </td> </tr> <tr> <td>Friday</td> <td> <input type="time" name="fri_start_time" id="mo" class="form-control"value="<?=$available[0]['friday_start'] ?>" > </td> <td> <input type="time" name="fri_end_time" class="form-control"value="<?=$available[0]['friday_end'] ?>" > </td> </tr> <tr> <td>Saturday</td> <td> <input type="time" name="sat_start_time" id="mo" class="form-control"value="<?=$available[0]['saturday_start'] ?>" > </td> <td> <input type="time" name="sat_end_time" class="form-control"value="<?=$available[0]['friday_end'] ?>" > </td> </tr> <tr> <td>Sunday</td> <td> <input type="time" name="sun_start_time" id="mo" class="form-control"value="<?=$available[0]['sunday_start'] ?>" > </td> <td> <input type="time" name="sun_end_time" class="form-control"value="<?=$available[0]['sunday_end'] ?>" > </td> </tr> </table> </div> <div class="container mt-2 mb-2 text-center"> <input type="submit" class="btn btn-sm btn-success" value="Submit"> </div> </form> </div> </div> </div> <!--people calling time end--> <!--people calling time start--> <div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel">Temproarily Disable</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <form id="deactive_form" > <div class="container mt-2 mb-2"> <label for="startDateTimePicker" class="form-label">Start Date and Time:</label> <input type="datetime-local" name="start_time" id="startDateTimePicker" value="<?=$result[0]['start_time']?>" class="form-control" > </div> <div class="container mt-2 mb-2"> <label for="endDateTimePicker" class="form-label">End Date and Time:</label> <input type="datetime-local" name="end_time" id="endDateTimePicker" value="<?=$result[0]['end_time']?>" class="form-control" > </div> <div class="container mt-2 mb-2 text-center"> <input type="submit" class="btn btn-sm btn-success" value="Submit"> </div> </form> </div> </div> </div> <!--people calling time end--> <!--people edit start--> <div class="modal fade" id="edit_profile" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel">Edit Profile</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <form id="edit_form" style="padding: 0px 15px;" > <div class="form-floating mb-4"> <select name="mother_tongue" id="mother_tongue" class="form-control"> <option value="">Select Mother Tongue</option> <option <?=($result[0]['mother_tonque'] =="Father" ? "selected":"")?> value="Tamil">Tamil</option> <option <?=($result[0]['mother_tonque'] =="Father" ? "selected":"")?> value="English">English</option> </select> <label for="one">Mother Tongue</label> </div> <div class="form-floating mb-4"> <select name="physical_status" id="physical_status" class="form-control"> <option value="">Chosse Physical Status</option> <option <?=($result[0]['phy_status'] =="Father" ? "selected":"")?> value="Normal">Normal</option> <option <?=($result[0]['phy_status'] =="Father" ? "selected":"")?> value="Physically challenged">Physically challenged </option> </select> <label for="one">Physical Status</label> </div> <div class="form-floating mb-4"> <select name="profile_created_for" class="form-control"> <option value="">Profile Created For</option> <option <?=($result[0]['profile_ctd_fr'] =="Myself" ? "selected":"")?> value="Myself">Myself</option> <option <?=($result[0]['profile_ctd_fr'] =="Father" ? "selected":"")?> value="Father">Father</option> <option <?=($result[0]['profile_ctd_fr'] =="Mother" ? "selected":"")?> value="Mother">Mother</option> <option <?=($result[0]['profile_ctd_fr'] =="Brother" ? "selected":"")?> value="Brother">Brother</option> <option <?=($result[0]['profile_ctd_fr'] =="Sister" ? "selected":"")?> value="Sister">Sister</option> <option <?=($result[0]['profile_ctd_fr'] =="Relative" ? "selected":"")?> value="Relative">Relative</option> <option <?=($result[0]['profile_ctd_fr'] =="Friend" ? "selected":"")?> value="Friend">Friend</option> <option <?=($result[0]['profile_ctd_fr'] =="Manager" ? "selected":"")?> value="Manager">Manager</option> <option <?=($result[0]['profile_ctd_fr'] =="Staff" ? "selected":"")?> value="Staff">Staff</option> </select> <label for="hobbies" class="form-label">Profile Created For :</label> </div> <div class="form-floating mb-4"> <select name="intrests" class="form-control"> <option <?=($result[0]['intrests'] =="Travel" ? "selected":"")?> value="Travel">Travel</option> <option <?=($result[0]['intrests'] =="Sports and Fittness" ? "selected":"")?> value="Sports and Fittness">Sports and Fittness</option> <option <?=($result[0]['intrests'] =="Cooking" ? "selected":"")?> value="Cooking">Cooking</option> <option <?=($result[0]['intrests'] =="Music" ? "selected":"")?> value="Music">Music</option> <option <?=($result[0]['intrests'] =="Dance" ? "selected":"")?> value="Dance">Dance</option> <option <?=($result[0]['intrests'] =="Movie and TV Shows" ? "selected":"")?> value="Movie and TV Shows">Movie and TV Shows</option> <option <?=($result[0]['intrests'] =="Pet Lover" ? "selected":"")?> value="Pet Lover">Pet Lover</option> <option <?=($result[0]['intrests'] =="Reading" ? "selected":"")?> value="Reading">Reading</option> <option <?=($result[0]['intrests'] =="Photography" ? "selected":"")?> value="Photography">Photography</option> <option <?=($result[0]['intrests'] =="Mobile Gaming" ? "selected":"")?> value="Mobile Gaming">Mobile Gaming</option> <option <?=($result[0]['intrests'] =="Social media" ? "selected":"")?> value="Social media">Social media</option> <option <?=($result[0]['intrests'] =="Journalism" ? "selected":"")?> value="Journalism">Journalism</option> <option <?=($result[0]['intrests'] =="Art" ? "selected":"")?> value="Art">Art</option> <option <?=($result[0]['intrests'] =="Child Care" ? "selected":"")?> value="Child Care">Child Care</option> </select> <label for="hobbies" class="form-label">Hobbies and Interests :</label> </div> <div class="form-floating mb-4"> <label for="mobile" class="form-label">Secondary Mobile Number:</label> <input type="text" name="mobile" id="mobile" value="<?=$result[0]['mobile_no_alt']?>" class="form-control" > </div> <div class="form-floating mb-4"> <select name="occupation" id="occupation" class="form-control"> <option value="">Chosse The Occupation</option> <option <?=($result[0]['occupation'] =="Farmer" ? "selected":"")?> value="Farmer">Farmer</option> </select> <label for="occupation" class="form-label">Occupation:</label> </div> <div class="form-floating mb-4"> <select name="annual_income" id="annual_income" class="form-control"> <option value="">Chosse The Income</option> <option <?=($result[0]['annual_incm'] =="None" ? "selected":"")?> value="None">None</option> <option <?=($result[0]['annual_incm'] =="Less than 1 Lakhs" ? "selected":"")?> value="Less than 1 Lakhs">Less than 1 Lakhs</option> <option <?=($result[0]['annual_incm'] =="1 Lakhs TO 2.5 Lakhs" ? "selected":"")?> value="1 Lakhs TO 2.5 Lakhs">1 Lakhs TO 2.5 Lakhs</option> <option <?=($result[0]['annual_incm'] =="2.5 Lakhs TO 5 Lakhs" ? "selected":"")?> value="2.5 Lakhs TO 5 Lakhs">2.5 Lakhs TO 5 Lakhs</option> <option <?=($result[0]['annual_incm'] =="5 Lakhs TO 7.5 Lakhs" ? "selected":"")?> value="5 Lakhs TO 7.5 Lakhs">5 Lakhs TO 7.5 Lakhs</option> <option <?=($result[0]['annual_incm'] =="7.5 Lakhs TO 10 Lakhs" ? "selected":"")?> value="7.5 Lakhs TO 10 Lakhs">7.5 Lakhs TO 10 Lakhs</option> <option <?=($result[0]['annual_incm'] =="More than 10 Lakhs" ? "selected":"")?> value="More than 10 Lakhs">More than 10 Lakhs</option> </select> <label for="annual_income" class="form-label">Annual Income:</label> </div> <div class="form-floating mb-4"> <select name="religion" id="religion" class="form-control"> <option value="">Select Religion</option> <option <?=($result[0]['religion'] =="Hindu" ? "selected":"")?> value="Hindu">Hindu</option> <option <?=($result[0]['religion'] =="Muslim" ? "selected":"")?> value="Muslim">Muslim</option> <option <?=($result[0]['religion'] =="Christian" ? "selected":"")?> value="Christian">Christian</option> </select> <label for="religion" class="form-label">Religion:</label> </div> <div class="form-floating mb-4"> <select name="zodiac_signs_star" id="zodiac_signs_star" class="form-control"> <option value="">Select Zodiac Signs / Star</option> <option <?=($result[0]['h_zodic'] =="No star" ? "selected":"")?> value="No star">No Star</option> </select> <label for="zodiac_signs_star" class="form-label">Zodiac Signs / Star:</label> </div> <div class="form-floating mb-4"> <select name="dhosam" id="dhosam" class="form-control"> <option value="">Select Dhosam</option> <option <?=($result[0]['h_dosham'] =="No Dhosam" ? "selected":"")?> value="No Dhosam">No Dhosam</option> </select> <label for="dosham" class="form-label">Dosham:</label> </div> <div class="row mb-4"> <p style="color:orange;">Time Of Birth</p> <div class="col-4"> <select name="birth_hour" id="birth_hour" class="form-control"> <option value="">Hour</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> </select> </div> <div class="col-4"> <select name="birth_min" id="birth_min" class="form-control"> <option value="">Min</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> </select> </div> <div class="col-4"> <select name="birth_sn" id="birth_sn" class="form-control"> <option value="Am">Am</option> <option value="Pm">Pm</option> </select> </div> </div> <div class="form-floating mb-4 text-center"> <input type="submit" class="btn btn-sm btn-success" value="Submit"> </div> </form> </div> </div> </div> <!--people edit end--> <!-- tab section start --> <!--delete account start--> <div class="modal fade" id="delete" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel">Delete Account</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <form id="delete_form" > <div class="container mt-2 mb-2"> <label for="feedback" class="form-label">Feedback:</label> <textarea name ="feedback" id="feedback" class="form-control" ></textarea> </div> <div class="container mt-2 mb-2"> <label for="reason" class="form-label">Reason for delete</label> <textarea name ="reason" id="reason" class="form-control" ></textarea> </div> <input type="hidden" id="ids" value="<?= $_SESSION['user']['id'] ?>"> <div class="container mt-2 mb-2 text-center"> <input type="submit" class="btn btn-sm btn-success" value="Submit"> </div> </form> </div> </div> </div> <!--delete account end--> <!-- tab section start --> <!-- Button trigger modal --> <button hidden type="button" id="imgmodel" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal"> </button> <!-- Modal --> <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content" style = " border:none;background: none;"> <div class="modal-header" style=" border: none;"> </div> <div class="modal-body"> <img id="final" width="100%" src="" /> </div> </div> </div> </div> <!--modal start--> <!-- remove item canvas start --> <!-- remove item canvas end --> <!--modal end--> </div> </div> </div> </div> </section> <button hidden id="seller_form_details" data-bs-toggle="modal" data-bs-target="#add_modal" > click</button> <form id="photos_form" method="post" enctype="multipart/form-data" > <div class="row" hidden > <div class="col-12 col-sm-12 " > <div style='padding:14px'> <label for="files" class="custom-file-upload"> <input id="files" name="files[]" type="file" multiple/> <i class="fa fa-cloud-upload"></i> Choose Img</label><input id="submit" class="custom-file-upload" type="submit" value="upload" /> </div> <div style='padding:14px; margin:auto';> <div id="sortableImgThumbnailPreview"> </div> </div> </div> </div> </form> <div class="row" > <div class="col-sm-4 col-4"> <div class="product-box ratio_square"> <div > <a id="upd_img"><img style="padding: 38px;" src="assets/images/products/add.png" alt="" class="img-fluid " /></a> </div> </div> </div> </div> <?php foreach ($products as $product) { ?> <div class="col-sm-4 col-4"> <div class="product-box ratio_square"> <h5 style=" padding-left: 95px;"><i onClick="showAlertrwd('<?=['id']?>')" class="iconly-Delete icli"></i></h5> <div class="img-part image-container"> <?php if(['verification_status']==1){ ?> <img src="images/gif/verified.gif" style="width: 30px;border-radius: 50%; position: relative; bottom: 110px; left: 1px;" /> <?php } else{ ?> <img src="images/gif/pending.gif" style="width: 20px;border-radius: 50%; position: relative; bottom: 110px; left: 1px;" /> <?php } ?> <a data-bs-toggle="modal" data-bs-target="#edit_modal<?=$product['id']?>" ><img src="<?=['photo']?>" alt="" class="img-fluid bg-img image" /></a> <p>test <?=$product['id']?></p> </div> </div> </div> <?php } ?> </div> </div> </div> </div> <!--add modal Ends--> <?php foreach ( $products as $pdt ){ ?> <!--add modal starts--> <div class="modal fade" id="edit_modal<?=$pdt['id']?>" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true" style=""> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel">Form</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div> <!--tab end--> <section class="pt-0 tab-section"> <div class="tab-section"> <div class="tab-content px-15"> <div class="tab-pane fade show active" id="trending"> <div class="row gy-3 gx-3"> <?php include 'scroll.php'?> <div class="row" > <?php foreach ($form as $input) {?> <form id="seller_form" > <div class="col-12 col-sm-12"> <div <?=($input['field1'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field1" class="form-label"><?=$input['field1']?></label> <input type="field1_datatype" name="field1" id="field1" value="<?=$forms[0]['field1']?>" class="form-control" > </div> <div <?=($input['field2'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field2" class="form-label"><?=$input['field2']?></label> <input type="field2_datatype" name="field2" id="field2" value="<?=$forms[0]['field2']?>" class="form-control" > </div> <div <?=($input['field3'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field3" class="form-label"><?=$input['field3']?></label> <input type="field3_datatype" name="field3" id="field3" value="<?=$forms[0]['field3']?>" class="form-control" > </div> <div <?=($input['field4'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field4" class="form-label"><?=$input['field4']?></label> <input type="field4_datatype" name="field4" id="field4" value="<?=$forms[0]['field4']?>" class="form-control" > </div> <div <?=($input['field5'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field5" class="form-label"><?=$input['field5']?></label> <input type="field5_datatype" name="field5" id="field5" value="<?=$forms[0]['field5']?>" class="form-control" > </div> <div <?=($input['field6'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field6" class="form-label"><?=$input['field6']?></label> <input type="field6_datatype" name="field6" id="field6" value="<?=$forms[0]['field6']?>" class="form-control" > </div> <div <?=($input['field7'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field7" class="form-label"><?=$input['field7']?></label> <input type="field7_datatype" name="field7" id="field7" value="<?=$forms[0]['field7']?>" class="form-control" > </div> <div <?=($input['field8'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field8" class="form-label"><?=$input['field8']?></label> <input type="field8_datatype" name="field8" id="field8" value="<?=$forms[0]['field8']?>" class="form-control" > </div> <div <?=($input['field9'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field9" class="form-label"><?=$input['field9']?></label> <input type="field9_datatype" name="field9" id="field9" value="<?=$forms[0]['field9']?>" class="form-control" > </div> <div <?=($input['field10'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field10" class="form-label"><?=$input['field10']?></label> <input type="field10_datatype" name="field10" id="field10" value="<?=$forms[0]['field10']?>" class="form-control" > </div> <div <?=($input['field11'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field11" class="form-label"><?=$input['field11']?></label> <input type="field11_datatype" name="field11" id="field11" value="<?=$forms[0]['field11']?>" class="form-control" > </div> <div <?=($input['field12'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field12" class="form-label"><?=$input['field12']?></label> <input type="field12_datatype" name="field12" id="field12" value="<?=$forms[0]['field12']?>" class="form-control" > </div> <div <?=($input['field13'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field13" class="form-label"><?=$input['field13']?></label> <input type="field13_datatype" name="field13" id="field13" value="<?=$forms[0]['field13']?>" class="form-control" > </div> <div <?=($input['field14'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field14" class="form-label"><?=$input['field14']?></label> <input type="field14_datatype" name="field14" id="field14" value="<?=$forms[0]['field14']?>" class="form-control" > </div> <div <?=($input['field15'] ==""?"hidden":"")?> class="container mt-2 mb-2"> <label for="field15" class="form-label"><?=$input['field15']?></label> <input type="field15_datatype" name="field15" id="field15" value="<?=$forms[0]['field15']?>" class="form-control" > </div> <br> <center><input type="submit" class="btn btn-sm btn-danger " /> </center> <br> </div> </form> <?php } ?> </div> </div> </div> </div> </div> <!--people cedit end--> <!--people calling time start--> <div class="modal fade" id="available" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel">Temproarily Disable</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <form id="available_form" > <div class="table-responsive-sm"> <table class="table table-striped"> <tr> <th></th> <th><label for="startDateTimePicker" class="form-label">Start Time:</label></th> <th><label for="startDateTimePicker" class="form-label">End Time:</label></th> </tr> <tr> <td>Monday</td> <td> <input type="time" name="mon_start_time" id="mo" class="form-control" value="<?=$available[0]['monday_start'] ?>" > </td> <td> <input type="time" name="mon_end_time" value="<?=$available[0]['monday_end'] ?>" class="form-control" > </td> </tr> <tr> <td>Tuesday</td> <td> <input type="time" name="tue_start_time" id="mo" class="form-control"value="<?=$available[0]['tuesday_start'] ?>" > </td> <td> <input type="time" name="tue_end_time" class="form-control"value="<?=$available[0]['tuesday_end'] ?>" > </td> </tr> <tr> <td>Wednesday</td> <td> <input type="time" name="wed_start_time" id="mo" class="form-control"value="<?=$available[0]['wednesday_start'] ?>" > </td> <td> <input type="time" name="wed_end_time" class="form-control"value="<?=$available[0]['wednesday_end'] ?>" > </td> </tr> <tr> <td>Thursday</td> <td> <input type="time" name="thur_start_time" id="mo" class="form-control"value="<?=$available[0]['thursday_start'] ?>" > </td> <td> <input type="time" name="thur_end_time" class="form-control"value="<?=$available[0]['thursday_end'] ?>" > </td> </tr> <tr> <td>Friday</td> <td> <input type="time" name="fri_start_time" id="mo" class="form-control"value="<?=$available[0]['friday_start'] ?>" > </td> <td> <input type="time" name="fri_end_time" class="form-control"value="<?=$available[0]['friday_end'] ?>" > </td> </tr> <tr> <td>Saturday</td> <td> <input type="time" name="sat_start_time" id="mo" class="form-control"value="<?=$available[0]['saturday_start'] ?>" > </td> <td> <input type="time" name="sat_end_time" class="form-control"value="<?=$available[0]['friday_end'] ?>" > </td> </tr> <tr> <td>Sunday</td> <td> <input type="time" name="sun_start_time" id="mo" class="form-control"value="<?=$available[0]['sunday_start'] ?>" > </td> <td> <input type="time" name="sun_end_time" class="form-control"value="<?=$available[0]['sunday_end'] ?>" > </td> </tr> </table> </div> <div class="container mt-2 mb-2 text-center"> <input type="submit" class="btn btn-sm btn-success" value="Submit"> </div> </form> </div> </div> </div> <!--people calling time end--> <!--people calling time start--> <div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel">Temproarily Disable</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <form id="deactive_form" > <div class="container mt-2 mb-2"> <label for="startDateTimePicker" class="form-label">Start Date and Time:</label> <input type="datetime-local" name="start_time" id="startDateTimePicker" value="<?=$result[0]['start_time']?>" class="form-control" > </div> <div class="container mt-2 mb-2"> <label for="endDateTimePicker" class="form-label">End Date and Time:</label> <input type="datetime-local" name="end_time" id="endDateTimePicker" value="<?=$result[0]['end_time']?>" class="form-control" > </div> <div class="container mt-2 mb-2 text-center"> <input type="submit" class="btn btn-sm btn-success" value="Submit"> </div> </form> </div> </div> </div> <!--people calling time end--> <!--people edit start--> <div class="modal fade" id="edit_profile" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel">Edit Profile</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <form id="edit_form" style="padding: 0px 15px;" > <div class="form-floating mb-4"> <select name="mother_tongue" id="mother_tongue" class="form-control"> <option value="">Select Mother Tongue</option> <option <?=($result[0]['mother_tonque'] =="Father" ? "selected":"")?> value="Tamil">Tamil</option> <option <?=($result[0]['mother_tonque'] =="Father" ? "selected":"")?> value="English">English</option> </select> <label for="one">Mother Tongue</label> </div> <div class="form-floating mb-4"> <select name="physical_status" id="physical_status" class="form-control"> <option value="">Chosse Physical Status</option> <option <?=($result[0]['phy_status'] =="Father" ? "selected":"")?> value="Normal">Normal</option> <option <?=($result[0]['phy_status'] =="Father" ? "selected":"")?> value="Physically challenged">Physically challenged </option> </select> <label for="one">Physical Status</label> </div> <div class="form-floating mb-4"> <select name="profile_created_for" class="form-control"> <option value="">Profile Created For</option> <option <?=($result[0]['profile_ctd_fr'] =="Myself" ? "selected":"")?> value="Myself">Myself</option> <option <?=($result[0]['profile_ctd_fr'] =="Father" ? "selected":"")?> value="Father">Father</option> <option <?=($result[0]['profile_ctd_fr'] =="Mother" ? "selected":"")?> value="Mother">Mother</option> <option <?=($result[0]['profile_ctd_fr'] =="Brother" ? "selected":"")?> value="Brother">Brother</option> <option <?=($result[0]['profile_ctd_fr'] =="Sister" ? "selected":"")?> value="Sister">Sister</option> <option <?=($result[0]['profile_ctd_fr'] =="Relative" ? "selected":"")?> value="Relative">Relative</option> <option <?=($result[0]['profile_ctd_fr'] =="Friend" ? "selected":"")?> value="Friend">Friend</option> <option <?=($result[0]['profile_ctd_fr'] =="Manager" ? "selected":"")?> value="Manager">Manager</option> <option <?=($result[0]['profile_ctd_fr'] =="Staff" ? "selected":"")?> value="Staff">Staff</option> </select> <label for="hobbies" class="form-label">Profile Created For :</label> </div> <div class="form-floating mb-4"> <select name="intrests" class="form-control"> <option <?=($result[0]['intrests'] =="Travel" ? "selected":"")?> value="Travel">Travel</option> <option <?=($result[0]['intrests'] =="Sports and Fittness" ? "selected":"")?> value="Sports and Fittness">Sports and Fittness</option> <option <?=($result[0]['intrests'] =="Cooking" ? "selected":"")?> value="Cooking">Cooking</option> <option <?=($result[0]['intrests'] =="Music" ? "selected":"")?> value="Music">Music</option> <option <?=($result[0]['intrests'] =="Dance" ? "selected":"")?> value="Dance">Dance</option> <option <?=($result[0]['intrests'] =="Movie and TV Shows" ? "selected":"")?> value="Movie and TV Shows">Movie and TV Shows</option> <option <?=($result[0]['intrests'] =="Pet Lover" ? "selected":"")?> value="Pet Lover">Pet Lover</option> <option <?=($result[0]['intrests'] =="Reading" ? "selected":"")?> value="Reading">Reading</option> <option <?=($result[0]['intrests'] =="Photography" ? "selected":"")?> value="Photography">Photography</option> <option <?=($result[0]['intrests'] =="Mobile Gaming" ? "selected":"")?> value="Mobile Gaming">Mobile Gaming</option> <option <?=($result[0]['intrests'] =="Social media" ? "selected":"")?> value="Social media">Social media</option> <option <?=($result[0]['intrests'] =="Journalism" ? "selected":"")?> value="Journalism">Journalism</option> <option <?=($result[0]['intrests'] =="Art" ? "selected":"")?> value="Art">Art</option> <option <?=($result[0]['intrests'] =="Child Care" ? "selected":"")?> value="Child Care">Child Care</option> </select> <label for="hobbies" class="form-label">Hobbies and Interests :</label> </div> <div class="form-floating mb-4"> <label for="mobile" class="form-label">Secondary Mobile Number:</label> <input type="text" name="mobile" id="mobile" value="<?=$result[0]['mobile_no_alt']?>" class="form-control" > </div> <div class="form-floating mb-4"> <select name="occupation" id="occupation" class="form-control"> <option value="">Chosse The Occupation</option> <option <?=($result[0]['occupation'] =="Farmer" ? "selected":"")?> value="Farmer">Farmer</option> </select> <label for="occupation" class="form-label">Occupation:</label> </div> <div class="form-floating mb-4"> <select name="annual_income" id="annual_income" class="form-control"> <option value="">Chosse The Income</option> <option <?=($result[0]['annual_incm'] =="None" ? "selected":"")?> value="None">None</option> <option <?=($result[0]['annual_incm'] =="Less than 1 Lakhs" ? "selected":"")?> value="Less than 1 Lakhs">Less than 1 Lakhs</option> <option <?=($result[0]['annual_incm'] =="1 Lakhs TO 2.5 Lakhs" ? "selected":"")?> value="1 Lakhs TO 2.5 Lakhs">1 Lakhs TO 2.5 Lakhs</option> <option <?=($result[0]['annual_incm'] =="2.5 Lakhs TO 5 Lakhs" ? "selected":"")?> value="2.5 Lakhs TO 5 Lakhs">2.5 Lakhs TO 5 Lakhs</option> <option <?=($result[0]['annual_incm'] =="5 Lakhs TO 7.5 Lakhs" ? "selected":"")?> value="5 Lakhs TO 7.5 Lakhs">5 Lakhs TO 7.5 Lakhs</option> <option <?=($result[0]['annual_incm'] =="7.5 Lakhs TO 10 Lakhs" ? "selected":"")?> value="7.5 Lakhs TO 10 Lakhs">7.5 Lakhs TO 10 Lakhs</option> <option <?=($result[0]['annual_incm'] =="More than 10 Lakhs" ? "selected":"")?> value="More than 10 Lakhs">More than 10 Lakhs</option> </select> <label for="annual_income" class="form-label">Annual Income:</label> </div> <div class="form-floating mb-4"> <select name="religion" id="religion" class="form-control"> <option value="">Select Religion</option> <option <?=($result[0]['religion'] =="Hindu" ? "selected":"")?> value="Hindu">Hindu</option> <option <?=($result[0]['religion'] =="Muslim" ? "selected":"")?> value="Muslim">Muslim</option> <option <?=($result[0]['religion'] =="Christian" ? "selected":"")?> value="Christian">Christian</option> </select> <label for="religion" class="form-label">Religion:</label> </div> <div class="form-floating mb-4"> <select name="zodiac_signs_star" id="zodiac_signs_star" class="form-control"> <option value="">Select Zodiac Signs / Star</option> <option <?=($result[0]['h_zodic'] =="No star" ? "selected":"")?> value="No star">No Star</option> </select> <label for="zodiac_signs_star" class="form-label">Zodiac Signs / Star:</label> </div> <div class="form-floating mb-4"> <select name="dhosam" id="dhosam" class="form-control"> <option value="">Select Dhosam</option> <option <?=($result[0]['h_dosham'] =="No Dhosam" ? "selected":"")?> value="No Dhosam">No Dhosam</option> </select> <label for="dosham" class="form-label">Dosham:</label> </div> <div class="row mb-4"> <p style="color:orange;">Time Of Birth</p> <div class="col-4"> <select name="birth_hour" id="birth_hour" class="form-control"> <option value="">Hour</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> </select> </div> <div class="col-4"> <select name="birth_min" id="birth_min" class="form-control"> <option value="">Min</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> </select> </div> <div class="col-4"> <select name="birth_sn" id="birth_sn" class="form-control"> <option value="Am">Am</option> <option value="Pm">Pm</option> </select> </div> </div> <div class="form-floating mb-4 text-center"> <input type="submit" class="btn btn-sm btn-success" value="Submit"> </div> </form> </div> </div> </div> <!--people edit end--> <!-- tab section start --> <!--delete account start--> <div class="modal fade" id="delete" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel">Delete Account</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <form id="delete_form" > <div class="container mt-2 mb-2"> <label for="feedback" class="form-label">Feedback:</label> <textarea name ="feedback" id="feedback" class="form-control" ></textarea> </div> <div class="container mt-2 mb-2"> <label for="reason" class="form-label">Reason for delete</label> <textarea name ="reason" id="reason" class="form-control" ></textarea> </div> <input type="hidden" id="ids" value="<?= $_SESSION['user']['id'] ?>"> <div class="container mt-2 mb-2 text-center"> <input type="submit" class="btn btn-sm btn-success" value="Submit"> </div> </form> </div> </div> </div> <!--delete account end--> <!-- tab section start --> <!-- Button trigger modal --> <button hidden type="button" id="imgmodel" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal"> </button> <!-- Modal --> <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content" style = " border:none;background: none;"> <div class="modal-header" style=" border: none;"> </div> <div class="modal-body"> <img id="final" width="100%" src="" /> </div> </div> </div> </div> <!--modal start--> <!-- remove item canvas start --> <!-- remove item canvas end --> <!--modal end--> </div> </div> </div> </div> </section> <button hidden id="seller_form_details" data-bs-toggle="modal" data-bs-target="#add_modal" > click</button> <form id="photos_form" method="post" enctype="multipart/form-data" > <div class="row" hidden > <div class="col-12 col-sm-12 " > <div style='padding:14px'> <label for="files" class="custom-file-upload"> <input id="files" name="files[]" type="file" multiple/> <i class="fa fa-cloud-upload"></i> Choose Img</label><input id="submit" class="custom-file-upload" type="submit" value="upload" /> </div> <div style='padding:14px; margin:auto';> <div id="sortableImgThumbnailPreview"> </div> </div> </div> </div> </form> <div class="row" > <div class="col-sm-4 col-4"> <div class="product-box ratio_square"> <div > <a id="upd_img"><img style="padding: 38px;" src="assets/images/products/add.png" alt="" class="img-fluid " /></a> </div> </div> </div> </div> <?php foreach ($products as $product) { ?> <div class="col-sm-4 col-4"> <div class="product-box ratio_square"> <h5 style=" padding-left: 95px;"><i onClick="showAlertrwd('<?=['id']?>')" class="iconly-Delete icli"></i></h5> <div class="img-part image-container"> <?php if(['verification_status']==1){ ?> <img src="images/gif/verified.gif" style="width: 30px;border-radius: 50%; position: relative; bottom: 110px; left: 1px;" /> <?php } else{ ?> <img src="images/gif/pending.gif" style="width: 20px;border-radius: 50%; position: relative; bottom: 110px; left: 1px;" /> <?php } ?> <img src="<?=['photo']?>" alt="" class="img-fluid bg-img image" /> </div> </div> </div> <?php } ?> </div> </div> </div> </div> <!--add modal Ends--> <?php } ?> <!-- panel space start --> <section class="panel-space"></section> <!-- panel space end --> <!-- bottom panel start --> <div class="cart-bottom row m-0"> <div> <div class="left-content col-5"> <a href="#" class="title-color">CANCEL </a> </div> <a href="delivery.html" class="btn btn-solid col-7 text-uppercase">Save Details </a> </div> </div> <!--all images modal starts--> <div class="modal fade" id="all_images" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="staticBackdropLabel">Modal title</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <div class="row" > <?php foreach ($result2 as $pic) { ?> <div class="col-sm-4 col-4"> <div class="product-box ratio_square"> <h5 style=" padding-left: 95px;"><i onClick="showAlert('<?=$pic['id']?>')" class="iconly-Delete icli"></i></h5> <div onClick="modalImg('<?=$pic['image']?>')" class="img-part image-container"> <img src="<?=$pic['image']?>" alt="" class="img-fluid bg-img image" /> </div> </div> </div> <?php } ?> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> <button type="button" class="btn btn-primary">Understood</button> </div> </div> </div> </div> <!--all images modal Ends--> <script> $(document).ready(function(){ $('#deactive_form').submit(function(event) { event.preventDefault(); // Prevent the form from submitting normally var startDateTime = $('#startDateTimePicker').val(); var endDateTime = $('#endDateTimePicker').val(); alert(endDateTime +startDateTime); $.ajax({ type: "POST", url: "api/deactive.php", data: { startDateTime: startDateTime, endDateTime: endDateTime }, dataType: "json", success: function(response) { if (response.success) { alert(response.message); // Show success message } else { alert("Error: " + response.message); // Show error message } }, error: function(xhr, status, error) { console.error("AJAX Error: " + xhr.responseText); // Log AJAX error for debugging } }); }); $('#delete_form').submit(function(event) { event.preventDefault(); // Prevent the form from submitting normally var feedback = $('#feedback').val(); var ids = $('#ids').val(); var reason = $('#reason').val(); alert(feedback +reason); $.ajax({ type: "POST", url: "api/delete.php", data: { reason: reason, feedback: feedback, ids:ids }, dataType: "json", success: function(response) { if (response.success) { alert(response.message); // Show success message window.location.href = "seller_profile.php"; } else { alert("Error: " + response.message); // Show error message modal fade show id="edit"" ?edit=< ?php echo $edit; ?> } }, error: function(xhr, status, error) { console.error("AJAX Error: " + xhr.responseText); // Log AJAX error for debugging } }); }); $("#exampleModal").click(); }); $("#upd_img").click(function () { // Trigger a click event on the file input element $("#files").click(); }); $("#rewards_img").click(function () { // Trigger a click event on the file input element $("#rewardss").click(); }); $("#files").change(function () { var fileCount = $('#files')[0].files.length; var selectedFile = this.files[0]; if (selectedFile) { $("#submit").click(); } }); $("#rewardss").change(function () { var fileCount = $('#rewardss')[0].files.length; var selectedFile = this.files[0]; if (selectedFile) { $("#submit_rewards").click(); } }); $('#photos_form').on('submit',function(e){ e.preventDefault(); alert("photos start......"); var fileCount = $('#files')[0].files.length; var formData = new FormData(this); formData.append('type', 'product_photos_form'); formData.append('count', fileCount); console.log(formData); $.ajax({ url: 'api/seller.php', type: 'post', dataType: 'json', data: formData, cache: false, contentType: false, processData: false, success: function(response) { console.log(response); if (response['status'] == 200) { alert(response['message']); // $('#seller_form_details').click(); model_open() } else { alert(response['message']); } } }); }); function model_open() { console.log("model is working"); $.ajax({ url: 'api/seller.php', type: 'post', dataType: 'json', data: {type:"model"}, // Pass the ID to the server-side script success: function(response) { console.log(response); if (response['status'] == 200) { console.log(response['message']); $('#seller_form_details').html(response['model_content']); } else { alert(response['message']); } } }); } $('#rewards_form').on('submit',function(e){ e.preventDefault(); var fileCount = $('#rewardss')[0].files.length; alert(fileCount) var formData = new FormData(this); formData.append('type', 'rewards_form'); formData.append('count', fileCount); console.log(formData); $.ajax({ url: 'api/profile_add.php', type: 'post', dataType: 'json', data: formData, cache: false, contentType: false, processData: false, success: function(response) { console.log(response); if (response['status'] == 200) { alert(response['message']); $(this).trigger("reset"); window.location.href = 'profile-setting.php'; } else { alert(response['message']); } } }); }) function showAlert(id) { var confirmation = confirm("Do you want to delete item with ID: " + id + "?"); if (confirmation) { $.ajax({ url: 'api/profile_add.php', type: 'post', dataType: 'json', data: {type:"img-delete", id: id }, // Pass the ID to the server-side script success: function(response) { console.log(response); if (response['status'] == 200) { alert(response['message']); $(this).trigger("reset"); window.location.href = 'profile-setting.php'; } else { alert(response['message']); } } }); } else { alert("Deletion cancelled for item "); } } function showAlertrwd(id) { var confirmation = confirm("Do you want to delete item with ID: " + id + "?"); if (confirmation) { $.ajax({ url: 'api/profile_add.php', type: 'post', dataType: 'json', data: {type:"rwd-delete", id: id }, // Pass the ID to the server-side script success: function(response) { console.log(response); if (response['status'] == 200) { alert(response['message']); $(this).trigger("reset"); window.location.href = 'profile-setting.php'; } else { alert(response['message']); } } }); } else { alert("Deletion cancelled for item "); } } </script> <script> function modalImg(id) { $("#final").attr("src", id); $('#imgmodel').click(); } </script> <script> $(document).ready(function() { $('#available_form').submit(function(event) { event.preventDefault(); // Prevent form submission // Collect form data var formData = new FormData(this); console.log(formData); // Send AJAX request using modern syntax $.ajax({ type: 'POST', url: 'api/available_time.php', // PHP file to handle form data data: formData, processData: false, // Prevent jQuery from processing the data (important for FormData) contentType: false, // Set content type to false, jQuery will tell the server its form data success: function(response) { // Parse JSON response try { var jsonResponse = JSON.parse(response); if (jsonResponse.status === 200) { console.log(jsonResponse); // Call wishlist function with appropriate arguments // wishlist(id, jsonResponse.element); } else { console.warn(jsonResponse.message); } } catch (error) { console.error("Error parsing JSON response: " + error); } }, error: function(xhr, status, error) { console.error("AJAX request failed: " + status + ", " + error); } }); }); }); </script> <script> // $(document).ready(function() { // $('#edit_form').submit(function(event) { // event.preventDefault(); // Prevent form submission // // Send AJAX request // $.ajax({ // type: 'POST', // url: 'api/edit_profile.php', // data: new FormData(this), // processData: false, // contentType: false, // success: function(response) { // try { // var jsonResponse = JSON.parse(response); // if (jsonResponse.status === 200) { // console.log(jsonResponse); // // Call wishlist function with appropriate arguments // // wishlist(id, jsonResponse.element); // } else { // console.warn(jsonResponse.message); // } // } catch (error) { // console.error("Error parsing JSON response: " + error); // } // }, // error: function(xhr, status, error) { // console.error("AJAX request failed: " + status + ", " + error); // } // }); // }); // }); $(document).ready(function() { $('#edit_form').submit(function(e) { e.preventDefault(); alert('hello'); var formData = new FormData(this); formData.append('type', 'upload'); console.log(formData); $.ajax({ url: 'api/profile_edit.php', type: 'post', dataType: 'json', data: formData, cache: false, contentType: false, processData: false, success: function(response) { console.log(response); if (response['status'] == 200) { alert(response['message']); } else { alert(response['message']); } } }); }); }); </script> <script> $(document).ready(function() { $('#seller_form').submit(function(e) { e.preventDefault(); var formData = new FormData(this); formData.append('type', 'seller'); console.log(formData); $.ajax({ url: 'api/seller.php', type: 'post', dataType: 'json', data: formData, cache: false, contentType: false, processData: false, success: function(response) { console.log(response); if (response['status'] == 200) { alert(response['message']); } else { alert(response['message']); } } }); }); }); </script> <script> function pic_change(id,pic){ $('#product_profile').attr('src',pic); } </script> <?php include "footer2.php" ?>