24 lines
725 B
PHP
24 lines
725 B
PHP
<?php
|
|
$a_touren = $GLOBALS['a_touren'];
|
|
|
|
//echo'<pre>'; print_r($row); echo'</pre>';
|
|
|
|
|
|
|
|
$tourx = $GLOBALS['mysql']->query_single("SELECT * FROM tourenliste WHERE tour='".$_POST['tid']."' and monat='".$_POST['monat']."' and jahr='".$_POST['jahr']."'");
|
|
$template->assign('tdata', $tourx['num_rows']);
|
|
if($tourx['num_rows']!=0) {
|
|
$ta_id= array_search($_POST['tid'], array_column($a_touren, 'id'));
|
|
$template->assign('tname',$a_touren[$ta_id]['tour']);
|
|
$template->assign('tinfo',$a_touren[$ta_id]['infotitel']);
|
|
$template->assign('tid',$_POST['tid']);
|
|
$template->assign('monat',$_POST['monat']);
|
|
$template->assign('jahr',$_POST['jahr']);
|
|
|
|
|
|
|
|
}
|
|
$template->assign('content', 'tpl/ajax/a_abr.tpl');
|
|
?>
|
|
|
|
|