1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
<html dir=rtl xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Document sans titre</title>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.js">
</script>
<script type="text/javascript">
animatedcollapse.addDiv('jason', 'fade=1,height=80px')
animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV
}
animatedcollapse.init()
</script>
</head>
<body>
<?php
mysql_connect("localhost","root","");
mysql_select_db("base");
$resObjectif = mysql_query("SELECT Id,NomObj FROM objectif ORDER BY Id ");
while($rowObjectif = mysql_fetch_assoc($resObjectif))
{
$idobj=$rowObjectif['Id'];
echo "<ul><IMG SRC='images/puce_bleue.png'>
<a href='javascript:animatedcollapse.toggle('jason');'>".$rowObjectif['NomObj']."</a>
</image></ul>";
echo "<div id='jason' style='display:none'>
<table width='462' border='1' bordercolor='#3399FF' align='center' dir='rtl'>";
echo "<tr bgcolor='#CCFFCC'>
<th bgcolor='#6699CC' align='center'></th>
$indicateurres = mysql_query("SELECT IdIndicateur,Nom FROM indicateur
WHERE IdObjectif='$idobj'") or die(mysql_error());
while ($rowindicateur= mysql_fetch_assoc($indicateurres))
{
echo "<tr><th width='234' bgcolor='#6699CC' align='center'>".$rowindicateur['Nom']."</th>";
}
echo "</tr></table></div>
</body>
</html> |
Partager