Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1402 Revision 1404
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: 1402 $
8
 * @version $Rev: 1404 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class Order_model extends CI_Model
11
class Order_model extends CI_Model
12
{
12
{
Zeile 526... Zeile 526...
526
				b.id DESC
526
				b.id DESC
527
			LIMIT
527
			LIMIT
528
				100
528
				100
529
		";
529
		";
530
		$res = $GLOBALS['order_db']->query($sql);
530
		$res = $GLOBALS['order_db']->query($sql);
-
 
531
		$sql_anz = "SELECT
-
 
532
				FOUND_ROWS() AS total
-
 
533
		";
-
 
534
		$res_anz = $GLOBALS["order_db"]->query($sql_anz);
-
 
535
		$row = $res_anz->row_array();
531
		while ($order = $res->unbuffered_row('array'))
536
		while ($order = $res->unbuffered_row('array'))
532
		{
537
		{
533
			$order = $this->get($order['id']);
538
			$order = $this->get($order['id']);
534
			$ret["orders"][] = $order;
539
			$ret["orders"][] = $order;
535
		}
540
		}
536
		$sql = "SELECT
-
 
537
				FOUND_ROWS() AS total
-
 
538
		";
-
 
539
		$res = $GLOBALS["order_db"]->query($sql);
-
 
540
		$row = $res->row_array();
-
 
541
		$ret["orderAnz"] = $row["total"];
541
		$ret["orderAnz"] = $row["total"];
542
		return $ret;
542
		return $ret;
543
	}
543
	}
Zeile 544... Zeile 544...
544
 
544