Skip to content
Snippets Groups Projects
Commit fea20cbc authored by Bitha17's avatar Bitha17
Browse files

minor edit event pages layout

parent 6a344bbb
Branches
Tags
No related merge requests found
......@@ -17,29 +17,31 @@
<body>
<?php include '../template/navbar.php';?>
<!-- <h1 id="title">Create an Event</h1> -->
<form method="post" class="event-form" action="../../router.php" enctype="multipart/form-data">
<input type="text" name="eventName" placeholder="Name" required>
<input type="text" name="eventStock" placeholder="Stock" required>
<input type="text" name="eventPrice" placeholder="Price" required>
<input type="datetime-local" name="eventDate" required>
<input type="text" name="eventLocation" placeholder="Location" required>
<div class="main-content">
<form method="post" class="event-form" action="../../router.php" enctype="multipart/form-data">
<input type="text" name="eventName" placeholder="Name" required>
<input type="text" name="eventStock" placeholder="Stock" required>
<input type="text" name="eventPrice" placeholder="Price" required>
<input type="datetime-local" name="eventDate" required>
<input type="text" name="eventLocation" placeholder="Location" required>
<!-- Drag-and-drop area for image upload -->
<div id="drop-area-create">
<p>Drag and drop an image file here or click to select one.</p>
<input type="file" id="file-input-create" name="gambar" accept="image/*" required>
</div>
<!-- Drag-and-drop area for image upload -->
<div id="drop-area-create">
<p>Drag and drop an image file here or click to select one.</p>
<input type="file" id="file-input-create" name="gambar" accept="image/*" required>
</div>
<!-- <input type="text" name="vid" placeholder="Video URL"> -->
<div id="drop-area-create">
<p>Drag and drop an video file here or click to select one.</p>
<input type="file" id="file-input-create" name="vid" accept="video/*" required>
</div>
<div id="button-container">
<button type="submit" name="eventAction" value="createEvent">Create</button>
<button type="button" id="cancelButton">Cancel</button>
</div>
</form>
<!-- <input type="text" name="vid" placeholder="Video URL"> -->
<div id="drop-area-create">
<p>Drag and drop an video file here or click to select one.</p>
<input type="file" id="file-input-create" name="vid" accept="video/*" required>
</div>
<div id="button-container">
<button type="submit" name="eventAction" value="createEvent">Create</button>
<button type="button" id="cancelButton">Cancel</button>
</div>
</form>
</div>
<?php include '../template/footer.php';?>
<script>
......
......@@ -17,29 +17,31 @@
<body>
<?php include '../template/navbar.php';?>
<!-- <h1>Update Event</h1> -->
<form method="post" class="event-form" action="../../router.php" enctype="multipart/form-data">
<input type="hidden" name="eventId" value="<?php echo $_GET['id']; ?>">
<input type="text" name="eventName" placeholder="Name" required>
<input type="text" name="eventPrice" placeholder="Price" required>
<input type="datetime-local" name="eventDate" required>
<input type="text" name="eventLocation" placeholder="Location" required>
<div class="main-content">
<form method="post" class="event-form" action="../../router.php" enctype="multipart/form-data">
<input type="hidden" name="eventId" value="<?php echo $_GET['id']; ?>">
<input type="text" name="eventName" placeholder="Name" required>
<input type="text" name="eventPrice" placeholder="Price" required>
<input type="datetime-local" name="eventDate" required>
<input type="text" name="eventLocation" placeholder="Location" required>
<!-- Drag-and-drop area for image upload -->
<div id="drop-area-create">
<p>Drag and drop an image file here or click to select one.</p>
<input type="file" id="file-input-create" name="gambar" accept="image/*">
</div>
<!-- Drag-and-drop area for image upload -->
<div id="drop-area-create">
<p>Drag and drop an image file here or click to select one.</p>
<input type="file" id="file-input-create" name="gambar" accept="image/*">
</div>
<!-- <input type="text" name="vid" placeholder="Video URL"> -->
<div id="drop-area-create">
<p>Drag and drop an video file here or click to select one.</p>
<input type="file" id="file-input-create" name="vid" accept="video/*">
</div>
<div id="button-container">
<button type="submit" name="eventAction" value="updateEvent">Update</button>
<button type="button" id="cancelButton">Cancel</button>
</div>
</form>
<!-- <input type="text" name="vid" placeholder="Video URL"> -->
<div id="drop-area-create">
<p>Drag and drop an video file here or click to select one.</p>
<input type="file" id="file-input-create" name="vid" accept="video/*">
</div>
<div id="button-container">
<button type="submit" name="eventAction" value="updateEvent">Update</button>
<button type="button" id="cancelButton">Cancel</button>
</div>
</form>
</div>
<?php include '../template/footer.php';?>
<script>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment