/** * if method is in array. get called method, arguments and set input type from method. * * @param string $method * @param array $arguments * @return mixed */ public static function __callStatic($method, $arguments) { $html5_input_types = array('color', 'date', 'datetime', 'datetime-local', 'email', 'month', 'number', 'range', 'search', 'tel', 'time', 'url', 'week'); if (!method_exists(self::forge(), $method) && in_array($method, $html5_input_types)) { unset($html5_input_types); // compare arguments to input(arguments) $field = ''; if (isset($arguments[0])) { $field = $arguments[0]; } $value = ''; if (isset($arguments[1])) { $value = $arguments[1]; } $attributes = ''; if (isset($arguments[2])) { $attributes = $arguments[2]; } // add input attribute type. $attributes['type'] = $method; // clear $method = ''; $arguments = ''; return parent::input($field, $value, $attributes); } else { \Error::error_handler(500, 'Call to undefined method', __FILE__, __LINE__); } }
public static function submit($field = 'submit', $value = 'Submit', array $attributes = array()) { if (isset($attributes['class'])) { $attributes['class'] = 'btn ' . $attributes['class']; } else { $attributes['class'] = 'btn'; } return parent::submit($field, $value, $attributes); }
?> </label> <label class="checkbox-inline"> <?php echo Form::checkbox('status', 0, isset($filters['status']) && $filters['status'] != '' && $filters['status'] == 0 ? true : false) . '承認待ち'; ?> </label> </div> </div> <div class="row"> <div class="col-md-2"> <label class="control-label">取引先担当部門</label> </div> <div class="col-md-4"> <?php echo \Fuel\Core\Form::select('department_id', isset($filters['department_id']) ? $filters['department_id'] : '', Constants::get_search_department(), array('class' => 'form-control')); ?> </div> </div> <div class="row text-center"> <button type="submit" class="btn btn-primary btn-sm"><i class="glyphicon glyphicon-search icon-white"></i> フィルタ</button> <button type="button" class="btn btn-info btn-sm" name="filter-clear-btn"><i class="glyphicon glyphicon-refresh icon-white"></i> フィルタ解除</button> </div> </div> </div> <nav> <?php echo html_entity_decode($pagination); ?> </nav>
<div class="controls"> <span class="control-label"><?php echo $val->error('group')->get_message('You must select a group'); ?> </span> </div> <?php } ?> </div> <?php if (isset($user) && $user->id > 0) { ?> <?php echo \Fuel\Core\Form::hidden('password', $user->password); ?> <?php } else { ?> <div class="control-group <?php echo !$val->error('password') ?: 'has-error'; ?> "> <label class="control-label" for="email">Password:</label> <div class="controls"> <?php echo Form::input('password', Input::post('password', isset($user) ? $user->password : ''), array('class' => 'form-control', 'placeholder' => '*****@*****.**', 'autofocus')); ?> </div>
</div> </td> </tr> <tr> <th class="text-right">備考</th> <td> <?php echo Fuel\Core\Form::textarea('notes', isset($partner->notes) ? $partner->notes : '', array('rows' => 5, 'cols' => 80, 'class' => 'form-control')); ?> <label class="error" for="form_notes"></label> <div class="edit-before <?php echo isset($is_view['notes']) ? $is_view['notes'] : ''; ?> "> <?php echo \Fuel\Core\Form::textarea('notes_edit', isset($edit_partner) ? $edit_partner->notes : '', array('rows' => 5, 'cols' => 80, 'class' => 'form-control', 'disabled')); ?> </div> </td> </tr> </table> <div class="text-center"> <button type="submit" class="btn btn-primary btn-sm"> <i class="glyphicon glyphicon-pencil icon-white"></i> 保存 </button> </div> <?php
?> " size="50" placeHolder="グループ名"> </div> </div> <div class="row text-center"> <button type="submit" class="btn btn-primary btn-sm"><i class="glyphicon glyphicon-search icon-white"></i> フィルタ</button> <button type="button" class="btn btn-info btn-sm" name="filter-clear-btn"><i class="glyphicon glyphicon-refresh icon-white"></i> フィルタ解除</button> </div> </div> </div> <?php echo \Fuel\Core\Form::close(); ?> <form action="" id="action_group" value="" method="post"> <?php echo \Fuel\Core\Form::input('group_id', '', array('type' => 'hidden')); ?> <?php echo html_entity_decode($pagination); ?> <?php if (empty($groups)) { ?> <div class="alert alert-danger alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> データがありません </div> <?php } else { ?> <table id="grouplist" class="table table-bordered table-striped">
<fieldset> <div class="control-group"> <div class="controls"> <?php echo \Fuel\Core\Form::textarea('comment', '', array('class' => 'form-control', 'rows' => 2, 'cols' => 50, 'required' => '')); ?> <?php echo \Fuel\Core\Form::hidden('project_task_id', $task->id); ?> <?php echo \Fuel\Core\Form::hidden('user_id', $user_id); ?> </div> </div> <div class="control-group"> <?php echo \Fuel\Core\Form::submit('submit', 'Submit Comment', array('class' => 'btn btn-success')); ?> </div> </fieldset> <?php echo \Fuel\Core\Form::close(); ?> </td> </tr> </tbody> </table> </div>
<?php echo Form::label('Full Name', 'description', array('class' => 'control-label')); ?> <?php echo Form::input('description', Input::post('description', isset($user) ? $user->description : ''), array('class' => 'col-md-4 form-control', 'placeholder' => 'Description')); ?> </div> <div class="form-group"> <?php echo Form::label('System Login Rights', 'group', array('class' => 'control-label')); ?> <?php echo \Fuel\Core\Form::select('group', Input::post('group', isset($user) ? $user->group : 0), $groups, array('class' => 'form-control')); ?> </div> <div class="form-group"> <?php echo Form::label('Username', 'username', array('class' => 'control-label')); ?> <?php echo Form::input('username', Input::post('username', isset($user) ? $user->username : ''), array('class' => 'col-md-4 form-control', 'placeholder' => 'Username')); ?> </div> <div class="form-group"> <?php echo Form::label('Password', 'password', array('class' => 'control-label'));
echo Form::label('Barcode format', 'barcode_format'); ?> <div class="input"> <?php echo \Fuel\Core\Form::select('barcode_format', Input::post('barcode_format', isset($pass) ? $pass->barcode_format : 0), array('QR', 'PDF417', 'Aztec'), array('class' => 'span2')); ?> </div> </div> <div class="clearfix"> <?php echo Form::label('Relevant date', 'relevant_date'); ?> <div class="input"> <?php echo \Fuel\Core\Form::input('relevant_date', Input::post('relevant_date', isset($pass) && $pass->relevant_date > 0 ? \Fuel\Core\Date::forge($pass->relevant_date)->format('mysql') : ''), array('class' => 'span2', 'placeholder' => '2012-11-01 10:10:10')); ?> </div> </div> <div class="actions"> <?php echo Form::submit('submit', 'Save', array('class' => 'btn btn-primary')); ?> </div> </fieldset> <?php echo Form::close();
<div class="input"> <?php echo \Fuel\Core\Form::input('foreground_color', \Fuel\Core\Input::post('foreground_color', $pass->foreground_color)); ?> <script type="text/javascript"> $("#form_foreground_color").modcoder_excolor(); </script> </div> </div> <div class="clearfix"> <?php echo Form::label('Label Color', 'label_color'); ?> <div class="input"> <?php echo \Fuel\Core\Form::input('label_color', \Fuel\Core\Input::post('label_color', $pass->label_color)); ?> <script type="text/javascript"> $("#form_label_color").modcoder_excolor(); </script> </div> </div> <div class="actions"> <?php echo Form::submit('submit', 'Save', array('class' => 'btn btn-primary')); ?> </div> </fieldset> <?php echo Form::close(); ?> <?php
</span> <div class="edit-before <?php echo isset($is_view['birthday']) ? $is_view['birthday'] : ''; ?> "> <?php echo \Fuel\Core\Form::select('year', \Fuel\Core\Input::post('year', isset($person_info) ? substr($person_info['birthday'], 0, 4) : ''), Constants::list_year_jp(), array('class' => 'form-control', 'disabled')); ?> <span class="text-info">年</span> <?php echo \Fuel\Core\Form::select('month', \Fuel\Core\Input::post('month', isset($person_info) ? substr($person_info['birthday'], 5, 2) : ''), Constants::list_month(), array('class' => 'form-control', 'disabled')); ?> <span class="text-info">月</span> <?php echo \Fuel\Core\Form::select('day', \Fuel\Core\Input::post('day', isset($person_info) ? substr($person_info['birthday'], 8, 2) : ''), Constants::list_day(), array('class' => 'form-control', 'disabled')); ?> <span class="text-info">日</span> </div> </td> </tr> <tr> <th class="text-right">年齢</th> <td> <div class="input-group"> <?php echo Form::input('age', Input::post('age', isset($post) ? $post->age : $edit_person['age']), array('class' => 'form-control', 'size' => 4)); ?> <div class="input-group-addon">歳</div> </div>
?> <div class="controls"> <?php echo Form::input('rate_per_hour', Input::post('rate_per_hour', isset($project) ? $project->rate_per_hour : ''), array('class' => 'col-md-4 form-control', 'placeholder' => 'Rate per hour')); ?> </div> </div> <div class="control-group"> <?php echo Form::label('Project status', 'project_status_id', array('class' => 'control-label input-sm')); ?> <div class="controls"> <?php echo \Fuel\Core\Form::select('project_status_id', \Fuel\Core\Input::post('project_status_id', isset($project) ? $project->project_status_id : 0), $project_statuses, array('class' => 'form-control')); ?> </div> </div> <div class="control-group"> <?php if (isset($project) && $project->id > 0) { echo Fuel\Core\Html::anchor('admin/projects', ' « All Projects', array('class' => 'btn btn-default')) . ' '; } echo Fuel\Core\Html::anchor('admin/projects' . (isset($project) && $project->id > 0 ? '/view/' . $project->id : ''), '« ' . (isset($project) ? ' Back' : 'All Projects'), array('class' => 'btn btn-default')) . ' '; echo Form::submit('submit', 'Save', array('class' => 'btn btn-success')); ?> </div> </fieldset>
public function build_for_hidden() { $fields_output = ''; foreach ($this->field() as $f) { $fields_output .= \Fuel\Core\Form::hidden($f->name, $f->value) . PHP_EOL; } return $fields_output; }
if (file_exists($manager->file_path('certificate.p12'))) { ?> <p>File uploaded.</p> <?php } ?> <?php echo Form::open(array('enctype' => 'multipart/form-data')); ?> <fieldset> <div class="clearfix"> <div class="input"> <?php echo \Fuel\Core\Form::file('certificate'); ?> </div> </div> <div class="actions"> <?php echo Form::submit('submit', 'Save', array('class' => 'btn btn-primary')); ?> </div> </fieldset> <?php echo Form::close(); ?> <?php }
<?php //get list ss $model_ss = new \Model_Mss(); $listss = $model_ss->get_list_all_ss(); $addr_2 = array('' => '全て') + array_column($listss, 'addr2', 'addr2'); echo \Fuel\Core\Form::select('address_2', \Fuel\Core\Input::get('address_2'), $addr_2, array('class' => 'form-control', 'style' => 'width:132px')); ?> </div> </div> <div class="row"> <div class="col-md-2"> <label class="control-label">取引先担当部門</label> </div> <div class="col-md-4"> <?php echo \Fuel\Core\Form::select('department_id', Fuel\Core\Input::get('department_id'), Constants::get_search_department(), array('class' => 'form-control')); ?> </div> </div> <div class="row"> <div class="col-md-2"> <label class="control-label">取引先(受注先)</label> </div> <div class="col-md-10"> <select class="form-control" id="group_search" name="group_search"> <option value="">全て</option> <?php foreach ($search_group as $group_id => $name) { ?> <option value="<?php echo $group_id;
?> <?php } ?> <td> <?php if (empty($pass->file_name)) { ?> <?php echo \Fuel\Core\Form::open(array('action' => 'admin/pass/generate/' . $pass->id, 'method' => 'POST')); ?> <?php echo \Fuel\Core\Form::hidden('cert_password_' . $pass->id, ''); ?> <?php echo \Fuel\Core\Form::submit('submit', 'Generate', array('class' => 'btn', 'onClick' => 'return generate_pkpass(' . $pass->id . ');')); ?> <?php } else { ?> <?php echo Html::anchor('admin/pass/update/' . $pass->id, 'Update', array('onclick' => "return confirm('Are you sure?')")); ?> | <?php Html::anchor('admin/pass/remove/' . $pass->id, 'Remove', array('onclick' => "return confirm('Are you sure?')")); ?> <?php } ?> </td> <td>
?> </td> </tr> <tr> <th class="text-right">メールアドレス</th> <td> <?php echo isset($contact) ? $contact->mail : ''; ?> </td> </tr> <tr> <th class="text-right">その他備考</th> <td> <?php echo \Fuel\Core\Form::textarea('content_detail', isset($contact) ? $contact->content : '', array('class' => 'imp_txt', 'cols' => '100', 'disabled', 'style' => 'border:0;background-color:#fff')); ?> </td> </tr> </table> <div class="text-center"> <a type="button" href="<?php echo \Fuel\Core\Uri::base(); ?> support/contacts?<?php echo \Fuel\Core\Session::get('url_filter_contacts'); ?> " class="btn btn-warning btn-sm" name="back-btn"> <i class="glyphicon glyphicon-step-backward icon-white"></i> 戻る
<label for="username">User Name(*): </label> <input type="text" name="username" id="username" maxlength="50"> <br><br> <label for="password">Password(*):</label> <input type="password" name="password" id="password" maxlength="50"> <br> <input type="submit" name="submit" value="Submit"> </fieldset> </form> --> <?php // create Form using Fuel/Form echo Form::open(array('action' => 'login/confirm', 'method' => 'post')); // Create input text form echo Form::label('User Name(*)', 'username'); echo " "; echo Form::input('username', '', array('maxlength' => 50, 'size' => 20)); echo "<br><br>"; // Create input password echo Form::label('Password(*):', 'password'); echo " "; echo Form::password('password', '', array('maxlength' => 50, 'size' => 20)); echo "<br><br>"; // Create submit button echo Form::submit('submit', 'LOGIN'); // Close Form echo Form::close(); ?> </body> </html>
<?php echo Form::input('short_code', Input::post('short_code', isset($inventory) ? $inventory->short_code : ''), array('class' => 'col-md-4 form-control', 'placeholder' => 'Short code')); ?> </div> <div class="form-group"> <?php echo Form::label('Units', 'inventory_units_id', array('class' => 'control-label')); ?> <?php // echo Form::input('inventory_units_id', Input::post('inventory_units_id', isset($inventory) ? $inventory->inventory_units_id : ''), array('class' => 'col-md-4 form-control', 'placeholder'=>'Inventory units id')); ?> <?php echo \Fuel\Core\Form::select('inventory_units_id', Input::post('inventory_units_id', isset($inventory) ? $inventory->inventory_units_id : 0), \Fuel\Core\Arr::assoc_to_keyval($inventory_units, 'id', 'name'), array('class' => 'form-control', 'required')); ?> </div> <div class="form-group"> <?php echo Form::label('Warning level', 'warning_level', array('class' => 'control-label')); ?> <?php echo Form::input('warning_level', Input::post('warning_level', isset($inventory) ? $inventory->warning_level : 0), array('class' => 'col-md-4 form-control', 'placeholder' => 'Warning level')); ?> </div> <div class="form-group"> <label class='control-label'> </label> <?php
?> </option> <?php } ?> </select> </div> </div> <div class="control-group"> <?php echo Form::label('Additional Instructions', 'comment', array('class' => 'control-label input-sm')); ?> <div class="controls"> <?php echo \Fuel\Core\Form::textarea('comment', Input::post('comment', isset($projecttask) ? $projecttask->comment : ''), array('class' => 'form-control', 'rows' => 4)); ?> </div> </div> <?php if (isset($back_url)) { ?> <div class="control-group control-group-sm"> <?php echo Html::anchor($back_url, '« Back', array('class' => 'btn btn-default')); ?> <?php echo Form::submit('submit', 'Save', array('class' => 'btn btn-success')); ?>
?> <?php echo Form::error('mail_yourname', $error); ?> </div> <div class="text"> <?php echo \Fuel\Core\Form::input('mail_address', $contact_data['mail_address'], array('placeholder' => __('contact.send_mail_your_email'))); ?> <?php echo Form::error('mail_address', $error); ?> </div> <div class="text"> <?php echo \Fuel\Core\Form::textarea('mail_message', $contact_data['mail_message'], array('placeholder' => __('contact.send_mail_message'))); ?> <?php echo Form::error('mail_message', $error); ?> </div> <div class="text"> <input type="submit" name="main_btn_submit" value="<?php echo __('contact.send_mail_btn_send'); ?> "/> </div> <?php echo form::close(); ?> </div>
<?php echo Form::select('sale_type', Input::get('sale_type', isset($get) ? $get->sale_type : ''), Constants::$sale_type, array('class' => 'form-control')); ?> </div> <div class="col-md-2"> <label class="control-label">状態</label> </div> <div class="col-md-4"> <label class="checkbox-inline"> <?php if (\Fuel\Core\Input::get('status') == '0') { $checked = true; } else { $checked = false; } echo \Fuel\Core\Form::checkbox('status', 0, $checked); ?> 承認待ち</label> </div> </div> <div class="row text-center"> <a href="#" id="open-detail-filter">[+詳細]</a> </div> <div id="detail-filter"> <div class="row"> <div class="col-md-2"> <label class="control-label">面接結果</label> </div> <div class="col-md-4">
echo $user->id; ?> " <?php echo in_array($user->id, $project_member_id_list) ? ' checked ' : ''; ?> > <?php echo $user->username . ' [' . $user->email . ']'; ?> </label> </div> <?php } ?> <?php echo \Fuel\Core\Form::hidden('id', $project->id); ?> <br> <div class="form-group"> <label class='control-label'> </label> <?php echo Html::anchor('admin/projects/view/' . $project->id, 'Back', array('class' => 'btn btn-default')); ?> <?php echo Form::submit('submit', 'Save', array('class' => 'btn btn-primary')); ?> </div> </fieldset>