BARRAUX Arthur
3 years ago
5 changed files with 66 additions and 64 deletions
@ -1,38 +1,13 @@ |
|||||
<?php |
<?php |
||||
if ($balise == 'input'){ |
echo '<p> ',$titre,' : '; |
||||
echo '<p> ',$titre,' : '; |
if ($help) { |
||||
if ($help) { |
echo '<a class="int" href="#" onmouseover=displayHelp(',$sql_name,') onmouseout=hideHelp(',$sql_name,') ><img src="img/int.png" alt="point_int" width=20px ></a>'; |
||||
echo '<a class="int" href="#" onmouseover=displayHelp(',$sql_name,') onmouseout=hideHelp(',$sql_name,') ><img src="img/int.png" alt="point_int" width=20px></a>'; |
|
||||
} |
|
||||
echo '</p> |
|
||||
<div class="champ"> |
|
||||
<input class="entry" type=',$type,' name=',$sql_name,' required><br> |
|
||||
<img class="check" src="img/check.png" alt="check"> |
|
||||
<img class="excla" src="img/excla.png" alt="exclamation"> |
|
||||
</div> |
|
||||
<small>Error: ',$error,'</small>'; |
|
||||
} |
} |
||||
elseif ($balise == 'select') { |
echo '</p> |
||||
echo '<p>',$titre,' :</p> |
|
||||
<div class="champ"> |
<div class="champ"> |
||||
<select class="entry" name=',$sql_name,' required> |
<input class="entry" type=',$type,' name=',$sql_name,' required><br> |
||||
<option value="UC">UC</option> |
|
||||
<option value="IMP">IMP</option> |
|
||||
<option value="ECR">ECR</option> |
|
||||
<option value="VID">VID</option> |
|
||||
<option value="TBI">TBI</option> |
|
||||
</select> |
|
||||
<img class="check" src="img/check.png" alt="check"> |
<img class="check" src="img/check.png" alt="check"> |
||||
<img class="excla" src="img/excla.png" alt="exclamation"> |
<img class="excla" src="img/excla.png" alt="exclamation"> |
||||
</div>'; |
</div> |
||||
} |
<small>Error: ',$error,'</small>'; |
||||
elseif ($balise == 'textarea') { |
|
||||
echo '<p>',$titre,' :</p> |
|
||||
<div class="champ"> |
|
||||
<textarea class="entry" rows="10" cols="30" name=',$titre,' required></textarea><br> |
|
||||
<img class="check" src="img/check.png" alt="check"> |
|
||||
<img class="excla" src="img/excla.png" alt="exclamation"> |
|
||||
</div> |
|
||||
<small>Error: ',$error,'</small>'; |
|
||||
} |
|
||||
?> |
?> |
||||
|
After Width: | Height: | Size: 11 KiB |
Loading…
Reference in new issue