| Server IP : 199.79.63.27 / Your IP : 216.73.216.250 Web Server : Microsoft-IIS/10.0 System : Windows NT MD-PLESK-WEB5 10.0 build 20348 (Windows Server 2022) AMD64 User : IWPD_6698(lcitec7i) ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/INETPUB/VHOSTS/lcit.edu.in/lcitps.edu.in/ |
Upload File : |
<?php
include 'db.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Add NEWS</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<?php include 'alllinks.php';?>
<style>
.imgr{
height: 232px;
object-fit: cover;
}
body {
font-family: "Muli", sans-serif;
background-color: #f0f4f7;
justify-content: center;
align-items: center;
height: 100vh;
}
.form-container {
background-color: #fff;
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
width: 400px;
}
.form-container h2 {
text-align: center;
margin-bottom: 20px;
color: #333;
}
label {
display: block;
margin-bottom: 8px;
font-weight: bold;
color: #555;
}
input[type="text"],
input[type="file"] {
width: 100%;
padding: 10px;
margin-bottom: 20px;
border: 1px solid #ccc;
border-radius: 6px;
}
input[type="submit"] {
width: 100%;
padding: 12px;
background-color: #4caf50;
border: none;
color: white;
font-weight: bold;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.3s;
}
input[type="submit"]:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<?php include 'navbar.php';?>
<section>
<div class="crumbs-area">
<div class="container">
<div class="crumb-content">
<h4 class="crumb-title">Upload NEWS</h4>
</div>
</div>
</div>
<!-- TC area start -->
<div class="course-area pt--120 pb--70">
<div class="container">
<div class="row">
<div class="form-container">
<!-- <form action="Upload-news.php" method="POST" enctype="multipart/form-data">
<label for="news">Upload News:</label>
<input type="file" id="news" name="blog" required> <!-- Changed name to "blog"
<input type="submit" value="Submit">
</form>-->
<form action="Upload-news.php" method="post" enctype="multipart/form-data">
<label>Select image to upload:</label>
<input type="file" name="image" required>
<input type="submit" value="Upload Image">
</form>
</div>
</div>
</div>
</div>
<!-- TC area end -->
</section>
</body>
<?php include 'footer.php';?>
</html>