0% found this document useful (0 votes)
24 views2 pages

Ss

The document is an HTML page for posting news on a website. It contains the website header, navigation bar, content area for the news post, and footer. It allows deleting a news post by confirming through a popup.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

Ss

The document is an HTML page for posting news on a website. It contains the website header, navigation bar, content area for the news post, and footer. It allows deleting a news post by confirming through a popup.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

<!

DOCTYPE html>
<html>
<head>
<title>Teddi Posting</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Boxicons CSS -->
<link href="https://unpkg.com/[email protected]/css/boxicons.min.css"
rel="stylesheet" />
<link rel="stylesheet" href="../style.css" />
<link rel="stylesheet" href="../post_tab_style.css" />
</head>
<body>
<% if (typeof message !== 'undefined') { %>
<script>
alert("<%= message %>");
</script>
<% } %>
<!-- navbar -->
<nav class="navbar">
<div class="logo_item">
<img src="https://cdn.glitch.global/0006b97d-80a0-4243-8237-75e468418802/
heartsteel-emblem-removebg-preview.png?v=1710841251406" alt="Teddi">Teddi
</div>
<div class="search_bar">
<input type="text" placeholder="Search Teddi..." />
</div>
<div class="navbar_content">
<i class="bx bx-sun" ></i>
<i class="bx bx-plus-circle" ></i>
<i class="bx bx-bell" ></i>
<img src="https://cdn.glitch.global/0006b97d-80a0-4243-8237-75e468418802/
anhkisuluong100.jpg?v=1712215673502" alt="avt" class="profile" />
</div>
</nav>
<!-- chinh ho t phan nay -->

<form id="deleteForm" action="/deleteNews/<%= news.id %>" method="post">


<fieldset class="sub">
Bạn chắc chắn muốn xóa
<input type="submit" id="confirmButton" value="Xác Nhận">
</fieldset>
</form>

<script>
// Function to show confirmation dialog
function showConfirmation() {
var confirmation = confirm("Bạn có chắc chắn muốn xóa?");
if (!confirmation) {
document.getElementById("deleteForm").reset(); // Reset the form if the
user cancels
return false; // Prevent form submission
}
}

// Automatically submit the form when the page loads


window.onload = function() {
if (showConfirmation() !== false) {
document.getElementById("deleteForm").submit();
}
};
</script>

<!--
<div class="container">
<p>Tiêu đề</p>
<div class="content">
<input type="text" placeholder="Nhập nội dung ">
</div>
</div>
<div class="container">
<p>Nội dung</p>
<div class="content">
<textarea rows="15" cols="200" placeholder="Nhập nội dung"></textarea>
</div>
<div class="form-group ID">
<label for="id">ID:</label>
<input type="text" value="<%= news.id %>" name="ID"><br><br>
</div>
</div>

<div class="submit-button">
<input type="submit" value="Submit">
</div>
-->
<!-- footer -->
<footer>
<div class = "footer-container">
<div class = "footer-left">
<h2>TECHNEWS</h2>
<p>Add: 210 Nguyen Trai Street, Ha Noi, Viet Nam. </p>
<p>Editor_In_Chief: Nhom 3 CNPM</p>
<p>Tel: 84-24-39332316 - Fax: 84-24-39332311</p>
<p>E-mail: [email protected]</p>
</div>

<div class = "footer-right">


<h2>Newletter</h2>
<p>View the latest news and breaking news today for U.S.,
world, weather, entertainment, politics and health.</p>

<div>
<input type = "text" placeholder = "Email Address">
<i class = "fas fa-envelope"></i>
</div>
</div>
</div>

<p>Copyright &copy; 2024 All rights reserved | PTIT</p>


</footer>
</body>
</html>

You might also like