Esempio n. 1
0
function afficherListeComposants()
{
    $lesComposants = selectDbComposants();
    $nbComposants = count($lesComposants);
    ?>
<br>
   <table  border='0' cellpadding='0' cellspacing='2' class='mh_tdborder' align='center'width='100%'>
     <tr class='mh_tdpage'><td >
    	<table  border='0' cellpadding='0' cellspacing='1' width='100%' align='center'>
     	 <tr class='mh_tdtitre'>
        <td align='center'>
					<h2>Liste des Composants prioritaires	</h2>
					<?php 
    afficherDateTroll();
    ?>
<br>
					<input type='button' onClick='Javascript:document.location.href="engine_view.php?composant=new"' value="Ajouter un composant prioritaire" class='mh_form_submit'><br><br>
				</td>
				</tr>
     	 <tr class='mh_tdpage'>

<?php 
    echo "<table width='100%'>";
    echo "<tr class='mh_tdtitre'><td>Nom</td>";
    echo "<td>Race</td>";
    echo "<td>Priorité</td>";
    echo "<td>Commentaire</td>";
    echo "<td>Editer</td>";
    echo "</tr>";
    for ($i = 1; $i <= $nbComposants; $i++) {
        $res = $lesComposants[$i];
        $lien = "engine_view.php?composant={$res['id_composant']}";
        echo "<tr><td>" . stripslashes($res['nom_composant']) . "</td>";
        echo "<td>" . stripslashes($res['id_race_composant']) . "</td>";
        echo "<td>" . $res['priorite_composant'] . "</td>";
        echo "<td>" . stripslashes($res['commentaire_composant']) . "</td>";
        echo "<td><a href='{$lien}'>Editer</td>";
        echo "</tr>";
    }
    echo "</table>";
    echo "</td></tr></table>";
    echo "</td></tr></table>";
}
Esempio n. 2
0
<?php

include_once "admin_functions.php";
?>
<br/>
<table width="98%" cellspacing="1" border="0" cellpadding="1" class="mh_tdborder" align="center">
	<tr class="mh_tdtitre"> 
		<td align="center">
			<?php 
afficherDateTroll();
echo strftime("%A %d %B , il est %T");
?>
		</td>
	</tr>
</table>
<br/><br/><br/><br/>
<?php 
include_once "inc_disconnect.php";
?>
<br/><br/><br/><br/>
<br/><br/><br/><br/>
<br/><br/><br/><br/>
<br/><br/><br/><br/>
<br/><br/><br/><br/>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
	//_uacct = "UA-1451857-2";
	_uacct = "UA-812597-7";
	urchinTracker();
</script>
</body>