init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
31
scripts/ajax/ma_edit.php
Normal file
31
scripts/ajax/ma_edit.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
error_reporting(E_ALL); ini_set('display_errors',0);
|
||||
|
||||
$mad = $GLOBALS['mysql']->query_single("SELECT * FROM mitarbeiter WHERE id='".$_POST['maID']."'");
|
||||
$template->assign('ma', $mad);
|
||||
//--------------------------- Mitarbeiter ID
|
||||
$_SESSION['maID']=$_POST['maID'];
|
||||
|
||||
|
||||
//--------------------------- Mitarbeitertyp
|
||||
$typ = $GLOBALS['mysql']->query_array("SELECT * FROM ma_typ ORDER by id");
|
||||
$template->assign('matyp', $typ);
|
||||
//--------------------------- Tariftyp
|
||||
$ttyp= $GLOBALS['mysql']->query_array("SELECT * FROM tariftyp ORDER by id");
|
||||
$template->assign('mattyp', $ttyp);
|
||||
//--------------------------- Konfession
|
||||
$tmpk = $GLOBALS['mysql']->query_single("SELECT * FROM konfessionen WHERE id='".$mad['konfessionen']."'");
|
||||
$template->assign('koinfo', $tmpk['bezeichnung']);
|
||||
$kot = $GLOBALS['mysql']->query_array("SELECT * FROM konfessionen ORDER by id");
|
||||
$template->assign('kotyp', $kot);
|
||||
//---------------------------
|
||||
|
||||
// echo "<pre>"; print_r($ttyp); echo "</pre>";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$template->assign('content', 'tpl/ajax/ma_edit.tpl');
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue