示例#1
0
 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);
 }
 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
0
 function generateForm($data = array())
 {
     $output = form_hidden("edit[step]", "confirm");
     $output .= form_textfield("Field Identification", 'edit[num]', $data['num'], 15, 15, "Location of this field at the given site; cannot be 0");
     $output .= form_select("Field Status", 'edit[status]', $data['status'], array('open' => 'open', 'closed' => 'closed'));
     $output .= form_select("Field Rating", 'edit[rating]', $data['rating'], field_rating_values(), "Rate this field on the scale provided");
     // TODO: Should become Field::get_eligible_parents()
     $sth = Field::query(array('_extra' => 'ISNULL(parent_fid)', '_order' => 'f.name,f.num'));
     $parents = array();
     $parents[0] = "---";
     while ($p = $sth->fetch(PDO::FETCH_OBJ)) {
         $parents[$p->fid] = $p->fullname;
     }
     $output .= form_select("Parent Field", 'edit[parent_fid]', $data['parent_fid'], $parents, "Inherit location and name from other field");
     if (!$data['parent_fid']) {
         $output .= form_textfield("Field Name", 'edit[name]', $data['name'], 35, 255, "Name of field (do not append number)");
         $output .= form_textfield("Field Code", 'edit[code]', $data['code'], 3, 3, "Three-letter abbreviation for field site");
         $output .= form_select("Region", 'edit[region]', $data['region'], getOptionsFromEnum('field', 'region'), "Area of city this field is located in");
         $output .= form_select("Is indoor", 'edit[is_indoor]', $data['is_indoor'], array(0 => 'No', 1 => 'Yes'), "Is this an indoor field");
         $output .= form_textfield('Street and Number', 'edit[location_street]', $data['location_street'], 25, 100);
         $output .= form_textfield('City', 'edit[location_city]', $data['location_city'], 25, 100, 'Name of city');
         $output .= form_select('Province', 'edit[location_province]', $data['location_province'], getProvinceNames(), 'Select a province from the list');
         $output .= form_textfield("Location Map", 'edit[location_url]', $data['location_url'], 50, 255, "URL for image that shows how to reach the field");
         $output .= form_textfield("Layout Map", 'edit[layout_url]', $data['layout_url'], 50, 255, "URL for image that shows how to set up fields at the site");
         $output .= form_textarea("Driving Directions", 'edit[driving_directions]', $data['driving_directions'], 60, 5, "");
         $output .= form_textarea("Parking Details", 'edit[parking_details]', $data['parking_details'], 60, 5, "");
         $output .= form_textarea("Transit Directions", 'edit[transit_directions]', $data['transit_directions'], 60, 5, "");
         $output .= form_textarea("Biking Directions", 'edit[biking_directions]', $data['biking_directions'], 60, 5, "");
         $output .= form_textarea("Public Washrooms", 'edit[washrooms]', $data['washrooms'], 60, 5, "");
         $output .= form_textarea("Special Instructions", 'edit[public_instructions]', $data['public_instructions'], 60, 5, "Specific instructions for this site that don't fit any other category.");
         $output .= form_textarea("Private Instructions", 'edit[site_instructions]', $data['site_instructions'], 60, 5, "Instructions for this site that should be shown only to logged-in members.");
         $output .= form_textarea("Sponsorship", 'edit[sponsor]', $data['sponsor'], 60, 5, "");
     }
     $output .= form_submit('Submit') . form_reset('Reset');
     return form($output);
 }
示例#4
0
								<?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 -->
示例#5
0
			<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>
示例#6
0
				<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();
示例#7
0
    
<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(); ?>
示例#8
0
?>
			<?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>
示例#9
0
    }
}
?>
             
          </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>
<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>
示例#11
0
                                          </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>
                        
示例#12
0
文件: username.php 项目: gaiius/SunQA
 }
 ?>
                         <?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>
                            <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>
