Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5e80d64
Merge pull request #7 from ibrahimcan98/ibrahim
Ibogr Apr 12, 2025
f33c485
fix small mistakes
ibrahimcan98 Apr 13, 2025
e16ce87
fix small mistakes and create footer.php and nav.php
ibrahimcan98 Apr 16, 2025
4186950
white text style
ibrahimcan98 Apr 16, 2025
728b2fd
small changes
ibrahimcan98 Apr 16, 2025
a11221e
updates to index page with the use of nav and footer php include
ne-el-al Apr 17, 2025
8e41a9d
Merge pull request #12 from ibrahimcan98/php-updates
ne-el-al Apr 17, 2025
9556495
Update all html to php files, save html files to separate folder for …
ne-el-al Apr 17, 2025
e32bbee
Merge branch 'main' into php-updates
ne-el-al Apr 17, 2025
8c3f50d
Merge pull request #15 from ibrahimcan98/php-updates
ne-el-al Apr 17, 2025
332c9e2
rename sign up css file
ne-el-al Apr 17, 2025
a41e5a3
fixed connection in all files and update to js animation
ne-el-al Apr 17, 2025
b034ef1
nav php
ibrahimcan98 Apr 17, 2025
20ab0eb
Fix dropdown login and sign in menu
ne-el-al Apr 17, 2025
fe9c76d
Merge branch 'main' of https://github.com/ibrahimcan98/WEB-PROJECT
ne-el-al Apr 17, 2025
51a2584
fix
ne-el-al Apr 17, 2025
b828d84
GENERAL CONTROL ALL THE PAGES
ibrahimcan98 Apr 17, 2025
3ed34dd
Merge branch 'main' of https://github.com/ibrahimcan98/WEB-PROJECT
ibrahimcan98 Apr 17, 2025
64e2e66
FINISH HIM
ibrahimcan98 Apr 18, 2025
19b237c
1
ibrahimcan98 Apr 18, 2025
dc433ed
finished finally
ibrahimcan98 Apr 18, 2025
d73e6b2
fixed tags
ibrahimcan98 Apr 18, 2025
ebc1912
when we delete it was deleting all off booking , and when we edit it …
ibrahimcan98 Apr 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
154 changes: 0 additions & 154 deletions about.html

This file was deleted.

45 changes: 45 additions & 0 deletions about.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php
$page_title = "About";
include("./nav.php");
?>

<!-- MAIN SECTION -->
<section id="about" class="about_detail">
<img src="./media/profile_ivana.png" alt="Photographer Ivana" />
<article class="about_her">
<h1>My name is <span>Ivana Tumbeva</span></h1>
<p>
I have been a family and portrait photographer for 5 years,
capturing genuine emotions and timeless moments. Since 2022, I have
been studying photography at Griffith College Dublin, continuously
refining my skills and artistic vision.
</p>
<p>
As a photographer, I am deeply passionate about capturing raw emotions and the unspoken beauty of human connection.
Portrait and family photography allow me to freeze moments of love, laughter, and vulnerability, turning them into timeless memories.
Through my lens, I strive to reveal not just faces, but the depth of feelings that make each person unique.
Photography, to me, is more than an art—it’s a way to honor relationships, preserving the warmth of a touch or the sparkle in someone’s eyes.
</p>
<!-- Education and Awards list -->
<ul>
<li>
<h2>Education</h2>
<ul>
<li>Griffith College, Dublin (since 2022)</li>
</ul>
</li>
<li>
<h2>Awards</h2>
<ul>
<li>LensCulture Portrait Awards, 2023</li>
<li>CEWE Photo Award, 2022</li>
<li>Young Photographer of the Year Awards, 2020</li>
</ul>
</li>
</ul>
</article>
</section>

<?php
include("./footer.php");
?>
80 changes: 80 additions & 0 deletions account.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?php
$page_title = "Account";
include("./nav.php");
include("./connection.php");

//
// if (!isset($_SESSION['Username'])) {
// header("Location: login.php");
// exit();
// }

if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['selected_booking']) && isset($_POST['action'])) {
$action = $_POST['action'];
$selectedBookings = $_POST['selected_booking']; // Bu artık bir dizi (array)

if ($action === "delete") {
foreach ($selectedBookings as $bookingID) {
$deleteQuery = $conn->prepare("DELETE FROM Booking WHERE BookingID = ? AND UserID = ?");
$deleteQuery->bind_param("ii", $bookingID, $_SESSION['UserID']);
$deleteQuery->execute();
$deleteQuery->close();
}
echo "<p style='color:green; text-align:center;'>Selected booking(s) deleted successfully.</p>";
} elseif ($action === "edit") {
if (count($selectedBookings) == 1) {
$bookingID = $selectedBookings[0];
// Scroll ile form bölümüne yönlendir
header("Location: booking.php?edit_id=$bookingID#bookingForm");
exit();
} else {
echo "<p style='color:red; text-align:center;'>Please select only one booking to edit.</p>";
}
}
}
?>

<main id="account">
<h1>Welcome, <?php echo $_SESSION['Username']; ?>!</h1>

<form method="POST" action="">
<section id="account_container">
<h2 class="account_h2">Your Bookings</h2>

<?php
$dateBring = $conn->prepare("SELECT BookingID, DateOfShoot, TimeOfShoot, TypeOfShoot, Message, City FROM Booking WHERE UserID = ?");
$dateBring->bind_param("i", $_SESSION['UserID']);
$dateBring->execute();
$result = $dateBring->get_result();

if ($result && $result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
echo "<div class='booking-box'>";
echo "<label class='booking-label'>";
echo "<input type='checkbox' name='selected_booking[]' value='" . $row['BookingID'] . "'>";
echo "<div class='booking-info'>";
echo "<p><strong>Date:</strong> " . $row['DateOfShoot'] . "</p>";
echo "<p><strong>Time:</strong> " . $row['TimeOfShoot'] . "</p>";
echo "<p><strong>Type:</strong> " . $row['TypeOfShoot'] . "</p>";
echo "<p><strong>Message:</strong> " . $row['Message'] . "</p>";
echo "<p><strong>City:</strong> " . $row['City'] . "</p>";
echo "</div>";
echo "</label>";
echo "</div>";
}

echo "<div class='booking-actions'>";
echo "<button type='submit' name='action' value='edit' class='edit-btn'>Edit</button>";
echo "<button type='submit' name='action' value='delete' class='delete-btn'>Delete</button>";
echo "</div>";
} else {
echo "<p class='no-booking-message'>You have no bookings yet.</p>";
}

$dateBring->close();
?>
</section>
</form>
</main>

<?php include("./footer.php"); ?>
Loading