本文整理汇总了PHP中UI::createTextBox方法的典型用法代码示例。如果您正苦于以下问题:PHP UI::createTextBox方法的具体用法?PHP UI::createTextBox怎么用?PHP UI::createTextBox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI::createTextBox方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</div>
<br/>
<table class="table table-form">
<tr>
<td class="td-label">Nama</td>
<td>
<?php
echo UI::createTextBox('nama', $row['nama'], '', '', $edited, $class = 'form-control');
?>
</td>
</tr>
<tr>
<td class="td-label">File</td>
<td><?php
echo UI::createTextBox('file_path', $row['file_path'], '', '', $edited, $class = 'form-control mce-img_file_path');
?>
<?php
if ($row['file_path']) {
?>
<img src="<?php
echo URL::Base();
echo str_replace(Config::FolderProject(), '', str_replace('/files/', '/thumbs/', $row['file_path']));
?>
" class="mc_preload wp-post-image" alt="<?php
echo $row['deskripsi'];
?>
" title="" style="display: block;">
<?php
}
示例2:
<?php
echo $this->FlashMsg();
?>
<div style="text-align:right">
<?php
echo UI::showButtonMode($mode, $row[$pk]);
?>
</div>
<br/>
<table class="table table-form">
<tr>
<td class="td-label">Nama</td>
<td class="td-input"><?php
echo UI::createTextBox('nama', $row['nama'], '', '', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<?php
if ($edited) {
?>
<tr><td></td><td><?php
echo UI::showButtonMode('save', null, $edited);
?>
</td></tr>
<?php
}
?>
</table>
示例3:
<br/>
<table class="table table-form">
<tr><td class="td-label">Nama</td><td><?php
echo UI::createTextBox('nama', $row['nama'], '', '', $edited, $class = 'form-control');
?>
</td></tr>
<tr><td class="td-label">Alamat</td><td><?php
echo UI::createTextArea('alamat', $row['alamat'], '', '', $edited, 'form-control');
?>
</td></tr>
<tr><td class="td-label">Telephone</td><td><?php
echo UI::createTextBox('telp', $row['telp'], '', '', $edited, 'form-control');
?>
</td></tr>
<tr><td class="td-label">Username</td><td><?php
echo UI::createTextBox('username', $row['username'], '', '', $edited, $class = 'form-control');
?>
</td></tr>
<?php
if ($edited) {
?>
<tr><td></td><td>Kosongkan password apabila Anda tidak ingin merubahnya</td></tr>
<tr><td class="td-label">Password</td><td><?php
echo UI::createTextPassword('password', '', '', '', $edited, $class = 'form-control');
?>
</td></tr>
<tr><td class="td-label">Confirm Password</td><td><?php
echo UI::createTextPassword('confirmpassword', '', '', '', $edited, $class = 'form-control');
?>
</td></tr>
<?php
示例4:
echo UI::createTextBox('tlp', $row['tlp'], '100', '100', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<tr>
<td class="td-label">Faks</td>
<td class="td-input"><?php
echo UI::createTextBox('faks', $row['faks'], '100', '100', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<tr>
<td class="td-label">No Akun</td>
<td class="td-input"><?php
echo UI::createTextBox('no_akun', $row['no_akun'], '100', '100', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<?php
if ($edited) {
?>
<tr><td></td><td><?php
echo UI::showButtonMode('save', null, $edited);
?>
</td></tr>
<?php
}
?>
</table>
示例5:
<?php
echo $this->FlashMsg();
?>
<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'], '20', '', $edited, $class = 'form-control contents');
?>
</td></tr>
<?php
if ($edited) {
?>
<tr><td></td><td><?php
echo UI::showButtonMode('save', null, $edited);
?>
</td></tr>
<?php
}
?>
</table>
示例6:
echo UI::createTextBox('kode_klasifikasi', $row['kode_klasifikasi'], '50', '50', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<tr>
<td class="td-label"> Type Subjek</td>
<td class="td-input"><?php
echo UI::createSelect('id_type_subjek', $typesubjekarr, $row['id_type_subjek'], $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<tr>
<td class="td-label">Daftar Terkendali</td>
<td class="td-input"><?php
echo UI::createTextBox('daftar_terkendali', $row['daftar_terkendali'], '50', '50', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<?php
if ($edited) {
?>
<tr><td></td><td><?php
echo UI::showButtonMode('save', null, $edited);
?>
</td></tr>
<?php
}
?>
</table>
示例7: showHeaderFront
public static function showHeaderFront($header, $filter_arr, $list_sort, $list_order)
{
?>
<tr>
<td></td>
<?php
foreach ($header as $rows) {
switch ($rows['type']) {
case 'list':
echo "<td>" . UI::createSelect("list_search[" . $rows['name'] . "]", $rows['value'], $filter_arr[$rows['name']], true, 'text_input hint', 'style="width:100%;padding: 6px 0px 6px 10px;" onchange="goSearch()"') . "</td>";
break;
default:
echo "<td>" . UI::createTextBox("list_search[" . $rows['name'] . "]", $filter_arr[$rows['name']], '', '', true, 'text_input hint', 'style="width:100%;padding: 6px 0px 6px 10px;" placeholder="Search ' . $rows['label'] . '..."') . "</td>";
break;
}
}
?>
</tr>
<tr>
<th style="width:10px">#</th>
<input type='hidden' name='list_sort' id='list_sort'>
<input type='hidden' name='list_order' id='list_order'>
<?php
foreach ($header as $rows) {
if ($list_sort == $rows['name']) {
if (trim($list_order) == 'asc') {
$order = 'desc';
} else {
$order = 'asc';
}
echo "<th style='width:{$rows['width']}'><a href='#' onclick=\"goSort('{$rows['name']}','{$order}')\">{$rows['label']}</a></th>";
} else {
echo "<th style='width:{$rows['width']}'><a href='#' onclick=\"goSort('{$rows['name']}','asc')\">{$rows['label']}</a></th>";
}
}
?>
</tr>
<script>
jQuery(function(){
jQuery("#main_form").submit(function(){
if(jQuery("#act").val()==''){
goSearch();
}
});
});
function goSort(name, order){
jQuery("#list_sort").val(name);
jQuery("#list_order").val(order);
jQuery("#act").val('list_sort');
jQuery("#main_form").submit();
}
function goSearch(){
jQuery("#act").val('list_search');
jQuery("#main_form").submit();
}
</script>
<?php
}
示例8:
" class="mc_preload wp-post-image" alt="<?php
echo $row['link'];
?>
" title="" style="display: block;">
<?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">Link</td><td><?php
echo UI::createTextBox('link', $row['link'], '', '', $edited, $class = 'form-control');
?>
</td></tr>
<tr><td class="td-label">Aktif ?</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
}
示例9:
<tr><td class="td-label">Nama</td><td><?php
echo UI::createAutoComplate('id_member', $row['member'], 'panelbackend/ajax/member', '', '', $edited, 'form-control');
?>
</td></tr>
<tr><td class="td-label">Tgl. Pinjam</td><td><?php
echo UI::createTextDate('tgl_pinjam', $row['tgl_pinjam'], 7, 7, $edited, 'form-control datepicker', "style='width:auto'");
?>
</td></tr>
<tr><td class="td-label">Tgl. Kembali</td><td><?php
echo UI::createTextDate('tgl_kembali', $row['tgl_kembali'], 7, 7, $edited, 'form-control datepicker', "style='width:auto'");
?>
</td></tr>
<tr><td class="td-label">Jaminan</td><td><?php
echo UI::createTextBox('jaminan', $row['jaminan'], 15, 15, $edited, 'form-control', "style='width:auto'");
?>
</td></tr>
<tr><td class="td-label">Kode Jaminan</td><td><?php
echo UI::createTextBox('kode_jaminan', $row['kode_jaminan'], 15, 15, $edited, 'form-control', "style='width:auto'");
?>
</td></tr>
<?php
if ($edited) {
?>
<tr><td></td><td><?php
echo UI::showButtonMode('save', null, $edited);
?>
</td></tr>
<?php
}
?>
</table>
示例10:
echo UI::createTextBox('no_hp', $row['no_hp'], '', '', $edited, $class = 'form-control');
?>
</td></tr>
<tr><td class="td-label">No. Identitas</td><td><?php
echo UI::createTextBox('no_identitas', $row['no_identitas'], 17, 17, $edited, $class = 'form-control', "style='width:auto'");
?>
</td></tr>
<tr><td class="td-label">Catatan</td><td><?php
echo UI::createTextBox('catatan', $row['catatan'], 15, 15, $edited, $class = 'form-control', "style='width:auto'");
?>
</td></tr>
<tr><td class="td-label">Email</td><td><?php
echo UI::createTextBox('email', $row['email'], 35, 35, $edited, $class = 'form-control', "style='width:auto'");
?>
</td></tr>
<tr><td class="td-label">Password</td><td><?php
echo UI::createTextBox('password', $row['password'], '', '', $edited, $class = 'form-control');
?>
</td></tr>
<?php
if ($edited) {
?>
<tr><td></td><td><?php
echo UI::showButtonMode('save', null, $edited);
?>
</td></tr>
<?php
}
?>
</table>
示例11:
?>
</td>
</tr>
<tr>
<td class="td-label"> Bahasa</td>
<td class="td-input"><?php
echo UI::createSelect('id_bahasa', $bahasaarr, $row['id_bahasa'], $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<tr>
<td class="td-label">Selang Waktu</td>
<td class="td-input"><?php
echo UI::createTextBox('selang_waktu', $row['selang_waktu'], '', '', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<tr>
<td class="td-label"> Satuan</td>
<td class="td-input"><?php
echo UI::createSelect('id_satuan', $satuanarr, $row['id_satuan'], $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<?php
if ($edited) {
?>
<tr><td></td><td><?php
示例12:
?>
</td>
</tr>
<tr>
<td class="td-label">Last Ip</td>
<td class="td-input"><?php
echo UI::createTextBox('last_ip', $row['last_ip'], '30', '30', $edited, $class = 'form-control ', "style='width:100%'");
?>
</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']) {
示例13:
echo UI::createTextBox('nama', $row['nama'], '50', '50', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<tr>
<td class="td-label">Lampiran Berkas</td>
<td class="td-input"><?php
echo UI::createTextBox('lampiran_berkas', $row['lampiran_berkas'], '100', '100', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<tr>
<td class="td-label">Deskripsi Label</td>
<td class="td-input"><?php
echo UI::createTextBox('deskripsi_label', $row['deskripsi_label'], '50', '50', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<?php
if ($edited) {
?>
<tr><td></td><td><?php
echo UI::showButtonMode('save', null, $edited);
?>
</td></tr>
<?php
}
?>
</table>
示例14:
<?php
echo $this->FlashMsg();
?>
<div style="text-align:right">
<?php
echo UI::showButtonMode($mode, $row[$pk]);
?>
</div>
<br/>
<table class="table table-form">
<tr>
<td class="td-label">Jenis</td>
<td class="td-input"><?php
echo UI::createTextBox('jenis', $row['jenis'], '50', '50', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<?php
if ($edited) {
?>
<tr><td></td><td><?php
echo UI::showButtonMode('save', null, $edited);
?>
</td></tr>
<?php
}
?>
</table>
示例15:
?>
</td>
</tr>
<tr>
<td class="td-label">Judul Seri</td>
<td class="td-input" colspan="5"><?php
echo UI::createTextBox('judul_seri', $row['judul_seri'], '', '', $edited, $class = 'form-control ', "style='width:25%'");
?>
</td>
</tr>
<tr>
<td class="td-label">No Panggil</td>
<td class="td-input" colspan="5"><?php
echo UI::createTextBox('no_panggil', $row['no_panggil'], '50', '50', $edited, $class = 'form-control ', "style='width:25%'");
?>
</td>
</tr>
<tr>
<td class="td-label"> Subjek</td>
<td class="td-input" colspan="5"><?php
echo UI::createSelect('id_subjek', $subjekarr, $row['id_subjek'], $edited, $class = 'form-control ', "style='width:25%'");
?>
</td>
</tr>
<tr>
<td class="td-label"> Bahasa</td>
<td class="td-input" colspan="5"><?php