本文整理汇总了PHP中FORM::button方法的典型用法代码示例。如果您正苦于以下问题:PHP FORM::button方法的具体用法?PHP FORM::button怎么用?PHP FORM::button使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FORM
的用法示例。
在下文中一共展示了FORM::button方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __
echo FORM::label('description', __('Description'), array('class' => 'col-md-3 control-label', 'for' => 'description'));
?>
<div class="col-md-7">
<?php
echo FORM::textarea('description', __('Description'), array('class' => 'form-control', 'id' => 'description'));
?>
</div>
</div>
<div class="form-group">
<?php
echo FORM::label('seoname', __('Seoname'), array('class' => 'col-md-3 control-label', 'for' => 'seoname'));
?>
<div class="col-md-5">
<?php
echo FORM::input('seoname', '', array('placeholder' => __('Seoname'), 'class' => 'form-control', 'id' => 'seoname'));
?>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-9">
<?php
echo FORM::button('submit', __('Create'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('oc-panel', array('controller' => 'forum', 'action' => 'create'))));
?>
</div>
</div>
</fieldset>
<?php
echo FORM::close();
?>
</div>
</div>
示例2: foreach
echo Request::current()->uri();
?>
" method="post" class="form-horizontal" enctype="multipart/form-data">
<div class="panel panel-default">
<div class="panel-body">
<div class="form-horizontal">
<?php
foreach ($options as $field => $attributes) {
?>
<div class="form-group">
<?php
echo FORM::form_tag($field, $attributes, isset($data[$field]) ? $data[$field] : NULL);
?>
</div>
<?php
}
?>
<div class="form-group">
<div class="col-sm-offset-5 col-sm-7">
<?php
echo FORM::button('submit', __('Update'), array('type' => 'submit', 'class' => 'btn btn-primary'));
?>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
示例3: array
?>
</span>
<?php
echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required', 'data-error' => __('Captcha is not correct')));
?>
<?php
}
?>
</div>
</div>
<?php
}
?>
<div class="form-actions">
<?php
echo FORM::button('submit_btn', __('Publish new'), array('type' => 'submit', 'id' => 'publish-new-btn', 'data-swaltitle' => __('Are you sure?'), 'data-swaltext' => __('It looks like you have been about to publish a new advertisement, if you leave before submitting your changes will be lost.'), 'class' => 'btn btn-primary', 'action' => Route::url('post_new', array('controller' => 'new', 'action' => 'index'))));
?>
<?php
if (!Auth::instance()->get_user()) {
?>
<p class="help-block"><?php
echo __('User account will be created');
?>
</p>
<?php
}
?>
<?php
if (!Core::config('advertisement.leave_alert')) {
?>
<input type="hidden" name="leave_alert" value="0" disabled>
示例4: __
<label>
<input type="checkbox" name="status" <?php
echo $topic->status == Model_Post::STATUS_ACTIVE ? 'checked="checked"' : '';
?>
> <?php
echo __('Activate');
?>
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-9">
<?php
echo FORM::button('submit', __('Update'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('oc-panel', array('controller' => 'topic', 'action' => 'update', 'id' => $topic->id_post))));
?>
<a class="btn btn-danger"
data-toggle="confirmation"
title="<?php
echo __('Are you sure you want to delete?');
?>
"
data-text="<?php
echo __('Are you sure you want to delete?');
?>
"
data-btnOkLabel="<?php
echo __('Yes, definitely!');
?>
示例5: __
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<?php
echo FORM::label('longitude', __('Longitude'), array('class' => 'control-label', 'for' => 'longitude'));
?>
<?php
echo FORM::input('longitude', core::request('longitude'), array('placeholder' => __('Longitude'), 'class' => 'form-control', 'id' => 'longitude'));
?>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<?php
echo FORM::button('submit', __('Create'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'location', 'action' => 'create'))));
?>
</div>
</div>
</fieldset>
<?php
echo FORM::close();
?>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><?php
echo __('Find latitude & longitude');
示例6: array
<?php
echo FORM::input($forms['pay_to_go_on_top']['key'], $forms['pay_to_go_on_top']['value'], array('placeholder' => "", 'class' => 'tips form-control col-sm-3', 'id' => $forms['pay_to_go_on_top']['key'], 'data-content' => __("Pricing"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("How much the user needs to pay to top up an Ad")));
?>
<span class="input-group-addon"><?php
echo core::config('payment.paypal_currency');
?>
</span>
</div>
</div>
</div>
<div class="form-group">
<?php
echo FORM::label($forms['paypal_seller']['key'], "<a target='_blank' href='http://open-classifieds.com/2013/09/02/pay-directly-from-ad/'>" . __('User paypal link') . "</a>", array('class' => 'control-label col-sm-3', 'for' => $forms['paypal_seller']['key']));
?>
<div class="col-sm-4">
<?php
echo FORM::select($forms['paypal_seller']['key'], array(FALSE => "FALSE", TRUE => "TRUE"), $forms['paypal_seller']['value'], array('placeholder' => "TRUE or FALSE", 'class' => 'tips form-controlti', 'id' => $forms['paypal_seller']['key'], 'data-content' => '', 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => ''));
?>
</div>
</div>
<?php
echo FORM::button('submit', 'Update', array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'settings', 'action' => 'payment'))));
?>
</fieldset>
</div><!--end col-md-10-->
示例7: __
</div>
<input id="uploadedfile" type="hidden" name="file_name">
<div id="name-files" class="name-files"></div>
<div id="files" class="files"></div>
<button id="delete-button-file" class="hide btn btn-danger"><?php
echo __('Delete');
?>
</button>
</div>
<div class="clearfix"></div><br>
<div class="pull-right">
<?php
echo FORM::button('submit', __('Save'), array('type' => 'submit', 'class' => 'btn btn-primary btn-lg', 'action' => Route::url('oc-panel', array('controller' => 'product', 'action' => 'create'))));
?>
<div class="">
<div class="checkbox ">
<label>
<input type="checkbox" name="status" value="" checked="checked"> <?php
echo __('Active');
?>
?
</label>
</div>
</div>
</div>
</div>
</div>
</div>
示例8: __
<?php
echo __('Download');
?>
</button>
<?php
echo FORM::close();
?>
<hr>
<?php
echo FORM::open(Route::url('oc-panel', array('controller' => 'theme', 'action' => 'install_theme')), array('enctype' => 'multipart/form-data'));
?>
<div class="form-group">
<?php
echo FORM::label('theme_file', __('To install new theme choose zip file.'), array('class' => 'control-label', 'for' => 'theme_file'));
?>
<input type="file" name="theme_file" id="theme_file" class="form-control" />
</div>
<?php
echo FORM::button('submit', __('Upload'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'theme', 'action' => 'install_theme'))));
?>
<?php
echo FORM::close();
?>
</div>
</div>
</div>
</div>
示例9: array
?>
<br />
<?php
echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required'));
?>
<?php
}
?>
</div>
</div>
<?php
}
?>
<div class="modal-footer">
<?php
echo FORM::button('submit', _e('Contact Us'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('default', array('controller' => 'contact', 'action' => 'user_contact', 'id' => $ad->id_ad))));
?>
</div>
</fieldset>
<?php
echo FORM::close();
?>
</div>
</div>
</div>
</div>
</div>
<?php
if (core::config('advertisement.phone') == 1 and strlen($ad->phone) > 1) {
?>
示例10: _e
?>
]'
data-slider-orientation="horizontal" data-slider-selection="before" data-slider-tooltip="show" name='price_subscribe' >
</div>
</div>
<?php
} else {
?>
<input type="hidden" value='0,0'>
<?php
}
?>
<div class="text-center">
<?php
echo FORM::button('submit', _e('Subscribe'), array('type' => 'submit', 'class' => 'btn btn-base-dark', 'action' => Route::url('default', array('controller' => 'subscribe', 'action' => 'index', 'id' => $widget->user_id))));
?>
</div>
<?php
if ($widget->subscriber) {
?>
<p class="text-right">
<a href="<?php
echo Route::url('default', array('controller' => 'subscribe', 'action' => 'unsubscribe', 'id' => $widget->user_id));
?>
"><?php
echo _e('Unsubscribe');
?>
</a>
</p>
示例11: __
echo core::get('price-max');
?>
" placeholder="<?php
echo __('to');
?>
">
</div>
</div>
<?php
}
?>
<div class="form-group col-xs-12 col-sm-4 text-center">
<label> </label>
<div>
<?php
echo FORM::button('submit', __('Search'), array('type' => 'submit', 'class' => 'btn btn-base-dark', 'action' => Route::url('search')));
?>
</div>
</div>
</fieldset>
<?php
echo FORM::close();
?>
</div>
</div>
</div>
<?php
echo View::fragment('sidebar_front', 'sidebar');
?>
示例12: __
echo __('Delete');
?>
</button>
</div>
<div class="clearfix"></div><br>
<?php
}
?>
</div>
<div class="clearfix"></div>
<div class="pull-right">
<?php
echo FORM::button('submit', __('Save'), array('type' => 'submit', 'class' => 'btn btn-lg btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'product', 'action' => 'update', 'id' => $product->id_product))));
?>
<div class="checkbox">
<label>
<input type="checkbox" name="notify"> <?php
echo __('Notify all buyers on this update');
?>
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" name="status" <?php
echo $product->status == Model_Product::STATUS_ACTIVE ? 'checked="checked"' : '';
?>
> <?php
echo __('Active');
示例13: array
?>
</dt>
<dd><?php
echo FORM::input('captcha', "", array('class' => 'form-control', 'placeholder' => __('Captcha'), 'id' => 'captcha', 'required'));
?>
</dd>
<?php
}
?>
</dl>
<?php
}
?>
<dl class="modal-footer text-center">
<?php
echo FORM::button('submit', _e('Send Message'), array('type' => 'submit', 'class' => 'btn btn-base-dark', 'action' => Route::url('default', array('controller' => 'contact', 'action' => 'user_contact', 'id' => $ad->id_ad))));
?>
</dl>
</fieldset>
<?php
echo FORM::close();
?>
</div>
</div>
</div>
</div>
<?php
}
?>
<?php
}
示例14: array
echo captcha::image_tag('new-forum');
?>
</span>
<span class="cap_ans"><?php
echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required'));
?>
</span>
</div>
<?php
}
?>
</dl>
<?php
}
?>
<dl>
<dt><label> </label></dt>
<dd class="text-center"><?php
echo FORM::button('submit', _e('Publish new topic'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('forum-new')));
?>
</dd>
</dl>
</fieldset>
<?php
echo FORM::close();
?>
</div>
</div>
</div>
</div>
示例15: array
<dd><?php
echo FORM::input('captcha', "", array('class' => 'form-control', 'placeholder' => __('Captcha'), 'id' => 'captcha', 'required'));
?>
</dd>
<?php
}
?>
</dl>
<?php
}
?>
</fieldset>
</div>
<div class="modal-footer text-center">
<?php
echo FORM::button('submit', _e('Send Message'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('default', array('controller' => 'contact', 'action' => 'userprofile_contact', 'id' => $user->id_user))));
?>
</div>
<?php
echo FORM::close();
?>
</div>
</div>
</div>
</p>
</article>
</div>
<?php
if ($profile_ads !== NULL) {