Subversion-Projekte lars-tiefland.ci

Revision

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

Revision Autor Zeilennr. Zeile
1135 lars 1
<?php
2
 
3
/**
4
 *
5
 * @package WebanOS CI
6
 * @author Lars Tiefland <ltiefland@gmail.com>
7
 * @copyright 2016
8
 * @version $Rev: 1182 $
9
 */
10
 
11
class Bestelladresse_model extends CI_Model
12
{
13
	public function __construct()
14
	{
15
		parent::__construct();
16
	}
17
 
18
	public function get($id)
19
	{
1138 lars 20
		$adresse = array();
1135 lars 21
		$sql = "SELECT
1180 lars 22
				anrede,
1135 lars 23
				vorname,
24
				nachname,
1141 lars 25
				firma,
1135 lars 26
				strasse1,
27
				str_nr1,
28
				plz,
29
				ort,
1182 lars 30
				email,
31
				telefon,
32
				fax,
1140 lars 33
				co.`name-ger` AS land
34
			FROM
1143 lars 35
				bestelladresse ba
1140 lars 36
			JOIN
37
				content_management.countries co
38
			ON
39
				co.id=ba.land
1135 lars 40
			WHERE
1140 lars 41
				ba.id = ".$id."
1135 lars 42
		";
43
		$res = $GLOBALS['order_db']->query($sql);
44
		$adresse = $res->row_array();
45
		return $adresse;
46
	}
47
 
48
}
49
 
50
?>