From 619ab160c40002bb35fb00a80d01f6c926b2d2e4 Mon Sep 17 00:00:00 2001 From: int2001 Date: Fri, 8 Nov 2024 14:47:07 +0000 Subject: [PATCH] Adjusted Var-Names and added modal-view-file --- application/controllers/Radio.php | 4 ++-- application/views/radio/edit.php | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 application/views/radio/edit.php diff --git a/application/controllers/Radio.php b/application/controllers/Radio.php index 9b878a027..68c5b9e02 100644 --- a/application/controllers/Radio.php +++ b/application/controllers/Radio.php @@ -116,10 +116,10 @@ class Radio extends CI_Controller { } public function saveCatUrl() { - $name = xss_clean($this->input->post('name', true)); + $url = xss_clean($this->input->post('caturl', true)); $id = xss_clean($this->input->post('id', true)); $this->load->model('cat'); - $this->cat->updateCatUrl($id,$name); + $this->cat->updateCatUrl($id,$url); } public function editCatUrl() { diff --git a/application/views/radio/edit.php b/application/views/radio/edit.php new file mode 100644 index 000000000..86dd0c81e --- /dev/null +++ b/application/views/radio/edit.php @@ -0,0 +1,24 @@ +
+ +
+ +
+
+ + session->flashdata('notice')) { ?> +
+ session->flashdata('notice'); ?> +
+ + + load->helper('form'); ?> + + +
+ + + +
+ + +