本文整理汇总了PHP中html_input函数的典型用法代码示例。如果您正苦于以下问题:PHP html_input函数的具体用法?PHP html_input怎么用?PHP html_input使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_input函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getFilterInput
public function getFilterInput($value)
{
$from = !empty($value['from']) ? intval($value['from']) : false;
$to = !empty($value['to']) ? intval($value['to']) : false;
$range = constant('LANG_' . $this->getOption('range') . '10');
return LANG_FROM . ' ' . html_input('text', $this->element_name . '[from]', $from, array('class' => 'input-small')) . ' ' . LANG_TO . ' ' . html_input('text', $this->element_name . '[to]', $to, array('class' => 'input-small')) . ' ' . $range;
}
示例2: getFilterInput
public function getFilterInput($value)
{
$units = $this->getProperty('units');
if (!$units) {
$units = $this->getOption('units');
}
if (!$units) {
$units = '';
}
if ($this->getOption('filter_range')) {
$from = !empty($value['from']) ? intval($value['from']) : false;
$to = !empty($value['to']) ? intval($value['to']) : false;
return LANG_FROM . ' ' . html_input('text', $this->element_name . '[from]', $from, array('class' => 'input-small')) . ' ' . LANG_TO . ' ' . html_input('text', $this->element_name . '[to]', $to, array('class' => 'input-small')) . ($units ? ' ' . $units : '');
} else {
return parent::getFilterInput($value);
}
}
示例3: view_customer
private function view_customer()
{
$id = $_GET['id'];
if ($_POST) {
$update = $this->customer->update_blocked_status_customer($id);
if ($update) {
redirect($this->base_link);
} else {
parent::alert('error', 'Gagal !', 'Gagal merubah status pelanggan !');
}
}
$customer = $this->customer->get_customer('', $id);
$detail = $this->customer->get_customer('detail', $id);
if ($customer['blocked'] == 'N') {
$status = $this->radio_config('blocked', 'checked', '');
} else {
$status = $this->radio_config('blocked', '', 'checked');
}
$customer_data = array(array('label' => '<img src="' . $this->img_dir . 'no_image.jpg" />', 'input' => ''), array('label' => 'Tgl registrasi', 'input' => html_input('text', array('value="' . $customer['reg_date'] . '"', 'class="span3"', 'disabled'))), array('label' => 'Nama lengkap', 'input' => html_input('text', array('value="' . $detail['fullname'] . '"', 'class="span3"', 'disabled'))), array('label' => 'Status', 'input' => $status), array('label' => 'Jenis kelamin', 'input' => html_input('text', array('value="' . $detail['sex'] . '"', 'class="span3"', 'disabled'))), array('label' => 'Alamat', 'input' => html_textarea(array('class="span6"', 'disabled'), $detail['address'])), array('label' => 'Provinsi', 'input' => html_input('text', array('value="' . $detail['state'] . '"', 'class="span3"', 'disabled'))), array('label' => 'Kota', 'input' => html_input('text', array('value="' . $detail['city'] . '"', 'class="span3"', 'disabled'))), array('label' => 'Kode pos', 'input' => html_input('text', array('value="' . $detail['postal_code'] . '"', 'class="span3"', 'disabled'))), array('label' => 'No.Telp', 'input' => html_input('text', array('value="' . $detail['phone_number'] . '"', 'class="span3"', 'disabled'))), array('label' => 'Email', 'input' => html_input('text', array('value="' . $detail['email'] . '"', 'class="span3"', 'disabled'))));
$button = array(html_input('submit', array('value="Simpan"', 'class="btn btn-success"')), html_input('button', array('value="Kirim Pesan"', 'onClick="window.location.go(-1)"', 'class="btn btn-success"')));
parent::form_config('', '', $customer_data, 'Data pelanggan', $button);
}
示例4: html_sql
function html_sql()
{
html_input("text", "sqlhost", "localhost", "<br>MYSQL地址", "30");
html_input("text", "sqlport", "3306", "<br>MYSQL端口", "30");
html_input("text", "sqluser", "root", "<br>MYSQL用户", "30");
html_input("password", "sqlpass", "", "<br>MYSQL密码", "30");
html_input("text", "sqldb", "dbname", "<br>MYSQL库名", "30");
html_input("submit", "sqllogin", "登陆", "<br>");
html_n('</form>');
}
示例5: html_select
}
?>
<?php
if ($rule['type'] == 'list') {
?>
<?php
echo html_select("value[{$rule['id']}][{$subject['name']}]", $rule['options'], $default);
?>
<?php
}
?>
<?php
if ($rule['type'] == 'number') {
?>
<?php
echo html_input('text', "value[{$rule['id']}][{$subject['name']}]", $default, array('class' => 'input-number'));
?>
<?php
}
?>
</td>
</tr>
<?php
}
?>
</tbody>
<?php
}
?>
示例6: foreach
}
//'style="display: '.$table_row.';"';
$tpl->assign($action);
// file extra
//print_r($cfg_type['file_extra']);exit();
if ($cfg_type['file_extra']['name']) {
foreach ($cfg_type['file_extra']['name'] as $k => $name) {
if ($name) {
$rs = array();
$rs['stt'] = $k;
$rs['name'] = $name;
$rs['code'] = $cfg_type['file_extra']['code'][$k] ? $cfg_type['file_extra']['code'][$k] : $k;
$rs['file'] = $file_extra[$rs['code']];
$rs['type'] = $cfg_type['file_extra']['type'][$k];
$rs['note'] = $cfg_type['file_extra']['note'][$k];
$tpl->assign($rs, 'file_extra');
}
}
}
// fields extra
if ($cfg_type['fields_extra']['name']) {
foreach ($cfg_type['fields_extra']['name'] as $k => $name) {
if ($name) {
$rs = array();
$rs['stt'] = $k;
$rs['name'] = $name;
$rs['value'] = html_input($cfg_type['fields_extra']['type'][$k], 'fields_extra[' . $cfg_type['fields_extra']['code'][$k] . ']', $fields_extra[$cfg_type['fields_extra']['code'][$k]]);
$tpl->assign($rs, 'fields_extra');
}
}
}
示例7: html_input
<?php
echo html_input('hidden', $field->element_name, $value, array('id' => $field->id));
示例8: html_input
<?php
if ($field->title) {
?>
<label for="<?php
echo $field->id;
?>
"><?php
echo $field->title;
?>
</label><?php
}
echo html_input('text', $field->element_name, $value, array('id' => $field->id, 'size' => 5, 'class' => 'input-number'));
if ($field->data['units']) {
?>
<span class="input-number-units"><?php
html($field->data['units']);
?>
</span><?php
}
示例9: html_input
<?php
if (!empty($field->hint)) {
?>
<div class="hint"><?php
echo $field->hint;
?>
</div><?php
}
?>
<?php
} else {
?>
<?php
echo html_input('hidden', $name, $value);
?>
<?php
}
?>
</div>
<?php
}
?>
<?php
}
?>
示例10: list
$fields['server'] = $server;
$fields['freq'] = 1;
$fields['yellowtime'] = 1;
$fields['redtime'] = 3;
}
list($contacttext, $dummy) = get_name($contact);
$fields['name'] = $contacttext;
title(_("New Ping Probe for") . " " . $contacttext);
cms_err_msg();
form_start("form");
html_input("hidden", "id", $id, 8);
html_input("hidden", "contact", $contact);
html_input("hidden", "contacttext", $contacttext);
if ($taskhead > 1) {
html_input("hidden", "createtask", 'no');
html_input("hidden", "taskhead", $taskhead);
}
table();
foreach ($form_fields as $key => $value) {
tr();
td();
cms_showfielddesc($form_fields, $key);
// the textual name of the field
td();
cms_showfield($form_fields, $key, $fields);
}
add();
endtable();
form_end();
?>
示例11: href_to
</div>
<div class="field">
<label><?php
echo LANG_PASSWORD;
?>
:</label>
<a href="<?php
echo href_to('auth', 'restore');
?>
"><?php
echo LANG_FORGOT_PASS;
?>
</a>
<?php
echo html_input('password', 'login_password');
?>
</div>
<div class="options">
<input type="checkbox" id="remember" name="remember" value="1" />
<label for="remember">
<?php
echo LANG_REMEMBER_ME;
?>
</label>
</div>
<div class="buttons">
<?php
echo html_submit(LANG_LOG_IN);
示例12: html_input
</div>
</div>
<?php
}
?>
<?php
}
?>
</div>
<div class="preview_template block" style="display:none">
<div class="thumb"><img src="" /></div>
<div class="info">
<div class="title">
<?php
echo html_input('text', '', '', array('placeholder' => LANG_PHOTOS_PHOTO_TITLE));
?>
</div>
<div class="actions">
<a href="javascript:"><?php
echo LANG_DELETE;
?>
</a>
</div>
</div>
</div>
<div id="album-photos-uploader"></div>
<script>
<?php
示例13: form_data
/**
* Form data
**/
private function form_data($form_title, $product_data, $product_conf)
{
$tab_data = array(array('tab_active' => 'active', 'tab_link' => 'product-data', 'tab_title' => 'Data Produk', 'tab_data' => $product_data), array('tab_link' => 'product-setting', 'tab_title' => 'Konfigurasi', 'tab_data' => $product_conf));
$button = array(html_input('submit', array('value="Simpan"', 'class="btn btn-success"')));
parent::form_config('yes', $tab_data, '', $form_title, $button);
}
示例14: foreach
</tr>
</thead>
<tbody>
<?php
if ($options['is_filter']) {
?>
<tr class="filter">
<?php
foreach ($columns as $name => $column) {
?>
<td>
<?php
if (isset($column['filter']) && $column['filter'] != 'none' && $column['filter'] != false) {
?>
<?php
echo html_input('text', 'filter_' . $name, isset($filter[$name]) ? $filter[$name] : '', array('id' => 'filter_' . $name, 'rel' => $name));
?>
<?php
}
?>
</td>
<?php
}
?>
<?php
if ($actions) {
?>
<td>
</td>
<?php
示例15: html_input
style="display:none"<?php
}
?>
>
<div class="filter-close">
<a href="javascript:toggleFilter();"><span><?php
echo LANG_CLOSE;
?>
</span></a>
</div>
<form action="<?php
echo cmsCore::getInstance()->uri_absolute;
?>
" method="post">
<?php
echo html_input('hidden', 'page', 1);
?>
<div class="fields">
<?php
$fields_count = 0;
?>
<?php
foreach ($fields as $name => $field) {
?>
<?php
if (!$field['is_in_filter']) {
continue;
}
?>
<?php
$value = isset($filters[$name]) ? $filters[$name] : null;