<?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>

Exemplo n.º 2
0
?>
</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>
?>
<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>
Exemplo n.º 4
0
?>
</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