init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
24
scripts/ajax/ma_setup.php
Normal file
24
scripts/ajax/ma_setup.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
error_reporting(E_ALL); ini_set('display_errors',0);
|
||||
|
||||
//-----------------------------------------------------------------------------------------------------------------------
|
||||
$template->assign('m',4);
|
||||
$maID=$_SESSION['maID']; $template->assign('maID', $maID);
|
||||
//-----------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
$ttyp = $GLOBALS['mysql']->query("SELECT * FROM tourentyp ORDER BY tid"); $key=0;
|
||||
while($row = $ttyp->fetch_assoc()) {
|
||||
$tt[$key]['id'] =$row['tid'];
|
||||
$tt[$key]['sid']=$row['tid']+100;
|
||||
$tt[$key]['name']=$row['tname'];
|
||||
$tt[$key]['aktiv']=$row['taktiv'];
|
||||
$tt[$key]['on']=$GLOBALS['mysql']->summe("SELECT * FROM ma_ttyp WHERE maid='".$maID."' AND ttyp='".$row['tid']."'");
|
||||
if ($tt[$key]['on']!=0) { $tt[$key]['sid']=$row['tid']+200; } else { $tt[$key]['sid']=$row['tid']+100; }
|
||||
$key++;
|
||||
}
|
||||
$template->assign('tt', $tt);
|
||||
$template->assign('content', 'tpl/ajax/ma_setup.tpl');
|
||||
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue