<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
<?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'); ?>
?> <?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">
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
$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
</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>
<?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')); ?>
'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'));
</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">
/** * 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; }
</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']);
</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>
'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>
<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">
</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-->
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 class="form-group"> <?php echo FORM::label($forms['smtp_secure']['key'], __('Smtp secure'), array('class' => 'control-label col-sm-4', 'for' => $forms['smtp_secure']['key'])); ?> <div class="col-sm-8"> <?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'], 'data-content' => __("Smtp secure"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Smtp secure"))); ?> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['smtp_host']['key'], __('Smtp host'), array('class' => 'control-label col-sm-4', 'for' => $forms['smtp_host']['key'])); ?> <div class="col-sm-8"> <?php echo FORM::input($forms['smtp_host']['key'], $forms['smtp_host']['value'], array('placeholder' => '', 'class' => 'tips form-control', 'id' => $forms['smtp_host']['key'], 'data-content' => '', 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => '')); ?> </div> </div>
<?php defined('SYSPATH') or die('No direct script access.'); echo Message::show_errors($errors); echo FORM::open($url); ?> <fieldset> <legend>Параметры модели автомобиля</legend> <div class="clearfix"> <label for="name">Название модели</label> <div class="input"> <?php echo FORM::input('name', Arr::get($values, 'name'), array('id' => 'name', 'class' => 'span5')); ?> </div> </div> <div class="clearfix"> <label for="car_id">Марка автомобиля</label> <div class="input"> <?php echo FORM::select('car_id', $cars, Arr::get($values, 'car_id')); ?> </div> </div> </fieldset> <?php echo FORM::submit(NULL, 'Сохранить', array('class' => 'btn large success')); echo FORM::close();
<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['alternative']['key'], __('Alternative Payment'), array('class' => 'col-md-4 control-label', 'for' => $forms['alternative']['key'])); ?> <div class="col-md-8"> <?php echo FORM::select($forms['alternative']['key'], $pages, $forms['alternative']['value'], array('class' => 'tips form-control', 'id' => $forms['alternative']['key'], 'data-content' => __("A button with the page title appears next to other pay button, onclick model opens with description."), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Alternative Payment"))); ?> </div> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading">Paypal</div> <div class="panel-body"> <div class="form-horizontal"> <div class="form-group"> <?php echo FORM::label($forms['paypal_account']['key'], __('Paypal account'), array('class' => 'control-label col-sm-4', 'for' => $forms['paypal_account']['key']));
<?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-->
</a> <?php } ?> <?php if (Auth::instance()->get_user()->has_access('supportadmin')) { ?> <form class="form-inline pull-right" method="post" action="<?php echo Route::url('oc-panel', array('controller' => 'support', 'action' => 'ticket', 'id' => $ticket->id_ticket)); ?> "> <?php echo FORM::select('agent', $users, $ticket->id_user_support, array('id' => 'agent', 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'class' => 'form-control')); ?> <button type="submit" class="btn btn-info"><?php echo __('Assign'); ?> </button> </form> <a target="_blank" href="<?php echo Route::url('oc-panel', array('controller' => 'order', 'action' => 'update', 'id' => $ticket->order->pk())); ?> "> <?php echo round($ticket->order->amount, 2); echo $ticket->order->currency;
echo FORM::input($forms['watermark_path']['key'], $forms['watermark_path']['value'], array('placeholder' => "images/watermark.png", 'class' => 'tips form-control', 'id' => $forms['watermark_path']['id'])); ?> <span class="help-block"> <?php echo __("Relative path to the image to use as watermark"); ?> </span> </div> <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
<?php $categories = array(); ?> <?php foreach ((new Model_Category())->where('id_category', '!=', '1')->order_by('order', 'asc')->find_all()->cached() as $category) { $categories[$category->id_category] = $category->name; } ?> <?php echo FORM::label('Hide categories from homepage', __('Hide categories from homepage'), array('class' => 'control-label', 'for' => 'Hide categories from homepage')); ?> <?php echo FORM::hidden('hide_homepage_categories[]', NULL); ?> <?php echo FORM::select('hide_homepage_categories[]', $categories, $hide_homepage_categories, array('class' => 'form-control', 'id' => 'hide_homepage_categories')); ?> </div> </div> <div class="modal-footer text-right"> <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Cancel'); ?> </button> <?php echo FORM::button('submit', __('Save'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'category', 'action' => 'hide_homepage_categories')))); ?> </div> <?php echo FORM::close();
} // Suche itself $sql = "SELECT DISTINCT(e.id), title, filename, date, link FROM press_entries AS e " . $join . " " . $where; $res = $SQL->select($sql); } // head echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n" . "<html>" . "\t<head>" . "\t\t<title>Suche Pressesystem</title>\n" . "\t\t<meta name=\"author\" content=\"Christoph Becker\" >" . "\t\t<meta name=\"keywords\" content=\"Pressesystem Suche Uni Rostock Fakultät für Informatik und Elektrotechnik\" >" . "\t\t<meta http-equiv=\"content-type\" content=\"text/html; charset=ISO-8859-1\" >" . "\t\t<meta http-equiv=\"Content-Style-Type\" content=\"text/css\" >" . "\t\t<style>" . "\t\t\t.presstitle{ font-family:Verdana,Geneva,sans;" . "\t\t\t\t\t\t font-size:14pt;" . "\t\t\t\t\t\t color:black; " . "\t\t\t}" . "\t\t\ttd {font-family:Verdana,Geneva,sans;" . "\t\t\t\t\t\tfont-size:10pt;" . "\t\t\t\t\t\tcolor:black;" . "\t\t\t\t\t\tmargin-top:10pt;" . "\t\t\t\t\t\t" . "\t\t\t}" . "\t\t\ttd.presssearchtitle {" . "\t\t\t\t\tfont-weight: bold;" . "\t\t\t}" . "\t\t\ta.presslink:hover {" . "\t\t\t\t\tcolor:red;\t" . "\t\t\t}" . "\t\t</style>" . "\t\t" . "\t</head>" . "\t<body link=\"#090851\" text=\"#000000\" bgcolor=\"#ffffff\">"; // content if ($search_debug == true) { echo "<pre>Sites_selected: "; var_export($sites); echo "\nSQL: {$sql} \n Results:\n"; var_export($res); echo "\n<hr noshade=noshade />"; } echo "<div class='presstitle'>Suche</div>" . "<form name=\"sform\" method=\"POST\" action =\"" . $abs_path . "\">" . "<table>" . "<tr><td colspan='2' class='presssearchtitle'>Volltextsuche</td><td> </td></tr>" . "<tr><td> </td><td colspan='2'>" . FORM::text("fulltext", $fulltext, "", 70) . "</td></tr>" . "<tr><td colspan='2' class='presssearchtitle'>Zeige alle Einträge</td><td> </td></tr>" . "<tr><td align='right'><table><tr><td>" . FORM::radio("range", "before", "", $range) . "vor</td>" . "<td rowspan='2'>" . FORM::text("date", $date, "", 10) . "</td></tr>" . "<tr><td>" . FORM::radio("range", "after", "", $range) . "nach </td></tr>" . "</table></td>" . "<td colspan='2'>" . "<b>oder</b> " . FORM::radio("range", "all", "", $range) . "egal, wann sie erstellt wurden</td>" . "<tr><td valign='top' class='presssearchtitle' colspan='2'>Suche auf bestimmte Institute beschränken</td><td> </td></tr>" . "\t<td> </td><td>" . FORM::select("sites[]", $PS->get_all(1), $sites, 6) . "</td></tr>" . "<tr><td> </td><td colspan='2'>" . FORM::submit("send", "suche!") . "</td></tr> " . "</table>" . "</form>" . "\t\t</div>"; // footer echo "\t</body>" . "</html>"; // close debug require "init.php"; //---- function set_date($d, $dateform = "german") { //$ret = $d; //$dateform = "german"; // what do i suppose, which form i got $buffer = $d; // save for error_msg $preset_year = strftime("%Y"); // with current year $d = trim($d); if (strlen($d) < 3) {
<?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> <?php FORM::close();
<li> <label for="work_times" class="lab"><?php echo __('f_work_time'); ?> </label> <?php echo FORM::input('work_times', Arr::get($values, 'work_times'), array('class' => 's_inp', 'id' => 'work_times')); ?> </li> <li> <label class="lab"><?php echo __('f_discount'); ?> </label> <?php echo FORM::select('discount_id', $discounts, Arr::get($values, 'discount_id'), array('id' => 'discount')); ?> </li> <?php $discount = Arr::get($values, 'discount_id', 0); $coupon_form_style = 'display: none'; if ($discount != 0) { $coupon_form_style = 'display: block'; } ?> <li class="coupon_text" style="<?php echo $coupon_form_style; ?> "> <label class="lab"><?php echo __('f_coupon_text');
function form_row($field) { $this->DBG->enter_method(); require_once "form.class.php"; $hoverColor = "#FFFFF0"; //TODO: should not stand here // DO NOT CHANGE!!! next two lines $tip = "t" . $field['name']; // field id for js $aPrefix = "a" . $field['name']; // ok. $aImage = "images/help/attention.gif"; // att. image $divclass = "class=\"attention\""; $this->set_startup_focus($field['name']); //$this->add_field($field); // error if (array_key_exists($field['name'], $this->fielderrors) and $this->fielderrors[$field['name']] != false) { $error = "<span style='color:white;background:red'>" . $this->fielderrors[$field['name']] . "</span>" . BR; $bgcolor = " bgcolor='red'"; $divclass = ""; } else { $error = ""; $bgcolor = ""; } // prefill, first: posted, 2nd: formfilled (code) // remove [] for multiple choice fields $fname = eregi("\\[\\]\$", $field['name']) ? substr($field['name'], 0, -2) : $field['name']; if (array_key_exists($fname, $_REQUEST)) { $prefill = $_REQUEST[$fname]; } elseif (array_key_exists("prefill", $field)) { $prefill = $field["prefill"]; } else { $prefill = ""; } $this->DBG->watch_var("prefill(" . $field['name'] . ")", $prefill); if (array_key_exists("help", $field)) { $helpdiv = "<div class=\"tip\" id=\"" . $tip . "\">" . "<span id=\"menu\">Hilfe" . " zu " . strip_tags($field['label']) . " </span><br />" . nl2br($field['help']) . "</div>"; $this->add_help($field['name'], $helpdiv); // add to local help $helptip_focus = "onfocus=\"zeige('" . $tip . "');\""; $helptip_mouse = "zeige('" . $tip . "');"; } #$error = check_field($field); $prepare_row_start = "<tr " . $helptip_focus . " onmouseover=\"" . $helptip_mouse . "this.style.backgroundColor='" . $hoverColor . "';\"" . "onblur=\"this.style.backgroundColor=''\"" . "onmouseout=\"this.style.backgroundColor=''\">" . "<td>" . "<label for=\"" . $field['name'] . "\" accesskey=\"" . $field['key'] . "\">" . $field['label'] . ":</label>" . "</td><td>" . "<div {$divclass} id=\"" . $aPrefix . "\">" . "<img src=\"" . $aImage . "\" height=\"10\" width=\"10\" alt=\"Fehler\"" . "title=\"Fehler: " . strip_tags($error) . "\"/>" . "</div>" . "</td><td>"; $prepare_row_end = BR . HINT . $error . CSPAN . "</td></tr>"; switch ($field['type']) { default: case 'dummy': $r = "\n" . $field['help']; break; case 'link': case 'text': $prefill = $prefill == "" ? "" : " value=\"" . $prefill . "\""; $r = "\n<input type=\"text\" size=\"40\" name=\"" . $field['name'] . "\" " . $prefill . " id=\"" . $field['name'] . "\" " . $helptip_focus . " />"; break; case 'password': //$prefill = ($prefill == "") ? "" : " value=\"".$prefill."\""; $prefill = ""; $r = "\n<input type=\"password\" size=\"40\" name=\"" . $field['name'] . "\" " . $prefill . " id=\"" . $field['name'] . "\" " . $helptip_focus . " />"; break; case 'file': $prefill = $this->_get_result($field['name']); if ($prefill == "") { $r = "\n<input type=\"file\" name=\"" . $field['name'] . "\" " . $helptip_focus . " />"; } else { $r = "<input type=\"hidden\" name=\"" . $field['name'] . "\" value=\"" . $prefill . "\">{$prefill}"; } break; case 'select': // using "values" $r = "prefill: {$prefill} " . FORM::select($field['name'], $field['values'], array(0 => $prefill), 1); break; case 'source_select': $list = $field['values']; $pre = array($prefill); if (!is_array($list) || count($list) < 1) { $r = "Es existieren keine Quellen. Bitte legen Sie eine an." . "<input type=\"hidden\" name=\"source\" value=\"-1\" />"; } else { $list = array_merge(array(0 => array("value" => "-1", "name" => "Neue Quelle")), $list); $r = "\n" . FORM::select("source", $list, $pre, 1); } break; case 'site_select': $pre = $prefill; $list = $field['values']; //if ($pre==0) $pre = array(9999); if (!is_array($list) || count($list) < 1) { $r = "Es existieren keine Bereiche."; $this->block = "\n<a class=\"errorlink\" href='?menu=news'>" . "- Bereich anlegen</a><br>"; } else { $this->DBG->watch_var("site_select, prefill", $pre); $r = FORM::select("sites[]", $list, $pre, 6); } break; case 'radio': $r = ""; $br = ""; $this->DBG->watch_var("radio, values", $field['values']); $this->DBG->watch_var("radio, prefill", $field['prefill']); foreach ($field['values'] as $val) { if (array_key_exists('name', $val) && array_key_exists('value', $val)) { $value = $val['value']; $name = $val['name']; $r .= "\n" . $br . FORM::radio($field['name'], $value, "", $prefill) . $name; $br = "<br />"; } } break; case 'yn_radio': $this->DBG->watch_var("yn_radio, prefill", $prefill); if ($prefill != "ja" && $prefill != "nein") { $prefill = $prefill == true || $prefill == 1 ? "ja" : "nein"; } $this->DBG->watch_var("yn_radio, prefill_after", $prefill); $r = FORM::radio($field['name'], "ja", "", $prefill) . "ja<br />" . FORM::radio($field['name'], "nein", "", $prefill) . "nein"; break; case 'date': $prefill = $prefill == "" ? "" : " value=\"" . $prefill . "\""; $r = "\n<input type=\"text\" size=\"28\" name=\"" . $field['name'] . "\"" . " " . $prefill . " id=\"" . $field['name'] . "\" " . $helptip_focus . " />" . "<a href=\"javascript:cal_" . $field['name'] . ".popup()\" title=\"Datum\">" . " <img src=\"images/b_calendar.gif\" width=\"16\"" . " height=\"16\" border=\"0\" alt=\"Datum\"></a>\n" . "\n\n<script type=\"text/javascript\"><!--\n" . "var cal_" . $field['name'] . " = " . "new calendar1(document.forms['myform'].elements['" . $field['name'] . "']); " . "cal_" . $field['name'] . ".year_scroll = true;" . "// --></script>\n"; $this->add_js("js/calendar.js"); break; } // switch $this->DBG->leave_method(); return $prepare_row_start . $r . $prepare_row_end; }
" name="form_widget_<?php echo $widget->id_name(); ?> " method="post" action="<?php echo Route::url('oc-panel', array('controller' => 'widget', 'action' => 'save')); ?> " > <div class="form-group"> <label class="control-label col-sm-4" for="placeholder_form"><?php echo __('Where do you want the widget displayed?'); ?> </label> <div class="col-sm-5"> <?php echo FORM::select('placeholder', array_combine(widgets::get_placeholders(TRUE), widgets::get_placeholders(TRUE)), $widget->placeholder); ?> </div> </div> <?php foreach ($tags as $tag) { ?> <div class="form-group"> <?php echo $tag; ?> </div> <?php } ?>
<?php echo FORM::label('title', __('Title'), array('class' => 'control-label col-md-2', 'for' => 'title')); ?> <div class="col-sm-4"> <?php echo FORM::input('title', '', array('placeholder' => __('Title'), 'class' => 'form-control', 'id' => 'title', 'required')); ?> </div> </div> <div class="form-group"> <?php echo FORM::label('locale', __('Locale'), array('class' => 'control-label col-md-2', 'for' => 'locale')); ?> <div class="col-sm-4"> <?php echo FORM::select('locale', $locale, core::config('i18n.locale'), array('placeholder' => __('locale'), 'class' => 'form-control', 'id' => 'locale', 'required')); ?> </div> </div> <div class="form-group"> <?php echo FORM::label('description', __('Description'), array('class' => 'control-label col-md-2', 'for' => 'description')); ?> <div class="col-sm-9"> <?php echo FORM::textarea('description', __('Description'), array('class' => 'form-control', 'id' => 'description', 'data-editor' => 'html')); ?> </div> </div> <?php
<div class="col-sm-12"> <?php echo FORM::label('name', __('Name'), array('class' => 'control-label', 'for' => 'name')); ?> <?php echo FORM::input('name', core::request('name'), array('placeholder' => __('Name'), 'class' => 'form-control', 'id' => 'name', 'required')); ?> </div> </div> <div class="form-group"> <div class="col-sm-12"> <?php echo FORM::label('id_location_parent', __('Parent'), array('class' => 'control-label', 'for' => 'id_location_parent')); ?> <?php echo FORM::select('id_location_parent', $locations, core::request('id_location_parent'), array('placeholder' => __('Parent'), 'class' => 'form-control', 'id' => 'id_location_parent')); ?> </div> </div> <div class="form-group"> <div class="col-sm-12"> <?php echo FORM::label('seoname', __('Seoname'), array('class' => 'control-label', 'for' => 'seoname')); ?> <?php echo FORM::input('seoname', core::request('seoname'), array('placeholder' => __('Seoname'), 'class' => 'form-control', 'id' => 'seoname')); ?> </div> </div> <div class="form-group"> <div class="col-sm-12">
<?php echo FORM::select('status', array("N" => "Новый", "P" => "Оплачен", "C" => "Отменен", "E" => "Просрочен"), Arr::get($values, 'status', 'N')); ?> <p class="help-block" style="color: red;"><?php echo Arr::get($errors, 'status'); ?> </p> </div> </div> <div class="control-group"> <label class="control-label">Вступ. взнос</label> <div class="controls"> <?php echo FORM::select('entrance_fee', array('Y' => 'Да', 'N' => 'Нет'), Arr::get($values, 'entrance_fee', 'N')); ?> <p class="help-block" style="color: red;"><?php echo Arr::get($errors, 'entrance_fee'); ?> </p> </div> </div> <div class="form-actions"> <?php echo FORM::hidden('id', Arr::get($values, 'id')); ?> <?php echo FORM::submit(NULL, 'Сохранить', array('class' => 'btn btn-success btn-large'));