mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-08 23:59:28 +00:00
b840352377
- Added method getByPersonId to model Benutzerfunktion_model - Added method treeSearchEntire to library OrganisationseinheitLib - Added method getOneLevelAlias to model Organisationseinheit_model
34 lines
973 B
PHP
34 lines
973 B
PHP
<?php
|
|
|
|
class Vorlage_widget extends DropdownWidget
|
|
{
|
|
public function display($widgetData)
|
|
{
|
|
// Loads
|
|
$this->load->library('OrganisationseinheitLib');
|
|
|
|
$vorlage = $this->organisationseinheitlib->treeSearchEntire(
|
|
'(
|
|
SELECT v.vorlage_kurzbz, v.bezeichnung, vs.version, vs.oe_kurzbz, vs.aktiv, vs.subject, vs.text, v.mimetype
|
|
FROM tbl_vorlagestudiengang vs INNER JOIN tbl_vorlage v USING(vorlage_kurzbz)
|
|
) templates',
|
|
'templates',
|
|
array("templates.vorlage_kurzbz AS id", "UPPER(templates.oe_kurzbz) || ' - ' || templates.bezeichnung || ' - V' || templates.version AS description"),
|
|
'templates.aktiv = TRUE
|
|
AND templates.subject IS NOT NULL
|
|
AND templates.text IS NOT NULL
|
|
AND templates.mimetype = \'text/html\'',
|
|
"description ASC",
|
|
$widgetData['oe_kurzbz']
|
|
);
|
|
|
|
$this->setElementsArray(
|
|
$vorlage,
|
|
true,
|
|
'Select a vorlage...',
|
|
'No vorlage found'
|
|
);
|
|
|
|
$this->loadDropDownView($widgetData);
|
|
}
|
|
} |