mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
9dc9a712c4
- Updated sprache, orgform, organisationseinheit and vorlage to the new widget - Changed method getRecursiveList of model Organisationseinheit_model - Updated vilesci_menu_main.inc.php - Changed method loadDropDownView of WidgetLib: if a selected value is not given, by default it is set as HTML_DEFAULT_VALUE - Updated all the affectd files
21 lines
505 B
PHP
21 lines
505 B
PHP
<?php
|
|
|
|
class Vorlage_widget extends DropdownWidget
|
|
{
|
|
public function display($widgetData)
|
|
{
|
|
$this->load->model('system/Vorlage_model', 'VorlageModel');
|
|
$this->VorlageModel->addOrder('vorlage_kurzbz');
|
|
|
|
$this->addSelectToModel($this->VorlageModel, 'vorlage_kurzbz', 'bezeichnung');
|
|
|
|
$this->setElementsArray(
|
|
$this->VorlageModel->loadWhere(array('mimetype' => 'text/html')),
|
|
true,
|
|
'Select a vorlage...',
|
|
'No vorlage found'
|
|
);
|
|
|
|
$this->loadDropDownView($widgetData);
|
|
}
|
|
} |