Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1437 Revision 1438
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: 1437 $
8
 * @version $Rev: 1438 $
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 503... Zeile 503...
503
		//$order = "Bestellung DESC";
503
		//$order = "Bestellung DESC";
504
		if ($filter["fremd_ID"] || $filter["bestellung_ID"])
504
		if ($filter["fremd_ID"] || $filter["bestellung_ID"])
505
		{
505
		{
506
			$limit = "";
506
			$limit = "";
507
		}
507
		}
508
		elseif($update["next"]||$update["prev"])
508
		elseif ($update["next"] || $update["prev"])
509
		{
509
		{
-
 
510
			if ($update["next"])
-
 
511
			{
-
 
512
				$sql_filter[]=" b.id > ".$this->input->post('Bestellung');
-
 
513
			}
-
 
514
			else
-
 
515
			{
-
 
516
				$sql_filter = " b.id < ".$this->input->post('Bestellung');
-
 
517
			}
510
			$limit = "LIMIT 1";
518
			$limit = "LIMIT 1";
511
		}
519
		}
512
		else
520
		else
513
		{
521
		{
514
			$limit = "LIMIT ".$start.", 100";
522
			$limit = "LIMIT ".$start.", 100";