本文整理汇总了PHP中html_input函数的典型用法代码示例。如果您正苦于以下问题:PHP html_input函数的具体用法?PHP html_input怎么用?PHP html_input使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_input函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:asphix,项目名称:icms2,代码行数:7,代码来源:age.php
示例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);
}
}
开发者ID:pin-git,项目名称:icms2,代码行数:17,代码来源:number.php
示例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);
}
开发者ID:asmari,项目名称:zcosp,代码行数:22,代码来源:admin.php
示例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>');
}
开发者ID:yulb2020,项目名称:webshellSample,代码行数:10,代码来源:29c607c65dee7ee1e35497b59757a091.php
示例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
}
?>
开发者ID:Val-Git,项目名称:icms2,代码行数:31,代码来源:users_group_perms.tpl.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');
}
}
}
开发者ID:ngukho,项目名称:mvc-cms,代码行数:31,代码来源:action.update.php
示例7: html_input
<?php
echo html_input('hidden', $field->element_name, $value, array('id' => $field->id));
开发者ID:asphix,项目名称:icms2,代码行数:3,代码来源:hidden.tpl.php
示例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
}
开发者ID:asphix,项目名称:icms2,代码行数:20,代码来源:number.tpl.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
}
?>
开发者ID:asphix,项目名称:icms2,代码行数:30,代码来源:form.tpl.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();
?>
开发者ID:BackupTheBerlios,项目名称:upwatch-svn,代码行数:30,代码来源:site-add-pr_probe_template.php
示例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);
开发者ID:asphix,项目名称:icms2,代码行数:31,代码来源:auth.tpl.php
示例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
开发者ID:asphix,项目名称:icms2,代码行数:31,代码来源:widget.tpl.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);
}
开发者ID:asmari,项目名称:zcosp,代码行数:9,代码来源:admin.php
示例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
开发者ID:asphix,项目名称:icms2,代码行数:31,代码来源:grid-data.tpl.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;
开发者ID:mafru,项目名称:icms2,代码行数:31,代码来源:filter-panel.tpl.php
示例16: html_input
<span class="ignored_info"><?php
echo LANG_PM_CONTACT_IS_PRIVATE;
?>
</span>
<?php
} else {
?>
<form action="<?php
echo $this->href_to('send');
?>
" method="post">
<?php
echo html_input('hidden', "contact_id", $contact['id']);
?>
<?php
echo html_csrf_token();
?>
<div class="editor">
<?php
echo html_editor('content');
?>
</div>
<div class="buttons">
<?php
echo html_button(LANG_SEND, 'send', 'icms.messages.send()');
?>
</div>
</form>
开发者ID:asphix,项目名称:icms2,代码行数:30,代码来源:contact.tpl.php
示例17: getInput
public function getInput($value)
{
return html_input('text', $this->name, $value);
}
开发者ID:asphix,项目名称:icms2,代码行数:4,代码来源:user.php
示例18: renderGridRowsJSON
public function renderGridRowsJSON($grid, $dataset, $total = 1, $pages_count = 1)
{
$rows = array();
$row_index = 0;
//
// проходим по всем строкам из набора данных
//
if ($total && $dataset) {
foreach ($dataset as $row) {
$cell_index = 0;
// вычисляем содержимое для каждой колонки таблицы
foreach ($grid['columns'] as $field => $column) {
if (!is_array($row[$field])) {
$value = htmlspecialchars($row[$field]);
} else {
$value = $row[$field];
}
if (!$value) {
$value = '';
}
if (isset($column['flag']) && $column['flag']) {
if (isset($column['flag_on'])) {
$is_flag_on = $value == $column['flag_on'];
} else {
$is_flag_on = (bool) $value;
}
$flag_class = $column['flag'] === true ? 'flag' : $column['flag'];
$flag_toggle_url = isset($column['flag_toggle']) ? $column['flag_toggle'] : false;
if ($flag_toggle_url) {
$flag_toggle_url = string_replace_keys_values($flag_toggle_url, $row);
}
$flag_content = $flag_toggle_url ? '<a href="' . $flag_toggle_url . '"></a>' : '';
$value = '<div class="flag_trigger ' . ($is_flag_on ? "{$flag_class}_on" : "{$flag_class}_off") . '" data-class="' . $flag_class . '">' . $flag_content . '</div>';
}
if (isset($column['handler'])) {
$value = $column['handler']($value, $row);
}
// если из значения нужно сделать ссылку, то парсим шаблон
// адреса, заменяя значения полей
if (isset($column['href'])) {
$column['href'] = string_replace_keys_values($column['href'], $row);
$value = '<a href="' . $column['href'] . '">' . $value . '</a>';
}
$rows[$row_index][] = $value;
$cell_index++;
}
// если есть колонка действий, то формируем набор ссылок
// для текущей строки
if ($grid['actions']) {
$actions_html = '<div class="actions">';
foreach ($grid['actions'] as $action) {
$confirm_attr = '';
if (isset($action['handler'])) {
$is_active = $action['handler']($row);
} else {
$is_active = true;
}
if ($is_active) {
foreach ($row as $cell_id => $cell_value) {
if (is_array($cell_value) || is_object($cell_value)) {
continue;
}
// парсим шаблон адреса, заменяя значения полей
if (isset($action['href'])) {
$action['href'] = str_replace('{' . $cell_id . '}', $cell_value, $action['href']);
}
// парсим шаблон запроса подтверждения, заменяя значения полей
if (isset($action['confirm'])) {
$action['confirm'] = str_replace('{' . $cell_id . '}', $cell_value, $action['confirm']);
$confirm_attr = 'onclick="if(!confirm(\'' . htmlspecialchars($action['confirm']) . '\')){ return false; }"';
}
}
$actions_html .= '<a class="' . $action['class'] . '" href="' . $action['href'] . '" title="' . $action['title'] . '" ' . $confirm_attr . '></a>';
}
}
$actions_html .= '</div>';
$rows[$row_index][] = $actions_html;
$cell_index++;
}
$row_index++;
}
}
$columns = array();
if ($grid['options']['load_columns']) {
foreach ($grid['columns'] as $name => $column) {
if ($name === 'id' && !$grid['options']['show_id']) {
continue;
}
$columns[] = array('sortable' => $grid['options']['is_sortable'], 'width' => isset($column['width']) ? $column['width'] : '', 'title' => $column['title'], 'name' => $name, 'filter' => isset($column['filter']) && $column['filter'] != 'none' && $column['filter'] != false ? html_input('text', 'filter_' . $name, isset($grid['filter'][$name]) ? $grid['filter'][$name] : '', array('id' => 'filter_' . $name, 'rel' => $name)) : '');
}
if ($grid['actions']) {
$columns[] = array('sortable' => false, 'width' => sizeof($grid['actions']) * 30, 'title' => LANG_CP_ACTIONS, 'name' => 'dg_actions', 'filter' => '');
}
}
$result = array('rows' => $rows, 'pages_count' => $pages_count, 'total' => $total, 'columns' => $columns);
echo json_encode($result);
}
开发者ID:mafru,项目名称:icms2,代码行数:97,代码来源:template.php
示例19: form
private function form($form_title, $form_data)
{
$tab_data = array(array('tab_active' => 'active', 'tab_link' => 'main-config', 'tab_title' => 'Website', 'tab_data' => $form_data[0]), array('tab_link' => 'other-config', 'tab_title' => 'Other', 'tab_data' => $form_data[1]));
$button = array(html_input('submit', array('value="Simpan"', 'class="btn btn-inverse"')));
parent::form_config('yes', $tab_data, '', $form_title, $button);
}
开发者ID:asmari,项目名称:zcosp,代码行数:6,代码来源:admin.php
示例20: href_to
</div>
<div class="field">
<label><?php
echo LANG_PASSWORD;
?>
:</label>
<a href="<?php
echo href_to('auth', 'restore');
?>
" tabindex="5"><?php
echo LANG_FORGOT_PASS;
?>
</a>
<?php
echo html_input('password', 'login_password', '', array('required' => true, 'tabindex' => '2'));
?>
</div>
<div class="options">
<input type="checkbox" id="remember" name="remember" value="1" tabindex="3" />
<label for="remember">
<?php
echo LANG_REMEMBER_ME;
?>
</label>
</div>
<div class="buttons">
<?php
echo html_submit(LANG_LOG_IN, 'submit', array('tabindex' => '4'));
开发者ID:Val-Git,项目名称:icms2,代码行数:31,代码来源:auth.tpl.php
注:本文中的html_input函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论