Zakladni framework pro preklady (+ cesky preklad)
[mirrors/SokoMan.git] / assistants / stats.inc.php
index bd84300c4e9961fefc5c5a4a925ff8340a948b62..e3531281c83e3343d77a0ff0808cae1695411454 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-$script = $_SERVER['SCRIPT_NAME'].'/assistant/stats';
 $month=date('Y-m');
 $month_sql='';
 if(isset($_GET['month'])) {
@@ -8,7 +7,7 @@ if(isset($_GET['month'])) {
 }
 ?>
 
-<form action="<?=$script?>/" method="GET">
+<form action="<?=$URL?>/" method="GET">
        YYYY-MM: <input type="text" name="month" autofocus value="<?=$month?>" />
        <input type="submit" value="SELECT BY MONTH" />
 </form>
@@ -32,5 +31,5 @@ $queries = array( //TODO: use build_query_select()!!!
 
 foreach($queries as $description => $sql) {
        echo "<h2>$description</h2>";
-       echo $this->html->render_item_table($result = $this->db->safe_query($sql)->fetchAll(PDO::FETCH_ASSOC));
+       echo $this->html->render_item_table($result = $this->db->safe_query_fetch($sql));
 }
This page took 0.0964 seconds and 4 git commands to generate.