</div> <div class="form-group"> <?php echo FORM::label('captcha', __('Captcha'), array('class' => 'control-label col-sm-2', 'for' => 'captcha')); ?> <div class="col-sm-4"> <?php echo FORM::select('captcha', array(FALSE => "FALSE", TRUE => "TRUE"), core::config('advertisement.captcha'), array('placeholder' => "http://foo.com/", 'class' => 'tips form-control', 'id' => 'captcha', 'data-content' => __("Enables Captcha"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Captcha appears in the form."))); ?> </div> </div> <div class="form-group"> <?php echo FORM::label('address', __('Address'), array('class' => 'control-label col-sm-2', 'for' => 'address')); ?> <div class="col-sm-4"> <?php echo FORM::select('address', array(FALSE => "FALSE", TRUE => "TRUE"), core::config('advertisement.address'), array('placeholder' => "", 'class' => 'tips form-control', 'id' => 'address', 'data-content' => __("Address field"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Displays the field Address in the Ad form."))); ?> </div> </div> <div class="form-actions"> <?php echo FORM::button('submit', 'Update', array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'settings', 'action' => 'form')) . '?define=cf')); ?> </div> </fieldset>
</div> </div> <div class="form-group"> <?php echo FORM::label($forms['smtp_user']['key'], __('Smtp user'), array('class' => 'control-label col-sm-4', 'for' => $forms['smtp_user']['key'])); ?> <div class="col-sm-8"> <?php echo FORM::input($forms['smtp_user']['key'], $forms['smtp_user']['value'], array('placeholder' => "", 'class' => 'tips form-control', 'id' => $forms['smtp_user']['key'], 'data-content' => '', 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => '')); ?> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['smtp_pass']['key'], __('Smtp password'), array('class' => 'control-label col-sm-4', 'for' => $forms['smtp_pass']['key'])); ?> <div class="col-sm-8"> <?php echo FORM::input($forms['smtp_pass']['key'], $forms['smtp_pass']['value'], array('placeholder' => "", 'type' => "password", 'class' => 'tips form-control', 'id' => $forms['smtp_pass']['key'], 'data-content' => '', 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => '')); ?> </div> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-body"> <div class="col-sm-8 col-sm-offset-4">
echo FORM::label('message', __('Message'), array('class' => 'control-label', 'for' => 'message')); ?> <?php echo FORM::textarea('message', "", array('class' => 'form-control', 'placeholder' => __('Message'), 'name' => 'message', 'id' => 'message', 'rows' => 2, 'required')); ?> </div> </div> <!-- file to be sent--> <?php if (core::config('advertisement.upload_file')) { ?> <div class="form-group"> <div class="col-xs-10"> <?php echo FORM::label('file', __('File'), array('class' => 'control-label', 'for' => 'file')); ?> <?php echo FORM::file('file', array('placeholder' => __('File'), 'class' => 'input-xlarge', 'id' => 'file')); ?> </div> </div> <?php } ?> <?php if (core::config('advertisement.captcha') != FALSE) { ?> <div class="form-group"> <div class="col-xs-10">
$cat_order = $widget->cat_order_items; if (is_array($cat_order)) array_walk($cat_order , 'lili_search', $widget->cat_items);?> </select> </div> </div> <?endif?> <!-- end categories/ --> <!-- locations --> <?if($widget->loc_items !== NULL):?> <?if(count($widget->loc_items) > 1 AND core::config('advertisement.location') != FALSE):?> <div class="form-group"> <div class="col-xs-12"> <?php echo FORM::label('location_widget_search', __('Locations'), array('class' => '', 'for' => 'location_widget_search')); ?> <select <?php echo core::config('general.search_multi_catloc') ? 'multiple' : NULL; ?> name="location<?php echo core::config('general.search_multi_catloc') ? '[]' : NULL; ?> " id="location_widget_search" class="form-control" data-placeholder="<?php echo __('Locations'); ?> "> <option></option> <?function lolo_search($item, $key,$locs){?> <?if (core::config('general.search_multi_catloc')):?> <option value="<?php
</div> </div> <div class="form-group"> <div class="col-sm-12"> <?php echo FORM::label('latitude', __('Latitude'), array('class' => 'control-label', 'for' => 'latitude')); ?> <?php echo FORM::input('latitude', core::request('latitude'), array('placeholder' => __('Longitude'), 'class' => 'form-control', 'id' => 'latitude')); ?> </div> </div> <div class="form-group"> <div class="col-sm-12"> <?php echo FORM::label('longitude', __('Longitude'), array('class' => 'control-label', 'for' => 'longitude')); ?> <?php echo FORM::input('longitude', core::request('longitude'), array('placeholder' => __('Longitude'), 'class' => 'form-control', 'id' => 'longitude')); ?> </div> </div> <div class="form-group"> <div class="col-sm-12"> <?php echo FORM::button('submit', __('Create'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'location', 'action' => 'create')))); ?> </div> </div> </fieldset> <?php
<div class="form-group"> <?php echo FORM::label($forms['watermark_position']['id'], __('Watermark position'), array('class' => 'control-label', 'for' => $forms['watermark_position']['id'])); ?> <?php echo FORM::select($forms['watermark_position']['key'], array(0 => "Center", 1 => "Bottom", 2 => "Top"), $forms['watermark_position']['value'], array('placeholder' => $forms['watermark_position']['value'], 'class' => 'tips form-control', 'id' => $forms['watermark_position']['id'])); ?> </div> <hr> <div class="form-group"> <?php echo FORM::label($forms['disallow_nudes']['id'], __('Disallow nude pictures'), array('class' => 'control-label', 'for' => $forms['disallow_nudes']['id'])); ?> <div class="radio radio-primary"> <?php echo Form::radio($forms['disallow_nudes']['key'], 1, (bool) $forms['disallow_nudes']['value'], array('id' => $forms['disallow_nudes']['key'] . '1')); ?> <?php echo Form::label($forms['disallow_nudes']['key'] . '1', __('Enabled')); ?> <?php echo Form::radio($forms['disallow_nudes']['key'], 0, !(bool) $forms['disallow_nudes']['value'], array('id' => $forms['disallow_nudes']['key'] . '0')); ?> <?php echo Form::label($forms['disallow_nudes']['key'] . '0', __('Disabled')); ?> </div>
?> </div> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['adblock']['id'], __('Adblock Detection'), array('class' => 'control-label col-sm-4', 'for' => $forms['adblock']['id'])); ?> <div class="col-sm-8"> <div class="onoffswitch"> <?php echo Form::checkbox($forms['adblock']['key'], 1, (bool) $forms['adblock']['value'], array('placeholder' => __("TRUE or FALSE"), 'class' => 'onoffswitch-checkbox', 'id' => $forms['adblock']['id'], 'data-content' => __("Once set to TRUE, enables adblock detection"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Adblock Detection"))); ?> <?php echo FORM::label($forms['adblock']['id'], "<span class='onoffswitch-inner'></span><span class='onoffswitch-switch'></span>", array('class' => 'onoffswitch-label', 'for' => $forms['adblock']['id'])); ?> <?php echo FORM::hidden($forms['adblock']['key'], 0); ?> </div> </div> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-body"> <div class="col-sm-8 col-sm-offset-4"> <?php
</div> </div> <div class="form-group"> <?php echo FORM::label($forms['smtp_pass']['key'], __('Smtp password'), array('class' => 'control-label col-sm-3', 'for' => $forms['smtp_pass']['key'])); ?> <div class="col-sm-4"> <?php echo FORM::input($forms['smtp_pass']['key'], $forms['smtp_pass']['value'], array('placeholder' => "", 'type' => "password", 'class' => 'tips form-control', 'id' => $forms['smtp_pass']['key'], 'data-content' => '', 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => '')); ?> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['new_ad_notify']['key'], __('Notify me on new ad'), array('class' => 'control-label col-sm-3', 'for' => $forms['new_ad_notify']['key'])); ?> <div class="col-sm-4"> <?php echo FORM::select($forms['new_ad_notify']['key'], array(FALSE => 'FALSE', TRUE => 'TRUE'), $forms['new_ad_notify']['value'], array('placeholder' => "TRUE or FALSE", 'class' => 'tips form-control', 'id' => $forms['new_ad_notify']['key'], 'data-content' => '', 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => '')); ?> </div> </div> <?php echo FORM::button('submit', 'Update', array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'settings', 'action' => 'email')))); ?> </fieldset> </div><!--end col-md-10-->
</div> </div> <?endif?> <form class="form-horizontal" enctype="multipart/form-data" method="post" action="<?php echo Route::url('oc-panel', array('controller' => 'category', 'action' => 'icon', 'id' => $form->object->id_category)); ?> "> <?php echo Form::errors(); ?> <div class="form-group"> <div class="col-sm-12"> <?php echo FORM::label('category_icon', __('Select from files'), array('for' => 'category_icon')); ?> <input type="file" name="category_icon" class="form-control" id="category_icon" /> </div> </div> <button type="submit" class="btn btn-primary"><?php echo __('Submit'); ?> </button> <?if (( $icon_src = $category->get_icon() )!==FALSE ):?> <button type="submit" class="btn btn-danger index-delete index-delete-inline" onclick="return confirm('<?php echo __('Delete icon?'); ?>
<div class="form-group"> <?php echo FORM::label('message', __('Message'), array('class' => 'col-md-2 control-label', 'for' => 'message')); ?> <div class="col-md-6"> <?php echo FORM::textarea('message', Core::post('subject'), array('class' => 'form-control', 'placeholder' => __('Message'), 'name' => 'message', 'id' => 'message', 'rows' => 2, 'required')); ?> </div> </div> <?php if (core::config('advertisement.captcha') != FALSE) { ?> <div class="form-group"> <?php echo FORM::label('captcha', __('Captcha'), array('class' => 'col-md-2 control-label', 'for' => 'captcha')); ?> <div class="col-md-4"> <?php if (Core::config('general.recaptcha_active')) { ?> <?php echo Captcha::recaptcha_display(); ?> <div id="recaptcha1"></div> <?php } else { ?> <?php echo captcha::image_tag('contact'); ?>
<dl class="form-group"> <dt><?php echo FORM::label('message', _e('Message'), array('class' => 'control-label', 'for' => 'message')); ?> </dt> <dd><?php echo FORM::textarea('message', Core::post('subject'), array('class' => 'form-control', 'placeholder' => __('Message'), 'name' => 'message', 'id' => 'message', 'rows' => 4, 'required')); ?> </dd> </dl> <?php if (core::config('advertisement.captcha') != FALSE) { ?> <dl class="capt form-group clearfix"> <?php echo FORM::label('captcha', _e('Captcha'), array('class' => 'hidden', 'for' => 'captcha')); ?> <?php if (Core::config('general.recaptcha_active')) { ?> <?php echo Captcha::recaptcha_display(); ?> <div id="recaptcha1"></div> <?php } else { ?> <dt> <?php echo captcha::image_tag('contact'); ?>
<?php } ?> </div> </div> </div> <div class="form-group"> <?php if (core::config('advertisement.num_images') > count($images)) { ?> <!-- permition to add more images--> <div class="col-xs-12"> <hr> <br> <?php echo FORM::label('images', _e('Add image'), array('class' => '', 'for' => 'images0')); ?> <br> <div class="fileinput fileinput-new" data-provides="fileinput"> <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;"></div> <div> <span class="btn btn-default btn-file"> <span class="fileinput-new"><?php echo _e('Select'); ?> </span> <span class="fileinput-exists"><?php echo _e('Edit'); ?> </span> <input type="file" name="image0" id="fileInput0" accept="<?php
} ?> <?php } ?> </div> </div> </div> <div class="form-group"> <?php if (core::config('advertisement.num_images') > count($images)) { ?> <!-- permition to add more images--> <div class="col-sm-8"> <?php echo FORM::label('images', __('Images'), array('class' => '', 'for' => 'images0')); ?> <input type="file" name="image0" id="fileInput0" accept="<?php echo 'image/' . str_replace(',', ', image/', rtrim(core::config('image.allowed_formats'), ',')); ?> "> </div> <?php } ?> </div> <div class="page-header"></div> <?php echo FORM::button('submit_btn', in_array(core::config('general.moderation'), Model_Ad::$moderation_status) ? __('Publish') : __('Update'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'myads', 'action' => 'update', 'id' => $ad->id_ad)))); ?> </fieldset>
?> <?php echo __('Quick location creator.'); ?> </span> <p><?php echo __('Add names for multiple locations, for each one push enter.'); ?> </p> <?php echo FORM::open(Route::url('oc-panel', array('controller' => 'location', 'action' => 'multy_locations' . '?id_location=' . Core::get('id_location', 1))), array('class' => 'form-horizontal', 'role' => 'form', 'enctype' => 'multipart/form-data')); ?> <div class="form-group"> <?php echo FORM::label('multy_locations', __('Name') . ':', array('class' => 'col-sm-3 control-label', 'for' => 'multy_locations')); ?> <div class="col-sm-8"> <?php echo FORM::input('multy_locations', '', array('placeholder' => __('Hit enter to confirm'), 'class' => 'form-control', 'id' => 'multy_locations', 'type' => 'text', 'data-role' => 'tagsinput')); ?> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-8"> <?php echo FORM::button('submit', __('Send'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'location', 'action' => 'multy_locations' . '?id_location=' . Core::get('id_location', 1))))); ?> </div> </div> <?php
} array_walk($order_categories, 'lili', $categories); ?> </select> </div> </div> <?php } ?> <?php if (core::config('advertisement.location') != FALSE and count($locations) > 1) { ?> <div class="form-group"> <?php echo FORM::label('location', _e('Location'), array('class' => '', 'for' => 'location', 'multiple')); ?> <div class="control mr-30"> <select <?php echo core::config('general.search_multi_catloc') ? 'multiple' : NULL; ?> name="location<?php echo core::config('general.search_multi_catloc') ? '[]' : NULL; ?> " id="location" class="form-control" data-placeholder="<?php echo __('Location'); ?> "> <?php if (!core::config('general.search_multi_catloc')) {
</div> </div> <div class="form-group"> <?php echo FORM::label($forms['banned_words']['key'], __('Baned Words'), array('class' => 'control-label col-sm-3', 'for' => $forms['banned_words']['key'])); ?> <div class="col-sm-4"> <?php echo FORM::input($forms['banned_words']['key'], $forms['banned_words']['value'], array('placeholder' => "word1,word2,word3", 'class' => 'tips form-control', 'id' => $forms['banned_words']['key'], 'data-content' => __("Baned words are separated with coma (,)"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("You need to write your baned words enable the service."))); ?> </div> </div> <div class="form-group"> <?php echo FORM::label($forms['banned_words_replacement']['key'], __('Baned Words Replacement'), array('class' => 'control-label col-sm-3', 'for' => $forms['banned_words_replacement']['key'])); ?> <div class="col-sm-4"> <?php echo FORM::input($forms['banned_words_replacement']['key'], $forms['banned_words_replacement']['value'], array('placeholder' => "xxx", 'class' => 'tips form-control', 'id' => $forms['banned_words_replacement']['key'], 'data-content' => __("Replacement of a banedword"), 'data-trigger' => "hover", 'data-placement' => "right", 'data-toggle' => "popover", 'data-original-title' => __("Baned word replacement replaces selected array with string that you provided."))); ?> </div> </div> <?php echo FORM::button('submit', 'Update', array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'settings', 'action' => 'form')))); ?> </fieldset> <?php
<?php } ?> <form class="form-horizontal" enctype="multipart/form-data" method="post" action="<?php echo Route::url('oc-panel', array('controller' => 'location', 'action' => 'icon', 'id' => $form->object->id_location)); ?> "> <?php echo Form::errors(); ?> <div class="form-group"> <div class="col-sm-12"> <?php echo FORM::label('location_icon', __('Select from files'), array('for' => 'location_icon')); ?> <input type="file" name="location_icon" class="form-control" id="location_icon" /> </div> </div> <button type="submit" class="btn btn-primary"><?php echo __('Submit'); ?> </button> <?php if (($icon_src = $location->get_icon()) !== FALSE) { ?> <button type="submit" class="btn btn-danger index-delete index-delete-inline" onclick="return confirm('<?php
?> <div class="col-sm-8"> <?php echo FORM::input($api . '_key', $options['keys']['key']); ?> </div> </div> <?php } ?> <?php if (isset($options['keys']['secret'])) { ?> <div class="form-group"> <?php echo FORM::label($api . '_secret_label', __('secret'), array('class' => 'control-label col-sm-4', 'for' => $api)); ?> <div class="col-sm-8"> <?php echo FORM::input($api . '_secret', $options['keys']['secret']); ?> </div> </div> <?php } ?> <hr> <?php } ?>
<div class="form-group"> <?php echo FORM::label('featured', __('Feature product'), array('class' => 'col-md-12 ', 'for' => 'featured')); ?> <div class="col-md-8"> <div class="input-group"> <input type="text" size="16" id="featured" name="featured" value="" class="form-control" data-date="" data-date-format="yyyy-mm-dd"> <div class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></div> </div> </div> </div> <div class="form-group"> <?php echo FORM::label('email_purchase_notes', __('Purchase notes, sent via email'), array('class' => 'col-md-12 ', 'for' => 'email_purchase_notes', 'spellcheck' => TRUE)); ?> <div class="col-md-12"> <?php echo FORM::textarea('email_purchase_notes', Request::current()->post('email_purchase_notes'), array('class' => 'form-control', 'name' => 'email_purchase_notes', 'id' => 'email_purchase_notes', 'rows' => 10)); ?> </div> </div> </div> </div> </div> <!-- PRODUCT FILES --> <div class="clearfix"></div> <div class="col-md-12"> <div class="panel panel-primary product-panel"> <div class="panel-heading">
<div class="col-sm-4"> <div class="input-group"> <?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>
echo __('Quick category creator.'); ?> </span> <div class="clearfix"></div> <?php echo __('Add names for multiple categories, for each one push enter.'); ?> <div class="clearfix"></div><br> <?php echo FORM::open(Route::url('oc-panel', array('controller' => 'category', 'action' => 'multy_categories')), array('class' => 'form-inline', 'role' => 'form', 'enctype' => 'multipart/form-data')); ?> <div class="form-group"> <div class=""> <?php echo FORM::label('multy_categories', __('Name') . ':', array('class' => 'control-label', 'for' => 'multy_categories')); ?> <?php echo FORM::input('multy_categories', '', array('placeholder' => __('Hit enter to confirm'), 'class' => 'form-control', 'id' => 'multy_categories', 'type' => 'text', 'data-role' => 'tagsinput')); ?> </div> </div> <div class="clearfix"></div> <?php echo FORM::button('submit', __('Send'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'category', 'action' => 'multy_categories')))); ?> <?php echo FORM::close(); ?> </div> </div>
<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 $css_content; ?> </textarea>
</div> <div class="form-group"> <?php echo FORM::label('description', __('Description'), array('class' => 'col-md-3 control-label', 'for' => 'description')); ?> <div class="col-md-7"> <?php echo FORM::textarea('description', $topic->description, array('class' => 'form-control', 'id' => 'description')); ?> </div> </div> <div class="form-group"> <?php echo FORM::label('seotitle', __('Seotitle'), array('class' => 'col-md-3 control-label', 'for' => 'seotitle')); ?> <div class="col-md-5"> <?php echo FORM::input('seotitle', $topic->seotitle, array('placeholder' => __('Seotitle'), 'class' => '', 'id' => 'seotitle')); ?> </div> </div> <div class="form-group"> <div class="col-md-offset-3 col-sm-9"> <div class="checkbox"> <label> <input type="checkbox" name="status" <?php echo $topic->status == Model_Post::STATUS_ACTIVE ? 'checked="checked"' : ''; ?>
<div class="form-group"> <label class="control-label col-sm-1"><?php echo __('Url'); ?> </label> <div class="col-sm-4"> <input class="form-control" type="url" id="url" name="url" value="<?php echo Core::post('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"> <select name="target" id="target" class="form-control" REQUIRED> <option>_self</option> <option>_blank</option> <option>_parent</option> <option>_top</option> </select> </div> </div> <div class="form-group"> <label class="control-label col-sm-1"><a target="_blank" href="http://getbootstrap.com/2.3.2/base-css.html#icons"><?php echo __('Icon'); ?>
<?php echo FORM::hidden($form['seotitle']['name'], $form['seotitle']['value']); ?> <div class="form-group"> <?php echo FORM::label($form['title']['id'], __('Title'), array('class' => 'control-label col-md-2', 'for' => $form['title']['id'])); ?> <div class="col-sm-4"> <?php echo FORM::input($form['title']['name'], $form['title']['value'], array('placeholder' => __('Title'), 'class' => 'form-control', 'id' => $form['title']['id'], 'required')); ?> </div> </div> <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
<?php $cf_name = 'cf_' . $name; ?> <?php if ($field['type'] == 'select' or $field['type'] == 'radio') { $select = array('' => $field['label']); foreach ($field['values'] as $select_name) { $select[$select_name] = $select_name; } } else { $select = $field['values']; } ?> <div class="col-xs-12"> <?php echo FORM::label('cf_' . $name, $field['label'], array('for' => 'cf_' . $name)); ?> <?php echo Form::cf_form_field('cf_' . $name, array('display' => $field['type'], 'label' => $field['label'], 'tooltip' => isset($field['tooltip']) ? $field['tooltip'] : "", 'default' => $field['values'], 'options' => !is_array($field['values']) ? $field['values'] : $select), core::get('cf_' . $name), FALSE, TRUE); ?> </div> </div> <?php } ?> <?php } ?> <?php }
<?php if ($form_show['captcha'] != FALSE) { ?> <div class="form-group"> <div class="col-md-4"> <?php if (Core::config('general.recaptcha_active')) { ?> <?php echo Captcha::recaptcha_display(); ?> <?php } else { ?> <?php echo FORM::label('captcha', __('Captcha'), array('for' => 'captcha')); ?> <span id="helpBlock" class="help-block"><?php echo captcha::image_tag('publish_new'); ?> </span> <?php echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required', 'data-error' => __('Captcha is not correct'))); ?> <?php } ?> </div> </div> <?php }
<form id="addimap" name="addimap" action="<?php echo URL::base(); echo Request::current()->uri(); ?> " method="post"> <div class="panel panel-default"> <div class="panel-body"> <h4><?php echo __('General Configuration'); ?> </h4> <hr> <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="radio radio-primary"> <?php echo Form::radio('map_active', 1, (bool) $map_active, array('id' => 'map_active' . '1')); ?> <?php echo Form::label('map_active' . '1', __('Enabled')); ?> <?php echo Form::radio('map_active', 0, !(bool) $map_active, array('id' => 'map_active' . '0')); ?> <?php echo Form::label('map_active' . '0', __('Disabled')); ?>
echo Form::errors(); ?> <div class="form-group"> <div class="col-md-offset-4 col-md-8"> <img src="<?php echo $user->get_profile_image(); ?> " class="img-rounded ticket_image" alt="<?php echo __('Profile Picture'); ?> " width="120" height="120"> </div> </div> <div class="form-group"> <?php echo FORM::label('profile_img', __('Profile picture'), array('class' => 'col-md-4 control-label', 'for' => 'profile_img')); ?> <div class="col-md-8"> <input class="form-control" type="file" name="profile_image" id="profile_img" /> </div> </div> <div class="form-group"> <div class="col-md-offset-4 col-md-8"> <button type="submit" class="btn btn-primary"><?php echo __('Update'); ?> </button> <?php if ($user->has_image) { ?> <button type="submit"
echo __('Hide Categories'); ?> </h4> </div> <div class="modal-body"> <div class="form-group"> <?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>