|
@ -1,14 +1,16 @@ |
|
|
<?php |
|
|
<?php |
|
|
if ($balise == 'input'){ |
|
|
if ($balise == 'input'){ |
|
|
echo '<div class="container-champ"> |
|
|
echo '<p> ',$titre,' : '; |
|
|
<p> ',$titre,' : <a id="int" href="#" onmouseup=displayHelp(',$sql_name,') ><img src="img/int.png" alt="point_int" width=20px></a></p> |
|
|
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 '</p> |
|
|
<div class="champ"> |
|
|
<div class="champ"> |
|
|
<input class="entry" type=',$type,' name=',$sql_name,' required><br> |
|
|
<input class="entry" type=',$type,' name=',$sql_name,' required><br> |
|
|
<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> |
|
|
<small>Error: ',$error,'</small>'; |
|
|
</div>'; |
|
|
|
|
|
} |
|
|
} |
|
|
elseif ($balise == 'select') { |
|
|
elseif ($balise == 'select') { |
|
|
echo '<p>',$titre,' :</p> |
|
|
echo '<p>',$titre,' :</p> |
|
@ -22,18 +24,15 @@ elseif ($balise == 'select') { |
|
|
</select> |
|
|
</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') { |
|
|
elseif ($balise == 'textarea') { |
|
|
echo '<div class="container-champ"> |
|
|
echo '<p>',$titre,' :</p> |
|
|
<p>',$titre,' :</p> |
|
|
|
|
|
<div class="champ"> |
|
|
<div class="champ"> |
|
|
<textarea class="entry" rows="10" cols="30" name=',$titre,' required></textarea><br> |
|
|
<textarea class="entry" rows="10" cols="30" name=',$titre,' required></textarea><br> |
|
|
<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> |
|
|
<small>Error: ',$error,'</small>'; |
|
|
</div>'; |
|
|
|
|
|
} |
|
|
} |
|
|
?> |
|
|
?> |
|
|