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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
| $GetOption = $_GET["option"];
$requete = "SELECT * FROM luminusjanvier WHERE code=".$GetOption;
$result = mysql_query($requete);
?>
</font></font></p>
</div>
</blockquote>
</blockquote>
<div align="center"> <font color="#FFFFFF"><strong><font color="#FFFFFF"><strong></strong></font></strong></font></div>
<form>
<blockquote>
<blockquote>
<p align="center"> <font color="#000000"><strong>
<input type="radio" name="option" value="10037"
<?php if ($option==10037) echo "CHECKED"; ?>
onClick="javascript:this.form.submit()" />
Ganesan
<input type="radio" name="option" value="10012"
<?php if ($option==10012) echo "CHECKED"; ?>
onclick="javascript:this.form.submit()" />
Jeremie
<input type="radio" name="option" value="10017"
<?php if ($option==10017) echo "CHECKED"; ?>
onClick="javascript:this.form.submit()" />
Arnaud
<input type="radio" name="option" value="10036"
<?php if ($option==10036) echo "CHECKED"; ?>
onClick="javascript:this.form.submit()" />
Jean-louis
<input type="radio" name="option" value="10038"
<?php if ($option==10038) echo "CHECKED"; ?>
onClick="javascript:this.form.submit()" />
Angelo
<input type="radio" name="option" value="10032"
<?php if ($option==10032) echo "CHECKED"; ?>
onClick="javascript:this.form.submit()" />
Francis
<input type="radio" name="option" value="10033"
<?php if ($option==10033) echo "CHECKED"; ?>
onClick="javascript:this.form.submit()" />
Ophelie
<input type="radio" name="option" value="10034"
<?php if ($option==10034) echo "CHECKED"; ?>
onClick="javascript:this.form.submit()" />
Lounes
<input type="radio" name="option" value="10043"
<?php if ($option==10043) echo "CHECKED"; ?>
onClick="javascript:this.form.submit()" />
Laurent
<input type="radio" name="option" value="10040"
<?php if ($option==10040) echo "CHECKED"; ?>
onClick="javascript:this.form.submit()" />
Raphael </strong></font> </p>
</blockquote>
</blockquote>
</form>
<div align="center">
<p><font color="#CC5F34"></font></p>
<p>
<?php
echo "<table><tr>";
echo "<td style='border: 1 outset #FFFFFF' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' color='#000000' size='4' align ='center'>DATE</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' color='#000000' size='4' align ='center'>POTENTIEL</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' color='#000000' size='4' align ='center'>PROSPECTS</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' color='#000000' size='4' align ='center'>CLOSING</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' color='#000000' size='4' align ='center'>INSCRIPTIONS</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' color='#000000' size='4' align ='center'>HEURES</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' color='#000000' size='4' align ='center'>CONGE</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' color='#000000' size='4' align ='center'>MALADIE</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' color='#000000' size='4' align ='center'>KILOMETRE</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' color='#000000' size='4' align ='center'>RECU</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' color='#000000' size='4' align ='center'>INSTALLES</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' color='#000000' size='4' align ='center'>ANNULES</td>";
echo "</tr>";
while ($enreg = @mysql_fetch_array($result))
{
echo "<tr>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' size='2' align ='center'>".$enreg['date']."</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' size='2' align ='center'>".$enreg['potentiel']."</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' size='2' align ='center'>".$enreg['prospects']."</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' size='2' align ='center'>".$enreg['closing']."</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' size='2' align ='center'>".$enreg['inscriptions']."</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' size='2' align ='center'>".$enreg['heures']."</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' size='2' align ='center'>".$enreg['conge']."</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' size='2' align ='center'>".$enreg['maladie']."</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' size='2' align ='center'>".$enreg['km']."</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' size='2' align ='center'>".$enreg['recu']."</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' size='2' align ='center'>".$enreg['installes']."</td>";
echo "<td style='border: 1 outset #000099' align='center' checked='false' BGCOLOR='#B1C094'><font face='Arial' size='2' align ='center'>".$enreg['annules']."</td>";
// fin de ligne
echo "</tr>";
}
$requete1 = "SELECT SUM(potentiel) as sumpotentiel, SUM(prospects) as sumprospects, SUM(closing) as sumclosing,SUM(inscriptions) as suminscriptions,SUM(heures) as sumheures,SUM(km) as sumkm,SUM(recu) as sumrecu,SUM(installes) as suminstalles,SUM(annules) as sumannules FROM luminusjanvier WHERE code=".$GetOption;
$result1 = mysql_query($requete1);
while ($enreg1 = @mysql_fetch_array($result1))
{
echo "<tr>";
echo "<td style='border: 2 outset #000000' align='center' checked='false' BGCOLOR='#8AC092'><font face='Arial' size='4' align ='center'>TOTAL</td>";
echo "<td style='border: 2 outset #000099' align='center' checked='false' BGCOLOR='#8AC092'><font face='Arial' size='4' align ='center'>".$enreg1['sumpotentiel']."</td>";
echo "<td style='border: 2 outset #000099' align='center' checked='false' BGCOLOR='#8AC092'><font face='Arial' size='4' align ='center'>".$enreg1['sumprospects']."</td>";
echo "<td style='border: 2 outset #000099' align='center' checked='false' BGCOLOR='#8AC092'><font face='Arial' size='4' align ='center'>".$enreg1['sumclosing']."</td>";
echo "<td style='border: 2 outset #000099' align='center' checked='false' BGCOLOR='#8AC092'><font face='Arial' size='4' align ='center'>".$enreg1['suminscriptions']."</td>";
echo "<td style='border: 2 outset #000099' align='center' checked='false' BGCOLOR='#8AC092'><font face='Arial' size='4' align ='center'></td>";
echo "<td style='border: 2 outset #000099' align='center' checked='false' BGCOLOR='#8AC092'><font face='Arial' size='4' align ='center'></td>";
echo "<td style='border: 2 outset #000099' align='center' checked='false' BGCOLOR='#8AC092'><font face='Arial' size='4' align ='center'></td>";
echo "<td style='border: 2 outset #000099' align='center' checked='false' BGCOLOR='#8AC092'><font face='Arial' size='4' align ='center'>".$enreg1['sumkm']."</td>";
echo "<td style='border: 2 outset #000099' align='center' checked='false' BGCOLOR='#8AC092'><font face='Arial' size='4' align ='center'>".$enreg1['sumrecu']."</td>";
echo "<td style='border: 2 outset #000099' align='center' checked='false' BGCOLOR='#8AC092'><font face='Arial' size='4' align ='center'>".$enreg1['suminstalles']."</td>";
echo "<td style='border: 2 outset #000099' align='center' checked='false' BGCOLOR='#8AC092'><font face='Arial' size='4' align ='center'>".$enreg1['sumannules']."</td>";
// fin de ligne
echo "</tr>";
}
// fin du tableau
echo "</table>";
?> |
Partager