本文整理匯總了PHP中FORM::select方法的典型用法代碼示例。如果您正苦於以下問題:PHP FORM::select方法的具體用法?PHP FORM::select怎麽用?PHP FORM::select使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FORM
的用法示例。
在下文中一共展示了FORM::select方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<div class="col-1">
<div class="woocommerce-billing-fields">
<h3>Información del pago</h3>
<p id="billing_country_field" class="form-row form-row-wide address-field update_totals_on_change validate-required woocommerce-validated">
<label class="" for="bank">Banco<abbr title="required" class="required">*</abbr>
</label>
<?php
echo Form::text('bank');
?>
</p>
<p id="billing_country_field" class="form-row form-row-wide address-field update_totals_on_change validate-required woocommerce-validated">
<label class="" for="type">Tipo de pago <abbr title="required" class="required">*</abbr>
</label>
<?php
echo FORM::select('type', $payment_types);
?>
</p>
<p id="billing_country_field" class="form-row form-row-wide address-field update_totals_on_change validate-required woocommerce-validated">
<label class="" for="confirmation_code">Código de confirmación<abbr title="required" class="required">*</abbr>
</label>
<?php
echo FORM::text('confirmation_code');
?>
</p>
<p id="billing_country_field" class="form-row form-row-wide address-field update_totals_on_change validate-required woocommerce-validated">
<label class="" for="amount">Monto<abbr title="required" class="required">*</abbr>
</label>
<?php
示例2: defined
<?php
defined('SYSPATH') or die('No direct script access.');
echo FORM::open(Request::current()->url(), array('class' => 'form-horizontal'));
?>
<fieldset>
<legend><?php
echo $title;
?>
</legend>
<div class="control-group">
<label class="control-label">Город</label>
<div class="controls">
<?php
echo FORM::select('city_id', $cities, Arr::get($values, 'city_id'), array('class' => 'span5'));
?>
</div>
<span class="help-inline"><?php
echo Arr::get($errors, 'city_id');
?>
</span>
</div>
<div class="control-group">
<label for="name" class="control-label">Краткое название</label>
<div class="controls">
<?php
echo FORM::input('name', Arr::get($values, 'name'), array('class' => 'span5'));
?>
<span class="help-inline"><?php
echo Arr::get($errors, 'name');
?>
示例3: array
?>
<?php
echo Form::radio($forms['smtp_active']['key'], 0, !(bool) $forms['smtp_active']['value'], array('id' => $forms['smtp_active']['key'] . '0'));
?>
<?php
echo Form::label($forms['smtp_active']['key'] . '0', __('Disabled'));
?>
</div>
</div>
<div class="form-group">
<?php
echo FORM::label($forms['smtp_secure']['key'], __('Smtp secure'), array('class' => 'control-label', 'for' => $forms['smtp_secure']['key']));
?>
<?php
echo FORM::select($forms['smtp_secure']['key'], array('' => __("None"), 'ssl' => 'SSL', 'tls' => 'TLS'), $forms['smtp_secure']['value'], array('placeholder' => $forms['smtp_secure']['value'], 'class' => 'tips form-control input-sm ', 'id' => $forms['smtp_secure']['key']));
?>
</div>
<div class="form-group">
<?php
echo FORM::label($forms['smtp_host']['key'], __('Smtp host'), array('class' => 'control-label', 'for' => $forms['smtp_host']['key']));
?>
<?php
echo FORM::input($forms['smtp_host']['key'], $forms['smtp_host']['value'], array('placeholder' => '', 'class' => 'tips form-control', 'id' => $forms['smtp_host']['key']));
?>
</div>
<div class="form-group">
示例4: array
echo Controller_Panel_Content::translate_type($type);
?>
</h1>
</div>
<?php
echo FORM::open(Route::url('oc-panel', array('controller' => 'content', 'action' => 'list')), array('method' => 'GET', 'class' => 'form-horizontal', 'id' => 'locale_form', 'enctype' => 'multipart/form-data'));
?>
<div class="form-group">
<div class="col-sm-4">
<?php
echo FORM::label('locale', __('Locale'), array('class' => 'control-label', 'for' => 'locale'));
?>
<?php
echo FORM::select('locale_select', $locale_list, $locale);
?>
</div>
<div class="col-sm-4">
<?php
echo FORM::hidden('type', $type);
?>
</div>
</div>
<?php
echo FORM::close();
?>
<?php
示例5: array
$service->reset(FALSE);
$news_portal->reset(FALSE);
$news_service->reset(FALSE);
$review->reset(FALSE);
$stock->reset(FALSE);
$vacancy->reset(FALSE);
*/
$search_options = array('all' => __('f_option_all'), 'services' => __('f_option_services'), 'news' => __('f_option_news'), 'stotks' => __('f_option_stocks'), 'vacancies' => __('f_option_vacancies'));
echo FORM::open('search');
?>
<div class="search_form">
<?php
echo FORM::input('str', Arr::get($values, 'str'));
?>
<?php
echo FORM::select('search_type', $search_options, Arr::get($values, 'search_type'));
?>
<?php
echo FORM::submit(NULL, 'Искать', array('class' => 'submit'));
?>
<div class="tip">Запросы можно вводить через запятую, например Москва, Ауди, Тюнинг</div>
<div><?php
echo Message::show_once_error($errors, 'str');
?>
</div>
</div>
<?php
echo FORM::close();
if ($view_results) {
?>
<p style="font-size: 20px; color: #8d8d8d; margin: 10px 10px 0;">Найдено автосервисов <?php
示例6: array
</div>
<?php
$pages = array('' => __('Deactivated'));
?>
<?php
foreach (Model_Content::get_pages() as $key => $value) {
$pages[$value->seotitle] = $value->title;
}
?>
<div class="form-group">
<?php
echo FORM::label($forms['tos']['key'], "<a target='_blank' href='http://open-classifieds.com/2013/08/13/how_to_add_pages/'>" . __('Terms of Service') . "</a>", array('class' => 'control-label col-sm-3', 'for' => $forms['tos']['key']));
?>
<div class="col-sm-4">
<?php
echo FORM::select($forms['tos']['key'], $pages, $forms['tos']['value'], array('placeholder' => "http://foo.com/", 'class' => 'tips form-control', 'id' => $forms['tos']['key'], 'data-content' => __("If you choose to use terms of service, you can select activate. And to edit content, select link 'Content' on your admin panel sidebar. Find page named 'Terms of service' click 'Edit'. In section 'Description' add content that suits you."), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Terms of Service")));
?>
</div>
</div>
<div class="form-group">
<?php
echo FORM::label($forms['disqus']['key'], __('Disqus'), array('class' => 'control-label col-sm-3', 'for' => $forms['disqus']['key']));
?>
<div class="col-sm-4">
<?php
echo FORM::input($forms['disqus']['key'], $forms['disqus']['value'], array('placeholder' => "", 'class' => 'tips form-control', 'id' => $forms['disqus']['key'], 'data-content' => __("Disqus Comments"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("You need to write your disqus ID to enable the service.")));
?>
</div>
</div>
示例7: defined
<?php
defined('SYSPATH') or die('No direct script access.');
echo FORM::open($url);
?>
<fieldset>
<legend><?php
echo __('s_stock_params');
?>
</legend>
<p><?php
echo __('s_firm');
?>
</p>
<?php
echo FORM::select('service_id', $services, Arr::get($values, 'service_id'));
?>
</fieldset>
<p>Заголовок</p>
<?php
echo FORM::input('title', Arr::get($values, 'title'), array('class' => 's_inp', 'style' => 'width: 350px;'));
?>
<div class="form_error"><?php
echo Message::show_once_error($errors, 'text');
?>
</div>
<fieldset>
<legend>Текст</legend>
<?php
echo FORM::textarea('text', Arr::get($values, 'text'));
?>
示例8: __
'Neutral Blue' => '[{"featureType": "water","elementType": "geometry","stylers": [{ "color": "#193341" }]},{"featureType": "landscape","elementType": "geometry","stylers": [{ "color": "#2c5a71" }]},{"featureType": "road","elementType": "geometry","stylers": [{ "color": "#29768a" },{ "lightness": -37 }]},{"featureType": "poi","elementType": "geometry","stylers": [{ "color": "#406d80" }]},{"featureType": "transit","elementType": "geometry","stylers": [{ "color": "#406d80" }]},{"elementType": "labels.text.stroke","stylers": [{ "visibility": "on" },{ "color": "#3e606f" },{ "weight": 2 },{ "gamma": 0.84 }]},{"elementType": "labels.text.fill","stylers": [{ "color": "#ffffff" }]},{"featureType": "administrative","elementType": "geometry","stylers": [{ "weight": 0.6 },{ "color": "#1a3541" }]},{"elementType": "labels.icon","stylers": [{ "visibility": "off" }]},{"featureType": "poi.park","elementType": "geometry","stylers": [{ "color": "#2c5a71" }]}]',
'Gowalla' => '[{"featureType":"administrative.land_parcel","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"landscape.man_made","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"poi","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"simplified"},{"lightness":20}]},{"featureType":"road.highway","elementType":"geometry","stylers":[{"hue":"#f49935"}]},{"featureType":"road.highway","elementType":"labels","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"hue":"#fad959"}]},{"featureType":"road.arterial","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"visibility":"simplified"}]},{"featureType":"road.local","elementType":"labels","stylers":[{"visibility":"simplified"}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"all","stylers":[{"hue":"#a1cdfc"},{"saturation":30},{"lightness":49}]}]',
'MapBox' => '[{"featureType":"water","stylers":[{"saturation":43},{"lightness":-11},{"hue":"#0088ff"}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"hue":"#ff0000"},{"saturation":-100},{"lightness":99}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"color":"#808080"},{"lightness":54}]},{"featureType":"landscape.man_made","elementType":"geometry.fill","stylers":[{"color":"#ece2d9"}]},{"featureType":"poi.park","elementType":"geometry.fill","stylers":[{"color":"#ccdca1"}]},{"featureType":"road","elementType":"labels.text.fill","stylers":[{"color":"#767676"}]},{"featureType":"road","elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"}]},{"featureType":"poi","stylers":[{"visibility":"off"}]},{"featureType":"landscape.natural","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"color":"#b8cb93"}]},{"featureType":"poi.park","stylers":[{"visibility":"on"}]},{"featureType":"poi.sports_complex","stylers":[{"visibility":"on"}]},{"featureType":"poi.medical","stylers":[{"visibility":"on"}]},{"featureType":"poi.business","stylers":[{"visibility":"simplified"}]}]',
'Shift Worker' => '[{"stylers":[{"saturation":-100},{"gamma":1}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"off"}]},{"featureType":"poi.business","elementType":"labels.text","stylers":[{"visibility":"off"}]},{"featureType":"poi.business","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"poi.place_of_worship","elementType":"labels.text","stylers":[{"visibility":"off"}]},{"featureType":"poi.place_of_worship","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"geometry","stylers":[{"visibility":"simplified"}]},{"featureType":"water","stylers":[{"visibility":"on"},{"saturation":50},{"gamma":0},{"hue":"#50a5d1"}]},{"featureType":"administrative.neighborhood","elementType":"labels.text.fill","stylers":[{"color":"#333333"}]},{"featureType":"road.local","elementType":"labels.text","stylers":[{"weight":0.5},{"color":"#333333"}]},{"featureType":"transit.station","elementType":"labels.icon","stylers":[{"gamma":1},{"saturation":50}]}]',
'RouteXL' => '[{"featureType":"administrative","elementType":"all","stylers":[{"visibility":"on"},{"saturation":-100},{"lightness":20}]},{"featureType":"road","elementType":"all","stylers":[{"visibility":"on"},{"saturation":-100},{"lightness":40}]},{"featureType":"water","elementType":"all","stylers":[{"visibility":"on"},{"saturation":-10},{"lightness":30}]},{"featureType":"landscape.man_made","elementType":"all","stylers":[{"visibility":"simplified"},{"saturation":-60},{"lightness":10}]},{"featureType":"landscape.natural","elementType":"all","stylers":[{"visibility":"simplified"},{"saturation":-60},{"lightness":60}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"},{"saturation":-100},{"lightness":60}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"},{"saturation":-100},{"lightness":60}]}]',
'Avocado World' => '[{"featureType":"water","elementType":"geometry","stylers":[{"visibility":"on"},{"color":"#aee2e0"}]},{"featureType":"landscape","elementType":"geometry.fill","stylers":[{"color":"#abce83"}]},{"featureType":"poi","elementType":"geometry.fill","stylers":[{"color":"#769E72"}]},{"featureType":"poi","elementType":"labels.text.fill","stylers":[{"color":"#7B8758"}]},{"featureType":"poi","elementType":"labels.text.stroke","stylers":[{"color":"#EBF4A4"}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"visibility":"simplified"},{"color":"#8dab68"}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"visibility":"simplified"}]},{"featureType":"road","elementType":"labels.text.fill","stylers":[{"color":"#5B5B3F"}]},{"featureType":"road","elementType":"labels.text.stroke","stylers":[{"color":"#ABCE83"}]},{"featureType":"road","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#A4C67D"}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#9BBF72"}]},{"featureType":"road.highway","elementType":"geometry","stylers":[{"color":"#EBF4A4"}]},{"featureType":"transit","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"visibility":"on"},{"color":"#87ae79"}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#7f2200"},{"visibility":"off"}]},{"featureType":"administrative","elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"},{"visibility":"on"},{"weight":4.1}]},{"featureType":"administrative","elementType":"labels.text.fill","stylers":[{"color":"#495421"}]},{"featureType":"administrative.neighborhood","elementType":"labels","stylers":[{"visibility":"off"}]}]',
'Subtle Greyscale Map' => '[{"featureType":"poi","elementType":"all","stylers":[{"hue":"#000000"},{"saturation":-100},{"lightness":-100},{"visibility":"off"}]},{"featureType":"poi","elementType":"all","stylers":[{"hue":"#000000"},{"saturation":-100},{"lightness":-100},{"visibility":"off"}]},{"featureType":"administrative","elementType":"all","stylers":[{"hue":"#000000"},{"saturation":0},{"lightness":-100},{"visibility":"off"}]},{"featureType":"road","elementType":"labels","stylers":[{"hue":"#ffffff"},{"saturation":-100},{"lightness":100},{"visibility":"off"}]},{"featureType":"water","elementType":"labels","stylers":[{"hue":"#000000"},{"saturation":-100},{"lightness":-100},{"visibility":"off"}]},{"featureType":"road.local","elementType":"all","stylers":[{"hue":"#ffffff"},{"saturation":-100},{"lightness":100},{"visibility":"on"}]},{"featureType":"water","elementType":"geometry","stylers":[{"hue":"#ffffff"},{"saturation":-100},{"lightness":100},{"visibility":"on"}]},{"featureType":"transit","elementType":"labels","stylers":[{"hue":"#000000"},{"saturation":0},{"lightness":-100},{"visibility":"off"}]},{"featureType":"landscape","elementType":"labels","stylers":[{"hue":"#000000"},{"saturation":-100},{"lightness":-100},{"visibility":"off"}]},{"featureType":"road","elementType":"geometry","stylers":[{"hue":"#bbbbbb"},{"saturation":-100},{"lightness":26},{"visibility":"on"}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"hue":"#dddddd"},{"saturation":-100},{"lightness":-3},{"visibility":"on"}]}]',
)
?>
<div class="form-group">
<?php
echo FORM::label($forms['map_style']['key'], __("Google map style"), array('class' => 'control-label', 'for' => $forms['map_style']['key']));
?>
<?php
echo FORM::select($forms['map_style']['key'], array_flip($map_styles), $forms['map_style']['value'], array('placeholder' => "http://foo.com/", 'class' => 'form-control', 'id' => $forms['map_style']['key']));
?>
<span class="help-block">
<?php
echo __("Custom Google Maps styling");
?>
</span>
</div>
<div class="form-group">
<?php
echo FORM::label($forms['map_zoom']['key'], __('Google map zoom level'), array('class' => 'control-label', 'for' => $forms['map_zoom']['key']));
?>
<?php
echo FORM::input($forms['map_zoom']['key'], $forms['map_zoom']['value'], array('placeholder' => "16", 'class' => 'form-control', 'id' => $forms['map_zoom']['key'], 'type' => 'number', 'data-rule-digits' => 'true'));
示例9: __
</div>
</div>
<?php
if (($aws_s3_domain = strpos($forms_img['aws_s3_domain']['value'], 's3.amazonaws.com')) !== FALSE) {
$forms_img['aws_s3_domain']['value'] = $aws_s3_domain > 0 ? 'bn-s3' : 's3-bn';
}
?>
<div class="form-group">
<?php
echo FORM::label($forms_img['aws_s3_domain']['key'], __('S3 Domain Name'), array('class' => 'control-label col-sm-4', 'for' => $forms_img['aws_s3_domain']['key']));
?>
<div class="col-sm-8">
<?php
echo FORM::select($forms_img['aws_s3_domain']['key'], array('bn' => "bucket_name", 'bn-s3' => "bucket_name.s3.amazonaws.com", 's3-bn' => "s3.amazonaws.com/bucket_name"), $forms_img['aws_s3_domain']['value'], array('placeholder' => $forms_img['aws_s3_domain']['value'], 'class' => 'tips form-control input-sm ', 'id' => $forms_img['aws_s3_domain']['key'], 'data-content' => __("Amazon S3 Domain Name"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("S3 Domain Name")));
?>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><?php
echo __("Captcha Configuration");
?>
</div>
<div class="panel-body">
<div class="form-horizontal">
示例10: form_tag
/**
* Returns the html tag code for a field
* @param string $name input name
* @param array $options as defined
* @param mixed $value value of the field, optional.
* @return string HTML of the tag
*/
public static function form_tag($name, $options, $value = NULL)
{
if ($options['display'] != 'hidden') {
$label = FORM::label($name, isset($options['label']) ? $options['label'] : $name, array('class' => 'control-label col-md-5', 'for' => $name));
} else {
$label = '';
}
//$out = '';
if ($value === NULL) {
$value = isset($options['default']) ? $options['default'] : NULL;
}
$attributes = array('placeholder' => isset($options['label']) ? $options['label'] : $name, 'data-placeholder' => isset($options['label']) ? $options['label'] : $name, 'class' => 'form-control', 'id' => $name, isset($options['required']) ? 'required' : '');
switch ($options['display']) {
case 'select':
$input = FORM::select($name, $options['options'], $value);
break;
case 'textarea':
$input = FORM::textarea($name, $value, $attributes);
break;
case 'hidden':
$input = FORM::hidden($name, $value, $attributes);
break;
case 'logo':
$input = FORM::file($name, $attributes);
if (!empty($value)) {
$input .= HTML::image($value);
$input .= Form::button('delete_' . $name, __('Delete'), array('type' => 'submit', 'value' => $value));
}
break;
case 'text':
default:
$input = FORM::input($name, $value, $attributes);
break;
}
$out = $label . '<div class="col-md-5">' . $input . '</div>';
return $out;
}
示例11: __
</div>
<span class="help-block">
<?php
echo __("How much the user needs to pay to top up an Ad");
?>
</span>
</div>
<hr>
<div class="form-group">
<?php
echo FORM::label($forms['alternative']['key'], __('Alternative Payment'), array('class' => 'control-label', 'for' => $forms['alternative']['key']));
?>
<?php
echo FORM::select($forms['alternative']['key'], $pages, $forms['alternative']['value'], array('class' => 'tips form-control', 'id' => $forms['alternative']['key']));
?>
<span class="help-block">
<?php
echo __("A button with the page title appears next to other pay button, onclick model opens with description.");
?>
</span>
</div>
<div class="form-group">
<?php
echo FORM::label($forms['vat_country']['key'], __('VAT Country'), array('class' => 'control-label', 'for' => $forms['vat_country']['key']));
?>
<?php
echo Form::select($forms['vat_country']['key'], EUVAT::countries(), $forms['vat_country']['value']);
示例12: __
</label>
<div class="col-sm-4">
<input class="form-control" type="url" id="url" name="url" value="<?php
echo $menu_data['url'];
?>
" placeholder="http://somedomain.com" required>
</div>
</div>
<div class="form-group">
<?php
echo FORM::label('target', __('Target'), array('class' => 'control-label col-sm-1', 'for' => 'target'));
?>
<div class="col-sm-4">
<?php
echo FORM::select('target', array('_self' => '_self', '_blank' => '_blank', '_parent' => '_parent', '_top' => '_top'), $menu_data['target'], array('class' => 'form-control', 'id' => 'target'));
?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-1"><a target="_blank" href="http://getbootstrap.com/components/#glyphicons"><?php
echo __('Icon');
?>
</a></label>
<div class="col-sm-4">
<input class="form-control icon-picker" type="text" name="icon" value="<?php
echo $menu_data['icon'];
?>
">
</div>
示例13: __
'Gowalla' => '[{"featureType":"administrative.land_parcel","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"landscape.man_made","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"poi","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"simplified"},{"lightness":20}]},{"featureType":"road.highway","elementType":"geometry","stylers":[{"hue":"#f49935"}]},{"featureType":"road.highway","elementType":"labels","stylers":[{"visibility":"simplified"}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"hue":"#fad959"}]},{"featureType":"road.arterial","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"visibility":"simplified"}]},{"featureType":"road.local","elementType":"labels","stylers":[{"visibility":"simplified"}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"all","stylers":[{"hue":"#a1cdfc"},{"saturation":30},{"lightness":49}]}]',
'MapBox' => '[{"featureType":"water","stylers":[{"saturation":43},{"lightness":-11},{"hue":"#0088ff"}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"hue":"#ff0000"},{"saturation":-100},{"lightness":99}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"color":"#808080"},{"lightness":54}]},{"featureType":"landscape.man_made","elementType":"geometry.fill","stylers":[{"color":"#ece2d9"}]},{"featureType":"poi.park","elementType":"geometry.fill","stylers":[{"color":"#ccdca1"}]},{"featureType":"road","elementType":"labels.text.fill","stylers":[{"color":"#767676"}]},{"featureType":"road","elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"}]},{"featureType":"poi","stylers":[{"visibility":"off"}]},{"featureType":"landscape.natural","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"color":"#b8cb93"}]},{"featureType":"poi.park","stylers":[{"visibility":"on"}]},{"featureType":"poi.sports_complex","stylers":[{"visibility":"on"}]},{"featureType":"poi.medical","stylers":[{"visibility":"on"}]},{"featureType":"poi.business","stylers":[{"visibility":"simplified"}]}]',
'Shift Worker' => '[{"stylers":[{"saturation":-100},{"gamma":1}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"off"}]},{"featureType":"poi.business","elementType":"labels.text","stylers":[{"visibility":"off"}]},{"featureType":"poi.business","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"poi.place_of_worship","elementType":"labels.text","stylers":[{"visibility":"off"}]},{"featureType":"poi.place_of_worship","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"geometry","stylers":[{"visibility":"simplified"}]},{"featureType":"water","stylers":[{"visibility":"on"},{"saturation":50},{"gamma":0},{"hue":"#50a5d1"}]},{"featureType":"administrative.neighborhood","elementType":"labels.text.fill","stylers":[{"color":"#333333"}]},{"featureType":"road.local","elementType":"labels.text","stylers":[{"weight":0.5},{"color":"#333333"}]},{"featureType":"transit.station","elementType":"labels.icon","stylers":[{"gamma":1},{"saturation":50}]}]',
'RouteXL' => '[{"featureType":"administrative","elementType":"all","stylers":[{"visibility":"on"},{"saturation":-100},{"lightness":20}]},{"featureType":"road","elementType":"all","stylers":[{"visibility":"on"},{"saturation":-100},{"lightness":40}]},{"featureType":"water","elementType":"all","stylers":[{"visibility":"on"},{"saturation":-10},{"lightness":30}]},{"featureType":"landscape.man_made","elementType":"all","stylers":[{"visibility":"simplified"},{"saturation":-60},{"lightness":10}]},{"featureType":"landscape.natural","elementType":"all","stylers":[{"visibility":"simplified"},{"saturation":-60},{"lightness":60}]},{"featureType":"poi","elementType":"all","stylers":[{"visibility":"off"},{"saturation":-100},{"lightness":60}]},{"featureType":"transit","elementType":"all","stylers":[{"visibility":"off"},{"saturation":-100},{"lightness":60}]}]',
'Avocado World' => '[{"featureType":"water","elementType":"geometry","stylers":[{"visibility":"on"},{"color":"#aee2e0"}]},{"featureType":"landscape","elementType":"geometry.fill","stylers":[{"color":"#abce83"}]},{"featureType":"poi","elementType":"geometry.fill","stylers":[{"color":"#769E72"}]},{"featureType":"poi","elementType":"labels.text.fill","stylers":[{"color":"#7B8758"}]},{"featureType":"poi","elementType":"labels.text.stroke","stylers":[{"color":"#EBF4A4"}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"visibility":"simplified"},{"color":"#8dab68"}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"visibility":"simplified"}]},{"featureType":"road","elementType":"labels.text.fill","stylers":[{"color":"#5B5B3F"}]},{"featureType":"road","elementType":"labels.text.stroke","stylers":[{"color":"#ABCE83"}]},{"featureType":"road","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#A4C67D"}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#9BBF72"}]},{"featureType":"road.highway","elementType":"geometry","stylers":[{"color":"#EBF4A4"}]},{"featureType":"transit","stylers":[{"visibility":"off"}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"visibility":"on"},{"color":"#87ae79"}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#7f2200"},{"visibility":"off"}]},{"featureType":"administrative","elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"},{"visibility":"on"},{"weight":4.1}]},{"featureType":"administrative","elementType":"labels.text.fill","stylers":[{"color":"#495421"}]},{"featureType":"administrative.neighborhood","elementType":"labels","stylers":[{"visibility":"off"}]}]',
'Subtle Greyscale Map' => '[{"featureType":"poi","elementType":"all","stylers":[{"hue":"#000000"},{"saturation":-100},{"lightness":-100},{"visibility":"off"}]},{"featureType":"poi","elementType":"all","stylers":[{"hue":"#000000"},{"saturation":-100},{"lightness":-100},{"visibility":"off"}]},{"featureType":"administrative","elementType":"all","stylers":[{"hue":"#000000"},{"saturation":0},{"lightness":-100},{"visibility":"off"}]},{"featureType":"road","elementType":"labels","stylers":[{"hue":"#ffffff"},{"saturation":-100},{"lightness":100},{"visibility":"off"}]},{"featureType":"water","elementType":"labels","stylers":[{"hue":"#000000"},{"saturation":-100},{"lightness":-100},{"visibility":"off"}]},{"featureType":"road.local","elementType":"all","stylers":[{"hue":"#ffffff"},{"saturation":-100},{"lightness":100},{"visibility":"on"}]},{"featureType":"water","elementType":"geometry","stylers":[{"hue":"#ffffff"},{"saturation":-100},{"lightness":100},{"visibility":"on"}]},{"featureType":"transit","elementType":"labels","stylers":[{"hue":"#000000"},{"saturation":0},{"lightness":-100},{"visibility":"off"}]},{"featureType":"landscape","elementType":"labels","stylers":[{"hue":"#000000"},{"saturation":-100},{"lightness":-100},{"visibility":"off"}]},{"featureType":"road","elementType":"geometry","stylers":[{"hue":"#bbbbbb"},{"saturation":-100},{"lightness":26},{"visibility":"on"}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"hue":"#dddddd"},{"saturation":-100},{"lightness":-3},{"visibility":"on"}]}]',
)
?>
<div class="form-group">
<?php
echo FORM::label($forms['reviews_paid']['key'], __("Google map style"), array('class' => 'control-label col-sm-4', 'for' => $forms['reviews_paid']['key']));
?>
<div class="col-sm-8">
<?php
echo FORM::select($forms['map_style']['key'], array_flip($map_styles), $forms['map_style']['value'], array('placeholder' => "http://foo.com/", 'class' => 'tips form-control', 'id' => $forms['map_style']['key'], 'data-content' => __("Custom Google Maps styling"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Google map style")));
?>
</div>
</div>
<div class="form-group">
<?php
echo FORM::label($forms['map_zoom']['key'], __('Google map zoom level'), array('class' => 'control-label col-sm-4', 'for' => $forms['map_zoom']['key']));
?>
<div class="col-sm-8">
<?php
echo FORM::input($forms['map_zoom']['key'], $forms['map_zoom']['value'], array('placeholder' => "16", 'class' => 'tips form-control', 'id' => $forms['map_zoom']['key'], 'data-original-title' => __("Zoom level"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-content' => __("Google map default zoom level "), 'data-rule-digits' => 'true'));
?>
</div>
示例14: date_default_timezone_get
<div class="col-sm-8">
<?php
echo FORM::select($forms['timezone']['key'], Date::get_timezones(), core::request('TIMEZONE', date_default_timezone_get()), array('placeholder' => "Madrid [+1:00]", 'class' => 'tips form-control', 'id' => $forms['timezone']['id']));
?>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-4"><?php
echo __("Measurement Units");
?>
:</label>
<div class="col-sm-8">
<?php
echo FORM::select($forms['measurement']['key'], array('metric' => __("Metric"), 'imperial' => __("Imperial")), $forms['measurement']['value'], array('placeholder' => $forms['measurement']['value'], 'class' => 'tips form-control input-sm ', 'id' => $forms['measurement']['id'], 'data-content' => __("Measurement units used by the system."), 'data-trigger' => "hover", 'data-placement' => "bottom", 'data-toggle' => "popover", 'data-original-title' => __("Measurement")));
?>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><?php
echo __("Enable Additional Features");
?>
</div>
<div class="panel-body">
<div class="form-horizontal">
<div class="form-group">
示例15: __
</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-->