init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
24
scripts/ajax/info_ss.php
Normal file
24
scripts/ajax/info_ss.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
error_reporting(E_ALL); ini_set('display_errors',0);
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------
|
||||
$kw_aktuell = (int)date('W'); $jahr_aktuell = (int)date('Y');
|
||||
//if(($week = date('W', mktime(0, 0, 0, 12, 31,$jahr_aktuell))) == 1) { $kwgesamt=52; } else { $kwgesamt=53; }
|
||||
$key=0; $tmp=0; $start=0;
|
||||
if($kw_aktuell<10) { $start=0; } else { $start=$kw_aktuell-9; }
|
||||
for ($i = $start; $i <= $kw_aktuell; $i++) {
|
||||
$s_tour = $GLOBALS['mysql']->query("SELECT * FROM tourenliste WHERE jahr='".$jahr_aktuell."' and kw='".$i."' and typ=8");
|
||||
$kws[$key]=$i;
|
||||
while($row = $s_tour->fetch_assoc()) {
|
||||
$tmp=$tmp+$row['gewicht'];
|
||||
|
||||
}
|
||||
$data[$key]=$tmp; $tmp=0;
|
||||
$key++;
|
||||
}
|
||||
//---------------------------------------------------------------------------------------------------------
|
||||
$template->assign('data',json_encode($data));
|
||||
$template->assign('kws',json_encode($kws));
|
||||
$template->assign('content', 'tpl/ajax/info_ss.tpl');
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue