kopia lustrzana https://github.com/magicbug/Cloudlog
Added all modes in edit mode...
rodzic
8f1dcf3db6
commit
ece34b756a
|
@ -102,6 +102,7 @@ class QSO extends CI_Controller {
|
|||
|
||||
$this->load->model('logbook_model');
|
||||
$this->load->model('user_model');
|
||||
$this->load->model('modes');
|
||||
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
|
||||
$query = $this->logbook_model->qso_info($this->uri->segment(3));
|
||||
|
||||
|
@ -114,6 +115,7 @@ class QSO extends CI_Controller {
|
|||
$data['qso'] = $query->row();
|
||||
$data['dxcc'] = $this->logbook_model->fetchDxcc();
|
||||
$data['iota'] = $this->logbook_model->fetchIota();
|
||||
$data['modes'] = $this->modes->all();
|
||||
|
||||
if ($this->form_validation->run() == FALSE)
|
||||
{
|
||||
|
|
|
@ -70,12 +70,11 @@
|
|||
<div class="form-group col-sm-6">
|
||||
<label for="freq">Mode</label>
|
||||
<select id="mode" class="form-control mode form-control-sm" name="mode">
|
||||
<?php
|
||||
$this->load->library('frequency');
|
||||
foreach(Frequency::modes as $mode){
|
||||
printf("<option value=\"%s\" %s>%s</option>", $mode, $qso->COL_MODE==$mode?"selected=\"selected\"":"",$mode);
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
foreach($modes->result() as $mode){
|
||||
printf("<option value=\"%s\" %s>%s</option>", $mode->mode, $this->session->userdata('mode')==$mode->mode?"selected=\"selected\"":"",$mode->mode);
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue