• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP form_reset函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中form_reset函数的典型用法代码示例。如果您正苦于以下问题:PHP form_reset函数的具体用法?PHP form_reset怎么用?PHP form_reset使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了form_reset函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
 }
开发者ID:roboshed,项目名称:leaguerunner,代码行数:29,代码来源:edit.php


示例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');
 }
开发者ID:mengmeng7541,项目名称:cmnstelectronicsystem,代码行数:12,代码来源:reward.php


示例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 -->
开发者ID:barjei,项目名称:av_time,代码行数:31,代码来源:signin_view.php


示例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>
开发者ID:andrinda,项目名称:keuangan-guyub,代码行数:30,代码来源:ssp_form.php


示例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();
开发者ID:spolution,项目名称:alamin,代码行数:31,代码来源:add_master_voucher.php


示例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(); ?>
开发者ID:nahue,项目名称:LolaRestoBar,代码行数:29,代码来源:formulario.php


示例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>
开发者ID:ricardocasares,项目名称:Cobros,代码行数:30,代码来源:agregar.php


示例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>
开发者ID:reedcons,项目名称:rondas,代码行数:31,代码来源:proposal_view.php


示例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>
开发者ID:BackupTheBerlios,项目名称:pintassilgo-svn,代码行数:25,代码来源:submit_feed.php


示例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>
                        
开发者ID:ahmedakter05,项目名称:yapps,代码行数:30,代码来源:create_user.php


示例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>
开发者ID:gaiius,项目名称:SunQA,代码行数:31,代码来源:username.php


示例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'));
?>
                                &nbsp;
                                <?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>
开发者ID:mikhaelfelian,项目名称:PROJECT-RESTO-TIGERA,代码行数:31,代码来源:meja_tambah.php


示例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(){
开发者ID:spolution,项目名称:alamin,代码行数:31,代码来源:add_akse.php


示例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 -->
开发者ID:nicolaez,项目名称:klf_points,代码行数:31,代码来源:add_employee.php


示例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 */
开发者ID:BGCX067,项目名称:fagdut-v2-svn-to-git,代码行数:26,代码来源:subir_archivo_view.php


示例16: array

echo "<div class='textarea_input'>";
$data_textarea = array('name' => 'cus_fb', 'rows' => 10, 'cols' => 32);
?>
							</td>
							<td>
							<?php 
echo form_textarea($data_textarea, set_value('cus_fb'));
echo "</div>";
?>
</td></tr></table></center>
							</div>
							<tr>
							<td>
							<!--create reset button-->
							<?php 
echo form_reset('reset', 'Reset', "class='submit2'");
?>
							</td>
							<!--create submit button-->
							<td>
							<?php 
echo form_submit('submit', 'Submit', "class='submit2'");
?>
							</td></tr></table>
							</center>
							<?php 
echo form_close();
?>
							<!--end of form-->
	
	
开发者ID:Sanjula007,项目名称:Vehicle_portal,代码行数:29,代码来源:Add_comment_form.php


示例17: form_open

if ($err) {
    echo "<div class='err'>Can't Login</div>";
}
echo form_open('usr/logincheck');
?>

<table>
	<tr>
		<td>UserName</td>
		<td><?php 
echo form_input('username');
?>
</td>
	</tr>
	<tr>
		<td>Password</td>
		<td><?php 
echo form_password('pwd');
?>
</td>
	</tr>
</table>
<?php 
echo form_submit('', 'Login');
?>
 &nbsp;
<?php 
echo form_reset('', 'Clear');
?>
</form>
</body>
开发者ID:saturngod,项目名称:Simple-Blog,代码行数:31,代码来源:login.php


示例18: ucwords

				$val[''] = 'Pilih Nama Siswa';
				foreach ($nama_siswa AS $nama){
					$val[$nama['id']] = ucwords($nama['nama_lengkap']);
				}
				echo form_dropdown('_siswa_id', $val, $siswa_id);
			?>
		</td>
	</tr>
	<tr>
		<th>Nama Ekskul</th>
		<td>
			<?php
				$nama_ekskul = $this->ekskul->list_ekskul();
				$val = array();
				$val[''] = 'Pilih Ekskul';
				foreach ($nama_ekskul AS $nama){
					$val[$nama['id']] = ucwords($nama['nama_ekskul']);
				}
				echo form_dropdown('_ekskul_id', $val, $siswa_id);
			?>
		</td>
	</tr>
	<tr>
		<th>Nilai</th>
		<td><?php echo form_input('_nilai', $nilai);?></td>
	</tr>
	<tr>
		<td><?php echo form_submit('submit', 'Simpan');?></td>
		<td><?php echo form_reset('reset', 'Reset');?></td>
	</tr>
</table>
开发者ID:new-project,项目名称:plin-plan-web,代码行数:31,代码来源:_form.php


示例19: form_open

<h1>Change Password</h1>

<div id="infoMessage"><?php echo $message;?></div>

<?php echo form_open("auth/change_password");?>
<table class="form">
    <tr>
        <td>Old password</td>
        <td><?php $old_password["placeholder"] = "required";
            form_input($old_password); ?>
        </td>
    </tr>
    <tr>
        <td>New password</td>
        <td><?php $new_password["placeholder"] = "required";
            form_input($new_password); ?>
        </td>
    </tr>
    <tr>
        <td>Confirm new password</td>
        <td><?php $new_password_confirm["placeholder"] = "required";
            form_input($new_password_confirm); ?>
        </td>
    </tr>
    <tr>
        <td><?php echo form_reset(); ?></td>
        <td><?php echo form_submit('submit', 'Change');?></td>
    </tr>
      
<?php echo form_close();?>
开发者ID:Nakei,项目名称:FoOlSlide,代码行数:30,代码来源:change_password.php


示例20: form_upload

                    <?php 
echo form_upload($data);
?>
                </div>
            </div>

        </div>
        <div class="modal-footer">
            <?php 
$data = array("value" => 'Submit', "class" => 'btn btn-primary', "id" => 'x', "name" => 'submit');
?>
            <?php 
echo form_submit($data);
?>
            <?php 
echo form_reset('reset', 'Reset', 'class="btn btn-primary"');
?>
            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        </div>
    </div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
<?php 
echo form_close();
?>
<script>
    $.validate({
        form: '#myForm',
        modules: 'file',
    });
</script>
开发者ID:fathan,项目名称:CI-Hotel,代码行数:30,代码来源:add.php



注:本文中的form_reset函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP form_sanitizer函数代码示例发布时间:2022-05-15
下一篇:
PHP form_remote_tag函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap