Subversion-Projekte lars-tiefland.ci

Revision

Revision 528 | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
514 lars 1
<?php
2
 
3
/**
4
 * @author Lars Tiefland
5
 * @copyright 2016
6
 */
7
 
520 lars 8
/**
9
 * Versand_uebersicht
10
 *
11
 * Übersicht über alle Versandoptionen
12
 *
525 lars 13
 * @package WebanOS CI
14
 * @author Lars Tiefland
15
 * @copyright 2016
16
 * @version $Id: Versand_uebersicht.php 528 2016-09-15 11:20:18Z lars $
520 lars 17
 * @access public
18
 */
514 lars 19
class Versand_uebersicht extends CI_Controller
20
{
520 lars 21
	/**
22
	 * Versand_uebersicht::__construct()
23
	 *
24
	 * @return
25
	 */
514 lars 26
	public function __construct()
27
	{
28
		parent::__construct();
29
		$GLOBALS['order_db'] = $this->load->database('order_db', TRUE);
30
		$GLOBALS['db_red'] = $this->load->database('db_red', TRUE);
31
		$versand_laender = getVersandLaender();
32
		$zahlarten = getZahlarten();
33
		$this->smarty->assign('zahlarten', $zahlarten);
34
		$this->smarty->assign('Laender', $versand_laender);
35
	}
36
 
520 lars 37
	/**
38
	 * Versand_uebersicht::index()
39
	 *
40
	 * @return
41
	 */
514 lars 42
	function index()
43
	{
44
		$versand_uebersicht['basketVersand'] = $this->get_versandkosten();
45
		$this->smarty->assign('title', 'Versandübersicht - '.$GLOBALS['INI']['titel_only']);
46
		$this->smarty->assign('versand_uebersicht', $versand_uebersicht);
47
		$this->smarty->view('versand_uebersicht.tpl');
48
	}
49
 
520 lars 50
	/**
51
	 * Versand_uebersicht::get_versandkosten()
52
	 *
53
	 * @param mixed $land
54
	 * @return
55
	 */
514 lars 56
	private function get_versandkosten($land = null)
57
	{
58
		$items = get_versandkosten($land,'Versanduebersicht');
59
		return $items;
60
	}
61
}
62
 
251 lars 63
?>