22 lines
746 B
PHP
22 lines
746 B
PHP
<?php
|
|
if (date('w')==6) {
|
|
$jahr = (int)date('Y');
|
|
$kw = (int)date('W');
|
|
$abfrage1 = $GLOBALS['mysql']->query("SELECT * FROM tourenliste WHERE kw='".$kw."' and jahr='".$jahr."' and typ=19 ORDER BY tour"); $key=0;
|
|
while($row = $abfrage1->fetch_assoc()) {
|
|
$test_sped = $GLOBALS['mysql']->query_single("SELECT * FROM touren WHERE id='".$row['tour']."'");
|
|
$sslive[$key]['tnamek']=$test_sped['tour'];
|
|
$sslive[$key]['status']=$row['status'];
|
|
$sslive[$key]['pal']="0";
|
|
$sslive[$key]['istpal']="0";
|
|
$sslive[$key]['pakete']=$row['Pakete'];
|
|
$tour=$row['tour'];
|
|
$key++;
|
|
}
|
|
$template->assign('sslive', $sslive);
|
|
//echo'<pre>'; print_r($abfrage1); echo'</pre>';
|
|
|
|
$template->assign('content', 'tpl/ajax/sasolive.tpl');
|
|
}
|
|
?>
|
|
|