-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
182 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
require_once('../../private/initialize.php'); | ||
$page_title = 'Ajouter Terrain'; | ||
|
||
if (is_post_request()){ | ||
$taille = $_POST['taille'] ?? ''; | ||
}else{ | ||
} | ||
?> | ||
<?php include(SHARED_PATH . '/admin_header.php') ?> | ||
|
||
|
||
<!-- Page Heading --> | ||
<h1 class="h3 mb-2 text-gray-800">Ajouter Terrain</h1> | ||
<div class="container"> | ||
<form action="create.php" method="post"> | ||
<div class="form-group"> | ||
<label for="taille">Taille</label> | ||
<input type="text" class="form-control form-control-sm" id="taille" name="taille" placeholder="Entrer la taille du terrain"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="description">Description</label> | ||
<textarea name="description" class="form-control form-control-sm" id="description" cols="30" rows="10" placeholder="Entrer la description du terrain"></textarea> | ||
</div> | ||
<div class="form-group"> | ||
<label for="prix">Prix</label> | ||
<input type="text" class="form-control form-control-sm" id="prix" name="prix" placeholder="Entrer le prix pour une reservation du terrain"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="photo">Photo du terrain</label> | ||
<input type="file" class="form-control-file" name="photo" id="photo"> | ||
</div> | ||
<button type="submit" class="btn btn-primary">Ajouter</button> | ||
<a href="terrains.php" class="btn btn-danger">Annuler</a> | ||
</form> | ||
</div> | ||
<?php include(SHARED_PATH . '/admin_footer.php') ?> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
require_once('../../private/initialize.php'); | ||
$page_title = 'Modifier Terrain'; | ||
if (!isset($_GET['id'])){ | ||
redirect_to(url_for('/admin/index.php')); | ||
} | ||
$id = $_GET['id']; | ||
|
||
if (is_post_request()){ | ||
$taille = $_POST['taille']; | ||
} | ||
?> | ||
|
||
<?php include(SHARED_PATH . '/admin_header.php'); ?> | ||
<!-- Page Heading --> | ||
<h1 class="h3 mb-2 text-gray-800">Modifier Terrain</h1> | ||
<div class="container"> | ||
<form action="" method="post"> | ||
<div class="form-group"> | ||
<label for="taille">Taille</label> | ||
<input type="text" class="form-control form-control-sm" id="taille" name="taille" placeholder="Entrer la taille du terrain"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="taille">Taille</label> | ||
<input type="text" class="form-control form-control-sm" id="taille" name="taille" placeholder="Entrer la taille du terrain"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="taille">Taille</label> | ||
<input type="text" class="form-control form-control-sm" id="taille" name="taille" placeholder="Entrer la taille du terrain"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="description">Description</label> | ||
<textarea name="description" class="form-control form-control-sm" id="description" cols="30" rows="10" placeholder="Entrer la description du terrain"></textarea> | ||
</div> | ||
<div class="form-group"> | ||
<label for="prix">Prix</label> | ||
<input type="text" class="form-control form-control-sm" id="prix" name="prix" placeholder="Entrer le prix pour une reservation du terrain"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="photo">Photo du terrain</label> | ||
<input type="file" class="form-control-file" id="photo" name="photo"> | ||
</div> | ||
<button type="submit" class="btn btn-primary">Modifier</button> | ||
<a href="terrains.php" class="btn btn-danger">Annuler</a> | ||
</form> | ||
</div> | ||
<?php include(SHARED_PATH . '/admin_footer.php') ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters