echo FORM::label('description', __('Description'), array('class' => 'col-md-3 control-label', 'for' => 'description')); ?> <div class="col-md-7"> <?php echo FORM::textarea('description', __('Description'), array('class' => 'form-control', 'id' => 'description')); ?> </div> </div> <div class="form-group"> <?php echo FORM::label('seoname', __('Seoname'), array('class' => 'col-md-3 control-label', 'for' => 'seoname')); ?> <div class="col-md-5"> <?php echo FORM::input('seoname', '', array('placeholder' => __('Seoname'), 'class' => 'form-control', 'id' => 'seoname')); ?> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-9"> <?php echo FORM::button('submit', __('Create'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('oc-panel', array('controller' => 'forum', 'action' => 'create')))); ?> </div> </div> </fieldset> <?php echo FORM::close(); ?> </div> </div>
echo Request::current()->uri(); ?> " method="post" class="form-horizontal" enctype="multipart/form-data"> <div class="panel panel-default"> <div class="panel-body"> <div class="form-horizontal"> <?php foreach ($options as $field => $attributes) { ?> <div class="form-group"> <?php echo FORM::form_tag($field, $attributes, isset($data[$field]) ? $data[$field] : NULL); ?> </div> <?php } ?> <div class="form-group"> <div class="col-sm-offset-5 col-sm-7"> <?php echo FORM::button('submit', __('Update'), array('type' => 'submit', 'class' => 'btn btn-primary')); ?> </div> </div> </div> </div> </div> </form> </div> </div>
?> </span> <?php echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required', 'data-error' => __('Captcha is not correct'))); ?> <?php } ?> </div> </div> <?php } ?> <div class="form-actions"> <?php echo FORM::button('submit_btn', __('Publish new'), array('type' => 'submit', 'id' => 'publish-new-btn', 'data-swaltitle' => __('Are you sure?'), 'data-swaltext' => __('It looks like you have been about to publish a new advertisement, if you leave before submitting your changes will be lost.'), 'class' => 'btn btn-primary', 'action' => Route::url('post_new', array('controller' => 'new', 'action' => 'index')))); ?> <?php if (!Auth::instance()->get_user()) { ?> <p class="help-block"><?php echo __('User account will be created'); ?> </p> <?php } ?> <?php if (!Core::config('advertisement.leave_alert')) { ?> <input type="hidden" name="leave_alert" value="0" disabled>
<label> <input type="checkbox" name="status" <?php echo $topic->status == Model_Post::STATUS_ACTIVE ? 'checked="checked"' : ''; ?> > <?php echo __('Activate'); ?> </label> </div> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-9"> <?php echo FORM::button('submit', __('Update'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('oc-panel', array('controller' => 'topic', 'action' => 'update', 'id' => $topic->id_post)))); ?> <a class="btn btn-danger" data-toggle="confirmation" title="<?php echo __('Are you sure you want to delete?'); ?> " data-text="<?php echo __('Are you sure you want to delete?'); ?> " data-btnOkLabel="<?php echo __('Yes, definitely!'); ?>
</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 echo FORM::close(); ?> </div> </div> </div> <div class="col-md-6"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><?php echo __('Find latitude & longitude');
<?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-->
</div> <input id="uploadedfile" type="hidden" name="file_name"> <div id="name-files" class="name-files"></div> <div id="files" class="files"></div> <button id="delete-button-file" class="hide btn btn-danger"><?php echo __('Delete'); ?> </button> </div> <div class="clearfix"></div><br> <div class="pull-right"> <?php echo FORM::button('submit', __('Save'), array('type' => 'submit', 'class' => 'btn btn-primary btn-lg', 'action' => Route::url('oc-panel', array('controller' => 'product', 'action' => 'create')))); ?> <div class=""> <div class="checkbox "> <label> <input type="checkbox" name="status" value="" checked="checked"> <?php echo __('Active'); ?> ? </label> </div> </div> </div> </div> </div> </div>
<?php echo __('Download'); ?> </button> <?php echo FORM::close(); ?> <hr> <?php echo FORM::open(Route::url('oc-panel', array('controller' => 'theme', 'action' => 'install_theme')), array('enctype' => 'multipart/form-data')); ?> <div class="form-group"> <?php echo FORM::label('theme_file', __('To install new theme choose zip file.'), array('class' => 'control-label', 'for' => 'theme_file')); ?> <input type="file" name="theme_file" id="theme_file" class="form-control" /> </div> <?php echo FORM::button('submit', __('Upload'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'theme', 'action' => 'install_theme')))); ?> <?php echo FORM::close(); ?> </div> </div> </div> </div>
?> <br /> <?php echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required')); ?> <?php } ?> </div> </div> <?php } ?> <div class="modal-footer"> <?php echo FORM::button('submit', _e('Contact Us'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('default', array('controller' => 'contact', 'action' => 'user_contact', 'id' => $ad->id_ad)))); ?> </div> </fieldset> <?php echo FORM::close(); ?> </div> </div> </div> </div> </div> <?php if (core::config('advertisement.phone') == 1 and strlen($ad->phone) > 1) { ?>
?> ]' data-slider-orientation="horizontal" data-slider-selection="before" data-slider-tooltip="show" name='price_subscribe' > </div> </div> <?php } else { ?> <input type="hidden" value='0,0'> <?php } ?> <div class="text-center"> <?php echo FORM::button('submit', _e('Subscribe'), array('type' => 'submit', 'class' => 'btn btn-base-dark', 'action' => Route::url('default', array('controller' => 'subscribe', 'action' => 'index', 'id' => $widget->user_id)))); ?> </div> <?php if ($widget->subscriber) { ?> <p class="text-right"> <a href="<?php echo Route::url('default', array('controller' => 'subscribe', 'action' => 'unsubscribe', 'id' => $widget->user_id)); ?> "><?php echo _e('Unsubscribe'); ?> </a> </p>
echo core::get('price-max'); ?> " placeholder="<?php echo __('to'); ?> "> </div> </div> <?php } ?> <div class="form-group col-xs-12 col-sm-4 text-center"> <label> </label> <div> <?php echo FORM::button('submit', __('Search'), array('type' => 'submit', 'class' => 'btn btn-base-dark', 'action' => Route::url('search'))); ?> </div> </div> </fieldset> <?php echo FORM::close(); ?> </div> </div> </div> <?php echo View::fragment('sidebar_front', 'sidebar'); ?>
echo __('Delete'); ?> </button> </div> <div class="clearfix"></div><br> <?php } ?> </div> <div class="clearfix"></div> <div class="pull-right"> <?php echo FORM::button('submit', __('Save'), array('type' => 'submit', 'class' => 'btn btn-lg btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'product', 'action' => 'update', 'id' => $product->id_product)))); ?> <div class="checkbox"> <label> <input type="checkbox" name="notify"> <?php echo __('Notify all buyers on this update'); ?> </label> </div> <div class="checkbox"> <label> <input type="checkbox" name="status" <?php echo $product->status == Model_Product::STATUS_ACTIVE ? 'checked="checked"' : ''; ?> > <?php echo __('Active');
?> </dt> <dd><?php echo FORM::input('captcha', "", array('class' => 'form-control', 'placeholder' => __('Captcha'), 'id' => 'captcha', 'required')); ?> </dd> <?php } ?> </dl> <?php } ?> <dl class="modal-footer text-center"> <?php echo FORM::button('submit', _e('Send Message'), array('type' => 'submit', 'class' => 'btn btn-base-dark', 'action' => Route::url('default', array('controller' => 'contact', 'action' => 'user_contact', 'id' => $ad->id_ad)))); ?> </dl> </fieldset> <?php echo FORM::close(); ?> </div> </div> </div> </div> <?php } ?> <?php }
echo captcha::image_tag('new-forum'); ?> </span> <span class="cap_ans"><?php echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required')); ?> </span> </div> <?php } ?> </dl> <?php } ?> <dl> <dt><label> </label></dt> <dd class="text-center"><?php echo FORM::button('submit', _e('Publish new topic'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('forum-new'))); ?> </dd> </dl> </fieldset> <?php echo FORM::close(); ?> </div> </div> </div> </div>
<dd><?php echo FORM::input('captcha', "", array('class' => 'form-control', 'placeholder' => __('Captcha'), 'id' => 'captcha', 'required')); ?> </dd> <?php } ?> </dl> <?php } ?> </fieldset> </div> <div class="modal-footer text-center"> <?php echo FORM::button('submit', _e('Send Message'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('default', array('controller' => 'contact', 'action' => 'userprofile_contact', 'id' => $user->id_user)))); ?> </div> <?php echo FORM::close(); ?> </div> </div> </div> </p> </article> </div> <?php if ($profile_ads !== NULL) {
<!-- Operations --> <td> {% } else { %} <td class="preview">{% if (file.thumbnail_url) { %} <a href="{%=file.url%}" title="{%=file.name%}" rel="gallery" download="{%=file.name%}"><img src="{%=file.thumbnail_url%}"></a> {% } %}</td> <td class="system"></td> <td class="title"> <div class="value"><a href="{%=file.url%}" title="{%=file.name%}" rel="{%=file.thumbnail_url&&'gallery'%}" download="{%=file.name%}">{%=file.title%}</a></div> <div class="form"><textarea name="title">{%=file.title%}</textarea></div> </td> <!-- Operations --> <td> <div class="edit"> <?php echo FORM::button(NULL, '<i class="icon-pencil"></i> Редактировать', array('class' => 'btn btn-small edit-start')); ?> <div class="edit-actions"> <button class="btn btn-small btn-success edit-save" style="margin-right: 3px;" data-company-id="{%=file.company_id%}" data-image-id="{%=file.image_id%}">Сохранить</button> <button class="btn btn-small edit-cancel">Отмена</button> </div> </div> {% } %} <div class="delete"> <button class="btn btn-small btn-danger" data-type="{%=file.delete_type%}" data-url="{%=file.delete_url%}"> <i class="icon-trash icon-white"></i> </button> </div> </td> </tr> {% } %}
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"> <div class="col-sm-offset-4 col-sm-8"> <?php echo FORM::button('submit', 'Update', array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'social', 'action' => 'index')))); ?> </div> </div> </div> </div> </div> <?php FORM::close(); ?> </div> </div>
echo HTML::anchor($image->img_path, $image->title); ?> </div> <div class="form"><?php echo FORM::textarea('title', $image->title); ?> </div> </td> <!-- Operations --> <td class="operations"> <div class="edit"> <button class="btn btn-small edit-start"> <i class="icon-pencil"></i> <span>Редактировать</span> </button> <div class="edit-actions"> <?php echo FORM::button(NULL, 'Сохранить', array('style' => 'margin-right: 3px;', 'class' => 'btn btn-small btn-success edit-save', 'data-company-id' => $image->company->id, 'data-image-id' => $image->id)) . FORM::button(NULL, 'Отмена', array('class' => 'btn btn-small edit-cancel')); ?> </div> </div> <div class="delete"> <button class="btn btn-small btn-danger" data-type="DELETE" data-url="/rest/companyimage/index/<?php echo $image->id . '?company_id=' . $image->company->id; ?> "> <i class="icon-trash icon-white"></i> </button> </div> </td> </tr>
?> " placeholder="<?php echo __('to'); ?> "> </div> </div> <?php } ?> <div class="form-group"> <label> </label> <div> <?php echo FORM::button('submit', __('Search'), array('type' => 'submit', 'class' => 'btn btn-primary pull-right', 'action' => Route::url('search'))); ?> </div> </div> </fieldset> <?php echo FORM::close(); ?> </div> <?php if (Request::current()->query()) { ?> <?php if (count($ads) > 0) { ?>
$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(); ?> </div> </div> </div>
<?php echo FORM::open(Route::url('oc-panel', array('controller' => 'tools', 'action' => 'import_tool')), array('class' => 'form-horizontal', 'enctype' => 'multipart/form-data')); ?> <div class="form-group"> <label class="col-sm-3 control-label" for="csv_file_categories"><?php echo __('Import Categories'); ?> </label> <div class="col-sm-8"> <input type="file" name="csv_file_categories" id="csv_file_categories" class="form-control"> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-8"> <?php echo FORM::button('submit', __('Upload'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'tools', 'action' => 'import_tool')))); ?> </div> </div> <?php echo FORM::close(); ?> </div> </div> </div> </div> </div> </div> <div class="modal fade" id="delete-all" tabindex="-1" role="dialog" aria-labelledby="deleteCategories" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content">
" name="current_location_id_geoname"> <input type="hidden" id="current_location_fcodename_geoname" value="<?php echo $location->fcodename_geoname; ?> " name="current_location_fcodename_geoname"> <?php } ?> <input type="hidden" id="auto_locations" value="" name="geonames_locations"> <input type="hidden" id="auto_locations_lang" value="<?php echo substr(Core::config('i18n.locale'), 0, -3); ?> " name="auto_locations_lang"> <?php echo FORM::button('submit', __('Import'), array('type' => 'submit', 'class' => 'btn btn-primary', 'id' => 'auto_locations_import', 'action' => Route::url('oc-panel', array('controller' => 'location', 'action' => 'geonames')) . '?id_location=' . Core::get('id_location', 1))); ?> <?php echo FORM::button('reset', __('Reset'), array('type' => 'button', 'class' => 'btn btn-default', 'id' => 'auto_locations_import_reset')); ?> </div> </div> <?php echo FORM::close(); ?> </div> </div> </div> </div> </div> </div>
?> </span> </div> <?php } ?> </div> </dl> <?php } ?> <dl class="form-group"> <dt></dt> <dd class="text-center"><?php echo FORM::button('submit', __('Contact Us'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('contact'))); ?> </dd> </dl> </fieldset> <?php echo FORM::close(); ?> </div> <?php if (Theme::get('sidebar_position') != 'none') { ?> <?php echo Theme::get('sidebar_position') == 'left' ? View::fragment('sidebar_front', 'sidebar') : ''; ?>
<?php echo FORM::open(Route::url('oc-panel', array('controller' => 'tools', 'action' => 'import_tool' . '?id_parent=' . Core::get('id_location', 1))), array('class' => 'form-horizontal', 'enctype' => 'multipart/form-data')); ?> <div class="form-group"> <label class="col-sm-3 control-label" for="csv_file_locations"><?php echo __('Import Locations'); ?> </label> <div class="col-sm-8"> <input type="file" name="csv_file_locations" id="csv_file_locations" class="form-control"> </div> </div> <div class="form-group"> <div class="col-sm-offset-3 col-sm-8"> <?php echo FORM::button('submit', __('Upload'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'tools', 'action' => 'import_tool' . '?id_parent=' . Core::get('id_location', 1))))); ?> </div> </div> <?php echo FORM::close(); ?> </div> </div> </div> </div> </div> </div> <div class="modal fade" id="delete-all" tabindex="-1" role="dialog" aria-labelledby="deleteLocations" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content">
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> </fieldset> <?php echo FORM::close(); ?> </div> </div>
<?php defined('SYSPATH') or die('No direct script access.'); $form_actions_attr = array(); if (!Arr::get($options, 'horizontal', TRUE)) { $form_actions_attr['style'] = 'padding-left: 0;'; } ?> <div class="form-actions" <?php echo HTML::attributes($form_actions_attr); ?> > <?php foreach ($actions as $type => $params) { ?> <?php echo FORM::button(Arr::get($params, 'name'), __($params['text']), array('type' => $type) + Arr::get($params, 'attributes', array())); ?> <?php } ?> </div>
?> </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"> <?php echo FORM::button('submit', __('Save'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'settings', 'action' => 'email')))); ?> </div> </div> </div> </form> </div><!--end col-md-8--> </div>
</a> </div> </div> </div> <?php } ?> </div> <div class="form-group text-center"> <br> <hr> <br> <?php echo FORM::button('submit_btn', in_array(core::config('general.moderation'), Model_Ad::$moderation_status) ? _e('Publish') : _e('Update'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('oc-panel', array('controller' => 'myads', 'action' => 'update', 'id' => $ad->id_ad)))); ?> <br> </div> </fieldset> <?php echo FORM::close(); ?> </div> <div class="clearfix"></div> </div> </div> </div>
<?php if (core::config('advertisement.captcha') != FALSE) { ?> <div class="form-group"> <div class="col-xs-10"> <?php echo __('Captcha'); ?> *:<br /> <?php echo captcha::image_tag('contact'); ?> <br /> <?php echo FORM::input('captcha', "", array('class' => 'form-control', 'id' => 'captcha', 'required')); ?> </div> </div> <?php } ?> <div class="modal-footer"> <?php echo FORM::button('submit', __('Send Message'), array('type' => 'submit', 'class' => 'btn btn-success', 'action' => Route::url('default', array('controller' => 'contact', 'action' => 'user_contact', 'id' => $widget->id_ad)))); ?> </div> </fieldset> <?php echo FORM::close();
echo Form::errors(); ?> <?php echo FORM::open(Route::url('profiles'), array('class' => '', 'method' => 'GET', 'action' => '')); ?> <div class="input-group"> <input type="text" class="form-control" id="search" name="search" placeholder="<?php echo __('Search'); ?> " type="search" value="<?php echo core::request('search'); ?> " /> <div class="input-group-btn"> <?php echo FORM::button('submit', __('Search'), array('type' => 'submit', 'class' => 'btn btn-default', 'action' => Route::url('profiles'))); ?> </div> </div> <?php echo FORM::close(); ?> <?php if (count($users)) { ?> <div class="clearfix"><br></div> <div id="users"> <?php