<button type="button" class="btn btn-primary plan-add" data-toggle="modal" data-target="#modalplan"> <?php echo __('Add a plan'); ?> </button> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['to_top']['key'], __('Bring to top Ad'), array('class' => 'control-label col-sm-4', 'for' => $forms['to_top']['key'])); ?> <div class="col-sm-8"> <div class="onoffswitch"> <?php echo FORM::checkbox($forms['to_top']['key'], 1, (bool) $forms['to_top']['value'], array('placeholder' => __("TRUE or FALSE"), 'class' => 'onoffswitch-checkbox', 'id' => $forms['to_top']['key'], 'data-content' => '', 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => '')); ?> <?php echo FORM::label($forms['to_top']['key'], "<span class='onoffswitch-inner'></span><span class='onoffswitch-switch'></span>", array('class' => 'onoffswitch-label', 'for' => $forms['to_top']['key'])); ?> </div> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['pay_to_go_on_top']['key'], __('To top price'), array('class' => 'control-label col-sm-4', 'for' => $forms['pay_to_go_on_top']['key'])); ?> <div class="col-sm-8"> <div class="input-group"> <?php
?> > <div class="title">Сортировка по маркам авто</div> <div class="list"> <ul> <?php foreach ($cars as $id => $value) { ?> <?php $checked = (isset($car_id) and $car_id == $id) ? TRUE : FALSE; ?> <?php if (!trim($value['name'])) { $value['name'] = $value['name_ru']; } ?> <li><label <?php if ($checked) { echo 'class="active"'; } ?> ><?php echo FORM::checkbox('car[]', $id, $checked) . $value['name']; ?> </label></li> <?php } ?> </ul> </div> </div>
?> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['forums']['key'], __("Activates Forums"), array('class' => 'col-md-4 control-label', 'for' => $forms['forums']['key'])); ?> <div class="col-md-8"> <div class="onoffswitch"> <?php echo FORM::hidden($forms['forums']['key'], 0); ?> <?php echo FORM::checkbox($forms['forums']['key'], 1, (bool) $forms['forums']['value'], array('placeholder' => "TRUE or FALSE", 'class' => 'onoffswitch-checkbox', 'id' => $forms['forums']['key'], 'data-content' => __("Once set to TRUE, enables forums posts"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Activates Forums"))); ?> <?php echo FORM::label($forms['forums']['key'], "<span class='onoffswitch-inner'></span><span class='onoffswitch-switch'></span>", array('class' => 'onoffswitch-label', 'for' => $forms['forums']['key'])); ?> </div> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['sort_by']['key'], __('Sort by in listing'), array('class' => 'control-label col-sm-4', 'for' => $forms['sort_by']['key'])); ?> <div class="col-sm-8"> <?php echo FORM::select($forms['sort_by']['key'], array('title-asc' => __("Name (A-Z)"), 'title-desc' => __("Name (Z-A)"), 'price-asc' => __("Price (Low)"), 'price-desc' => __("Price (High)"), 'featured' => __("Featured"), 'published-asc' => __("Newest"), 'published-desc' => __("Oldest")), $forms['sort_by']['value'], array('placeholder' => $forms['sort_by']['value'], 'class' => 'tips form-control input-sm ', 'id' => $forms['sort_by']['key'], 'data-content' => __("Sort by in listing"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Sort by in listing")));
<div class="form-group"> <?php echo FORM::label($form['description']['id'], __('Description'), array('class' => 'control-label col-md-2', 'for' => $form['description']['id'])); ?> <div class="col-sm-9"> <?php echo FORM::textarea($form['description']['name'], $form['description']['value'], array('class' => 'form-control', 'id' => $form['description']['id'], 'data-editor' => 'html')); ?> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <div class="checkbox"> <label class="status"> <?php echo FORM::checkbox($form['status']['name'], 1, (bool) $form['status']['value']); ?> <?php echo __('Active'); ?> </label> </div> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <?php echo FORM::button('submit', __('Edit'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('oc-panel', array('controller' => 'blog', 'action' => 'update')))); ?> </div> </div>
?> <?php } ?> <div class="form-group"> <?php echo FORM::label($forms['active']['key'], __('Active'), array('class' => 'col-md-4 control-label', 'for' => $forms['active']['key'])); ?> <div class="col-md-8"> <div class="onoffswitch"> <?php echo FORM::hidden($forms['active']['key'], 0); ?> <?php echo FORM::checkbox($forms['active']['key'], 1, (bool) $forms['active']['value'], array('placeholder' => "TRUE or FALSE", 'class' => 'onoffswitch-checkbox', 'id' => $forms['active']['key'], 'data-content' => '', 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __('Activates affiliate system'))); ?> <?php echo FORM::label($forms['active']['key'], "<span class='onoffswitch-inner'></span><span class='onoffswitch-switch'></span>", array('class' => 'onoffswitch-label', 'for' => $forms['active']['key'])); ?> </div> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['cookie']['key'], __('Cookie Days'), array('class' => 'col-md-4 control-label', 'for' => $forms['cookie']['key'])); ?> <div class="col-md-8"> <?php echo FORM::input($forms['cookie']['key'], $forms['cookie']['value'], array('placeholder' => "90", 'class' => 'tips form-control', 'id' => $forms['cookie']['key'], 'data-content' => __("How many days lasts the tracking cookie"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("How many days lasts the tracking cookie"), 'data-rule-required' => 'true', 'data-rule-digits' => 'true'));
</div> <?php foreach ($config['providers'] as $api => $options) { ?> <div class="form-group"> <?php echo FORM::label($api, $api, array('class' => 'control-label col-sm-4', 'for' => $api)); ?> <div class="col-sm-8"> <div class="onoffswitch"> <?php echo FORM::hidden($api, 0); ?> <?php echo FORM::checkbox($api, 1, (bool) $options['enabled'], array('placeholder' => "", 'class' => 'onoffswitch-checkbox', 'id' => $api)); ?> <?php echo FORM::label($api, "<span class='onoffswitch-inner'></span><span class='onoffswitch-switch'></span>", array('class' => 'onoffswitch-label', 'for' => $api)); ?> </div> </div> </div> <?php if (isset($options['keys']['id'])) { ?> <div class="form-group"> <?php echo FORM::label($api . '_id_label', __('Id'), array('class' => 'control-label col-sm-4', 'for' => $api)); ?> <div class="col-sm-8">
<div class="form_error"><?php echo Message::show_once_error($errors, 'email'); ?> </div> </li> <li> <label class="lab"> </label> <textarea rows="7" cols="75" readonly="readonly"> <?php echo strip_tags(DB::select('text')->from('content_site')->where('url', '=', 'ustav')->execute()->get('text')); ?> </textarea> <br /> <div style="margin-left: 170px"> <?php echo FORM::checkbox('accept_rule', 1, FALSE) . __('f_accept_rule'); ?> </div> <div class="form_error"><?php echo Message::show_once_error(Arr::get($errors, '_external', array()), 'accept_rule'); ?> </div> </li> <li> <label class="lab"> </label> <?php echo FORM::submit('submit', __('f_continue'), array('class' => 's_button')); ?> </li> </ul> </div>
</ul> </div> </div> <div class="work_filter"> <div class="title">Сортировка по авто</div> <?php echo FORM::open('#') . FORM::hidden('city_id', $city_id, array('class' => 'city_id_search_by_work')) . FORM::hidden('work_id', $work_id, array('class' => 'work_id_search_by_work')) . FORM::hidden('district_id', $district_id, array('class' => 'district_id_search_by_work')) . FORM::hidden('metro_id', $metro_id, array('class' => 'metro_id_search_by_work')) . FORM::hidden('discount_id', $discount_id, array('class' => 'discount_id_search_by_work')) . FORM::close(); ?> <div class="cars_list"> <ul> <?php foreach ($cars as $id => $name) { ?> <li><?php echo FORM::checkbox('car[]', $id, FALSE, array('class' => 'search_cars', 'id' => 'car_' . $id, 'autocomplete' => 'off')); ?> <label for="car_<?php echo $id; ?> "><?php echo $name; ?> </label></li> <?php } ?> </ul> </div> </div>
echo FORM::label('captcha', "<span class='onoffswitch-inner'></span><span class='onoffswitch-switch'></span>", array('class' => 'onoffswitch-label', 'for' => 'captcha')); ?> </div> </div> </div> <div class="form-group"> <?php echo FORM::label('address', __('Address'), array('class' => 'control-label col-sm-4', 'for' => 'address')); ?> <div class="col-sm-8"> <div class="onoffswitch"> <?php echo FORM::hidden('address', 0); ?> <?php echo FORM::checkbox('address', 1, (bool) core::config('advertisement.address'), array('placeholder' => "", 'class' => 'onoffswitch-checkbox', '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."))); ?> <?php echo FORM::label('address', "<span class='onoffswitch-inner'></span><span class='onoffswitch-switch'></span>", array('class' => 'onoffswitch-label', 'for' => 'address')); ?> </div> </div> </div> <hr> <div class="form-group"> <div class="col-sm-8 col-sm-offset-4"> <?php echo FORM::button('submit', __('Save'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'settings', 'action' => 'form')) . '?define=cf')); ?> </div> </div>
/** * get the html tag code for a field for a custom field * @param string $name input name * @param array $options as defined * @param mixed $value value of the field, optional. * @param boolean $old =TRUE renders bs2 styles * @param boolean $inline renders inline form * @return string HTML */ public static function cf_form_tag($name, $options, $value = NULL, $old = FALSE, $inline = FALSE) { if ($options['display'] != 'hidden') { $label = FORM::label($name, isset($options['label']) ? $options['label'] : $name, array('class' => !$old ? 'control-label' : '', 'for' => $name)); } else { $label = ''; } if ($value === NULL) { $value = isset($options['default']) ? $options['default'] : NULL; } // dependent classes on type $class = 'form-control ' . 'cf_' . $options['display'] . '_fields data-custom '; switch ($options['display']) { case 'textarea': $class .= 'span6'; break; case 'checkbox': $class = 'cf_' . $options['display'] . '_fields data-custom'; break; case 'radio': $class = 'cf_' . $options['display'] . 'fields data-custom'; $required = (isset($options['required']) and $options['required'] == TRUE) ? 'required' : NULL; $data_categories = isset($options['categories']) ? json_encode($options['categories']) : NULL; $title = isset($options['tooltip']) ? $options['tooltip'] : NULL; break; default: $class .= " "; break; } $attributes = array('placeholder' => isset($options['label']) ? $options['label'] : $name, 'data-placeholder' => isset($options['label']) ? $options['label'] : $name, 'title' => isset($options['tooltip']) ? $options['tooltip'] : NULL, 'data-categories' => isset($options['categories']) ? json_encode($options['categories']) : NULL, 'class' => $class, 'id' => $name, (isset($options['required']) and $options['required'] == TRUE) ? 'required' : NULL); switch ($options['display']) { case 'select': $input = FORM::select($name, $options['options'], !is_array($value) ? $value : NULL, $attributes); break; case 'text': $input = FORM::input($name, $value, $attributes); break; case 'textarea': $input = FORM::textarea($name, $value, $attributes); break; case 'hidden': $input = FORM::hidden($name, $value, $attributes); break; case 'datetime': $attributes['data-datetime'] = "data-datetime"; $attributes['data-format'] = "yyyy-MM-dd hh:mm"; $input = FORM::input($name, $value, $attributes); break; case 'date': $attributes['data-date'] = "data-date"; $attributes['data-date-format'] = "yyyy-mm-dd"; $input = FORM::input($name, $value, $attributes); break; case 'checkbox': $checked = $value == 1 ? TRUE : FALSE; $input = ''; $label = '<b>' . $options['label'] . '</b>'; $input .= '<div class="checkbox"><label>' . $value . FORM::hidden($name, 0) . FORM::checkbox($name, NULL, $checked, $attributes) . '</label></div>'; break; case 'radio': $input = ''; $label = '<b>' . $options['label'] . '</b>'; $index = 0; foreach ($options['options'] as $id => $radio_name) { $checked = $value == $index ? TRUE : FALSE; if ($id !== "") { $input .= '<div class="radio"><label>' . $radio_name . Form::radio($name, $index, $checked, $attributes) . '</label></div>'; } $index++; } break; case 'string': default: $input = FORM::input($name, $value, $attributes); break; } if (!$old) { !$inline ? $is_inline = "class='col-md-5 col-sm-8 col-xs-11'" : ($is_inline = ""); $out = '<div ' . $is_inline . '>' . $label . $input . '</div>'; } else { $out = $label . '<div>' . $input . '</div>'; } return $out; }
echo FORM::label($forms['number_of_orders']['key'], "<span class='onoffswitch-inner'></span><span class='onoffswitch-switch'></span>", array('class' => 'onoffswitch-label', 'for' => $forms['number_of_orders']['key'])); ?> </div> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['qr_code']['key'], __("Show QR code"), array('class' => 'col-md-4 control-label', 'for' => $forms['qr_code']['key'])); ?> <div class="col-md-8"> <div class="onoffswitch"> <?php echo FORM::hidden($forms['qr_code']['key'], 0); ?> <?php echo FORM::checkbox($forms['qr_code']['key'], 1, (bool) $forms['qr_code']['value'], array('placeholder' => "TRUE or FALSE", 'class' => 'onoffswitch-checkbox', 'id' => $forms['qr_code']['key'], 'data-content' => __("Show QR code in Product"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Show QR code"))); ?> <?php echo FORM::label($forms['qr_code']['key'], "<span class='onoffswitch-inner'></span><span class='onoffswitch-switch'></span>", array('class' => 'onoffswitch-label', 'for' => $forms['qr_code']['key'])); ?> </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 echo FORM::button('submit', 'Update', array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'settings', 'action' => 'product'))));
<?php defined('SYSPATH') or die('No direct script access.'); $company_name = Arr::get($values, 'company_name'); echo Message::show_errors($errors); echo FORM::open($url); ?> <fieldset style="width: 450px"> <legend>Параметры страницы</legend> <p>Заголовок</p> <?php echo FORM::input('title', Arr::get($values, 'title')); ?> <p>Статус страницы</p> <?php echo FORM::checkbox('active', 1, (bool) Arr::get($values, 'active', FALSE)); ?> <?php if ($company_name) { ?> <p>Компания: <?php echo $company_name; ?> </p> <?php } ?> </fieldset> <fieldset>
?> </a> <?php echo FORM::open(NULL); if ($city_id) { echo FORM::hidden('city_id', $city_id); } ?> <div class="hidden_inputs"> <?php echo FORM::hidden('district_id', $district_id); echo FORM::hidden('metro_id', $metro_id); if ($type == 'auto') { echo FORM::checkbox('car[]', $car_id, TRUE); } elseif ($type == 'work') { echo FORM::checkbox('work[]', $work_id, TRUE); } ?> </div> Географические параметры поиска: <br /> <div class="search_info"> <div class="city">город <strong><?php echo $city->name; ?> </strong></div> <div class="district"><?php if (array_key_exists($district_id, $districts)) { echo 'округ <strong>' . $districts[$district_id]->name . '</strong>'; } ?> </div>
<div class="alert alert-block alert-error fade in"> <?php echo HTML::anchor('admin/services', '×', array('class' => 'close')); ?> <h4 class="alert-heading">Удаление компании <?php echo $full_name; ?> </h4> <p>Вы действительно хотите удалить компанию <?php echo $full_name; ?> со всеми его параметрами (акции, новости, вакансии, отзывы)?</p> <p> <label> <?php echo FORM::checkbox('send_notice', 1, FALSE, array('class' => 'send-notice', 'style' => 'display: inline;')); ?> Отправить уведомление о удалении </label> </p> <p class="p-cause disabled"> <strong>Причина удаления:</strong> <br /> <span style="font-size: 12px;">если не вписать причину, отправится то что указано по умолчанию</span><br /> <?php echo FORM::textarea('delete_cause', NULL, array('class' => 'delete-cause disabled span5', 'placeholder' => $company_deleting_cause, 'disabled' => 'disabled', 'cols' => 60)); ?> </p> <p> <?php echo FORM::submit('submit', 'Удалить', array('class' => 'btn btn-danger small')) . ' ' . FORM::submit('cancel', 'Отмена', array('class' => 'btn small')); ?>
echo __('General Configuration'); ?> </h3></div> <div class="panel-body"> <div class="form-horizontal" id="default-settings"> <div class="form-group"> <?php echo FORM::label('map_active', __('Map on homepage'), array('class' => 'control-label col-sm-4', 'for' => 'map_active')); ?> <div class="col-sm-8"> <div class="onoffswitch"> <?php echo FORM::hidden('map_active', 0); ?> <?php echo FORM::checkbox('map_active', 1, (bool) $map_active, array('placeholder' => "", 'class' => 'onoffswitch-checkbox', 'id' => 'map_active', 'data-original-title' => __("Map on homepage"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-content' => __("Disables generated map on homepage"))); ?> <?php echo FORM::label('map_active', "<span class='onoffswitch-inner'></span><span class='onoffswitch-switch'></span>", array('class' => 'onoffswitch-label', 'for' => 'map_active')); ?> </div> </div> </div> <div class="form-group"> <label class="control-label col-sm-4" for="bg_color"> <?php echo __('Background Color'); ?> </label> <div class="col-sm-8"> <input type="text" name="bg_color" class="form-control color {hash:true, adjust:false}" value="#FFFFFF" onchange="drawVisualization();">
/** * get field html code for a custom field * @param string $name input name * @param array $options as defined * @param mixed $value value of the field, optional. * @return string HTML */ public static function cf_form_field($name, $options, $value = NULL) { if ($value === NULL) { $value = isset($options['default']) ? $options['default'] : NULL; } // dependent classes on type $class = 'form-control ' . 'cf_' . $options['display'] . '_fields data-custom '; switch ($options['display']) { case 'checkbox': $class = 'cf_' . $options['display'] . '_fields data-custom'; break; case 'radio': $class = 'cf_' . $options['display'] . 'fields data-custom'; $required = (isset($options['required']) and $options['required'] == TRUE) ? 'required' : NULL; $data_categories = isset($options['categories']) ? json_encode($options['categories']) : NULL; $title = isset($options['tooltip']) ? $options['tooltip'] : NULL; break; default: $class .= " "; break; } $attributes = array('placeholder' => isset($options['placeholder']) ? $options['placeholder'] : (isset($options['label']) ? $options['label'] : $name), 'data-placeholder' => isset($options['data-placeholder']) ? $options['data-placeholder'] : (isset($options['label']) ? $options['label'] : $name), 'title' => isset($options['tooltip']) ? $options['tooltip'] : NULL, 'data-categories' => isset($options['categories']) ? json_encode($options['categories']) : NULL, 'class' => $class, 'id' => $name, (isset($options['required']) and $options['required'] == TRUE) ? 'required' : NULL); switch ($options['display']) { case 'select': $input = FORM::select($name, $options['options'], !is_array($value) ? $value : NULL, $attributes); break; case 'text': $input = FORM::input($name, $value, $attributes); break; case 'textarea': $input = FORM::textarea($name, $value, $attributes); break; case 'hidden': $input = FORM::hidden($name, $value, $attributes); break; case 'date': $attributes['data-date'] = "data-date"; $attributes['data-date-format'] = "yyyy-mm-dd"; $input = FORM::input($name, $value, $attributes); break; case 'checkbox': $checked = isset($value); // value can be 1 or 'on' $input = '<div class="checkbox"><label>' . FORM::checkbox($name, NULL, $checked, $attributes) . '</label></div>'; break; case 'radio': $input = ''; $index = 0; foreach ($options['options'] as $id => $radio_name) { $checked = $value == $index ? TRUE : FALSE; if ($id !== "") { $input .= '<div class="radio"><label>' . Form::radio($name, $index, $checked, $attributes) . ' ' . $radio_name . '</label></div>'; } $index++; } break; case 'email': $attributes['type'] = 'email'; $input = FORM::input($name, $value, $attributes); break; case 'string': default: $input = FORM::input($name, $value, $attributes); break; } return $input; }
<button name="map_mode[]" value="<?php echo $city->img_metro_map; ?> " class="btn btn-small">Оригинал (С надписями)</button> </div> <div class="alert alert-success" style="display: none;"></div> </div> <div class="list"> <div class="controls"> <?php foreach ($metro_stations as $m) { ?> <div class="item" style="position: relative; height: 30px;"> <label class="checkbox" style="width: 150px; position: absolute;"> <?php echo FORM::checkbox('metro[]', $m->id, FALSE, array('data-metro-name' => $m->name)); ?> <?php echo $m->name; ?> </label> <div class="btn-group" data-toggle="buttons-radio" style="position: absolute; right: 0px;"> <button name="drag_mode[]" data-metro-id="<?php echo $m->id; ?> " class="btn btn-small active" value="outline">F</button> <button name="drag_mode[]" data-metro-id="<?php echo $m->id; ?> " class="btn btn-small" value="inline">I</button> </div>
?> </label> <div class="controls" <?php if ($horizontal) { echo 'style="clear: both; margin-left: 0;"'; } ?> > <?php foreach ($check_boxes as $name => $value) { ?> <?php $i++; ?> <label class="<?php echo $checkbox_class; ?> "> <?php echo FORM::checkbox($name, $value[$config['value_key']], (bool) Arr::get($values, $name, FALSE)) . Arr::get($value, $config['label_key'], $config['default_label_text'] . $i); ?> </label> <span class="help-block"><?php echo Arr::get($errors, $name); ?> </span> <?php } ?> </div> </div>
?> " method="post"> <div class="panel panel-default"> <div class="panel-body"> <div class="form-horizontal"> <div class="form-group"> <?php echo FORM::label('css_active', __('Switch off custom CSS'), array('class' => 'control-label col-sm-4', 'for' => 'css_active')); ?> <div class="col-sm-8"> <div class="onoffswitch"> <?php echo FORM::hidden('css_active', 0); ?> <?php echo FORM::checkbox('css_active', 1, (bool) $css_active, array('placeholder' => "", 'class' => 'onoffswitch-checkbox', 'id' => 'css_active', 'data-original-title' => __("Switch off custom CSS"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-content' => __("Require only the logged in users to post."))); ?> <?php echo FORM::label('css_active', "<span class='onoffswitch-inner'></span><span class='onoffswitch-switch'></span>", array('class' => 'onoffswitch-label', 'for' => 'css_active')); ?> </div> </div> </div> <div class="form-group"> <label class="control-label col-sm-4"><?php echo __('CSS'); ?> </label> <div class="col-sm-8"> <textarea rows="30" class="col-sm-9" name="css"><?php
echo Message::show_error($errors, 'email'); ?> </li> <li> <label>Текст отзыва</label> <?php echo FORM::textarea('text', Arr::get($values, 'text'), array('style' => 'width: 300px;')); ?> <?php echo Message::show_error($errors, 'text'); ?> </li> <li> <label></label> <?php echo FORM::checkbox('antibot', '7', FALSE) . 'Подверждаю отправку отзыва'; ?> <?php echo Message::show_error($errors, '_external.antibot'); ?> </li> <li> <label></label> <?php echo FORM::submit(NULL, 'Отправить', array('class' => 'submit')); ?> </li> </ul> <?php echo FORM::close(); ?>
<div class="controls"> <?php echo FORM::input('title', Arr::get($values, 'title'), array('class' => 'span7')); ?> </div> </div> <?php if (isset($mode) and $mode == 'edit') { ?> <div class="control-group"> <label class="control-label">Прочее</label> <div class="controls"> <label class="checkbox"> <?php echo FORM::checkbox('save_status', 1, (bool) Arr::get($values, 'save_status', TRUE)); ?> Сохранить статусы прочитан/непрочитан для уже отправленных </label> <p class="help-block">Если убрать галочку уведомление будет иметь статус непрочитан у всех<br />Всем будут по новой отправленна рассылка на почту</p> </div> </div> <?php } ?> </fieldset> <fieldset> <legend>Текст уведомления</legend> <div class="clearfix"> <?php
?> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['logbee']['key'], "<a target='_blank' href='http://www.logbee.com/'>Logbee</a>", array('class' => 'control-label col-sm-4', 'for' => $forms['logbee']['key'])); ?> <div class="col-sm-8"> <div class="onoffswitch"> <?php echo FORM::hidden($forms['logbee']['key'], 0); ?> <?php echo FORM::checkbox($forms['logbee']['key'], 1, (bool) $forms['logbee']['value'], array('placeholder' => "", 'class' => 'onoffswitch-checkbox', 'id' => $forms['logbee']['key'], 'data-original-title' => "Logbee", 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-content' => "Integrates your site with Logbee")); ?> <?php echo FORM::label($forms['logbee']['key'], "<span class='onoffswitch-inner'></span><span class='onoffswitch-switch'></span>", array('class' => 'onoffswitch-label', 'for' => $forms['count_visits']['key'])); ?> </div> </div> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><?php echo "<a target='_blank' href='http://docs.yclas.com/how-to-configure-Google-Map-Settings'>" . __("Google Maps Settings") . "</a>";
?> <div class="category_open"> <?php echo $category_name; ?> </div> <?php } ?> <div class="works_list"> <ul> <?php foreach ($works as $id => $name) { ?> <li><?php echo FORM::checkbox('work[]', $id, FALSE, array('class' => 'search_works', 'id' => 'work_' . $id, 'autocomplete' => 'off')); ?> <label for="work_<?php echo $id; ?> "><?php echo $name; ?> </label></li> <?php } ?> </ul> </div> <?php }
<?php if ($service->name) { ?> <li><label style="width: 300px;"><?php echo FORM::checkbox('', 0, TRUE); echo $service->type == 1 ? 'Автосервису' : 'Магазину автозапчастей'; ?> <?php echo $service->name; ?> </label></li> <?php } ?> <li><label style="width: 300px;"><?php echo FORM::checkbox('for_service_has_car', 1, (bool) Arr::get($values, 'for_service_has_car')); ?> Предоставлящим ремонт указанной модели автомобиля</label></li> <li><label style="width: 300px;"><?php echo FORM::checkbox('for_service_address', 1, (bool) Arr::get($values, 'for_service_address')); ?> Только из моего города</label></li> <li><?php echo FORM::submit(NULL, __('f_send'), array('class' => 'submit')); ?> </li> </ul> </fieldset> <?php echo FORM::close();