D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
shubmkcj
/
designpitara.com
/
admin
/
franchise
/
Filename :
view-franchise.php
back
Copy
<?php include("../include/config.php"); include("../include/sessionhandle.php"); include("../include/header.php"); ?> <style> #dks_franchise ul li:nth-child(2) { background-color: #eb6a4e; } #dks_franchise ul li:nth-child(2) a { color: #fff; } #dks_franchise ul li:nth-child(2) a:hover { background-color: #eb6a4e !important } #all_services_details .service_det img { width: 40% !important; height: 100px !important; display: block; margin: 0 auto; } .course-detailsa img{ width: 100% !important; height: 250px !important; } </style> <script> window.onload = function() { document.getElementById('dks_franchise').classList.add("active"); document.getElementById('dks_franchise1').classList.add("in"); }; </script> <div class="small-header"> <div class="hpanel"> <div class="panel-body"> <div id="hbreadcrumb" class="pull-right"> <ol class="hbreadcrumb breadcrumb"> <li><a href="<?php echo $admin_baseurl . 'dashboard.php';?>">Dashboard</a></li> <li class="active"> <span>Services</span> </li> </ol> </div> <h2 class="font-light m-b-xs"> View All last level Services </h2> </div> </div> </div> <div class="content"> <div class="hpanel"> <div class="panel-heading hbuilt"> <div class="panel-tools"> <a class="showhide"><i class="fa fa-chevron-up"></i></a> <a class="fullscreen"><i class="fa fa-expand"></i></a> </div> View All last level Services </div> <div class="panel-body"> <div class="table-responsive"> <table id="all_services_details" class="table table-striped table-bordered table-hover"> <thead> <tr> <th>#</th> <th>Service Name</th> <th>Image</th> <th>Service Details</th> <th>Action</th> </tr> </thead> <tbody> <?php $srno = 0; $sqlAssign1 = "SELECT * FROM `services_last_level` ORDER BY `services_last_level`.`id` DESC"; $resultAssign1 = mysqli_query($conn, $sqlAssign1); if (mysqli_num_rows($resultAssign1) > 0) { while($rows = mysqli_fetch_assoc($resultAssign1)) { $id = $rows['id']; $service_main_id = $rows['service_main_id']; $service_cat_id = $rows['service_cat_id']; $s_name = $rows['name']; $s_detail = $rows['detail']; $s_image = $rows['image']; $s_url = $rows['url']; $s_keyword = $rows['keyword']; $s_description = $rows['description']; $service_last_lavel_name = $rows['service_last_lavel_name']; $service_last_lavel_name_details = $rows['service_last_lavel_name_details']; $s_status = $rows['status']; $sqlAssign2 = "SELECT * FROM `services` WHERE `services`.`id`='$service_main_id'"; // echo $sqlAssign2; $resultAssign2 = mysqli_query($conn, $sqlAssign2); if (mysqli_num_rows($resultAssign2) > 0) { while($row2 = mysqli_fetch_assoc($resultAssign2)) { $main_services_name = $row2['name']; } } $sqlAssign3 = "SELECT * FROM `services_category` WHERE `services_category`.`id`='$service_cat_id'"; $resultAssign3 = mysqli_query($conn, $sqlAssign3); if (mysqli_num_rows($resultAssign3) > 0) { while($row3 = mysqli_fetch_assoc($resultAssign3)) { $sub_services_id = $row3['id']; $sub_services_name = $row3['name']; } } ?> <tr> <th scope="row"><?php echo $srno += 1;?></th> <td> <p> <?php echo $s_name;?></p> <br> <p>Main Service : <b><?php echo $main_services_name;?></b></p> <p>Sub Service : <b><?php echo $sub_services_name;?></b></p> </td> <td><?php if(!empty($s_image)){?> <img src="<?php echo $admin_baseurl . 'services/upload/' .$s_image;?>" style="width:100px;"> <?php }?> </td> <td> <?php if(!empty($s_detail)){?> <a type="button" course-details='<?php echo $s_detail;?>' data-toggle="modal" data-target="#srkproperty_details" class="btn theme-btn show_property_details" style="cursor: pointer;">More Detail</a> <?php } ?> </td> <td> <div class="action_btns"> <form method="post" action="update-last-level-service.php?id=<?php echo $id;?>"> <button type="submit" class="actionbtn"><i class="fa fa-pencil-square-o text-success" aria-hidden="true"></i></button> </form> <form method="post" action="execute.php?id=<?php echo $id;?>"> <button type="submit" name="delete_services_last_level" class="actionbtn" onclick="return confirm('Do you want to delete this data?')"><i class="fa fa-trash text-danger" aria-hidden="true"></i></button> </form> <?php if($s_status == 'active'){?> <form method="post" action="execute.php?id=<?php echo $id;?>"> <button type="submit" name="status_deactive_services_last_level" class="actionbtn"><i class="fa fa-toggle-on text-success" aria-hidden="true"></i></button> </form> <?php }else{?> <form method="post" action="execute.php?id=<?php echo $id;?>"> <button type="submit" name="status_active_services_last_level" class="actionbtn"><i class="fa fa-toggle-off text-danger" aria-hidden="true"></i></button> </form> <?php }?> <br> <br> <a type="button" mainServId='<?php echo $sub_services_id;?>' last_servicelevelId='<?php echo $id;?>' last_servicelevelName='<?php echo $s_name;?>' data-toggle="modal" data-target="#services_images" class="btn btn-info last_servicelevel_image" style="cursor: pointer;">Add More Image</a> <form method="post" action="view-gallery-last-level-services.php?id=<?php echo $id;?>"><br><br> <button type="submit" class="btn btn-primary"> View Gallery</button> </form> </div> </td> </tr> <?php }}?> </tbody> </table> </div> </div> </div> </div> <br> <?php include('../include/footer.php'); ?> <div class="modal fade" id="services_images" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog modal-md"> <div class="modal-content"> <div class="color-line"></div> <div class="modal-header" style=" padding: 12px 30px;"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Add <b><span class="dksservice_levelName"></span></b> Services Images</h4> </div> <div class="modal-body"> <form method="post" action="execute.php" class="form-horizontal" enctype="multipart/form-data"> <span class="course-detailsa"></span> <div class="form-group col-md-12"> <input type="file" id="file" class="form-control" name="image_a" multiple="multiple" accept="image/*" required > </div> <div class="form-group col-md-12 text-right"> <input type="hidden" name="uperlaverlSrviceId" id="uperlaverlSrviceId" value=""> <input type="hidden" name="lastLevel_serviceId" id="lastLevel_serviceId" value=""> <button type="submit" name="AddNewImagesOfLastLevel" class="btn btn-primary">Submit</button> <button type="button" class="btn btn-danger" data-dismiss="modal">Close</button> </div> </form> </div> <div class="modal-footer"> <!--<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>--> </div> </div> </div> </div>