Admin can login to access private pages (such as add courses)
This commit is contained in:
parent
0d084a69e3
commit
ec1ed49996
12 changed files with 221 additions and 24 deletions
|
|
@ -20,7 +20,9 @@ else
|
|||
echo"Dernière chance pour changer d'avis";
|
||||
?></h2>
|
||||
<p>
|
||||
<strong>Proposée par :</strong> <a href="mailto:<?php echo $question->get_writer()->getEmail(); ?>"><?php echo $question->get_writer()->getUsername(); ?></a><br><br>
|
||||
<?php
|
||||
if ($question->get_writer() != null)
|
||||
{?><strong>Proposée par :</strong> <a href="mailto:<?php echo $question->get_writer()->getEmail(); ?>"><?php echo $question->get_writer()->getUsername(); ?></a><br><br><?php } ?>
|
||||
<strong>Cours concerné :</strong> <?php echo $question->getCourse()->getName(); ?><br><br>
|
||||
<strong>Question posée :</strong> <?php echo $question->getQuestion(); ?><br><br>
|
||||
<strong>Réponses valides exhaustives :</strong>
|
||||
|
|
@ -41,7 +43,7 @@ else
|
|||
<h2>Modifier la question ...</h2>
|
||||
<form method="post" action="questions.php">
|
||||
<input type="hidden" name="id" value=<?php echo $question->getId(); ?>>
|
||||
<input type="hidden" name="email" value=<?php echo $question->get_writer()->getEmail(); ?>>
|
||||
<input type="hidden" name="email" value="<?php if ($question->get_writer() != null) echo $question->get_writer()->getEmail(); else echo "bot@nemunai.re" ?>">
|
||||
<label for="course">De quelle matière s'agit-il ?</label><br>
|
||||
<select name="course" id="course">
|
||||
<?php
|
||||
|
|
|
|||
Reference in a new issue