本文整理汇总了PHP中form_fieldset函数的典型用法代码示例。如果您正苦于以下问题:PHP form_fieldset函数的具体用法?PHP form_fieldset怎么用?PHP form_fieldset使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了form_fieldset函数的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
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();
}
开发者ID:rmdort,项目名称:adiee,代码行数:19,代码来源:ft.checkboxes.php
示例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;
}
开发者ID:ayuinc,项目名称:laboratoria-v2,代码行数:21,代码来源:ft.radio.php
示例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');
开发者ID:jesusbarrios,项目名称:sica,代码行数:31,代码来源:recuperar_clave.php
示例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');
开发者ID:resnostyle,项目名称:CI-Blog,代码行数:31,代码来源:admin_post.php
示例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>";
开发者ID:wiliamdecosta,项目名称:channel_management,代码行数:31,代码来源:v_rpt_ndchurn.php
示例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>
开发者ID:andersonbezerrasantos,项目名称:controle_lab,代码行数:31,代码来源:ajuda.php
示例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>
开发者ID:wachs,项目名称:Loja-Virtual,代码行数:22,代码来源:login.php
示例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>
开发者ID:Hendroke,项目名称:Exemplo-PHP-com-CodeIgniter,代码行数:31,代码来源:ViewAdm.php
示例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();
开发者ID:nauzet18,项目名称:consig,代码行数:28,代码来源:prevision_futuro_acceso.php
示例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">
开发者ID:CapstoneFleetIntelligience,项目名称:Fleet,代码行数:31,代码来源:custN.php
示例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>
开发者ID:admire93,项目名称:play,代码行数:30,代码来源:test.php
示例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"');
?>
开发者ID:UiL-OTS-labs,项目名称:babylab-admin,代码行数:30,代码来源:participation_reschedule.php
示例16: _display_field
private function _display_field($data, $container = 'fieldset')
{
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 = '';
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>';
}
switch ($container) {
case 'grid':
$r = $this->grid_padding_container($r);
break;
default:
$r = form_fieldset('') . $r . form_fieldset_close();
break;
}
return $r;
}
开发者ID:nigelpeters,项目名称:css-recruitment-ee,代码行数:27,代码来源:ft.checkboxes.php
示例17: form_open
table.frm{
margin: 10px auto;
}
table.frm td{
padding: 3px;
vertical-align: top;
}
</style>
</head>
<body>
<?php
echo form_open('');
echo form_fieldset('Creación de asignaturas');
//MENSAJE
if ($msn) {
echo "<div id=msn class=ok>{$msn}</div>";
}
//FACULTAD
if ($facultades) {
$slc_facultad = array('' => '-----');
foreach ($facultades->result() as $row) {
$slc_facultad[$row->id_facultad] = $row->facultad;
}
$this->table->add_row(array(form_label('Facultad:', 'slc_facultad'), form_dropdown('slc_facultad', $slc_facultad, set_value('slc_facultad'), 'id="slc_facultad"') . form_error('slc_facultad', '<div class="error">', '</div>')));
}
//CARRERA
$slc_carrera = array('' => '-----');
if ($carreras) {
开发者ID:jesusbarrios,项目名称:sica,代码行数:31,代码来源:frm_crear.php
示例18: form_open
</head>
<body>
<h1>Form</h1>
<?php
//$hidden = array('member_id' => '234');
echo form_open('hello/showform', '', array('hidden' => 'hidden'));
$data = array('name' => 'username', 'id' => 'username', 'value' => 'johndoe', 'maxlength' => '100', 'size' => '50', 'style' => 'width:50%');
echo form_input($data) . '<br/>';
echo form_password('pass', '') . '<br/>';
echo form_textarea('textarea', 'default') . '<br/>';
$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') . '<br/>';
// echo form_dropdown('shirts', $options, $shirts_on_sale);
echo form_fieldset('Address Information');
echo "<p>fieldset content here</p>\n";
echo "<p>fieldset content here</p>\n";
echo form_fieldset_close();
?>
<p>First name: <input type="text" name="fname" /></p>
<p>Last name: <input type="text" name="lname" /></p>
<!--
<?php
echo form_hidden('username', 'johndoe');
?>
-->
<input type="submit" value="Submit" />
开发者ID:iHamburg,项目名称:kqserver,代码行数:30,代码来源:form.php
示例19: form_open
echo form_open($this->session->userdata('routeedit_submit') . '/save', $form);
?>
<table>
<tr>
<td><button type='submit' name='route_submit' id='route_submit' class='button_gross'><span class='button_save'>CI Route speichern</span></button></td>
<td><a href='<?php
echo $this->session->userdata('routeliste_redirect');
?>
' target='_top' class="button_gross"><span class="button_cancel">Zurück</span></a></td>
</tr>
</table>
<br>
<?php
echo form_fieldset(' Routendaten: ');
?>
<p>
<table>
<tr><td colspan="2"><?php
echo validation_errors();
?>
</td></tr>
<tr>
<td>
<table>
<tr>
<td class='form_label'><?php
echo form_label('Bereich:', 'bereich');
?>
</td>
开发者ID:shartte,项目名称:fw_bs_webpage,代码行数:31,代码来源:editRoute_admin.php
示例20: form_open
? Create routes will have to be ran again for this date.</h4>
<?php
echo form_open('deleteR', "id = 'deleteR'");
echo form_hidden('schd', $schd);
echo form_submit('', 'Yes, I want to delete these routes', "class='button alert small radius'");
echo form_close();
?>
<h6>After routes are deleted you will be taken back to the Home page.</h6>
<a class="close-reveal-modal">×</a>
</div>
</div>
</div>
<div class="row">
<?php
echo form_open('edit_rts', "id = 'edit_rts'");
echo form_fieldset('Change the deliverer for any route');
echo form_input(array('name' => 'schd', 'type' => 'hidden', 'id' => 'schd', 'value' => $schd));
//loop through individual routes and display their maps and info
foreach ($rquery->result() as $row) {
$sql = "select * from delivery as d, customer as c where d.cid = c.cid and d.schd = ? and c\r\n .bname = ? and d.rid = ? order by d.position";
$dquery = $this->db->query($sql, array($schd, $biz->name, $row->rid));
if ($dquery->num_rows() != 0) {
foreach ($dquery->result() as $drow) {
$address = str_replace('%2C', ',', $drow->caddress);
$waypoint[] = "{location:\"" . $address . "\"}";
}
$waypoints = implode(",", $waypoint);
} else {
$waypoints = "";
}
?>
开发者ID:CapstoneFleetIntelligience,项目名称:Fleet,代码行数:31,代码来源:routeM.php
注:本文中的form_fieldset函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论