本文整理汇总了PHP中UI::createSelect方法的典型用法代码示例。如果您正苦于以下问题:PHP UI::createSelect方法的具体用法?PHP UI::createSelect怎么用?PHP UI::createSelect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI::createSelect方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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
}
示例2:
?>
</div>
<br/>
<table class="table table-form">
<tr>
<td class="td-label">Kode Klasifikasi</td>
<td class="td-input"><?php
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
示例3: range
<?php
echo UI::createSelect('newEarrings', $desc->earringsNew, $data->newEarrings, range(0, 2));
?>
<?php
echo UI::createSelect('oldEarrings', $desc->earringsOld, $data->oldEarrings, range(0, 2));
?>
<?php
echo UI::createSpacing();
?>
<?php
echo UI::createSelect('earringBonusLeft', $desc->earringBonusLeft, $data->earringBonusLeft, $earringBonuses);
?>
<?php
echo UI::createSelect('earringBonusRight', $desc->earringBonusRight, $data->earringBonusRight, $earringBonuses);
?>
<?php
echo UI::createSpacing();
?>
<?php
echo UI::createCheck('heartPotion', $desc->targetHeartPotion, $data->heartPotion, true);
?>
</section>
</fieldset>
<?php
echo UI::createCheck('showGlyphs', null, $data->showGlyphs);
?>
<fieldset>
示例4:
<?php
echo UI::showButtonMode($mode, $row[$pk]);
?>
</div>
<br/>
<table class="table table-form">
<tr><td class="td-label">Nama</td><td><?php
echo UI::createTextBox('nama', $row['nama'], '', '', $edited, 'form-control');
?>
</td></tr>
<tr><td class="td-label">Tgl. Lahir</td><td><?php
echo UI::createTextDate('tgl_lahir', $row['tgl_lahir'], '', '', $edited, 'form-control');
?>
</td></tr>
<tr><td class="td-label">Jenis Kelamin</td><td><?php
echo UI::createSelect('jk', $jkarr, $row['jk'], $edited, '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>
<?php
if ($edited) {
?>
示例5:
?>
</td>
</tr>
<tr>
<td class="td-label">Tahun Lahir</td>
<td class="td-input"><?php
echo UI::createTextBox('tahun_lahir', $row['tahun_lahir'], '', '', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<tr>
<td class="td-label"> Kepengarangan</td>
<td class="td-input"><?php
echo UI::createSelect('id_kepengarangan', $kepengaranganarr, $row['id_kepengarangan'], $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'], '', '', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<?php
if ($edited) {
?>
<tr><td></td><td><?php
示例6:
?>
</div>
<br/>
<table class="table table-form">
<tr>
<td class="td-label">Username</td>
<td class="td-input"><?php
echo UI::createTextBox('username', $row['username'], '100', '100', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<tr>
<td class="td-label">Group </td>
<td class="td-input"><?php
echo UI::createSelect('group_id', $publicsysgrouparr, $row['group_id'], $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<tr>
<td class="td-label">Name</td>
<td class="td-input"><?php
echo UI::createTextBox('name', $row['name'], '200', '100', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<tr>
<td class="td-label">Last Ip</td>
<td class="td-input"><?php
示例7:
?>
</td>
</tr>
<tr>
<td class="td-label">Abstrak</td>
<td class="td-input" colspan="5"><?php
echo UI::createTextArea('abstrak', $row['abstrak'], '', '', $edited, $class = 'form-control ', "style='width:100%'");
?>
</td>
</tr>
<tr>
<td class="td-label"> Kategori</td>
<td class="td-input" colspan="5"><?php
echo UI::createSelect('id_kategori', $kategoriarr, $row['id_kategori'], $edited, $class = 'form-control ', "style='width:25%'");
?>
</td>
</tr>
<tr>
<td class="td-label">File</td>
<td colspan="5"><?php
echo UI::createInputFile('file', $row['nama_file'], URL::Base("panelbackend/buku/preview_file/{$row['id_buku']}"), URL::Base("panelbackend/buku/delete_file/{$row['id_buku']}"), $edited, true, 'form-control');
?>
</td>
</tr>
<?php
if ($edited) {