mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
23 lines
563 B
PHP
Executable File
23 lines
563 B
PHP
Executable File
<?php
|
|
|
|
class Stufe_widget extends DropdownWidget
|
|
{
|
|
public function display($widgetData)
|
|
{
|
|
// Stufe
|
|
$this->load->model('crm/Reihungstest_model', 'ReihungstestModel');
|
|
$this->ReihungstestModel->addSelect('DISTINCT ON(stufe) stufe');
|
|
$this->ReihungstestModel->addOrder('stufe');
|
|
|
|
$this->addSelectToModel($this->ReihungstestModel, 'stufe', 'stufe');
|
|
|
|
$this->setElementsArray(
|
|
$this->ReihungstestModel->loadWhere('stufe IS NOT NULL'),
|
|
true,
|
|
'Select a stufe...',
|
|
'No stufen found'
|
|
);
|
|
|
|
$this->loadDropDownView($widgetData);
|
|
}
|
|
} |