Skip to content

Commit 06dc19b

Browse files
committed
can't fix now (#2)/added something in #8
1 parent 5ae6786 commit 06dc19b

5 files changed

Lines changed: 17 additions & 4 deletions

File tree

home.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@
216216
<p>Free vaccination for children under 5 years old. Visit the health center from October 15-20.</p>
217217
<time datetime="2025-10-15">Oct 15, 2025</time>
218218
</a>
219+
220+
<a class="carousel-slide">
221+
<h4>Growing papulation of crocodile in palawan!</h4>
222+
<p>Experts have documented several crocodile nesting sites during a night survey in Barangay Canipaan.</p>
223+
<time datetime="2025-11-117">Oct 15, 2025</time>
224+
</a>
219225
</div>
220226
221227
<div class="carousel-dots" role="tablist" aria-label="Carousel navigation">

pages/Admin/announcement/edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</script>";
3434
}
3535

36-
} elseif ($action === 'add' && !empty($title) && !empty($content) && !empty($date)) {
36+
} elseif ($action === 'Add' && !empty($title) && !empty($content) && !empty($date)) {
3737
// INSERT
3838
$sql = "INSERT INTO newupdate (title, Content, date) VALUES ('$title', '$content', '$date')";
3939
if (mysqli_query($conn, $sql)) {

pages/Admin/announcement/editForm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@
126126
<input type="date" name="date" value="<?php echo $date; ?>" required><br><br>
127127

128128
<!-- Button sends 'update' action if editing, otherwise 'add' -->
129-
<input type="submit" name="action" value="<?php echo $updateID ? 'update' : 'add'; ?>">
130-
<a><button type="button" onclick="window.location.href='news.php'">Cancel</button></a>
129+
<input type="submit" name="action" value="<?php echo $updateID ? 'update' : 'Add'; ?>">
130+
<!--<a><button type="button" onclick="window.location.href='news.php'">Cancel</button></a>-->
131131
<a href="news.php"><button type="button" >Back</button></a>
132132
</form>
133133
</div>

pages/Admin/announcement/news.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@
5858
<input type='submit' value='Delete' class='delete-btn'>
5959
</form>
6060
</td>";
61+
echo "<tr>
62+
<td colspan='4' align='center'>
63+
<form method='POST' action='edit.php'>
64+
<input type='submit' value='Add Announcement' class='edit-btn'>
65+
</form>
66+
</td>
67+
</tr>";
6168
echo "</tr>";
6269
}
6370

pages/auth/login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
if (isset($_POST['login'])) {
88
$gmail = mysqli_real_escape_string($conn, $_POST['gmail']);
99
$password = $_POST['password'];
10-
\\
10+
1111
$sql = "SELECT * FROM userdata WHERE gmail='$gmail'";
1212
$result = mysqli_query($conn, $sql);
1313

0 commit comments

Comments
 (0)