本文整理汇总了PHP中form_fieldset_close函数的典型用法代码示例。如果您正苦于以下问题:PHP form_fieldset_close函数的具体用法?PHP form_fieldset_close怎么用?PHP form_fieldset_close使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了form_fieldset_close函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getLoginForm
public function getLoginForm()
{
$this->CI->lang->load('basic', 'english');
$this->CI->load->helper('form');
$form = '<div id="LoginForm">';
$form.= '<p>'.$this->CI->lang->line('login_text').'</p>';
$form.= form_open(site_url('login'), array(
'id' => 'Login'
));
$form.= form_fieldset();
$form.= form_label('username');
$form.= form_input(array(
'maxlength' => 20,
'name' => 'username'
));
$form.= form_label('password');
$form.= form_input(array(
'maxlength' => 20,
'name' => 'password',
'type' => 'password'
));
$form.= form_submit('login_submit', $this->CI->lang->line('login_button'));
$form.= form_fieldset_close();
$form.= form_close();
$form.= '</div>';
return $form;
}
开发者ID:JohannesFischer,项目名称:adora-gallery,代码行数:29,代码来源:Content.php
示例2: display_field
function display_field($data)
{
array_merge($this->settings, $this->settings_vars);
$text_direction = $this->settings['field_text_direction'] == 'rtl' ? 'rtl' : 'ltr';
$field_options = $this->_get_field_options($data);
// If they've selected something we'll make sure that it's a valid choice
$selected = $data;
//$this->EE->input->post($this->field_name);
$r = form_fieldset('');
foreach ($field_options as $option) {
$selected = $option == $data;
$r .= '<label>' . form_radio($this->field_name, $option, $selected) . NBS . $option . '</label>';
}
return $r . form_fieldset_close();
}
开发者ID:rmdort,项目名称:adiee,代码行数:15,代码来源:ft.radio.php
示例3: form_persyaratan
function form_persyaratan($caption, $persyaratan = array(), $syarats = '')
{
$values = $syarats != '' ? unserialize($syarats) : array();
if (is_array($persyaratan) && count($persyaratan) > 0) {
$output = form_fieldset($caption);
$output .= "<div id=\"control_input_syarat_pengajuan\" class=\"control-group\">\n\t";
$output .= form_hidden('total_syarat', count($persyaratan));
$output .= form_label('Persyaratan', 'input_syarat_pengajuan', array('class' => 'control-label'));
$output .= "\n\t<div class=\"controls\">";
foreach ($persyaratan as $id => $syarat) {
$output .= form_label(form_checkbox(array('name' => 'surat_syarat[]', 'id' => 'input_syarat_' . $id, 'value' => $id, 'checked' => in_array($id, $values))) . ' ' . $syarat, 'input_syarat_' . $id, array('class' => 'checkbox'));
}
$output .= "\n\t</div>\n</div>";
$output .= form_fieldset_close();
return $output;
}
}
开发者ID:sanayaCorp,项目名称:e-inventory,代码行数:17,代码来源:biform_helper.php
示例4: _display_field
private function _display_field($data, $container = 'fieldset')
{
array_merge($this->settings, $this->settings_vars);
$text_direction = isset($this->settings['field_text_direction']) ? $this->settings['field_text_direction'] : 'ltr';
$field_options = $this->_get_field_options($data);
$selected = $data;
$r = '';
foreach ($field_options as $key => $value) {
$selected = $key == $data;
$r .= '<label>' . form_radio($this->field_name, $value, $selected) . NBS . $key . '</label>';
}
switch ($container) {
case 'grid':
$r = $this->grid_padding_container($r);
break;
default:
$r = form_fieldset('') . $r . form_fieldset_close();
break;
}
return $r;
}
开发者ID:ayuinc,项目名称:laboratoria-v2,代码行数:21,代码来源:ft.radio.php
示例5: foreach
$array_period_y[""] = "-- Year --";
foreach ($this->M_npk->years as $k => $v) {
$array_period_y[$k] = $v;
}
echo "<div id='filterform' style='width:800px'>";
echo form_open(site_url('/rpt/ndchurn'));
echo form_fieldset("<span style='cursor:hand' onclick=\"toggleFieldset(document.getElementById('filtertable'));\">Filter</span>");
echo "<table id='filtertable'>";
echo "<tr><td>Pengelola</td><td>:</td>";
echo "<td>" . form_dropdown('f_pgl_id', $array_pgl, array(), "class='pgl_to_ten'") . "</td></tr>";
echo "<tr><td>Tenant</td><td>:</td>";
echo "<td><span class='ct_ten_of_pgl'>" . form_dropdown('ten_id', $array_ten, array(), "class='ten_of_pgl'") . "</span></td></tr>";
echo "<tr><td>Period</td><td>:</td><td>" . form_dropdown("f_period_m", $array_period_m, isset($_POST['f_period_m']) ? array($_POST['f_period_m']) : array(date("m"))) . " " . form_dropdown("f_period_y", $array_period_y, isset($_POST['f_period_y']) ? array($_POST['f_period_y']) : array(date("Y"))) . "</td></tr>";
echo "<tr><td colspan=3 align='right'>" . form_submit('filter', 'OK', '') . "</td></tr>";
echo "</table>";
echo form_fieldset_close('');
echo form_close();
echo "</div>";
if (count($dt) > 0) {
echo "<div id='navigation'><ul>";
echo "<li><a href='" . site_url('/rpt/ndchurnsheet/' . $_POST['f_pgl_id'] . '/' . $_POST['ten_id'] . '/' . $_POST['f_period_y'] . $_POST['f_period_m']) . "'><img src='" . image_asset_url('xls.gif') . "' width=15 /></a></li>";
echo "</ul></div><br>";
}
echo "<i>Count = </i>" . count($dt);
?>
<table class='tablesorter' id='tb_c2bi'>
<thead><tr><th>No.</th><th>No. Fastel</th></tr></thead>
<tbody>
<?php
$no = 1;
开发者ID:wiliamdecosta,项目名称:channel_management,代码行数:31,代码来源:v_rpt_ndchurn.php
示例6: type_fieldset_close
public function type_fieldset_close()
{
return form_fieldset_close();
}
开发者ID:vitalik199415,项目名称:ozar,代码行数:4,代码来源:Form.php
示例7: fieldset_close
function fieldset_close()
{
$el = form_fieldset_close();
return $this->field_suffix . $el . $this->element_suffix;
}
开发者ID:bigjoevtrj,项目名称:codeigniter-bootstrap,代码行数:5,代码来源:Form.php
示例8: doctype
<?php
// Imprime o Doctype
echo doctype('xhtml1-trans');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Cadastro - TreinaWeb CodeIgniter</title>
<style type="text/css">
small.erro{display: block;padding: 0.2em;
background-color: #990000; color: white; margin: 0.2em;}
</style>
</head>
<body>
<?php
echo form_open('cadastro') . "\n\n", form_fieldset("Cadastro") . "\n", form_label('Nome', 'nome'), form_error('nome'), form_input('nome', set_value('nome', '')), "<br />", form_label('email', 'email'), form_error('email'), form_input('email', set_value('email', '')), "<br />", form_label('senha', 'senha'), form_error('senha'), form_password('senha'), "<br />", form_label('Confirmar Senha', 'senha-confirma'), form_error('senha-confirma'), form_password('senha-confirma'), "<br />", form_submit('', 'Efetuar Cadastro'), form_fieldset_close() . "\n\n", form_close(), validation_errors();
?>
</body>
</html>
开发者ID:joel-medeiros,项目名称:codeigniter-treinaweb,代码行数:23,代码来源:form_cadastro.php
示例9: array
<?php
//BUAT HEADnya
// $s=form_open('rumah/insert');
//DISARANKAN!!
$attributes = array('class' => 'frmBuku', 'id' => 'myform');
$s = form_open('rumah/insert', $attributes);
$a = array();
//TEXT
$data = array('name' => 'buku', 'id' => 'bukuInput', 'value' => '', 'maxlength' => '100', 'size' => '20', 'style' => 'width:50%');
$a['JUDUL'] = form_input($data);
foreach ($a as $n => $v) {
$s .= form_fieldset($n);
$s .= form_label($v, $n);
$s .= form_fieldset_close();
}
$s .= form_submit('mysubmit', 'Input data!');
$s .= form_close();
print $s;
$s = '';
开发者ID:nmadipati,项目名称:si-ksc,代码行数:20,代码来源:utama_view.php
示例10: exit
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
switch ($tela) {
case 'cadastrar':
echo bt_row(array(form_open_multipart('midia/cadastrar'), form_fieldset(), bt_col(12, array(get_msg('msgok'), get_msg('msgerro'), erros_validacao())), bt_col(12, bt_input('Titulo midia', 'nome', 4)), bt_col(12, bt_input('Descrição', 'descricao', 2)), bt_col(12, bt_input('Alt', 'alt', 2)), bt_col(12, bt_form(12, array(form_label('Arquivo'), form_upload(array('name' => 'arquivo'), set_value('arquivo'))))), bt_col(12, array(anchor('midia/gerenciar', 'Canselar', array('class' => 'btn btn-danger espaco')), bt_submit('Salvar', 'cadastrar', 4, 3))), form_fieldset_close(), form_close()));
break;
case 'editar':
$id = $this->uri->segment(3);
if ($id == NULL) {
set_msg('msgerro', 'Não foi informado uma midia valido.', 'aviso');
redirect('midia/gerenciar');
}
$query = $this->midia->get_byid($id)->row();
echo bt_row(array(form_open(current_url()), form_fieldset(), bt_col(12, array(get_msg('msgok'), get_msg('msgerro'), erros_validacao())), bt_col(6, array(bt_col(12, bt_input_cont('Titulo midia', 'nome', 12, $query->nome)), bt_col(12, bt_input_cont('Descrição', 'descricao', 12, $query->descricao)), bt_col(12, bt_input_cont('Alt', 'alt', 12, $query->alt)), bt_col(12, array(anchor('midia/gerenciar', 'Canselar', array('class' => 'btn btn-danger espaco')), bt_submit('Salvar', 'cadastrar', 4, 3))))), bt_col(6, trumb($query->arquivo, 300, 250, TRUE, $query->alt)), form_hidden('id', $id), form_fieldset_close(), form_close()));
break;
case 'gerenciar':
bt_row(bt_col(12, array(get_msg('msgok'), get_msg('msgerro'))));
?>
<div class="table-responsive">
<table class="table table-hover table-striped data-table">
<thead>
<tr>
<th>Nome<i class="fa"></i></th>
<th>Link<i class="fa"></i></th>
<th>Miniaturar<i class="fa"></i></th>
<th class="text-center">Ação<i class="fa"></i></th>
</tr>
开发者ID:jairomr,项目名称:Painel-Admin,代码行数:30,代码来源:midia.php
示例11: form_helper
public function form_helper()
{
$this->load->helper('form');
$attributes = array('class' => 'email', 'id' => 'myform');
echo form_open('email/send', $attributes);
//echo form_open_multipart('email/send', $attributes);
$data = array('name' => 'John Doe', 'email' => '[email protected]', 'url' => 'http://example.com');
echo form_hidden($data);
$data = array('name' => 'John Doe', 'email' => '[email protected]', 'url' => 'http://example.com');
echo form_hidden('my_array', $data);
$data = array('type' => 'hidden', 'name' => 'email', 'id' => 'hiddenemail', 'value' => '[email protected]', 'class' => 'hiddenemail');
echo form_input($data);
$data = array('name' => 'username', 'id' => 'username', 'value' => 'johndoe', 'maxlength' => '100', 'size' => '50', 'style' => 'width:50%');
echo form_input($data);
$options = array('small' => 'Small Shirt', 'med' => 'Medium Shirt', 'large' => 'Large Shirt', 'xlarge' => 'Extra Large Shirt');
$shirts_on_sale = array('small', 'large');
echo form_dropdown('shirts', $options, 'large');
echo form_dropdown('shirts', $options, $shirts_on_sale);
$js = 'id="shirts" onChange="some_function();"';
echo form_dropdown('shirts', $options, 'large', $js);
echo form_fieldset('Address Information');
echo "<p>fieldset content here</p>\n";
echo form_fieldset_close();
$attributes = array('id' => 'address_info', 'class' => 'address_info');
echo form_fieldset('Address Information', $attributes);
echo "<p>fieldset content here</p>\n";
echo form_fieldset_close();
echo form_checkbox('newsletter', 'accept', TRUE);
$js = 'onClick="some_function()"';
echo form_checkbox('newsletter', 'accept', TRUE, $js);
echo form_label('What is your Name', 'username');
$attributes = array('class' => 'mycustomclass', 'style' => 'color: #000;');
echo form_label('What is your Name', 'username', $attributes);
echo form_submit('mysubmit', 'Submit Post!');
echo form_button('name', 'content');
$data = array('name' => 'button', 'id' => 'button', 'value' => 'true', 'type' => 'reset', 'content' => 'Reset');
echo form_button($data);
$js = 'onClick="some_function()"';
echo form_button('mybutton', 'Click Me', $js);
echo form_error('myfield', '<div class="error">', '</div>');
echo validation_errors('<span class="error">', '</span>');
echo form_close();
}
开发者ID:jaffarsolo,项目名称:ci3-examples,代码行数:43,代码来源:Helpers.php
示例12: form_open
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Formulário de Contato - TreinaWeb CodeIgniter</title>
</head>
<body>
<?php
echo form_open('contato/enviar') . "\n\n";
echo form_fieldset("Contato") . "\n";
echo form_label('Nome: ', 'txt-nome') . "<br />\n";
echo form_input("txt-nome") . "\n\n";
echo br();
// <br />
echo form_label('E-mail: ', 'txt-email') . "<br />\n";
echo form_input("txt-email") . "\n\n";
echo br();
// <br />
echo form_label('Mensagem: ', 'txt-msg') . "<br />\n";
echo form_textarea(array("name" => "txt-msg", "rows" => 10, "cols" => 50), "") . "\n\n";
echo br();
// <br />
echo form_submit("btn-enviar", "Enviar") . "\n";
echo form_fieldset_close() . "\n\n";
echo form_close();
?>
</body>
</html>
开发者ID:joel-medeiros,项目名称:codeigniter-treinaweb,代码行数:30,代码来源:contato.php
示例13: display_field_radio
private function display_field_radio($options, $current_value = '')
{
$output = form_fieldset('');
foreach($options as $value => $label)
{
$output .= form_label(form_radio($this->field_name, $value, $value == $current_value).NBS.$label);
}
$output .= form_fieldset_close();
return $output;
}
开发者ID:rsanchez,项目名称:entry_type,代码行数:13,代码来源:ft.entry_type.php
示例14: set_value
<?php
$txt_name = set_value("txt-postar", 'Valor inicial');
echo form_open('helpers/form'), form_fieldset("Exemplo de como recuperar dados do POST"), form_label('Seu nome:', 'txt-nome'), form_input('txt-nome', $txt_name), "<br />", form_label('Digite um nome:', 'txt-postar'), form_input('txt-postar', ''), "<br />", form_submit('btn-submeter', 'Enviar'), form_fieldset_close(), form_close();
开发者ID:joel-medeiros,项目名称:codeigniter-treinaweb,代码行数:4,代码来源:form.php
示例15: _display_field
private function _display_field($data, $container = 'fieldset')
{
array_merge($this->settings, $this->settings_vars);
$text_direction = isset($this->settings['field_text_direction']) ? $this->settings['field_text_direction'] : 'ltr';
$field_options = $this->_get_field_options($data);
if (REQ == 'CP') {
if ($data === TRUE) {
$data = 'y';
} elseif ($data === FALSE) {
$data = 'n';
}
return ee('View')->make('radio:publish')->render(array('field_name' => $this->field_name, 'selected' => $data, 'options' => $field_options));
}
$selected = $data;
$r = '';
$class = 'choice mr';
foreach ($field_options as $key => $value) {
$selected = $key == $data;
$r .= '<label>' . form_radio($this->field_name, $value, $selected) . NBS . $key . '</label>';
}
switch ($container) {
case 'grid':
$r = $this->grid_padding_container($r);
break;
default:
$r = form_fieldset('') . $r . form_fieldset_close();
break;
}
return $r;
}
开发者ID:vigm,项目名称:advancedMD,代码行数:30,代码来源:ft.radio.php
示例16: set_value
</div>
<?=form_fieldset_close()?>
<?=form_close();?>
<!------------------------------------- Add user -------------------------------------->
<?=form_open('login/create_account')?>
<?=form_fieldset('Creare cont')?>
<div class="textfield">
<?=form_label('username', 'user_name')?>
<?=form_error('user_name')?>
<?=form_input('user_name', set_value('user_name'))?>
</div>
<div class="textfield">
<?=form_label('password', 'user_pass')?>
<?=form_error('user_pass')?>
<?=form_password('user_pass')?>
</div>
<div class="buttons">
<?=form_submit('create', 'Create')?>
</div>
<?=form_fieldset_close()?>
<?=form_close();?>
</div>
开发者ID:normy4ever,项目名称:Project_1,代码行数:30,代码来源:login_page.php
示例17: array
<h5>Password</h5>
<?php
$extras = array('size' => '50', 'style' => 'width:50%', 'id' => 'pass');
echo form_error('pass');
echo form_password($data = 'pass', $value = set_value('pass', ''), $extras);
?>
<h5>Confirm Password</h5>
<?php
$extras = array('size' => '50', 'style' => 'width:50%');
echo form_error('confpass');
echo form_password($data = 'confpass', $value = '', $extras);
?>
<h5>upload ppic</h5>
<input type="file" name="ppic" size="20" />
<br /><br />
<input type="submit" value="upload" />
</div>
<?php
echo form_fieldset_close("</div> <br /><br />");
?>
</div>
</form>
</body>
</html>
开发者ID:jeysinja,项目名称:assignment,代码行数:31,代码来源:upload_form2.php
示例18: _display_field
private function _display_field($data, $container = 'fieldset')
{
array_merge($this->settings, $this->settings_vars);
$values = decode_multi_field($data);
if (isset($this->settings['string_override']) && $this->settings['string_override'] != '') {
return $this->settings['string_override'];
}
$values = decode_multi_field($data);
$field_options = $this->_get_field_options($data);
if (REQ == 'CP') {
return ee('View')->make('checkboxes:publish')->render(array('field_name' => $this->field_name, 'values' => $values, 'options' => $field_options));
}
$r = '<div class="scroll-wrap pr">';
$r .= $this->_display_nested_form($field_options, $values);
$r .= '</div>';
switch ($container) {
case 'grid':
$r = $this->grid_padding_container($r);
break;
default:
$r = form_fieldset('') . $r . form_fieldset_close();
break;
}
return $r;
}
开发者ID:vigm,项目名称:advancedMD,代码行数:25,代码来源:ft.checkboxes.php
示例19: form_open
<!-- Start Inhalt
================================================== -->
<!-- Start Seitentitel -->
<?php echo '<h2>' . $heading . '</h2>'; ?>
<!-- Ende Seitentitel -->
<?php
echo form_open() . PHP_EOL;
echo form_fieldset() . PHP_EOL;
echo form_hidden('buch_id', $buch_id);
echo form_hidden('auflage_id', $auflage_id);
echo form_hidden('current_page', $current_page);
echo '<p>' . $description . '</p>' . PHP_EOL;
echo '<h1>' . $buchtitel . '</h1>' . PHP_EOL;
echo form_fieldset_close() . PHP_EOL;
echo form_fieldset() . PHP_EOL;
echo form_button('abbrechen', $back_txt, 'onClick=self.location.href="' . $back_link . '"') . PHP_EOL;
if(isset($submit_link)){
echo form_button('löschen', $submit_txt, 'onClick=self.location.href="' . $submit_link . '"') . PHP_EOL;
}
else {
echo form_submit('loeschen', $submit_txt, 'class="kurz go"') . PHP_EOL;
}
echo form_fieldset_close() . PHP_EOL;
echo form_close() . PHP_EOL;
?>
<!-- Ende Formular -->
<!-- Ende Inhalt -->
开发者ID:robertoceschi,项目名称:buchverwaltungstool,代码行数:30,代码来源:buch_delete_view.php
示例20: test_form_fieldset_close
public function test_form_fieldset_close()
{
$expected = <<<EOH
</fieldset></div></div>
EOH;
$this->assertEquals($expected, form_fieldset_close('</div></div>'));
}
开发者ID:rishikeshwalawalkar,项目名称:GetARide,代码行数:7,代码来源:form_helper_test.php
注:本文中的form_fieldset_close函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论