| 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/ |
| Current File : /home/u901718425/domains/panel.urbanpillar.in/public_html/newsdetails.php |
<?php
include_once "cdn/globle.php";
$roll = (in_array('roll',array_keys($_SESSION)) && in_array('Newsfeed',array_keys($_SESSION['roll'])) ? array_values($_SESSION['roll']['Newsfeed']) : []);
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">News Details</h6>
<small class="text-secondary fw-normal fs-8">Update your news detials.</small>
</div>
<form onsubmit="return false" id="newsDetails" enctype="multipart/form-data">
<div class="row mt-4">
<div class="col-6 col-sm-6 col-md-2 mb-3 position-relative ">
<label for="" class="form-label">News Banner<sup class="text-danger">*</sup></label>
<img src="/files/addimage.png" class="file h-auto w-100 z-1">
<input type="file" class="form-control position-absolute opacity-0 h-100 start-0 top-0 " name="image" id="file" placeholder="" aria-describedby="fileHelpId" />
<small id="name" class="form-text text-muted d-none ">Help text</small>
</div>
<div class="col-12 col-sm-12 mb-3">
<label for="" class="form-label">News Headline<sup class="text-danger">*</sup></label>
<input type="text" class="form-control" name="title" id="title" 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 mb-3">
<label for="" class="form-label">Author<sup class="text-danger">*</sup></label>
<input type="text" class="form-control" name="author" id="author" 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 mb-3">
<label for="" class="form-label">Details</label>
<textarea class="form-control w-100" name="description" id="description" rows="4"></textarea>
</div>
<div class="col-12 col-sm-12 mb-3">
<label for="" class="form-label">News Link<sup class="text-danger">*</sup></label>
<input type="text" class="form-control" name="link" id="link" aria-describedby="helpId" placeholder="" required/>
<small id="helpId" class="form-text text-muted d-none ">Help text</small>
</div>
</div>
<div class="d-grid gap-2 justify-content-end my-2">
<button type="button" id="newsDetailsSave" 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 Newsfeed</h6>
<small class="text-secondary fw-normal fs-8">Parmanently delete your newsfeed.</small>
<p class="fs-7 mt-3">Once the newsfeed is deleted, it will be no longer available.</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 NEWSFEED</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 Newsfeed</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 newsfeed?.</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-project" id="delete-news" class="btn btn-danger">Delete</button>
</div>
</div>
</div>
</div>
<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="/js/newsdetails.js"></script>
<?php
include 'widgets/footer.php';
?>
</div>
</body>
</html>
<?php
}else{
header('location: /login');
}
?>