mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 09:52:22 +00:00
orgform widget + neues recht
This commit is contained in:
@@ -135,6 +135,7 @@ class Phrases extends FHC_Controller
|
||||
{
|
||||
$phrase_inhalt_id = $this->input->post('phrase_inhalt_id', TRUE);
|
||||
$data['orgeinheit_kurzbz'] = $this->input->post('oe_kurzbz', TRUE);
|
||||
$data['orgform_kurzbz'] = $this->input->post('orgform_kurzbz', TRUE);
|
||||
$data['text'] = $this->input->post('text', TRUE);
|
||||
$data['description'] = $this->input->post('description', TRUE);
|
||||
$data['sprache'] = $this->input->post('sprache', TRUE);
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
/*
|
||||
* OrgForm widget
|
||||
*/
|
||||
class orgform_widget extends Widget
|
||||
class orgform_widget extends Widget
|
||||
{
|
||||
protected $_htmltagname = 'orgform_kurzbz';
|
||||
|
||||
public function display($data)
|
||||
public function display($data)
|
||||
{
|
||||
$this->load->model('codex/Orgform_model', 'OrgFormModel');
|
||||
$res = $this->OrgFormModel->load();
|
||||
@@ -33,10 +33,10 @@ class orgform_widget extends Widget
|
||||
{
|
||||
$item = array
|
||||
(
|
||||
'name' => $obj->orgform_kurzbz.' ('.$obj->bezeichnung.')',
|
||||
'name' => $obj->orgform_kurzbz.' ('.$obj->bezeichnung.')',
|
||||
'value' => $obj->orgform_kurzbz
|
||||
);
|
||||
if (isset($data['orgform']) && $obj->orgform_kurzbz == $data['orgform'])
|
||||
if (isset($data['orgform_kurzbz']) && $obj->orgform_kurzbz == $data['orgform_kurzbz'])
|
||||
$item['selected'] = true;
|
||||
else
|
||||
$item['selected'] = false;
|
||||
|
||||
Reference in New Issue
Block a user