本文整理汇总了PHP中FORM::label方法的典型用法代码示例。如果您正苦于以下问题:PHP FORM::label方法的具体用法?PHP FORM::label怎么用?PHP FORM::label使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FORM
的用法示例。
在下文中一共展示了FORM::label方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __
</div>
<div class="form-group">
<?php
echo FORM::label('captcha', __('Captcha'), array('class' => 'control-label col-sm-2', 'for' => 'captcha'));
?>
<div class="col-sm-4">
<?php
echo FORM::select('captcha', array(FALSE => "FALSE", TRUE => "TRUE"), core::config('advertisement.captcha'), array('placeholder' => "http://foo.com/", 'class' => 'tips form-control', 'id' => 'captcha', 'data-content' => __("Enables Captcha"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Captcha appears in the form.")));
?>
</div>
</div>
<div class="form-group">
<?php
echo FORM::label('address', __('Address'), array('class' => 'control-label col-sm-2', 'for' => 'address'));
?>
<div class="col-sm-4">
<?php
echo FORM::select('address', array(FALSE => "FALSE", TRUE => "TRUE"), core::config('advertisement.address'), array('placeholder' => "", 'class' => 'tips form-control', 'id' => 'address', 'data-content' => __("Address field"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Displays the field Address in the Ad form.")));
?>
</div>
</div>
<div class="form-actions">
<?php
echo FORM::button('submit', 'Update', array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'settings', 'action' => 'form')) . '?define=cf'));
?>
</div>
</fieldset>
示例2: __
</div>
</div>
<div class="form-group">
<?php
echo FORM::label($forms['smtp_user']['key'], __('Smtp user'), array('class' => 'control-label col-sm-4', 'for' => $forms['smtp_user']['key']));
?>
<div class="col-sm-8">
<?php
echo FORM::input($forms['smtp_user']['key'], $forms['smtp_user']['value'], array('placeholder' => "", 'class' => 'tips form-control', 'id' => $forms['smtp_user']['key'], 'data-content' => '', 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => ''));
?>
</div>
</div>
<div class="form-group">
<?php
echo FORM::label($forms['smtp_pass']['key'], __('Smtp password'), array('class' => 'control-label col-sm-4', 'for' => $forms['smtp_pass']['key']));
?>
<div class="col-sm-8">
<?php
echo FORM::input($forms['smtp_pass']['key'], $forms['smtp_pass']['value'], array('placeholder' => "", 'type' => "password", 'class' => 'tips form-control', 'id' => $forms['smtp_pass']['key'], 'data-content' => '', 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => ''));
?>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-8 col-sm-offset-4">
示例3: __
echo FORM::label('message', __('Message'), array('class' => 'control-label', 'for' => 'message'));
?>
<?php
echo FORM::textarea('message', "", array('class' => 'form-control', 'placeholder' => __('Message'), 'name' => 'message', 'id' => 'message', 'rows' => 2, 'required'));
?>
</div>
</div>
<!-- file to be sent-->
<?php
if (core::config('advertisement.upload_file')) {
?>
<div class="form-group">
<div class="col-xs-10">
<?php
echo FORM::label('file', __('File'), array('class' => 'control-label', 'for' => 'file'));
?>
<?php
echo FORM::file('file', array('placeholder' => __('File'), 'class' => 'input-xlarge', 'id' => 'file'));
?>
</div>
</div>
<?php
}
?>
<?php
if (core::config('advertisement.captcha') != FALSE) {
?>
<div class="form-group">
<div class="col-xs-10">
示例4: array_walk
$cat_order = $widget->cat_order_items;
if (is_array($cat_order))
array_walk($cat_order , 'lili_search', $widget->cat_items);?>
</select>
</div>
</div>
<?endif?>
<!-- end categories/ -->
<!-- locations -->
<?if($widget->loc_items !== NULL):?>
<?if(count($widget->loc_items) > 1 AND core::config('advertisement.location') != FALSE):?>
<div class="form-group">
<div class="col-xs-12">
<?php
echo FORM::label('location_widget_search', __('Locations'), array('class' => '', 'for' => 'location_widget_search'));
?>
<select <?php
echo core::config('general.search_multi_catloc') ? 'multiple' : NULL;
?>
name="location<?php
echo core::config('general.search_multi_catloc') ? '[]' : NULL;
?>
" id="location_widget_search" class="form-control" data-placeholder="<?php
echo __('Locations');
?>
">
<option></option>
<?function lolo_search($item, $key,$locs){?>
<?if (core::config('general.search_multi_catloc')):?>
<option value="<?php
示例5: __
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<?php
echo FORM::label('latitude', __('Latitude'), array('class' => 'control-label', 'for' => 'latitude'));
?>
<?php
echo FORM::input('latitude', core::request('latitude'), array('placeholder' => __('Longitude'), 'class' => 'form-control', 'id' => 'latitude'));
?>
</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
示例6: __
<div class="form-group">
<?php
echo FORM::label($forms['watermark_position']['id'], __('Watermark position'), array('class' => 'control-label', 'for' => $forms['watermark_position']['id']));
?>
<?php
echo FORM::select($forms['watermark_position']['key'], array(0 => "Center", 1 => "Bottom", 2 => "Top"), $forms['watermark_position']['value'], array('placeholder' => $forms['watermark_position']['value'], 'class' => 'tips form-control', 'id' => $forms['watermark_position']['id']));
?>
</div>
<hr>
<div class="form-group">
<?php
echo FORM::label($forms['disallow_nudes']['id'], __('Disallow nude pictures'), array('class' => 'control-label', 'for' => $forms['disallow_nudes']['id']));
?>
<div class="radio radio-primary">
<?php
echo Form::radio($forms['disallow_nudes']['key'], 1, (bool) $forms['disallow_nudes']['value'], array('id' => $forms['disallow_nudes']['key'] . '1'));
?>
<?php
echo Form::label($forms['disallow_nudes']['key'] . '1', __('Enabled'));
?>
<?php
echo Form::radio($forms['disallow_nudes']['key'], 0, !(bool) $forms['disallow_nudes']['value'], array('id' => $forms['disallow_nudes']['key'] . '0'));
?>
<?php
echo Form::label($forms['disallow_nudes']['key'] . '0', __('Disabled'));
?>
</div>
示例7: __
?>
</div>
</div>
</div>
<div class="form-group">
<?php
echo FORM::label($forms['adblock']['id'], __('Adblock Detection'), array('class' => 'control-label col-sm-4', 'for' => $forms['adblock']['id']));
?>
<div class="col-sm-8">
<div class="onoffswitch">
<?php
echo Form::checkbox($forms['adblock']['key'], 1, (bool) $forms['adblock']['value'], array('placeholder' => __("TRUE or FALSE"), 'class' => 'onoffswitch-checkbox', 'id' => $forms['adblock']['id'], 'data-content' => __("Once set to TRUE, enables adblock detection"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Adblock Detection")));
?>
<?php
echo FORM::label($forms['adblock']['id'], "<span class='onoffswitch-inner'></span><span class='onoffswitch-switch'></span>", array('class' => 'onoffswitch-label', 'for' => $forms['adblock']['id']));
?>
<?php
echo FORM::hidden($forms['adblock']['key'], 0);
?>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-8 col-sm-offset-4">
<?php
示例8: __
</div>
</div>
<div class="form-group">
<?php
echo FORM::label($forms['smtp_pass']['key'], __('Smtp password'), array('class' => 'control-label col-sm-3', 'for' => $forms['smtp_pass']['key']));
?>
<div class="col-sm-4">
<?php
echo FORM::input($forms['smtp_pass']['key'], $forms['smtp_pass']['value'], array('placeholder' => "", 'type' => "password", 'class' => 'tips form-control', 'id' => $forms['smtp_pass']['key'], 'data-content' => '', 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => ''));
?>
</div>
</div>
<div class="form-group">
<?php
echo FORM::label($forms['new_ad_notify']['key'], __('Notify me on new ad'), array('class' => 'control-label col-sm-3', 'for' => $forms['new_ad_notify']['key']));
?>
<div class="col-sm-4">
<?php
echo FORM::select($forms['new_ad_notify']['key'], array(FALSE => 'FALSE', TRUE => 'TRUE'), $forms['new_ad_notify']['value'], array('placeholder' => "TRUE or FALSE", 'class' => 'tips form-control', 'id' => $forms['new_ad_notify']['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' => 'email'))));
?>
</fieldset>
</div><!--end col-md-10-->
示例9: array
</div>
</div>
<?endif?>
<form class="form-horizontal" enctype="multipart/form-data" method="post" action="<?php
echo Route::url('oc-panel', array('controller' => 'category', 'action' => 'icon', 'id' => $form->object->id_category));
?>
">
<?php
echo Form::errors();
?>
<div class="form-group">
<div class="col-sm-12">
<?php
echo FORM::label('category_icon', __('Select from files'), array('for' => 'category_icon'));
?>
<input type="file" name="category_icon" class="form-control" id="category_icon" />
</div>
</div>
<button type="submit" class="btn btn-primary"><?php
echo __('Submit');
?>
</button>
<?if (( $icon_src = $category->get_icon() )!==FALSE ):?>
<button type="submit"
class="btn btn-danger index-delete index-delete-inline"
onclick="return confirm('<?php
echo __('Delete icon?');
?>
示例10: __
<div class="form-group">
<?php
echo FORM::label('message', __('Message'), array('class' => 'col-md-2 control-label', 'for' => 'message'));
?>
<div class="col-md-6">
<?php
echo FORM::textarea('message', Core::post('subject'), array('class' => 'form-control', 'placeholder' => __('Message'), 'name' => 'message', 'id' => 'message', 'rows' => 2, 'required'));
?>
</div>
</div>
<?php
if (core::config('advertisement.captcha') != FALSE) {
?>
<div class="form-group">
<?php
echo FORM::label('captcha', __('Captcha'), array('class' => 'col-md-2 control-label', 'for' => 'captcha'));
?>
<div class="col-md-4">
<?php
if (Core::config('general.recaptcha_active')) {
?>
<?php
echo Captcha::recaptcha_display();
?>
<div id="recaptcha1"></div>
<?php
} else {
?>
<?php
echo captcha::image_tag('contact');
?>
示例11: _e
<dl class="form-group">
<dt><?php
echo FORM::label('message', _e('Message'), array('class' => 'control-label', 'for' => 'message'));
?>
</dt>
<dd><?php
echo FORM::textarea('message', Core::post('subject'), array('class' => 'form-control', 'placeholder' => __('Message'), 'name' => 'message', 'id' => 'message', 'rows' => 4, 'required'));
?>
</dd>
</dl>
<?php
if (core::config('advertisement.captcha') != FALSE) {
?>
<dl class="capt form-group clearfix">
<?php
echo FORM::label('captcha', _e('Captcha'), array('class' => 'hidden', 'for' => 'captcha'));
?>
<?php
if (Core::config('general.recaptcha_active')) {
?>
<?php
echo Captcha::recaptcha_display();
?>
<div id="recaptcha1"></div>
<?php
} else {
?>
<dt> <?php
echo captcha::image_tag('contact');
?>
示例12: _e
<?php
}
?>
</div>
</div>
</div>
<div class="form-group">
<?php
if (core::config('advertisement.num_images') > count($images)) {
?>
<!-- permition to add more images-->
<div class="col-xs-12">
<hr>
<br>
<?php
echo FORM::label('images', _e('Add image'), array('class' => '', 'for' => 'images0'));
?>
<br>
<div class="fileinput fileinput-new" data-provides="fileinput">
<div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;"></div>
<div>
<span class="btn btn-default btn-file">
<span class="fileinput-new"><?php
echo _e('Select');
?>
</span>
<span class="fileinput-exists"><?php
echo _e('Edit');
?>
</span>
<input type="file" name="image0" id="fileInput0" accept="<?php
示例13: __
}
?>
<?php
}
?>
</div>
</div>
</div>
<div class="form-group">
<?php
if (core::config('advertisement.num_images') > count($images)) {
?>
<!-- permition to add more images-->
<div class="col-sm-8">
<?php
echo FORM::label('images', __('Images'), array('class' => '', 'for' => 'images0'));
?>
<input type="file" name="image0" id="fileInput0" accept="<?php
echo 'image/' . str_replace(',', ', image/', rtrim(core::config('image.allowed_formats'), ','));
?>
">
</div>
<?php
}
?>
</div>
<div class="page-header"></div>
<?php
echo FORM::button('submit_btn', in_array(core::config('general.moderation'), Model_Ad::$moderation_status) ? __('Publish') : __('Update'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'myads', 'action' => 'update', 'id' => $ad->id_ad))));
?>
</fieldset>
示例14: __
?>
<?php
echo __('Quick location creator.');
?>
</span>
<p><?php
echo __('Add names for multiple locations, for each one push enter.');
?>
</p>
<?php
echo FORM::open(Route::url('oc-panel', array('controller' => 'location', 'action' => 'multy_locations' . '?id_location=' . Core::get('id_location', 1))), array('class' => 'form-horizontal', 'role' => 'form', 'enctype' => 'multipart/form-data'));
?>
<div class="form-group">
<?php
echo FORM::label('multy_locations', __('Name') . ':', array('class' => 'col-sm-3 control-label', 'for' => 'multy_locations'));
?>
<div class="col-sm-8">
<?php
echo FORM::input('multy_locations', '', array('placeholder' => __('Hit enter to confirm'), 'class' => 'form-control', 'id' => 'multy_locations', 'type' => 'text', 'data-role' => 'tagsinput'));
?>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-8">
<?php
echo FORM::button('submit', __('Send'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'location', 'action' => 'multy_locations' . '?id_location=' . Core::get('id_location', 1)))));
?>
</div>
</div>
<?php
示例15: array_walk
}
array_walk($order_categories, 'lili', $categories);
?>
</select>
</div>
</div>
<?php
}
?>
<?php
if (core::config('advertisement.location') != FALSE and count($locations) > 1) {
?>
<div class="form-group">
<?php
echo FORM::label('location', _e('Location'), array('class' => '', 'for' => 'location', 'multiple'));
?>
<div class="control mr-30">
<select <?php
echo core::config('general.search_multi_catloc') ? 'multiple' : NULL;
?>
name="location<?php
echo core::config('general.search_multi_catloc') ? '[]' : NULL;
?>
" id="location" class="form-control" data-placeholder="<?php
echo __('Location');
?>
">
<?php
if (!core::config('general.search_multi_catloc')) {