本文整理汇总了PHP中form_reset函数的典型用法代码示例。如果您正苦于以下问题:PHP form_reset函数的具体用法?PHP form_reset怎么用?PHP form_reset使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了form_reset函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: generateForm
function generateForm()
{
$output = form_hidden('edit[step]', 'confirm');
$player = $this->registration->user();
if (!$player) {
return false;
}
$noneditable = array();
$noneditable[] = array('Name', l($player->fullname, url("person/view/{$player->id}")));
$noneditable[] = array('Member ID', $player->member_id);
$noneditable[] = array('Event', l($this->event->name, url("event/view/{$this->event->registration_id}")));
$noneditable[] = array('Registered Price', $this->registration->total_amount);
$form = '<div class="pairtable">' . table(NULL, $noneditable) . '</div>';
$pay_opts = getOptionsFromEnum('registrations', 'payment');
array_shift($pay_opts);
$form .= form_select('Registration Status', 'edit[payment]', $this->registration->payment, $pay_opts);
$form .= form_textarea('Notes', 'edit[notes]', $this->registration->notes, 45, 5);
$output .= form_group('Registration details', $form);
if ($this->formbuilder) {
$this->formbuilder->bulk_set_answers_sql('SELECT qkey, akey FROM registration_answers WHERE order_id = ?', array($this->registration->order_id));
if (count($this->formbuilder->_answers) > 0) {
$output .= form_group('Registration answers', $this->formbuilder->render_editable(true));
} else {
$output .= form_group('Registration answers', $this->formbuilder->render_editable(false));
}
}
$output .= form_submit('Submit') . form_reset('Reset');
return form($output);
}
示例2: form
public function form()
{
$this->data['awardees_select_options'] = $this->user_model->get_boss_ID_select_options();
//載入可以用的選項
$this->data['plan_select_options'] = $this->reward_model->get_plan_ID_select_options();
$this->data['action_btn'][] = form_submit("", "送出", "class='btn btn-success'");
$this->data['action_btn'][] = form_reset("", "重設", "class='btn'");
$this->load->view('templates/header');
$this->load->view('templates/sidebar');
$this->load->view('reward/form', $this->data);
$this->load->view('templates/footer');
}
示例3: form_password
<?php
echo form_password($txtPassword);
?>
</div>
</div>
<?php
echo form_error("txtPassword");
?>
<div class="btn-group" style="float: right; margin-top: 5%;">
<?php
$submit = array("id" => "btnLogin", "name" => "btnLogin", "value" => "Log In", "class" => "btn btn-primary");
echo form_submit($submit);
?>
<?php
$btnReset = array("class" => "btn btn-default", "value" => "Reset");
echo form_reset($btnReset);
?>
</div>
</fieldset>
</div>
<?php
echo form_close();
?>
</div>
</body>
<!-- jQuery -->
<script src="<?php
echo base_url('assets/js/jquery.js');
?>
"></script>
<!-- Bootstrap Core JavaScript -->
示例4: set_value
<td>
<?php
$data['name'] = $data['id'] = 'terbilang';
$data['value'] = set_value('terbilang') ? set_value('terbilang') : $laporan_data['terbilang'];
$data['title'] = "Terbilang tidak boleh kosong";
echo form_input($data);
?>
</td>
</tr>
</table>
<div class="buttons">
<?php
if ($act != 'view') {
echo form_submit('simpan', 'Simpan', "id = 'button-save'");
echo form_reset('reset', 'Reset', "id = 'button-reset'");
}
if ($act != 'add') {
echo form_button(array('id' => 'button-print', 'content' => 'Cetak', 'onClick' => "location.href='" . site_url() . "laporan_ssp/cetak/" . $laporan_data['id'] . "'"));
}
$cancel_text = $act == 'view' ? 'Kembali' : 'Batal';
echo form_button(array('id' => 'button-cancel', 'content' => $cancel_text, 'onClick' => "location.href='" . site_url() . "laporan_ssp'"));
?>
</div>
<?php
echo form_close();
?>
</div>
示例5: jual
<label for="hrg_jual">Harga jual (harus diisi)</label><br />
<?php
echo form_input(array('name' => 'hrg_jual', 'id' => 'hrg_jual', 'value' => $data['hrg_jual']));
?>
</td>
</tr>
<tr class='even'>
<td>
<label for="ket">keterangan kode</label><br />
<?php
echo form_input(array('name' => 'ket', 'id' => 'ket'));
?>
</td>
<td>
<?php
echo form_submit(array('name' => 'add', 'class' => 'radius', 'value' => 'Tambah')) . ' ' . form_reset(array('value' => 'Bersih', 'class' => 'radius'));
?>
</td>
</tr>
</table>
<?php
echo form_close();
?>
</div>
<script type='text/javascript'>
$(function(){
$('#kode_kartu').change(function(){
var id = $('#kode_kartu').val();
示例6: set_value
<p>
<label for="nombre">Nombre <span class="required">*</span></label>
<input id="nombre" type="text" name="nombre" maxlength="25" value="<?php echo set_value('nombre',$producto["nombre"]); ?>" />
<?php echo form_error('nombre'); ?>
</p>
<p>
<label for="descripcion">Vigencia <span class="required">*</span></label>
<input type="text" class="fecha" name="vigencia" value="<?php echo set_value('vigencia',$this->fechas->cambiaf_a_castellano($producto["vigencia"])); ?>"/>
<?php echo form_error('vigencia'); ?>
</p>
<p>
<label for="precio">Precio <span class="required">*</span></label>
<input id="precio" type="text" name="precio" maxlength="5" value="<?php echo set_value('precio', $producto["precio"]); ?>" />
<?php echo form_error('precio'); ?>
</p>
<p>
<label>Archivo Word del Menu<span class="required">*</span></label>
<input type="file" name="userfile" size="20" />
</p>
<p>
<?php echo form_submit( 'submit', 'Enviar'); echo form_reset('reset','Limpiar');?>
</p>
</fieldset>
<?php echo form_close(); ?>
示例7: form_input
?>
<?php
echo form_input('course', isset($a->course) ? $a->course : set_value('course'), 'id="course"');
?>
</div>
</div>
</div>
<div class="pad">
<?php
echo form_submit('enviar', 'Guardar');
?>
<?
$url = site_url('cursos');
$js = "window.location='".$url."'";
$atri = array(
'content'=>'Cancelar',
'class'=>"button red",
'name'=>"cancelar",
'id'=>"cancelar",
'value'=>"Cancelar",
'onClick'=>$js
);
echo form_button($atri); ?>
<?php
echo form_reset('limpiar', 'Limpiar formulario');
?>
<?php
echo form_close();
?>
</div>
示例8: form_reset
}
}
?>
</p>
<p class="slider-btn-row">
<a class="slider-btns btn disabled" disabled="disabled"><i class="Library8"></i>JUST LUNCH</a>
<a class="slider-btns btn disabled" disabled="disabled"><i class="fa fa-plus-circle follow_editable"></i>SEGUIR</a>
</p>
</div>
<p class="sub-btn">
<?php
$opts = "class='proposal-submit'";
echo form_reset('reset', 'CANCELAR', $opts);
?>
<?php
if (isset($proposal_info['proposal_id'])) {
echo form_submit('submit', 'Guardar', $opts);
?>
<input type="hidden" name="prop_id" value="<?php
echo $proposal_info['proposal_id'];
?>
" id="prop_id">
<?php
} else {
echo form_submit('submit', 'GUaRDAR', $opts);
}
?>
</p>
示例9: validation_errors
<hml>
<head></head>
<body>
<?php
echo validation_errors();
if ($success == TRUE) {
echo 'FEED submetida.';
}
echo form_open('feeds/submit');
echo form_label('Título', 'source_name'), form_input('source_name');
//, set_value('source_name','')
echo '<br />';
echo form_label('URL:', 'url'), form_input('url');
//, set_value('url','')
echo '<br />';
echo form_label('Descrição da FEED:', 'description');
echo '<br />';
echo form_textarea('description');
echo '<br />';
echo form_hidden('user');
echo form_reset('clear', 'Limpar'), form_submit('submit', 'Submeter');
echo form_close();
?>
</body>
</hml>
示例10: lang
</div>
<div class="row-form">
<div class="span3"><?php
echo lang('create_user_password_confirm_label', 'password_confirm');
?>
</div>
<div class="span9"><?php
echo form_input($password_confirm);
?>
</div>
</div>
<br></div></br>
<p align="right"><?php
echo form_reset('reset', lang('client_add_reset_btn'));
echo ' | ';
echo form_submit('submit', lang('create_user_submit_btn'));
?>
</p>
<?php
echo form_close();
?>
</div>
</div>
<div class="span2"></div>
示例11: form_open
}
?>
<?php
echo form_open($this->uri->uri_string(), 'role="form"');
?>
<div class="form-group">
<label>Username</label>
<?php
echo form_input('username', $user->username, 'class="form-control" autocomplete="off"');
?>
</div>
<?php
echo form_submit(NULL, 'Submit', 'class="btn btn-success"');
?>
<?php
echo form_reset(NULL, 'Reset', 'class="btn btn-warning"');
?>
<?php
echo form_close();
?>
</div>
<div class="col-lg-5">
<div class="panel panel-info">
<div class="panel-heading">
Other Informations
</div>
<div class="panel-body">
<ul>
<li>Tidak diperbolehkan memasukkan <b>Username</b> yang sudah ada sebelumnya.</li>
</ul>
</div>
示例12: form_upload
<td>File Gambar</td>
<td>:</td>
<td><?php
echo form_upload(array('name' => 'file', 'class' => ''));
?>
</td>
</tr>
<tr>
<td></td>
<td></td>
<td style="text-align: left;">
<?php
echo form_submit(array('value' => 'Simpan', 'class' => 'btn btn-primary'));
?>
<?php
echo form_reset(array('value' => 'Batal', 'class' => 'btn btn-primary'));
?>
</td>
</tr>
</table>
</div>
</div>
<?php
echo form_close();
?>
</div>
</div>
<!--</div>-->
<!-- /.row -->
</div>
示例13: form_input
<label for="stock">stock</label><br />
<?php
echo form_input(array('id' => 'stock', 'disabled' => 'disabled'));
?>
</td>
</tr>
<tr>
<td>
<label for="hrg_dasar">harga dasar</label><br />
<?php
echo form_input(array('id' => 'hrg_dasar', 'disabled' => 'disabled'));
?>
</td>
<td>
<?php
echo form_submit(array('name' => 'add', 'id' => 'add', 'class' => 'radius', 'value' => 'Jual', 'disabled' => 'disabled')) . ' ' . form_reset(array('value' => 'Bersih', 'class' => 'radius'));
?>
</td>
</tr>
</table>
<?php
echo form_close();
?>
</div>
<script type='text/javascript'>
$(function(){
$('#id_type').change(function(){
示例14: form_error
echo '<input type=date name="birthday" id="birthday" class="form-control" required="required" >';
//echo form_input(array('id'=>'birthday', 'name'=>'birthday', 'class'=>'form-control'),
// set_value ('birthday'));
echo '<div class="error_control">' . form_error('birthday') . '</div>';
echo form_label('Hire date: ');
echo '<input type=date name="hire_date" id="hire_date" class="form-control" required="required">';
echo '<div class="error_control">' . form_error('hire_date') . '</div>';
echo form_label('Employee type: ');
echo '<select name="emp_type" id="emp_type" class="form-control">';
echo '<option value="worker">Worker</option>option>';
echo '<option value="admin">Admin</option>option>';
echo '</select>';
echo '<input type="hidden" id="avatar_url" name="avatar_url" value="avatar.png">';
echo '<input type="hidden" id="avatar_blob" name="avatar_blob" value="avatar_blob">';
echo form_submit(array('id' => 'btnAdd', 'name' => 'btnAdd', 'class' => 'btn btn-primary'), 'Submit');
echo form_reset(array('id' => 'btnClr', 'name' => 'btnClr', 'class' => 'btn btn-primary'), 'Reset');
echo '</form>';
?>
</div>
</div>
<!-- /.row -->
<div class="row">
</div>
<!-- /.row -->
<!-- /.row -->
示例15: exit
<?php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
/**
* Descripción de la vista.
*
*/
echo cajaEncabezado('Subir Archivo XML', 'grande');
//Muestro mensajes si hay alguno.
if (isset($error)) {
echo cartel($error, 'error');
}
if (isset($exito)) {
echo cartel($exito, 'exito');
}
//Genero el form.
echo form_open_multipart('reportes-entrada-salida/admin_xml/importar');
echo campoTexto('archivo', 'Seleccione archivo a subir:', 'mediano', 'file');
echo br();
echo form_submit('', 'Enviar', 'class = button') . " " . form_reset('', 'Borrar', 'class = button');
echo form_close();
echo cajaCierre();
/* End of file subir_archivo.php */
/* Location: ./application/views/subir_archivo.php */