示例#14
0
				<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(){
示例#15
0
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 -->
<?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 */
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-->
	
	
示例#18
0
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>
示例#19
0
				$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>
示例#20
0
<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();?>
示例#21
0
文件: add.php 项目: fathan/CI-Hotel
                    <?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>
 */
echo heading('<center>Register form</center>', 1);
echo validation_errors('<font color="red">', '</font>');
echo br(2);
echo form_open('logincontroller/register');
echo form_label('Enter username: '******'usernamelabel');
echo form_input('username', 'xxx');
echo br(2);
echo form_label('Enter firstname: ', 'firstnamelabel');
echo form_input('firstname', 'xxx');
echo br(2);
echo form_label('Enter lastname: ', 'lastnamelabel');
echo form_input('lastname', 'xxx');
echo br(2);
echo form_label('Enter Email: ', 'emaillabel');
echo nbs(5);
echo form_input('email', '*****@*****.**');
echo br(2);
echo form_label('Enter Pasword: ', 'passwordlabel');
echo nbs(1);
echo form_input('password', '');
echo br(2);
echo form_label('Re-Enter Pasword: ', 'passwordlabel');
echo nbs(1);
echo form_input('repassword', '');
echo br(2);
echo nbs(5);
echo form_submit('myregisteration', 'Register');
echo nbs(5);
echo form_reset('resetregistration', 'Reset');
示例#23
0
文件: add.php 项目: Assem/PMS
<h1 class="pmsH1">Sondage <?php 
echo $poll->label;
?>
 -> Question <?php 
echo $question->order;
?>
: Ajouter une réponse</h1>
<?php 
$this->load->view('global/flash_messages', array('title' => $title));
echo validation_errors('<div class="alert alert-danger"><a href="#" class="close" data-dismiss="alert">&times;</a><strong>Erreur! </strong>', '</div>');
?>

<div class="view-menu">
	<?php 
echo drawActionsMenuItem('questions/edit/' . $question->id, 'cancel.png', 'Revenir à la question');
?>
</div>

<?php 
echo form_open('answers/add/' . $question->id);
drawModelData($fields, 2, 'edit-form');
?>

<div class="required-notice">* Champ obligatoire</div>
<?php 
echo form_submit('submit', 'Enregistrer', array('class' => 'submit-button'));
echo form_reset('reset', 'Réinitialiser', array('class' => 'submit-button'));
?>

示例#24
0
 function reset()
 {
     $atts = $this->_filter_atts('input');
     $el = form_reset($atts);
     //return $this->element_prefix.$el.$this->element_suffix;
     return $el;
 }
示例#25
0
<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>
示例#26
0
<?php

/**
 * views/oe/_update_form.php
 * 
 * Generic form allows for updating a data entry to the corresponding database.
 * 
 * @author Group DEF
 */
$this->load->helper('form');
echo form_open('/update/post');
echo form_input(array('name' => 'id', 'value' => '', 'placeholder' => 'ID of invoice to update', 'style' => 'display: block;', 'id' => 'id'));
echo form_input(array('name' => 'customer', 'value' => '', 'placeholder' => 'New customer ID', 'style' => 'display: block;', 'id' => 'customer'));
echo form_input(array('name' => 'description', 'value' => '', 'placeholder' => 'New description', 'style' => 'display: block;', 'id' => 'description'));
echo form_input(array('name' => 'date', 'value' => '', 'placeholder' => 'New date', 'style' => 'display: block;', 'id' => 'datePicker', 'class' => 'date-picker'));
$options = array('status' => 'New status', 'A' => 'Active', 'D' => 'Disabled');
echo form_dropdown('status', $options, 'status', "style='display: block;'");
echo form_submit('', 'Update Invoice', "class='btn'");
echo form_reset('', 'Clear Fields', "class='btn'");
echo form_close();
?>

示例#27
0
echo form_input($mjudul);
?>
</td></tr><?php 
?>
<tr><td>Deskripsi</td><td>:</td><td><?php 
echo form_textarea($mdesc);
?>
</td></tr><?php 
?>
<tr><td>File</td><td>:</td><td><?php 
echo form_input($mpath);
?>
</td></tr><?php 
?>
<tr><td>Tipe</td><td>:</td><td><?php 
$options[0] = "--Pilih Jenis File--";
foreach ($data_tipe->result() as $row2) {
    $options[$row2->tid] = $row2->tname;
}
echo form_dropdown('tipe', $options);
?>
</td></tr><?php 
?>
<tr><td></td><td>&nbsp;</td><td><?php 
echo form_submit('submit', 'Simpan');
echo form_reset('reset', 'Kosongkan');
?>
</td></tr><?php 
echo form_close();
?>
    </table>
示例#28
0
文件: settings.php 项目: gaiius/SunQA
    ?>
                                            <button class="button"><span class="mif-folder fg-blue"></span></button>
                                        </div>
                                        <label for="subject">Bio</label>
                                        <div class="input-control textarea full-size" data-role="input">
                                            <?php 
    echo form_textarea('bio', $user->bio);
    ?>
                                        </div>
                                        <div class="form-actions">
                                            <div class="fc">
                                                <?php 
    echo form_submit('submit', 'Update Account', 'class="button success large-button"');
    ?>
                                                <?php 
    echo form_reset('reset', 'Reset Field', 'class="button warning large-button"');
    ?>
                                            </div>
                                        </div>
                                    <?php 
    echo form_close();
    ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php 
                    <td class="col2">
                        <?php 
$data = array('name' => 'module_controller', 'id' => 'module_controller', 'value' => set_value('module_controller'), 'class' => 'medium');
echo form_input($data);
?>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label>
                            &nbsp;</label>
                    </td>
                    <td>
                        <?php 
$data = array('name' => 'submit', 'id' => 'submit', 'value' => 'Save', 'class' => 'btn btn-primary');
echo form_submit($data);
$data = array('name' => 'reset', 'id' => 'reset', 'value' => 'Clear', 'class' => 'btn btn-primary');
echo form_reset($data);
?>
                    </td>
                </tr>
            </table>
            <?php 
echo form_close();
?>
        </div>
    </div>
</div>
</div>
</div>
<hr>
示例#30
0
	/**
	 * Create reset button
	 * @param array $data Data array
         * @return string HTML form reset
	 */
	public function reset($data=NULL) {
		if (! isset($data['name'])) {
			$data['name'] = 'reset';
		}
		$data['id'] = isset($data['id']) ? $data['id'] : $data['name'];
                if (! $this->render) { 
                        $data['id'] = 'form_'.$data['id'];
                        $data['id'] = str_replace('form_form_', 'form_', $data['id']);
                        $this->data[] = array('reset' => $data);
                }
                $data = $this->_sanitize_param($data);
		$returns = form_reset($data);
                $this->returns[] = $returns;
                return $returns;
	}