<?php
echo "<form action=\"phpmyprepaid.php\" method=\"post\">";
echo "<span style=\"font-weight: bold; font-family: Arial;\"></span>
<hr><small>";
$resultloc = getLocationName($oreon->user);
echo '<table><tr><td>Choose your Locations : </td><td>';
echo ('<select name="lsid" onchange="this.form.submit()">');
$loctmp=$loc;
if ($oreon->user->get_status()=='3') {
if ($_GET['lsid']=="All")
{
echo ("<option selected value=\"All\">All");
$loctmp="-1";
}
else
echo ("<option value=\"All\">All");
}
while ($row = $oreon->database->database->fetch_object($resultloc)) {
if($loctmp==$row->ID )
echo ("<option selected=\"selected\" value=\"".$row->LocationName."\">".$row->LocationName);
else
echo ("<option value=\"".$row->LocationName."\">".$row->LocationName);
}
echo "</td></tr></table></select><br>";
echo '<table cellpadding="7" cellspacing="10"><tr>';
echo('<td style="margin-left: 390px;">Plot : </td><td>');
echo ('<select name="plot_graphic" id="plot_graphic" onChange=\'this.form.submit()\' >');
if ($plot_graphic=="bars")
echo ("<option selected value=\"bars\">Bars</option>");
else
echo ("<option value=\"bars\">Bars</option>");
if ($plot_graphic=="lines") echo ("<option selected value=\"lines\">Lines</option>");
else echo ("<option value=\"lines\">Lines</option>");
if ($plot_graphic=="linepoint") echo ("<option selected value=\"linepoint\">Lines point</option>");
else echo ("<option value=\"linepoint\">Lines point</option>");
if ($plot_graphic=="area") echo ("<option selected value=\"area\">Area</option>");
else echo ("<option value=\"area\">Area</option>");
if ($plot_graphic=="points") echo ("<option selected value=\"points\">Points</option>");
else echo ("<option value=\"points\">Points</option>");
if ($plot_graphic=="pie") echo ("<option selected value=\"pie\">Pie</option>");
else echo ("<option value=\"pie\">Pie</option>");
if ($plot_graphic=="thinbarline") echo ("<option selected value=\"thinbarline\">Thinbarline</option>");
else echo ("<option value=\"thinbarline\">Thinbarline</option>");
if ($plot_graphic=="squared") echo ("<option selected value=\"squared\">Squared</option>");
else echo ("<option value=\"squared\">Squared</option>");
if ($plot_graphic=="stackedbars") echo ("<option selected value=\"stackedbars\">Stacked bars</option>");
else echo ("<option value=\"stackedbars\">Stacked bars</option>");
echo '</select></td>';
echo ('</tr></table></form>');
echo "<hr>
<br>";
echo"</tbody>
</table>
<br style=\"font-family: Arial;\">";
echo '<table><tr><td>';
echo '<img src="include/statistiques/GenerateStat.php?width=330&&height=250&&plot_type='.$plot_graphic.'&&typegr=\'Time\'&&basetime=Year&&puser=" alt="User statistiques">';
echo '</td><td>';
echo '<img src="include/statistiques/GenerateStat.php?width=330&&height=250&&plot_type='.$plot_graphic.'&&typegr=\'Octet\'&&basetime=Year&&puser=" alt="User statistiques">';
echo '</tr></td></table>';
?>