mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-04 12:29:28 +00:00
Anpassungen an CIS-Redesign
benutzer.class.php: Globale Suche sucht nun auch nach telefonklappe content.class.php: Optionale Limits bei Content-Suche dms.class.php: Suche nach Dokumenten aus dms ort.class.php: optionale Parameter "Aktiv" und "Lehre" bei Suche nach ort service.class.php: Suche nach service -> Derzeit keine Funktion bei der Suche, da von Christian nicht gewünscht studiensemester.class.php: Neue Funktion "getTimestamp": Liefert den UNIX Timestamp (Beginn,Ende) eines Studiensemesters cis_menu_global.inc.php: Links zu Lehrveranstaltungen, Mein CIS und dgl auskommentiert, da im Redesign nicht mehr notwendig. cis_menu_lv.inc.php: Neue Buttons bei den Links wochenplan.class.php: Neue Buttons für den Export, Kalenderwochenjump mit Hoverbox, Jump zu aktuelle KW
This commit is contained in:
+13
-6
@@ -373,20 +373,27 @@ class ort extends basis_db
|
||||
}
|
||||
|
||||
/**
|
||||
* Sucht nach einem Ort
|
||||
* Sucht nach einem Ort. Wenn aktiv-parameter true, dann nur aktive. Wenn lehre-parameter true, dann nur lehre
|
||||
* @return true wenn ok, false im Fehlerfall
|
||||
*
|
||||
* @param aktiv (optional)
|
||||
* @param lehre (optional)
|
||||
*/
|
||||
public function filter($filter)
|
||||
public function filter($filter, $aktiv=false, $lehre=false)
|
||||
{
|
||||
$qry = "
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
public.tbl_ort
|
||||
WHERE
|
||||
WHERE (
|
||||
lower(ort_kurzbz) like '%".$this->db_escape(mb_strtolower($filter))."%'
|
||||
OR lower(bezeichnung) like '%".$this->db_escape(mb_strtolower($filter))."%'
|
||||
ORDER BY ort_kurzbz;";
|
||||
OR lower(bezeichnung) like '%".$this->db_escape(mb_strtolower($filter))."%')";
|
||||
if ($aktiv==true)
|
||||
$qry.= " AND aktiv=true";
|
||||
if ($lehre==true)
|
||||
$qry.= " AND lehre=true";
|
||||
$qry.= " ORDER BY ort_kurzbz;";
|
||||
|
||||
if(!$this->db_query($qry))
|
||||
{
|
||||
@@ -412,7 +419,7 @@ class ort extends basis_db
|
||||
$ort_obj->stockwerk = $row->stockwerk;
|
||||
$ort_obj->standort_id = $row->standort_id;
|
||||
$ort_obj->telefonklappe = $row->telefonklappe;
|
||||
$ort_obj->content_id = $row->content_id;
|
||||
//$ort_obj->content_id = $row->content_id;
|
||||
|
||||
$this->result[] = $ort_obj;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user