Subversion-Projekte lars-tiefland.inventar

Revision

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

Revision 7 Revision 14
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
Zeile 3... Zeile 3...
3
	//$Id: index.php 7 2008-05-10 16:48:57Z lars $
3
	//$Id: index.php 14 2008-05-15 18:19:36Z lars $
4
	
4
	
5
	/**
5
	/**
6
	 * @package	Inventar Datenbank
6
	 * @package	Inventar Datenbank
7
	 * @author Lars Tiefland <ltiefland@gmail.com>
7
	 * @author Lars Tiefland <ltiefland@gmail.com>
Zeile 8... Zeile 8...
8
	 * @copyright 2008
8
	 * @copyright 2008
Zeile -... Zeile 9...
-
 
9
	 **/
-
 
10
 
-
 
11
	require_once("include/common.php");
-
 
12
	
-
 
13
	switch($_POST["mode"])
-
 
14
	{
-
 
15
		case "details";
-
 
16
			$tpl_f="details.tpl";
-
 
17
			$s=new comp($_POST["id"]);
-
 
18
			$comp=$s->toArray();
-
 
19
			$smarty->assign("comp",$comp);
-
 
20
		break;
-
 
21
		case "edit":
-
 
22
			$tpl_f="edit.tpl";
-
 
23
		break;
-
 
24
		case "del":
9
	 **/
25
			$tpl_f="del.tpl";
-
 
26
		break;
-
 
27
		default:
-
 
28
			$tpl_f="index.tpl";
Zeile 10... Zeile -...
10
 
-
 
11
	require_once("include/common.php");
-
 
12
	
29
			$comp=comp::get_computers();
Zeile 13... Zeile 30...
13
	$comp=comp::get_computers();
30
			$smarty->assign("list",$comp);
14
	
31
		break;