Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 1223 Revision 1224
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: 1223 $
8
 * @version $Rev: 1224 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class Termine_model extends CI_Model
11
class Termine_model extends CI_Model
12
{
12
{
Zeile 26... Zeile 26...
26
				cms_access_id=".$this->session->user_data['ID']."
26
				cms_access_id=".$this->session->user_data['ID']."
27
			ORDER BY
27
			ORDER BY
28
				prioritaet,
28
				prioritaet,
29
				faelligkeit DESC
29
				faelligkeit DESC
30
		";
30
		";
31
		$res = $GLOBALS['db']->query($sql);
31
		$res = $this->db->query($sql);
32
		while ($termin = $res->unbuffered_row('array'))
32
		while ($termin = $res->unbuffered_row('array'))
33
		{
33
		{
34
			$termin = $this->get($termin['id']);
34
			$termin = $this->get($termin['id']);
35
			$termine[] = $termin;
35
			$termine[] = $termin;
36
		}
36
		}
Zeile 54... Zeile 54...
54
			FROM
54
			FROM
55
				systemtermine
55
				systemtermine
56
			WHERE
56
			WHERE
57
				id=".$id."
57
				id=".$id."
58
		";
58
		";
59
		$res = $GLOBALS['db']->query($sql);
59
		$res = $this->db->query($sql);
60
		$termin = $res->unbuffered_row('array');
60
		$termin = $res->unbuffered_row('array');
61
		return $termin;
61
		return $termin;
62
	}
62
	}
63
}
63
}