Revision 1331 | Revision 1388 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed
<?php/*** User** @package* @author WebanOS CI* @copyright Lars Tiefland* @version 2016* @access public*/class Order extends CI_Controller{public function __construct(){parent::__construct();$this->load->model('order_model', 'order');}/*** User::index()** @return*/public function index($anker = ''){$orders = $this->order->get_list();$this->smarty->assign('anker', $anker);$this->smarty->assign('orders', $orders);$this->smarty->view('orders.tpl');}/*** User::edit()** @param mixed $id* @return void*/public function edit($id = null){$daten["artikel_stati"] = array(array("name" => "offen","short" => "O","class" => "status_red"),array("name" => "in Bearbeitung","short" => "B","class" => "status_yellow",),array("name" => "reserviert","short" => "R","class" => "status_blue",),array("name" => "erledigt","short" => "E","class" => "status_green",),array("name" => "abgeschlossen","short" => "A","class" => "status_white",),);$daten["rechnung_stati"] = array(array("name" => "schreiben","short" => "S","class" => "status_red"),array("name" => "geschrieben","short" => "G","class" => "status_yellow",),array("name" => "bezahlt","short" => "B","class" => "status_green",),);$daten["lieferschein_stati"] = array(array("name" => "schreiben","short" => "S","class" => "status_yellow"),array("name" => "geschrieben","short" => "G","class" => "status_green",),array("name" => "offen","short" => "O","class" => "status_red",),);$daten["mahnung_stati"] = array(array("name" => "mahnung1","short" => "1","class" => "status_green"),array("name" => "mahnung2","short" => "2","class" => "status_yellow",),array("name" => "mahnung3","short" => "3","class" => "status_red",),);$daten["garantie_stati"] = array(array("name" => "eingereicht","short" => "E","class" => "status_red"),array("name" => "abgeschlossen","short" => "A","class" => "status_green",),);// Modul dokumente$preise_anzeigen = 1;if (isset($GLOBALS["user_rechte"]["Warenwirtschaft"]["bestellung"]["preise_anzeigen"])){if (!isset($GLOBALS["user_rechte"]["Warenwirtschaft"]["bestellung"]["preise_anzeigen"])){// "<br>für bestimmte user preis verbergen";$preise_anzeigen = 0;}}$order = $this->order->get($id);$this->smarty->assign('title', 'Bestellung bearbeiten');$this->smarty->assign('preise_anzeigen', $preise_anzeigen);$this->smarty->assign('order', $order);$this->smarty->assign('daten', $daten);$this->smarty->view('single_order.tpl');}public function save(){$this->order->save();}public function del($id = null){}}