调整单选按钮的大小,您需要在视图框中使用它
public function add_event() {
// Our calendar data
$judul = $this->input->post('judul', TRUE);
$waktu_mulai = $this->input->post('mulai', TRUE);
$waktu_berakhir = $this->input->post('berakhir', TRUE);
$lokasi = $this->input->post('lokasi', TRUE);
$scope = $this->input->post('scope', TRUE);
$kategori = $this->input->post('kategori', TRUE);
$satuan_kerja = $this->input->post('satuan_kerja', TRUE);
$keterangan = $this->input->post('keterangan', TRUE);
$agenda_pimpinan = $this->input->post('agenda_pimpinan', TRUE);
// var_dump (count($upload_file)); die;
for($i = 0; $i < count($upload_file); $i++) {
$config['upload_path'] = './uploads/';
$config['allowed_types'] = 'jpg|jpeg|png';
$config['max_size'] = '500';
$this->load->library('upload', $config);
$this->KalenderModel->addEvent(array(
'judul' => $judul,
'mulai' => $waktu_mulai,
'berakhir' => $waktu_berakhir,
'lokasi' => $lokasi,
'scope' => $scope,
'satuan_kerja' => $satuan_kerja,
'keterangan' => $keterangan,
'kategori' => $kategori,
'lampiran' => $uploadfile,
'tampilkan_agenda_pimpinan' => $agenda_pimpinan
));
}
redirect('agendakerja/kalender');
} //end function
但是,在视图框的一种使用中,单选按钮的复选变为复选。
我该怎么做才能避免多重选择?
<Viewbox Height="40"><RadioButton>/RadioButton></Viewbox>
非常感谢您。
答案 0 :(得分:0)
问题已解决。
为每个单选按钮赋予相同的单选名称时解决了多次检查问题
<Viewbox Height="24" Margin="0,15,0,0">
<RadioButton GroupName="anyGroupName">Şubede Ödeme</RadioButton>
</Viewbox>
<Viewbox Height="24" Margin="0,15,0,0">
<RadioButton GroupName="anyGroupName">Hesaba Ödeme</RadioButton>
</Viewbox>