diff --git a/application/views/system/phraseinhaltEdit.php b/application/views/system/phraseinhaltEdit.php index 13af18e1c..00ec8996d 100644 --- a/application/views/system/phraseinhaltEdit.php +++ b/application/views/system/phraseinhaltEdit.php @@ -14,7 +14,7 @@ templatelib->widget("organisationseinheit_widget", array('oe_kurzbz' => $orgeinheit_kurzbz)); ?> Preview - Sprache + Sprachetemplatelib->widget("sprache_widget", array('sprache' => $sprache)); ?> Text
diff --git a/application/views/widgets/sprache.php b/application/views/widgets/sprache.php new file mode 100644 index 000000000..c63e2460c --- /dev/null +++ b/application/views/widgets/sprache.php @@ -0,0 +1,7 @@ + diff --git a/application/widgets/sprache_widget.php b/application/widgets/sprache_widget.php new file mode 100644 index 000000000..325efaab7 --- /dev/null +++ b/application/widgets/sprache_widget.php @@ -0,0 +1,27 @@ +load->model('system/Sprache_model'); + $res = $this->Sprache_model->loadWhole(); + //var_dump($res); + foreach ($res->retval as $obj) + { + $item = array('sprache' => $obj->sprache); + if (isset($data['sprache']) && $obj->sprache == $data['sprache']) + $item['selected'] = true; + else + $item['selected'] = false; + $data['items'][] = $item; + } + if (! isset($data['sprache'])) + $data['sprache'] = 'German'; + $this->view('widgets/sprache', $data); + } + +}