Initial commit
Création de tous les dossiers et fichiers avec mise à part des constantes
This commit is contained in:
commit
4c71fb59b4
42 changed files with 2544 additions and 0 deletions
38
vues/vElement.php
Normal file
38
vues/vElement.php
Normal file
|
@ -0,0 +1,38 @@
|
|||
<?php if ($pageExiste): ?>
|
||||
<section id='principal'>
|
||||
<form method="POST" action="index.php?page=element&type=<?=$type?>&id=<?=$infoElement['id']?>">
|
||||
<?php if($_SESSION['auth']): ?>
|
||||
<div id="modifs">
|
||||
<a href="index.php?page=supprimerElement&delete=true" id="suppression">Supprimer <?=$determinant . $type?></a>
|
||||
<input type="submit" value="Enregistrer les valeurs" id="edition"/>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div id="modifs">
|
||||
<a href="index.php?page=connexion" id="important">Pour effectuer des modification, vous devez vous connecter</a>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<input
|
||||
type="text"
|
||||
value="<?=$infoElement['nom']?>"
|
||||
name="nom"
|
||||
<?= $_SESSION['auth'] ? '' : 'disabled' ?>
|
||||
/>
|
||||
|
||||
<?php if ($type == 'ingredient'): ?>
|
||||
<br/>
|
||||
<?=SEPARATEUR?>
|
||||
<?php foreach (lANNEE as $mois): ?>
|
||||
<input type="checkbox" name="<?=$mois?>" id="<?=$mois?>" <?=$infoElement[$mois]?'checked="true"':''?> <?= $_SESSION['auth'] ? '' : 'disabled' ?>/>
|
||||
<label for="<?=$mois?>"><?=$mois?></label>
|
||||
<?=SEPARATEUR?>
|
||||
<?php endforeach ?>
|
||||
<?php endif ?>
|
||||
|
||||
<br/>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<?php else: ?>
|
||||
<?php include('pageManquante.php')?>
|
||||
<?php endif ?>
|
Loading…
Add table
Add a link
Reference in a new issue