Adjusted Var-Names and added modal-view-file

This commit is contained in:
int2001
2024-11-08 14:47:07 +00:00
parent 1d09e4e92d
commit 619ab160c4
2 changed files with 26 additions and 2 deletions

View File

@@ -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() {

View File

@@ -0,0 +1,24 @@
<div class="container" id="editCatUrl">
<br>
<!-- Display Message -->
<div id="flashdata" class="alert-message error">
</div>
<?php if($this->session->flashdata('notice')) { ?>
<div id="message" >
<?php echo $this->session->flashdata('notice'); ?>
</div>
<?php } ?>
<?php $this->load->helper('form'); ?>
<input type="hidden" id="catid" name="id" value="<?php echo $container->id; ?>">
<div class="mb-3">
<label for="CatUrlInput"><?= __("CAT URL"); ?></label>
<input type="text" class="form-control" name="CatUrlInput" id="CatUrlInput" aria-describedby="CatUrlHelp" placeholder="http://127.0.0.1:54321" required value="<?php echo $container->cat_url; ?>">
<small id="CatUrlHelp" class="form-text text-muted"><?= __("Called URL when a spot at DXCluster is clicked. Notice: The slash (/) and QRG is added automatically"); ?></small>
</div>
</div>