Revision 1698 | Revision 1702 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed
<?phpclass Artikel extends CI_Controller{public function __construct(){parent::__construct();$this->load->model('artikel_model', 'artikel');$this->load->model('herstellerkatalog_model', 'hersteller');}public function edit($id = null){$artikelstatus = explode(";", $GLOBALS["web_rechte"]["online_shop"]["artikel"]["status"]);$lieferstatus = explode(";", $GLOBALS["web_rechte"]["online_shop"]["artikel"]["Lieferstatus"]);$lieferstatusMaintainer = explode(";", $GLOBALS["web_rechte"]["online_shop"]["artikel"]["LieferstatusMaintainer"]);$robots = array("index,follow","index,nofollow","noindex,follow","noindex,nofollow",);$hersteller = $this->hersteller->get_list('dropdown');$daten = array();if ($id){$daten = $this->artikel->get($id);}$this->smarty->assign('artikelstatus', $artikelstatus);$this->smarty->assign('lieferstatus', $lieferstatus);$this->smarty->assign('lieferstatusMaintainer', $lieferstatusMaintainer);$this->smarty->assign('robots', $robots);$this->smarty->assign('hersteller', $hersteller);$this->smarty->assign('daten', $daten);$this->smarty->view('artikel.tpl');}public function save(){$artikel = $this->input->post('artikel');$meta = $this->input->post('metatgs');$preise = $this->input->post('preise');$auispraegungen = $this->input->post('auspraegung');$optionen = $this->input->post('optionen');$this->artikel->save($artikel);}}