Subversion-Projekte lars-tiefland.ci

Revision

Revision 1388 | Revision 1398 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1388 Revision 1391
Zeile 22... Zeile 22...
22
	 * 
22
	 * 
23
	 * @return
23
	 * @return
24
	 */
24
	 */
25
	public function index($anker = '')
25
	public function index($anker = '')
26
	{
26
	{
-
 
27
		//Wenn der Filter zurücksetzen gedrück wird, dann wird $filter nicht gesetzt und die Session muss dann geleert werden damit die Filter die Standard auswahl haben
-
 
28
		if ($mode == "resetFilter")
-
 
29
		{
-
 
30
			unset($_SESSION["filter"]);
-
 
31
		}
-
 
32
		if (isset($_SESSION["filter"]) && $_SESSION["filter"])
-
 
33
		{
-
 
34
			$filter = $_SESSION["filter"];
-
 
35
		}
-
 
36
		if (isset($_GET["filter"]) && $_GET["filter"])
-
 
37
		{
-
 
38
			$filter = $_GET["filter"];
-
 
39
		}
-
 
40
		elseif (isset($_POST["filter"]) && $_POST["filter"])
-
 
41
		{
-
 
42
			$filter = $_POST["filter"];
-
 
43
		}
-
 
44
		if ($web_rechte["Warenwirtschaft"]["bestellung"]["neu"])
-
 
45
		{
-
 
46
			$arr = explode(";", $web_rechte["Warenwirtschaft"]["bestellung"]["neu"]);
-
 
47
			foreach ($arr as $f)
-
 
48
			{
-
 
49
				list($fname, $fWert) = explode("=", $f);
-
 
50
				if (!isset($filter[$fname]))
-
 
51
				{
-
 
52
					$filter[$fname] = $fWert;
-
 
53
					$_SESSION["filter"][$fname] = $fWert;
-
 
54
				}
-
 
55
			}
-
 
56
		}
-
 
57
		if (!isset($filter["ausgabeart"]))
-
 
58
		{
-
 
59
			$filter["ausgabeart"] = 0;
-
 
60
		}
-
 
61
		if (!isset($filter["laender"]))
-
 
62
		{
-
 
63
			$filter["laender"] = 0;
-
 
64
		}
-
 
65
		if (!isset($filter["status"]))
-
 
66
		{
-
 
67
			$filter["status"] = "";
-
 
68
		}
-
 
69
		if (!isset($filter["bStatus"]))
-
 
70
		{
-
 
71
			$filter["bStatus"] = "of_fr_ve";
-
 
72
		}
-
 
73
		if (!isset($filter["logistiker"]))
-
 
74
		{
-
 
75
			$filter["logistiker"] = 0;
-
 
76
		}
-
 
77
		if (!isset($filter["zeit"]))
-
 
78
		{
-
 
79
			$filter["zeit"] = 0;
-
 
80
		}
-
 
81
		if (!isset($filter["kundensuche"]))
-
 
82
		{
-
 
83
			$filter["kundensuche"] = "";
-
 
84
		}
-
 
85
		if (!isset($filter["paketnummer"]))
-
 
86
		{
-
 
87
			$filter["paketnummer"] = "";
-
 
88
		}
-
 
89
		if (!isset($filter["rechnungsstatus"]))
-
 
90
		{
-
 
91
			$filter["rechnungsstatus"] = "";
-
 
92
		}
-
 
93
		if (!isset($filter["shopID"]))
-
 
94
		{
-
 
95
			$filter["shopID"] = "";
-
 
96
		}
-
 
97
		if (!isset($filter["bestellart_id"]))
-
 
98
		{
-
 
99
			$filter["bestellart_id"] = "";
-
 
100
		}
-
 
101
		if (!isset($filter["artikelsuche"]))
-
 
102
		{
-
 
103
			$filter["artikelsuche"] = "";
-
 
104
		}
-
 
105
		if (!isset($filter["fremd_ID"]))
-
 
106
		{
-
 
107
			$filter["fremd_ID"] = "";
-
 
108
		}
-
 
109
		if (!isset($filter["bestellung_ID"]))
-
 
110
		{
-
 
111
			$filter["bestellung_ID"] = "";
-
 
112
		}
-
 
113
		if (!isset($_GET["login_id"]))
-
 
114
		{
-
 
115
			$_GET["login_id"] = "";
-
 
116
		}
-
 
117
		if (!isset($filter["order"]))
-
 
118
		{
-
 
119
			$filter["order"] = "";
-
 
120
		}
-
 
121
		if (!isset($filter["shortline1"]))
-
 
122
		{
-
 
123
			$filter["shortline1"] = "";
-
 
124
		}
-
 
125
		if (!isset($filter["status1"]))
-
 
126
		{
-
 
127
			$filter["status1"] = "";
-
 
128
		}
-
 
129
		/* Neue Ausgabefilte: 18.03.2008 Markus N. */
-
 
130
		if (!$filter['ausgabe'])
-
 
131
		{
-
 
132
			$filter['ausgabe'] = "bestellung";
-
 
133
		}
-
 
134
		if (isset($filter["order"]) && $order == "")
-
 
135
		{
-
 
136
			$order = $filter["order"];
-
 
137
		}
-
 
138
		// wenn ausgabeart: Schnelleditor/Bestellung
-
 
139
 
-
 
140
		if (!isset($desc))
-
 
141
		{
-
 
142
			$desc = false;
-
 
143
		}
-
 
144
 
-
 
145
		if ($order && $order[0] == "_")
-
 
146
		{
-
 
147
			$order = substr($order, 1);
-
 
148
			$desc = true;
-
 
149
		}
-
 
150
		if (is_null($filter['bestellart_id']))
-
 
151
		{
-
 
152
			if (!isset($web_rechte["Warenwirtschaft"]["bestellung"]["bestellart"]))
-
 
153
			{
-
 
154
				$filter["bestellart_id"] = -1;
-
 
155
			}
-
 
156
			else
-
 
157
			{
-
 
158
				$filter['bestellart_id'] = 1;
-
 
159
			}
-
 
160
		}
-
 
161
		if (isset($web_rechte["Warenwirtschaft"]["bezahlstatus"]["bezahlstatus"]))
-
 
162
		{
-
 
163
			if (!isset($filter["bezahlstatus"]))
-
 
164
			{
-
 
165
				$filter["bezahlstatus"] = "";
-
 
166
			}
-
 
167
		}
-
 
168
		if (isset($web_rechte["Warenwirtschaft"]["bestellung"]["versandstatus"]))
-
 
169
		{
-
 
170
			if (!isset($filter["versandstatus"]))
-
 
171
			{
-
 
172
				$filter["versandstatus"] = "";
-
 
173
			}
-
 
174
		}
-
 
175
		$this->session->filter = $filter;
27
		$ausgabearten = array(
176
		$ausgabearten = array(
28
			array(
177
			array(
29
				"id" => 0,
178
				"id" => 0,
30
				"name" => "Bestellung",
179
				"name" => "Bestellung",
31
				),
180
				),
Zeile 124... Zeile 273...
124
		$this->smarty->assign("shortline1", $filter["shortline1"]);
273
		$this->smarty->assign("shortline1", $filter["shortline1"]);
125
		$this->smarty->assign("status1", $filter["status1"]);
274
		$this->smarty->assign("status1", $filter["status1"]);
126
		$this->smarty->assign("dokument", $filter["dokument"]);
275
		$this->smarty->assign("dokument", $filter["dokument"]);
127
		$this->smarty->assign("bezahlstatus", $filter["bezahlstatus"]);
276
		$this->smarty->assign("bezahlstatus", $filter["bezahlstatus"]);
128
		$this->smarty->assign("versandstatus", $filter["versandstatus"]);
277
		$this->smarty->assign("versandstatus", $filter["versandstatus"]);
129
		$this->smarty->assign("user_rechte", $GLOBALS["user_rechte"]);
-
 
130
		$this->smarty->assign("web_rechte", $GLOBALS["web_rechte"]);
-
 
131
		$this->smarty->assign("web_settings", $web_settings);
-
 
132
		$this->smarty->assign("shops", $shops_sel);
278
		$this->smarty->assign("shops", $shops_sel);
133
		$this->smarty->assign("filter_maske", $filter_maske);
279
		$this->smarty->assign("filter_maske", $filter_maske);
134
		$this->smarty->assign("laender_filter", $laender_filter);
280
		$this->smarty->assign("laender_filter", $laender_filter);
135
		$this->smarty->assign("laender_filter_sel", $filter["laender"]);
281
		$this->smarty->assign("laender_filter_sel", $filter["laender"]);