本文整理汇总了PHP中bs_form_input函数的典型用法代码示例。如果您正苦于以下问题:PHP bs_form_input函数的具体用法?PHP bs_form_input怎么用?PHP bs_form_input使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bs_form_input函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: test_form_input
public function test_form_input()
{
$bs_class = 'form-control';
$this->assertEquals('<input type="text" name="cis" value="" class="' . $bs_class . '" />', bs_form_input('cis'));
// Detect class attribute in $extra param
$this->assertEquals('<input type="text" name="cis" value="" class="' . $bs_class . ' extra" />', bs_form_input('cis', '', 'class="extra"'));
$this->assertEquals('<input type="text" name="cis" value="" class=\'' . $bs_class . ' extra\' />', bs_form_input('cis', '', "class='extra'"));
$this->assertEquals('<input type="text" name="cis" value="" CLASS="' . $bs_class . ' extra" />', bs_form_input('cis', '', 'CLASS="extra"'));
$this->assertEquals('<input type="text" name="cis" value="" onclick="return false;" class="' . $bs_class . ' extra" />', bs_form_input('cis', '', 'onclick="return false;" class="extra"'));
$this->assertEquals('<input type="text" name="cis" value="" class=\'' . $bs_class . ' extra\' onclick=\'return false;\' />', bs_form_input('cis', '', "class='extra' onclick='return false;'"));
$this->assertEquals('<input type="text" name="cis" value="" class="' . $bs_class . '" onclick="return false;" />', bs_form_input('cis', '', 'onclick="return false;"'));
// Has class attribute in $data param
$this->assertEquals('<input type="text" name="cis" value="" class="' . $bs_class . ' data" />', bs_form_input(array('name' => 'cis', 'class' => 'data')));
$this->assertEquals('<input type="text" name="cis" value="" class="' . $bs_class . ' data extra" />', bs_form_input(array('name' => 'cis', 'class' => 'data'), '', 'class="extra"'));
$this->assertEquals('<input type="text" name="cis" value="" class=\'' . $bs_class . ' data extra\' />', bs_form_input(array('name' => 'cis', 'class' => 'data'), '', "class='extra'"));
}
示例2: form_open
</h4>
</div>
</div>
<?php
echo form_open('auth/search/' . $user->id, array('id' => 'search'));
?>
<div class="row">
<div class="col-md-8">
<div class="row">
<div class="col-md-2 search_label"><?php
echo form_label(lang('index_ikatan_dinas_title_th'), 'ikatan_dinas_title_search');
?>
</div>
<div class="col-md-10"><?php
echo bs_form_input(array('id' => 'title', 'name' => 'title'));
?>
</div>
</div>
</div>
<div class="col-md-4">
<div class="row">
<button type="submit" class="btn btn-info"><i class="icon-search"></i> <?php
echo lang('search_button');
?>
</button>
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#addikatan_dinasModal"><i class="icon-plus"></i> <?php
echo lang('add_button');
?>
</button>
</div>
示例3: form_open
?>
</div>
<?php
echo form_open(uri_string());
?>
<div class="col-md-12">
<h4><?php
echo lang('employee_information_subheading');
?>
</h4>
<div class="form-group">
<?php
echo lang('register_nik_label', 'nik');
?>
<?php
echo bs_form_input($ftitle);
?>
</div>
<?php
echo form_hidden('id', $org_class->id);
?>
<?php
echo form_hidden($csrf);
?>
</div>
<div class="form-actions-register">
<div class="pull-right">
<button type="submit" class="btn btn-success"><i class="icon-ok"></i> <?php
echo lang('save_button');
示例4: bs_form_input
?>
</div>
<div class="col-md-9"><?php
echo bs_form_input($fname_search);
?>
</div>
</div>
</div>
<div class="col-md-5">
<div class="row">
<div class="col-md-3 search_label"><?php
echo form_label(lang('index_email_th'), 'email');
?>
</div>
<div class="col-md-9"><?php
echo bs_form_input($email_search);
?>
</div>
</div>
</div>
<div class="col-md-2">
<div class="row">
<div class="col-md-12">
<button type="submit" class="btn btn-info"><i class="icon-search"></i> <?php
echo lang('search_button');
?>
</button>
</div>
</div>
</div>
</div>
示例5: bs_form_input
?>
<?php
echo bs_form_input($phone_n);
?>
</div>
</div>
</div>
</div>
<div class="form-group">
<?php
echo lang('edit_user_previous_email_label', 'previous_email');
?>
<?php
echo bs_form_input($previous_email_n);
?>
</div>
</div>
<?php
if (!empty($note)) {
?>
<div class="form-group">
<div class="col-md-2">
<label class="form-label text-right">Note (Administrator): </label>
</div>
<div class="col-md-4">
<textarea name="note_lv1" class="custom-txtarea-form" placeholder="Note isi disini" disabled="disabled"><?php
echo $note;
?>
示例6: form_open
</span></h4>
</div>
</div>
<?php
echo form_open(site_url('education_center/keywords'), array('id' => 'search_edu_center'));
?>
<div class="row">
<div class="col-md-5">
<div class="row">
<div class="col-md-3 search_label"><?php
echo form_label(lang('index_ftitle_th'), 'Title');
?>
</div>
<div class="col-md-9"><?php
echo bs_form_input($ftitle_search);
?>
</div>
</div>
</div>
<div class="col-md-4">
<div class="row">
<div class="col-md-12">
<button type="submit" class="btn btn-info"><i class="icon-search"></i> <?php
echo lang('search_button');
?>
</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addModal"><i class="icon-plus"></i> <?php
echo lang('add_button');
?>
</button>
示例7: lang
<?php
echo lang('edit_user_password_label', 'password');
?>
<br />
<?php
echo bs_form_input($password);
?>
</p>
<p>
<?php
echo lang('edit_user_password_confirm_label', 'password_confirm');
?>
<br />
<?php
echo bs_form_input($password_confirm);
?>
</p>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<?php
if ($this->ion_auth->is_admin()) {
?>
<h3><?php
echo lang('edit_user_groups_heading');
?>
</h3>
<?php
foreach ($groups as $group) {
示例8: form_open
</span></h4>
</div>
</div>
<?php
echo form_open(site_url('auth/keywords'));
?>
<div class="row">
<div class="col-md-5">
<div class="row">
<div class="col-md-3 search_label"><?php
echo form_label(lang('index_fname_th'), 'first_name');
?>
</div>
<div class="col-md-9"><?php
echo bs_form_input($fname_search);
?>
</div>
</div>
</div>
<div class="col-md-2">
<div class="row">
<div class="col-md-12">
<button type="submit" class="btn btn-info"><i class="icon-search"></i> <?php
echo lang('search_button');
?>
</button>
</div>
</div>
</div>
</div>
示例9: bs_form_input
<div class="input-with-icon right">
<i class=""></i>
<?php
echo bs_form_input($group_name);
?>
</div>
</div>
<div class="form-group">
<?php
echo lang('edit_group_desc_label', 'description');
?>
<div class="input-with-icon right">
<i class=""></i>
<?php
echo bs_form_input($group_description);
?>
</div>
</div>
<p>
<label>Tipe Administrator :</label><br />
<select class="select2" name="admin_type_id" style="width:50%">
<?php
if ($admin_type->num_rows() > 0) {
foreach ($admin_type->result() as $type) {
$selected = $admin_type_id != 0 && $admin_type_id == $type->id ? "selected='selected'" : '';
?>
<option value="<?php
echo $type->id;
?>
示例10: form_open
?>
id="infoMessage"><?php
echo $message;
?>
</div>
<?php
echo form_open("auth/forgot_password");
?>
<p>
<label for="email"><?php
echo sprintf(lang('forgot_password_email_label'), $identity_label);
?>
</label> <br />
<?php
echo bs_form_input($email);
?>
</p>
<p><?php
echo bs_form_submit('submit', lang('forgot_password_submit_btn'));
?>
</p>
<?php
echo form_close();
?>
</div>
</div>
示例11: lang
<?php
echo lang('create_group_name_label', 'group_name');
?>
<br />
<?php
echo bs_form_input($group_name);
?>
</p><br />
<p>
<?php
echo lang('create_group_desc_label', 'description');
?>
<br />
<?php
echo bs_form_input($description);
?>
</p><br />
<p>
<label>Tipe Administrator :</label><br />
<select class="select2" name="admin_type_id" style="width:50%">
<?php
if ($admin_type->num_rows() > 0) {
foreach ($admin_type->result() as $type) {
?>
<option value="<?php
echo $type->id;
?>
"><?php
echo $type->title;
示例12: lang
</div>
</div>
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<?php
echo lang('login_password_label', 'password');
?>
<span class="help"></span>
<div class="controls">
<div class="input-with-icon right">
<i class=""></i>
<?php
echo bs_form_input($password);
?>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-10">
<?php
echo bs_form_submit('submit', lang('login_submit_btn'));
?>
</div>
</div>
<?php
示例13: unset
// Only keep field data that will be used for CI form helper
unset($field_data['display']);
unset($field_data['rules']);
?>
<div class="form-group">
<label class="col-md-3 control-label" for="<?php
echo $field_data['name'];
?>
">
<?php
echo $label;
?>
</label>
<div class="col-md-9">
<?php
echo bs_form_input($field_data);
?>
</div>
</div>
<?php
}
?>
<div class="form-group">
<div class="col-md-offset-3 col-md-9">
<?php
echo bs_form_submit('submit', 'Submit');
?>
</div>
</div>