本文整理汇总了PHP中form_fieldset函数的典型用法代码示例。如果您正苦于以下问题:PHP form_fieldset函数的具体用法?PHP form_fieldset怎么用?PHP form_fieldset使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了form_fieldset函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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();
}
示例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;
}
}
示例4: display_field
function display_field($data)
{
array_merge($this->settings, $this->settings_vars);
$values = decode_multi_field($data);
if (is_string($data) && $data != '' && $data[0] == '<') {
return $data;
}
if (isset($this->settings['string_override']) && $this->settings['string_override'] != '') {
return $this->settings['string_override'];
}
$field_options = $this->_get_field_options($data);
$values = decode_multi_field($data);
$r = form_fieldset('');
foreach ($field_options as $option) {
$checked = in_array(form_prep($option), $values) ? TRUE : FALSE;
$r .= '<label>' . form_checkbox($this->field_name . '[]', $option, $checked) . NBS . $option . '</label>';
}
return $r . form_fieldset_close();
}
示例5: _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;
}
示例6: form_open
}
.campo_obligatorio {
color: #FF0000;
float: left;
font-size: 11px;
margin-top: 20px;
padding: 0 2px;
}
</style>
</head>
<body>
<?php
echo form_open('');
echo form_fieldset('Cambio de clave');
if (isset($mensaje)) {
echo "<div class='frm_ok'>" . $mensaje . "</div>";
}
$txt_usuario = array('name' => 'txt_usuario', 'id' => 'txt_usuario', 'maxlength' => '100', 'size' => '50', 'autofocus' => 'autofocus', 'autocomplete' => 'Off', 'list' => 'opciones', 'value' => set_value('txt_usuario'));
echo form_label('Usuario:', 'txt_usuario');
echo form_input($txt_usuario) . "*<br>";
echo form_error('txt_usuario', '<div class="msn_error">', '</div>');
echo "<datalist id='opciones'>";
if ($personas) {
foreach ($personas->result() as $row) {
echo "<option value='{$row->nombre} {$row->apellido} {$row->documento}'>";
}
}
echo "</datalist>";
$clave_nueva = array('name' => 'txt_clave1', 'id' => 'txt_clave1', 'maxlength' => '15', 'size' => '15');
示例7: heading
<div id="main">
<?php
echo heading('Post an entry', 3);
?>
<div id='errors'>
<?php
echo heading(validation_errors(), 2);
?>
</div>
<?php
$form_open_attribs = array('class' => 'jNice');
echo form_fieldset('');
echo form_open('active/posted', $form_open_attribs);
?>
<p><?php
echo form_label('Date:', 'date');
echo form_input($date);
?>
</p>
<p><?php
echo form_label('Title:', 'title');
echo form_input($title);
?>
</p>
<p><?php
echo form_label('Catergory:', 'catergory');
示例8: foreach
}
$array_ten[""] = "-- Select Tenant --";
foreach ($ten as $k => $v) {
$array_ten[$k] = $v;
}
$array_period_m[""] = "-- Month --";
foreach ($this->M_npk->months as $k => $v) {
$array_period_m[$k] = $v;
}
$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>";
示例9: form_fieldset
break;
case 2:
$dados['ativo'] = 7;
$this->load->view('admin2/navbar', $dados);
break;
case 3:
$dados['ativo'] = 7;
$this->load->view('admin3/navbar', $dados);
break;
}
?>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12">
<?php
echo form_fieldset('Perguntas Frequentes');
?>
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-info">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
O que é a Semana transdisciplinar?
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
</div>
示例10: validation_errors
<div id="form-login" >
<?php
/**
* Formulário Login
* Cap. 10
* Pag. 137
*/
echo validation_errors();
echo form_open(base_url() . 'administracao/home/login');
echo form_fieldset("Efetuar Login");
echo form_label('Login', 'login');
echo form_input('login', set_value('login'));
echo form_label('Senha', 'senha');
echo form_password('senha', set_value('senha'));
echo form_submit('mysubmit', 'LOGIN');
echo form_reset('myreset', 'CANCELAR');
echo form_fieldset_close();
echo form_close();
?>
</div>
示例11: foreach
<?php
$cont = 1;
foreach ($membros as $m) {
echo "\n\t\t\t\t\t\t\t\t<div class=\"linha\" style=\"justify-content: unset;\">\n\t\t\t\t\t\t\t\t\t<code style=\"float: left; width: 500px;\">" . $cont . "- " . $m->nome . "</code>" . "\n\t\t\t\t\t\t\t\t\t<div style=\"padding-top: 13px; padding-bottom: 13px;\">" . anchor("CtrlMembro/delete_membro/{$m->id}", "<input name=\"btnDeletar" . $cont . "\" value=\"Deletar\" type=\"button\" style=\"float: right;\">") . "\n\t\t\t\t\t\t\t\t\t\t<br>" . anchor("CtrlMembro/update_membro/{$m->id}", "<input name=\"btnAlterar" . $cont . "\" value=\"Alterar\" type=\"button\" style=\"float: right;\">") . "\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>";
$cont++;
}
?>
</div>
</section>
<br><br>
<section id="textos" class="section">
<div id="container">
<h1>ATUALIZAÇÃO DE TEXTOS</h1>
<?php
echo form_open("CtrlTexto/update_texto");
echo form_fieldset("Preencha os campos abaixo ");
echo "ID: ";
echo form_input("id_texto");
echo "<br><br>";
echo "Titulo: ";
echo form_input("titulo");
echo "<br><br>";
echo "Texto: ";
echo form_input("texto");
echo "<br><br>";
echo form_submit("submit", "ENVIAR");
echo form_fieldset_close();
echo form_close();
?>
<h1>TABELA DE TEXTOS</h1>
示例12: site_url
<?php
$img_si = '<img src="' . site_url('img/interfaz/vale.png') . '" alt="sí" />';
$img_no = '<img src="' . site_url('img/interfaz/cancelar.png') . '" alt="no" />';
echo form_fieldset('Previsión de permisos de acceso');
?>
<p>
El fichero que va a subir podrá ser accedido en los siguientes casos:
</p>
<ul class="lista-permisos">
<li id="prevision-peor-caso"><?php
echo $prevision == 0 ? $img_no : $img_si;
?>
Usuarios anónimos conectados desde fuera de la red de la
Universidad de Sevilla</li>
<li><?php
echo $img_si;
?>
Usuarios anónimos conectados desde la red de la Universidad de
Sevilla</li>
<li><?php
echo $img_si;
?>
Usuarios autenticados desde cualquier ubicación</li>
</ul>
<?php
echo form_fieldset_close();
示例13: form_open
<input type="text" placeholder="Required" required pattern="[0-9]+" id="cphone" name="cphone">
</label>
<small class="error">A customer phone number is required.</small>
</div>
</div>
<div class="small-12 medium-3 large-4 columns">
<div class="name-field">
<label>Delivery Date
<input type="date" id="schd" name="schd">
</label>
</div>
</div>
</div>
<?php
echo form_open('addCust', 'data-abide', "id = 'add_cust'");
echo form_fieldset('Enter details for new delivery');
?>
<div class="row">
<div class="small-12 medium-6 columns">
<div class="name-field">
<label>Customer Address
<input type="text" placeholder="Required" required pattern="[a-zA-Z0-9]+" id="address" name="address">
</label>
<small class="error">A customer address is required.</small>
</div>
</div>
<div class="small-12 medium-6 columns">
<div class="name-field">
<label>City
<input type="text" placeholder="Required" required pattern="[a-zA-Z]+" id="city" name="city">
示例14: form_open
<?php
echo form_open('/post/test_create');
?>
<?php
echo form_fieldset('Post-write');
?>
<?php
echo form_textarea(array('name' => 'body', 'id' => 'body'));
?>
<?php
echo form_fieldset_close();
?>
<?php
echo form_fieldset('Post-tag');
?>
<?php
echo form_input(array('name' => 'tag', 'id' => 'tag'));
?>
<?php
echo form_fieldset_close();
?>
<?php
echo form_submit('submit', 'write');
?>
</form>
</body>
</html>
示例15: heading
</script>
<?php
echo heading(lang('participations'), 2);
?>
<?php
echo $this->session->flashdata('message');
?>
<?php
echo form_open('participation/reschedule_submit/' . $participation->id, array('class' => 'pure-form'));
?>
<?php
echo form_fieldset(lang('reschedule'));
?>
<p>
<?php
echo sprintf(lang('reschedule_info'), name($participant), $experiment->name, output_datetime($participation->appointment));
?>
</p>
<p>
<?php
echo sprintf(lang('call_dates'), name($participant), $min_date, $max_date);
?>
</p>
<?php
echo form_input('appointment', $appointment, 'id="appointment"');
?>