function today() { $page = CurrentPageName(); if (isset($_GET["today"])) { $domain = $_GET["today"]; $graph1 = courbe_today($_GET["today"]); $t = "today"; } if (isset($_GET["week"])) { $domain = $_GET["week"]; $graph1 = courbe_week($_GET["week"]); $t = "week"; } if (isset($_GET["month"])) { $domain = $_GET["month"]; $graph1 = courbe_month($_GET["month"]); $t = "month"; } $html = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>\n\t\t\t<center><img src='{$graph1}'></center>\n\t\t\t<div id='users-table-{$t}'></div>\n\t\t</td>\n\t\t<td valign='top'>\n\t\t\t<table style='width:100%'>\n\t\t\t" . implode("\n", $GLOBALS["stats-array-{$domain}"]) . "\n\t\t\t</table>\n\t\t</td>\n\t</tr>\n\t</table>\n\t\n\t<script>\n\t\tLoadAjax('users-table-{$t}','{$page}?users-table={$domain}&t={$t}');\n\t</script>\n\t\n\t\n\t"; echo $html; }
function today(){ $page=CurrentPageName(); if(isset($_GET["today"])){ $domain=$_GET["today"]; $graph1=courbe_today($_GET["today"]); $t="today"; } if(isset($_GET["week"])){ $domain=$_GET["week"]; $graph1=courbe_week($_GET["week"]); $t="week"; } if(isset($_GET["month"])){ $domain=$_GET["month"]; $graph1=courbe_month($_GET["month"]); $t="month"; } $html=" <table style='width:100%'> <tr> <td valign='top'> <center><img src='$graph1'></center> <div id='users-table-$t'></div> </td> <td valign='top'> <table style='width:100%'> ". implode("\n",$GLOBALS["stats-array-$domain"])." </table> </td> </tr> </table> <script> LoadAjax('users-table-$t','$page?users-table=$domain&t=$t'); </script> "; echo $html; }