LittleDemon WebShell


Linux in-mum-web1499.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
Path : /home/u901718425/domains/panel.urbanpillar.in/public_html/
File Upload :
Command :
Current File : /home/u901718425/domains/panel.urbanpillar.in/public_html/amenitydetails.php

<?php
include_once "cdn/globle.php";

$roll = (in_array('roll',array_keys($_SESSION)) && in_array('Property',array_keys($_SESSION['roll'])) ? array_values($_SESSION['roll']['Property']) : []);
if(isset($_SESSION['roll_name']) && $_SESSION['roll_name'] != 'user' && in_array('view',$roll) ){
?>
<!doctype html>
<html lang="en">

<?php
include 'widgets/head.php';
?>
<style>
    /* Example: If the parent of the autocomplete dropdown has a class 'parent-container' */
.pac-container {
    z-index: 99999 !important;
}

</style>
<body class="d-flex">
      <div class="messages position-fixed w-100 p-3 top-0 start-0 z-2">

  </div>
<?php
include 'widgets/aside.php';
?>
<div class="page  overflow-y-auto" style="width: calc(100% - 280px); height:100vh;">
<?php
include 'widgets/header.php';
?>

<div class="body d-flex flex-wrap pb-4">
    <div class="d-flex bg-white rounded-3 p-4 m-4 shadow w-100 flex-column ">
        <div class="d-flex flex-column mb-3 w-100 ">
            <h6 class=" fw-semibold fs-6">Amenity Details</h6>
            <small class="text-secondary fw-normal fs-8">Update your project detials and address.</small>
        </div>
        <form onsubmit="return false" id="amenityDetails" enctype="multipart/form-data">
            <div class="row mt-4">
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Amenity Name <sup class="text-danger">*</sup></label>
                    <input type="text" class="form-control" name="name" id="name" aria-describedby="helpId" placeholder=""  data-bs-toggle="tooltip" data-bs-placement="top" title="Add Amenity" required/>
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label">Amenity Icon <sup class="text-danger">*</sup></label>
                    <input type="text" class="form-control" name="icon" id="icon" aria-describedby="helpId" placeholder="" required />
                    <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3">
                    <label for="" class="form-label fs-7">Amenity Lable</label>
                    <select class="form-select" id="lable" name="lable" aria-label="Default select example">
                        <option value="indoor">indoor</option>
                        <option value="outdoor">outdoor</option>
                        <option value="both">both</option>
                    </select>
                    <small id="name" class="form-text text-muted d-none ">Help text</small>
                </div>
                <div class="col-12 col-sm-12 col-md-3 mb-3" id="Amenityicon">
                </div>
            </div>
            <div class="d-grid gap-2 justify-content-end my-2">
              <button type="button"  data="amenityDetails" id="amenityDetailsSave" class="btn btn-danger fs-7">SAVE</button>
            </div>
        </form>
    </div>
    <div class="d-flex bg-white rounded-3 p-4 m-4 shadow w-100 flex-column ">
        <div class="d-flex flex-column mb-3 w-100 ">
            <h6 class=" fw-semibold fs-6">Delete Amenity</h6>
            <small class="text-secondary fw-normal fs-8">Parmanently delete your amenity.</small>
                <p class="fs-7 mt-3">Once the amenity is deleted.</p>
        </div>
        <div class="d-grid gap-2 justify-content-start my-2">
          <button type="button" name="delete" data-bs-toggle="modal" data-bs-target="#deleteConfirmation"  class="btn btn-danger fs-7">DELETE AMENITY</button>
        </div>
    </div>
</div>
<div class="modal fade" id="deleteConfirmation" tabindex="-1" aria-labelledby="Delete Confirmation" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">Delete Amenity</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <div class="d-flex flex-column ">
                    <p class=" text-secondary ">Are you sure you want to delete amenity?.</p>
                    <h6 id="profile-name" class="text-capitalize"></h6>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
                <button type="button" id="delete-amenity" class="btn btn-danger">Delete</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="amenitiesform"tabindex="-1" aria-labelledby="Add Amenity" aria-hidden="true">
    <div class="modal-dialog">
        <form class="modal-content" onsubmit="return false" id="addAmenitie">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">Add Amenities</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <a href="https://fontawesome.com/">f-icon</a>
                <a href="https://fonts.google.com/icons?icon.set=Material+Icons">M-icon</a>
                
                    <div class="row g-3 w-100 mt-4">
                        <div class="col-4 col-sm-12 col-md-4 mb-3">
                            <label for="" class="form-label">Amenity Name</label>
                            <input type="text" class="form-control" name="name" aria-describedby="helpId" placeholder=""  />
                            <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                        </div>
                        <div class="col-4 col-sm-12 col-md-4 mb-3">
                            <label for="" class="form-label">Amenity Icon</label>
                            <input type="text" class="form-control" name="icon" aria-describedby="helpId" placeholder=""  />
                            <small id="helpId" class="form-text text-muted d-none ">Help text</small>
                        </div>
                        <div class="col-4 col-sm-12 col-md-4 mb-3">
                            <label for="" class="form-label">Amenity Label</label>
                            <select class="form-select" id="lable" name="lable">
                                     <option value="indoor">Indoor</option>
                                    <option value="outdoor">Outdoor</option>
                                    <option value="both">Both</option>
                                </select>
                        </div>
                    </div>
                
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
                <button type="button" id="save-amenity" class="btn btn-danger">Save</button>
            </div>
        </form>
    </div>
</div>

<script async src="https://www.instagram.com/embed.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDLblMV_rTTxF57MLHTTD617RWpIz7iKD8&callback=initAutocomplete&libraries=places,geometry&v=weekly" defer ></script>
<script src="/js/amenitydetails.js"></script>
  <?php
    include 'widgets/footer.php';
  ?>
  </div>
</body>

</html>
<?php
}else{
    header('location: /login');
}
?>

LittleDemon - FACEBOOK
[ KELUAR ]