adds a childaction for the rooms when searching for a room to see the eventoverview of the room

This commit is contained in:
SimonGschnell
2024-07-22 14:07:00 +02:00
parent f4bf3eec86
commit 9170653260
7 changed files with 162 additions and 116 deletions
+2 -2
View File
@@ -116,7 +116,7 @@ class Cms extends FHC_Controller
}
}
public function getRoomInformation(){
$this->load->view('CisVue/Cms/RoomInformation');
public function getRoomInformation($ort_kurzbz){
$this->load->view('CisVue/Cms/RoomInformation',['ort_kurzbz'=>$ort_kurzbz]);
}
}
+1 -1
View File
@@ -170,7 +170,7 @@ class Content_model extends DB_Model
"content_id": 1000008,
"template_kurzbz": "redirect",
"titel": "room information (to delete)",
"content": "<content><url><![CDATA[' . site_url('/CisVue/Cms/getRoomInformation') . ']]></url><target><![CDATA[]]></target></content>",
"content": "<content><url><![CDATA[' . site_url('/CisVue/Cms/getRoomInformation/EDV_F4.26') . ']]></url><target><![CDATA[]]></target></content>",
"menu_open": false,
"aktiv": true,
"childs": []
@@ -9,9 +9,12 @@ $this->load->view('templates/CISHTML-Header', $includesArray);
?>
<div >
<h2>Room Information</h2>
<h2>Room Information: <?php echo $ort_kurzbz ?></h2>
<hr>
<div id="content"></div>
<div id="content">
<room-information ort_kurzbz="<?php echo $ort_kurzbz ?>"></room-information>
</div>
</div>
<?php $this->load->view('templates/CISHTML-Footer', $includesArray); ?>