本文整理汇总了PHP中UI::createCheckBox方法的典型用法代码示例。如果您正苦于以下问题:PHP UI::createCheckBox方法的具体用法?PHP UI::createCheckBox怎么用?PHP UI::createCheckBox使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI::createCheckBox方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
}
if ($edited) {
?>
<a data-toggle="modal" class="btn btn-warning" href="javascript:void('')" data-target="#myModal">File Manager</a>
<?php
}
?>
</td>
</tr>
<tr><td class="td-label">Deskripsi</td><td><?php
echo UI::createTextArea('deskripsi', $row['deskripsi'], '', '', $edited, $class = 'form-control');
?>
</td></tr>
<tr><td class="td-label">Tampil Didepan</td><td><?php
echo UI::createCheckBox('is_aktif', 1, $row['is_aktif'], $edited, $class = '');
?>
</td></tr>
<?php
if ($edited) {
?>
<tr><td></td><td><?php
echo UI::showButtonMode('save', null, $edited);
?>
</td></tr>
<?php
}
?>
</table>
示例2:
?>
</td>
</tr>
<tr>
<td class="td-label">Isi</td>
<td class="td-input"><?php
echo UI::createTextArea('isi', $row['isi'], '', '', $edited, $class = 'form-control contents', "");
?>
</td>
</tr>
<tr>
<td class="td-label">Untuk Umum ?</td>
<td class="td-input"><?php
echo UI::createCheckBox('jenis_pesan', 1, $row['jenis_pesan'], $edited, $class = 'form-control ', "style='width:10px'");
?>
</td>
</tr>
<tr id="listsiswa" <?php
if ($row['jenis_pesan'] == 1) {
echo 'style="display:none"';
}
?>
>
<td class="td-label"> Siswa</td>
<td class="td-input"><?php
echo UI::createSelectMultiple('id_siswa[]', $elearningsiswaarr, $row['id_siswa'], $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
示例3:
?>
<div style="text-align:right">
<?php
echo UI::showButtonMode($mode, $row[$pk]);
?>
</div>
<br/>
<table class="table table-form">
<tr><td class="td-label">Judul</td><td><?php
echo UI::createTextBox('nama', $row['nama'], '', '', $edited, $class = 'form-control');
?>
</td></tr>
<tr><td class="td-label">Isi</td><td><?php
echo UI::createTextArea('isi', $row['isi'], '', '', $edited, $class = 'form-control');
?>
</td></tr>
<tr><td class="td-label">Tampil Didepan</td><td><?php
echo UI::createCheckBox('is_approve', 1, $row['is_approve'], $edited, $class = '');
?>
</td></tr>
<?php
if ($edited) {
?>
<tr><td></td><td><?php
echo UI::showButtonMode('save', null, $edited);
?>
</td></tr>
<?php
}
?>
</table>
示例4:
?>
</td>
</tr>
<tr>
<td class="td-label">Last Login</td>
<td class="td-input"><?php
echo UI::createTextBox('last_login', $row['last_login'], '20', '20', $edited, $class = 'form-control datetimepicker', "style='width:200px'");
?>
</td>
</tr>
<tr>
<td class="td-label">Active ?</td>
<td class="td-input"><?php
echo UI::createCheckBox('is_active', 1, $row['is_active'], $edited, $class = 'form-control ', "style='width:10px'");
?>
</td>
</tr>
<?php
if ($edited) {
if ($row['password']) {
?>
<tr><td colspan="2">Kosongkan password apabila Anda tidak ingin merubahnya.</td></tr>
<?php
}
?>
<tr>
<td class="td-label">Password</td>
<td class="td-input"><?php