Revision 20 | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed
<?php//$Id: index.php 28 2008-05-24 22:02:19Z lars $/*** @package Inventar Datenbank* @author Lars Tiefland <ltiefland@gmail.com>* @copyright 2008**/require_once("include/common.php");switch($_POST["mode"]){case "details";$tpl_f="details.tpl";$s=new comp($_POST["id"]);$comp=$s->toArray();$comp_hw=computer_hardware::getHardware($_POST["id"]);$smarty->assign("comp_hw",$comp_hw);$smarty->assign("comp",$comp);$smarty->assign("h1","Computerdetails");break;case "edit":$tpl_f="edit_comp.tpl";break;case "ask":$tpl_f="confirm.tpl";break;case "new":$tpl_f="new_comp.tpl";break;case "del":$tpl_f="meld.tpl";break;default:$tpl_f="index.tpl";$comp=comp::get_computers();$smarty->assign("list",$comp);$smarty->assign("h1","Computerübersicht");break;}$smarty->display($tpl_f);?>