Subversion-Projekte lars-tiefland.inventar

Revision

Revision 20 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 20 Revision 28
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
Zeile 3... Zeile 3...
3
	//$Id: index.php 20 2008-05-15 19:12:18Z lars $
3
	//$Id: index.php 28 2008-05-24 22:02:19Z lars $
4
	
4
	
5
	/**
5
	/**
6
	 * @package	Inventar Datenbank
6
	 * @package	Inventar Datenbank
Zeile 17... Zeile 17...
17
			$s=new comp($_POST["id"]);
17
			$s=new comp($_POST["id"]);
18
			$comp=$s->toArray();
18
			$comp=$s->toArray();
19
			$comp_hw=computer_hardware::getHardware($_POST["id"]);
19
			$comp_hw=computer_hardware::getHardware($_POST["id"]);
20
			$smarty->assign("comp_hw",$comp_hw);
20
			$smarty->assign("comp_hw",$comp_hw);
21
			$smarty->assign("comp",$comp);
21
			$smarty->assign("comp",$comp);
-
 
22
			$smarty->assign("h1","Computerdetails");
22
		break;
23
		break;
23
		case "edit":
24
		case "edit":
24
			$tpl_f="edit.tpl";
25
			$tpl_f="edit_comp.tpl";
-
 
26
		break;
-
 
27
		case "ask":
-
 
28
			$tpl_f="confirm.tpl";
-
 
29
		break;
-
 
30
		case "new":
-
 
31
			$tpl_f="new_comp.tpl";
25
		break;
32
		break;
26
		case "del":
33
		case "del":
27
			$tpl_f="del.tpl";
34
			$tpl_f="meld.tpl";
28
		break;
35
		break;
29
		default:
36
		default:
30
			$tpl_f="index.tpl";
37
			$tpl_f="index.tpl";
31
			$comp=comp::get_computers();
38
			$comp=comp::get_computers();
32
			$smarty->assign("list",$comp);
39
			$smarty->assign("list",$comp);
-
 
40
			$smarty->assign("h1","Computer&uuml;bersicht");
33
		break;
41
		break;
34
	}
42
	}
Zeile 35... Zeile 43...
35
	
43
	
Zeile 36... Zeile -...
36
	$smarty->display($tpl_f);
-
 
37
 
44
	$smarty->display($tpl_f);
-
 
45