This commit is contained in:
kindlm
2016-11-08 11:47:13 +01:00
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -33,7 +33,7 @@
<td><?php echo $v->version; ?></td>
<td><?php echo $v->oe_kurzbz; ?></td>
<td></td>
<td><?php echo $v->berechtigung; ?></td>
<td><?php echo implode(',', $v->berechtigung); ?></td>
<td><?php echo $v->anmerkung_vorlagestudiengang; ?></td>
<td><?php echo $v->aktiv; ?></td>
<td><a href="../editText/<?php echo $v->vorlagestudiengang_id; ?>" target="TemplatesBottom">Edit Text</a></td>
+4 -4
View File
@@ -3,16 +3,16 @@
/*
* MimeType widget
*/
class mimetype_widget extends Widget
class mimetype_widget extends Widget
{
public function display($data)
public function display($data)
{
if (is_null($data['mimetype']))
$data['mimetype'] = '';
$this->load->model('system/Vorlage_model');
$res = $this->Vorlage_model->getMimeTypes();
//var_dump($res);
foreach ($res->retval->result() as $obj)
foreach ($res->retval as $obj)
{
$item = array('name' => $obj->mimetype, 'value' => $obj->mimetype);
if (isset($data['mimetype']) && $obj->mimetype == $data['mimetype'])
@@ -23,5 +23,5 @@ class mimetype_widget extends Widget
}
$this->view('widgets/mimetype', $data);
}
}