D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
shubmkcj
/
designpitara.com
/
admin
/
services
/
Filename :
view-gallery-last-level-services.php
back
Copy
<?php include("../include/config.php"); include("../include/sessionhandle.php"); include("../include/header.php"); $ser_id = $_GET['id']; $sqlAssign1 = "SELECT * FROM `services_last_level` WHERE `services_last_level`.`id`='$ser_id'"; $resultAssign1 = mysqli_query($conn, $sqlAssign1); if (mysqli_num_rows($resultAssign1) > 0) { while($rows = mysqli_fetch_assoc($resultAssign1)) { $last_lvl_id = $rows['id']; $last_service_main_id = $rows['service_main_id']; $last_service_cat_id = $rows['service_cat_id']; $last_lvl_s_name = $rows['name']; }} $sqlAssign3 = "SELECT * FROM `services_category` WHERE `services_category`.`id`='$last_service_cat_id'"; $resultAssign3 = mysqli_query($conn, $sqlAssign3); if (mysqli_num_rows($resultAssign3) > 0) { while($row3 = mysqli_fetch_assoc($resultAssign3)) { $sub_services_nameid = $row3['id']; $sub_services_name = $row3['name']; } } $sqlAssign2 = "SELECT * FROM `services` WHERE `services`.`id`='$last_service_main_id'"; // echo $sqlAssign2; $resultAssign2 = mysqli_query($conn, $sqlAssign2); if (mysqli_num_rows($resultAssign2) > 0) { while($row2 = mysqli_fetch_assoc($resultAssign2)) { $main_services_nameId = $row2['id']; $main_services_name = $row2['name']; } } ?> <style> #my_services ul li:nth-child(6) { background-color: #eb6a4e; } #my_services ul li:nth-child(6) a { color: #fff; } #my_services ul li:nth-child(6) a:hover { background-color: #eb6a4e; } #srkproperty_details .course-detailsa img { width: 100% !important; max-height: 250px !important; } hr { margin-top: 5px !important; margin-bottom: 5px !important; border: 0; border-top: 1px solid #eee; } .img_container { position: relative; padding: 5px; } .overlay { position: absolute; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%; opacity: 0; transition: .3s ease; background-color: #423e3e70; } .img_container:hover .overlay { opacity: 1; } .icon { color: red; font-size: 50px !important; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); text-align: center; } .fa-user:hover { color: #eee; } </style> <script> window.onload = function() { document.getElementById('my_services').classList.add("active"); document.getElementById('my_services1').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>Gallery</span> </li> </ol> </div> <h2 class="font-light m-b-xs"> View Gallery </h2> </div> </div> </div> <div class="content"> <div class="hpanel"> <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 Gallery </div> <div class="panel-body"> <div class="col-md-7"> <h5><b>Main Service : </b> <?php echo $main_services_name?></h5> <h5><b>Sub Service : </b> <?php echo $sub_services_name?></h5> <h5><b>last Level Service : </b> <?php echo $last_lvl_s_name?></h5> </div> <div class="col-md-5"> <a type="button" mainServId='<?php echo $sub_services_nameid;?>' last_servicelevelId='<?php echo $last_lvl_id;?>' last_servicelevelName='<?php echo $last_lvl_s_name;?>' data-toggle="modal" data-target="#services_images" class="btn btn-info last_servicelevel_image" style="cursor: pointer;">Add More Image</a> </div> <div class="col-md-12"> <br> <?php $srno = 0; $sqlAssigng1 = "SELECT * FROM `services_last_level_gallery` WHERE `services_last_level_gallery`.`lastLevel_id`='$last_lvl_id';"; $resultAssigng1 = mysqli_query($conn, $sqlAssigng1); if (mysqli_num_rows($resultAssigng1) > 0) { while($rowsg = mysqli_fetch_assoc($resultAssigng1)) { $img_cag_id = $rowsg['id']; $img_cag = $rowsg['image']; ?> <div class="col-md-4"> <div class="img_container"> <img src="<?php echo $admin_baseurl . 'services/upload/'.$img_cag;?>" class="img-responsive" style="height:180px; width:100%"> <div class="overlay"> <form method="post" action="execute.php?id=<?php echo $img_cag_id;?>"> <button type="submit" name="delete_lastl_gallery_img" class="actionbtn icon" onclick="return confirm('Do you want to delete this data?')"><i class=" icon fa fa-trash text-danger" aria-hidden="true"></i></button> </form> </div> </div> </div> <?php }}else{ ?> <h4 style="text-align:center">There is no Images in database.</h4> <?php } ?> </div> </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="AddNewImagesOfLastLevel1" 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>