Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 2294 Revision 2295
Zeile 3... Zeile 3...
3
/**
3
/**
4
 *
4
 *
5
 * @package WebanOS CI
5
 * @package WebanOS CI
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
7
 * @copyright 2016
7
 * @copyright 2016
8
 * @version $Rev: 2294 $
8
 * @version $Rev: 2295 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class Logistiker_model extends CI_Model
11
class Logistiker_model extends CI_Model
12
{
12
{
Zeile 153... Zeile 153...
153
		return json_encode($output);
153
		return json_encode($output);
154
	}
154
	}
Zeile 155... Zeile 155...
155
 
155
 
156
	public function tracking($id)
156
	public function tracking($id)
-
 
157
	{
157
	{
158
		$aColumns = array("exported");
158
		trigger_error(var_export($_GET,true));
159
		trigger_error(var_export($_GET, true));
159
		$sWhere = "";
160
		$sWhere = "";
160
		if ($this->input->get('sSearch') != "") {
161
		if ($this->input->get('sSearch') != "") {
161
			$sWhere = "WHERE (";
162
			$sWhere = "WHERE (";
162
			for ($i = 0; $i < count($aColumns); $i++) {
163
			for ($i = 0; $i < count($aColumns); $i++) {
163
				if ($aColumns[$i] == "datum") {
164
				if ($aColumns[$i] == "datum") {
164
					$a = " from_unixtime(datum) ";
165
					$a = " from_unixtime(datum) ";
165
					$sWhere .= $a . " LIKE '%" . $GLOBALS['order_db']->escape($this->input->get('sSearch')) .
166
					$sWhere .= $a . " LIKE '%" . $GLOBALS['order_db']->escape($this->input->get('sSearch')) .
166
						"%' OR ";
167
						"%' OR ";
167
				} else {
168
				} else {
168
					$sWhere .= $aColumns[$i] . " LIKE '%" . $GLOBALS['order_db']->escape($this->input->
169
					$sWhere .= $aColumns[$i] . " LIKE '%" . $GLOBALS['order_db']->escape($this->
169
						get('sSearch')) . "%' OR ";
170
						input->get('sSearch')) . "%' OR ";
Zeile 170... Zeile 171...
170
				}
171
				}
171
 
172
 
172
			}
173
			}