Exemplo n.º 1
0
 public static function ckeditor($name, array $options = array())
 {
     self::$_form_id++;
     $errors = self::get_errors($name);
     $form_element = FORM::textarea($name, Arr::get(self::$_values, $name), array('id' => 'text'));
     return View::factory('ckeditor')->set('name', $name)->set('values', self::$_values)->set('errors', $errors)->set('form_element', $form_element)->set('options', $options)->set('form_id', self::$_form_id)->render();
 }
Exemplo n.º 2
0
					<div class="col-sm-4 col-xs-11">
						<?php 
echo FORM::label('title', __('Title'), array('class' => 'control-label', 'for' => 'title'));
?>
						<?php 
echo FORM::input('title', $ad->title, array('placeholder' => __('Title'), 'class' => 'form-control', 'id' => 'title', 'required'));
?>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-11">
						<?php 
echo FORM::label('description', __('Description'), array('class' => 'control-label', 'for' => 'description', 'spellcheck' => TRUE));
?>
						<?php 
echo FORM::textarea('description', $ad->description, array('class' => 'col-md-9 col-sm-9 col-xs-12', 'name' => 'description', 'id' => 'description', 'rows' => 8, 'required'));
?>
					</div>
				</div>
				<?php 
if (core::config('advertisement.phone') != FALSE) {
    ?>
				<div class="form-group">
					<div class="col-sm-4 col-xs-11">
						<?php 
    echo FORM::label('phone', __('Phone'), array('class' => 'control-label', 'for' => 'phone'));
    ?>
						<?php 
    echo FORM::input('phone', $ad->phone, array('class' => 'form-control', 'id' => 'phone', 'placeholder' => __('Phone')));
    ?>
					</div>
Exemplo n.º 3
0
    echo $id_location;
    ?>
" class="form-control invisible" style="height: 0; padding:0; width:1px; border:0;" required></input>
					</div>
				</div>
			<?php 
}
?>
	
			<div class="form-group">
				<div class="col-md-9">
					<?php 
echo FORM::label('description', __('Description'), array('for' => 'description', 'spellcheck' => TRUE));
?>
					<?php 
echo FORM::textarea('description', Request::current()->post('description'), array('class' => 'form-control' . (Core::config("advertisement.description_bbcode") ? NULL : ' disable-bbcode'), 'name' => 'description', 'id' => 'description', 'rows' => 10, 'required'));
?>
				</div>
			</div>
      <?php 
if (core::config("advertisement.num_images") > 0) {
    ?>
			<div class="form-group images" 
				data-max-image-size="<?php 
    echo core::config('image.max_image_size');
    ?>
" 
				data-image-width="<?php 
    echo core::config('image.width');
    ?>
" 
Exemplo n.º 4
0
							</div>
						</div>
					<?php 
}
?>
			
					<?php 
if ($form_show['description'] != FALSE) {
    ?>
						<div class="form-group">
							<div class="col-md-9">
								<?php 
    echo FORM::label('description', __('Description'), array('for' => 'description', 'spellcheck' => TRUE));
    ?>
								<?php 
    echo FORM::textarea('description', Request::current()->post('description'), array('class' => 'form-control' . (Core::config("advertisement.description_bbcode") ? NULL : ' disable-bbcode'), 'name' => 'description', 'id' => 'description', 'rows' => 10, 'required', 'data-bannedwords' => core::config('advertisement.banned_words') != '' ? json_encode(explode(',', core::config('advertisement.banned_words'))) : '', 'data-error' => __('This field must not contain banned words ({0})')));
    ?>
							</div>
						</div>
					<?php 
}
?>

		     <?php 
if (core::config("advertisement.num_images") > 0) {
    ?>
					<div class="form-group images" 
						data-max-image-size="<?php 
    echo core::config('image.max_image_size');
    ?>
" 
Exemplo n.º 5
0
                            <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::label('description', __('Description'), array('class' => 'control-label', 'for' => 'description'));
?>
                                <?php 
echo FORM::textarea('description', __('Description'), array('class' => 'form-control', 'id' => 'description', 'data-editor' => 'html'));
?>
                            </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">
Exemplo n.º 6
0
$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');
?>
</label>
            <?php 
echo FORM::textarea('coupon_text', Arr::get($values, 'coupon_text'), array('class' => 's_tarea', 'style' => 'width: 400px; height: 100px;'));
?>
        </li>

        <li>
            <label class="lab">&nbsp;</label>
            <?php 
echo FORM::submit('submit', __('f_complete'), array('class' => 's_button'));
?>
 <?php 
echo FORM::submit('skip', __('f_skip'), array('class' => 's_skip'));
?>
        </li>
    </ul>
</div>
<?php 
Exemplo n.º 7
0
    ?>
                        Сохранить статусы прочитан/непрочитан для уже отправленных
                    </label>
                    <p class="help-block">Если убрать галочку уведомление будет иметь статус непрочитан у всех<br />Всем будут по новой отправленна рассылка на почту</p>
                </div>
            </div>
        <?php 
}
?>

</fieldset>
<fieldset>
    <legend>Текст уведомления</legend>
    <div class="clearfix">
        <?php 
echo FORM::textarea('text', Arr::get($values, 'text'), array('id' => 'text'));
?>
        <?php 
if (Arr::get($errors, 'text', NULL)) {
    ?>
            <p class="help-block"><?php 
    echo $errors['text'];
    ?>
</p>
        <?php 
}
?>
    </div>

</fieldset>
<?php 
Exemplo n.º 8
0
?>
                            <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">
                        <h3 class="panel-title"><span class="glyphicon glyphicon-file"></span> <?php 
echo __('Upload files');
?>
</h3>
Exemplo n.º 9
0
    echo FORM::radio('status', $id, $checked) . '<span class="' . $value['css'] . '">' . __($value['i18n']) . '</span>';
    ?>
                </label>
            <?php 
}
?>
        </div>
    </div>
    <div class="control-group <?php 
echo $text_error_css;
?>
">
        <label class="control-label">Текст</label>
        <div class="controls">
             <?php 
echo FORM::textarea('text', Arr::get($values, 'text'), array('id' => 'text', array('style' => 'width: 300px;')));
?>
            <span class="help-block"><?php 
echo Arr::get($errors, 'text');
?>
</span>
        </div>
    </div>
    <div class="form-actions">
        <?php 
echo FORM::button(NULL, 'Отправить', array('class' => 'btn btn-large btn-success', 'type' => 'submit'));
?>
        <?php 
echo FORM::button(NULL, 'Очистить', array('class' => 'btn btn-large', 'type' => 'reset'));
?>
    </div>
Exemplo n.º 10
0
        <?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-8">
            <?php 
echo FORM::textarea('description', '', array('placeholder' => __('description'), 'class' => 'form-control', 'id' => 'description'));
?>
        </div>
    </div>
    
    <?php 
if ($_REQUEST['type'] == 'email') {
    ?>
    <div class="form-group">
        <?php 
    echo FORM::label('from_email', __('From email'), array('class' => 'control-label col-md-2', 'for' => 'from_email'));
    ?>
        <div class="col-sm-4">
            <?php 
    echo FORM::input('from_email', '', array('placeholder' => __('from_email'), 'class' => 'form-control', 'id' => 'from_email'));
    ?>
Exemplo n.º 11
0
    <?php 
}
?>

    <?php 
echo FORM::open(NULL, array('class' => 'well'));
?>
    <h3>Добавление дополнения</h3>
    <div class="control-group <?php 
echo $text_error_css;
?>
">
        <label>Текст</label>
        <div class="controls">
            <?php 
echo FORM::textarea('text', Arr::get($values, 'text'), array('class' => 'span8', 'rows' => 4));
?>
        </div>
        <span class="help-block"><?php 
echo Arr::get($errors, 'text');
?>
</span>
    </div>

    <?php 
echo FORM::submit(NULL, 'Отправить', array('class' => 'btn btn-success'));
?>

    <?php 
echo FORM::close();
?>
Exemplo n.º 12
0
                                <span class="help-block">
                                    <?php 
echo __("To include your custom HTML code (validation metadata, reference to JS/CSS files, etc.) in the HEAD element of the rendered page.");
?>
                                </span>
                            </div>

                            <div class="form-group">
                                <?php 
echo FORM::label($forms['html_footer']['id'], __('HTML in footer'), array('class' => 'control-label', 'for' => $forms['html_footer']['id']));
?>
                                <a target="_blank" href="https://docs.yclas.com/html-in-footer/">
                                    <i class="fa fa-question-circle"></i>
                                </a>
                                <?php 
echo FORM::textarea($forms['html_footer']['key'], $forms['html_footer']['value'], array('placeholder' => '', 'rows' => 3, 'cols' => 50, 'class' => 'form-control', 'id' => $forms['html_footer']['id']));
?>
 
                                <span class="help-block">
                                    <?php 
echo __("To include your custom HTML code (reference to JS or CSS files, etc.) in the footer of the rendered page.");
?>
                                </span>
                            </div>
                            <hr>
                            <p>
                                <?php 
echo FORM::button('submit', __('Save'), array('type' => 'submit', 'class' => 'btn btn-primary', 'action' => Route::url('oc-panel', array('controller' => 'settings', 'action' => 'general'))));
?>
                            </p>
                        </div>
Exemplo n.º 13
0
        <label class="control-label">Название</label>
        <div class="controls">
            <?php 
echo FORM::input('name', Arr::get($values, 'name'));
?>
            <p class="help-block" style="color: red;"><?php 
echo Arr::get($errors, 'name');
?>
</p>
        </div>
    </div>
	<div class="control-group">
        <label class="control-label">Значение</label>
        <div class="controls">
            <?php 
echo FORM::textarea('value', Arr::get($values, 'value'));
?>
            <p class="help-block" style="color: red;"><?php 
echo Arr::get($errors, 'value');
?>
</p>
        </div>

    </div>
	<div class="control-group">
        <label class="control-label">Цена</label>
        <div class="controls">
            <?php 
echo FORM::input('price', Arr::get($values, 'price'));
?>
            <p class="help-block" style="color: red;"><?php 
Exemplo n.º 14
0
            <?php 
echo NError::show_error('work', $errors);
?>
        </td>
    </tr>
    <!-- about -->
    <tr>
        <td style="vertical-align: top">
            <label class="label" for="about"><?php 
echo __('f_about_service');
?>
</label>
        </td>
        <td>
            <?php 
echo FORM::textarea('about', Arr::get($values, 'about'), array('class' => 's_tarea', 'id' => 'about'));
?>
        </td>
    </tr>
    <!-- work time -->
    <tr>
        <td>
            <label class="label" for="hour_start"><?php 
echo __('f_work_time');
?>
</label>
        </td>
        <td>
            с <?php 
echo FORM::input('hour_start', Arr::get($values, 'hour_start'), array('class' => 's_inp', 'style' => 'width: 20px;'));
?>
Exemplo n.º 15
0
 /**
  * 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;
 }
Exemplo n.º 16
0
			<?php 
echo FORM::label('title', __('Title'), array('class' => 'col-md-2 control-label', 'for' => 'title'));
?>
			<div class="col-md-6 controls">
				<?php 
echo FORM::input('title', core::post('title'), array('placeholder' => __('Title'), 'class' => 'form-control input-xlarge', 'id' => 'title', 'required'));
?>
			</div>
		</div>
		<div class="form-group control-group">
			<?php 
echo FORM::label('description', __('Description'), array('class' => 'col-md-2 control-label', 'for' => 'description'));
?>
			<div class="col-md-6 controls">
				<?php 
echo FORM::textarea('description', core::post('description'), array('placeholder' => __('Description'), 'class' => 'form-control input-xxlarge', 'name' => 'description', 'id' => 'description', 'required'));
?>
	
			</div>
		</div>
		
		<?php 
if (core::config('advertisement.captcha') != FALSE or core::config('general.captcha') != FALSE) {
    ?>
		<div class="form-group control-group">
			<div class="col-md-6 col-md-offset-2 controls">
				<?php 
    if (Core::config('general.recaptcha_active')) {
        ?>
				    <?php 
        echo Captcha::recaptcha_display();
Exemplo n.º 17
0
    <?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'));
?>
</fieldset>
<?php 
echo FORM::submit(NULL, 'Опубликовать', array('class' => 's_button'));
echo FORM::close();
?>
<script type="text/javascript">
CKEDITOR.replace('text',
{
filebrowserImageUploadUrl : '<?php 
echo URL::base() . 'ajax/upload_image';
?>
',
removePlugins : 'maximize,resize',
toolbar : 'add_comment_toolbar'
Exemplo n.º 18
0
 /**
  * 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;
 }
Exemplo n.º 19
0
<?php

defined('SYSPATH') or die('No direct script access.');
echo FORM::open(Request::current()->uri(), 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::textarea('text', $values['text'], array('id' => 'text'));
?>
        </div>
    </div>
    <div class="form-actions">
        <p class="help-block"><?php 
echo Arr::get($errors, 'text');
?>
</p>
        <?php 
echo FORM::submit(NULL, 'Отправить', array('class' => 'btn btn-large btn-success'));
?>
    </div>
</fieldset>
<?php 
echo FORM::close();
Exemplo n.º 20
0
                                <input  type="text" size="16" id="featured" name="featured" value="<?php 
echo $product->featured != NULL ? Date::format($product->featured, 'Y-m-d') : '';
?>
" 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', __('Notes'), array('class' => 'col-md-12', 'for' => 'email_purchase_notes', 'spellcheck' => TRUE));
?>
                        <div class="col-md-12">
                            <?php 
echo FORM::textarea('email_purchase_notes', $product->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">
                    <h3 class="panel-title"><span class="glyphicon glyphicon-file"></span> <?php 
echo __('Upload files');
?>
</h3>
Exemplo n.º 21
0
                                <?php 
echo FORM::label('email', _e('Email'), array('class' => 'col-xs-4 control-label', 'for' => 'email'));
?>
                                <div class="col-sm-8">
                                    <?php 
echo FORM::input('email', $user->email, array('class' => 'form-control', 'id' => 'email', 'type' => 'email', 'required', 'placeholder' => __('Email')));
?>
                                </div>
                            </div>
                            <div class="form-group">
                                <?php 
echo FORM::label('description', _e('Description'), array('class' => 'col-xs-4 control-label', 'for' => 'description'));
?>
                                <div class="col-sm-8">
                                    <?php 
echo FORM::textarea('description', $user->description, array('placeholder' => '', 'rows' => 3, 'cols' => 50, 'class' => 'form-control', 'id' => 'description'));
?>
 
                                </div>
                            </div>
        
                            <?php 
foreach ($custom_fields as $name => $field) {
    ?>
                                <div class="form-group" id="cf_new">
                                    <?php 
    $cf_name = 'cf_' . $name;
    ?>
                                    <?php 
    if ($field['type'] == 'select' or $field['type'] == 'radio') {
        $select = array('' => '');
Exemplo n.º 22
0
?>
                            <div class="col-md-8">
                                <?php 
echo FORM::textarea($forms['html_head']['key'], $forms['html_head']['value'], array('placeholder' => '', 'rows' => 3, 'cols' => 50, 'class' => 'tips form-control input-sm', 'id' => $forms['html_head']['key'], 'data-content' => __('To include your custom HTML code (validation metadata, reference to JS/CSS files, etc.) in the HEAD element of the rendered page.'), 'data-trigger' => "hover", 'data-placement' => "bottom", 'data-toggle' => "popover", 'data-original-title' => __('HTML in HEAD element')));
?>
 
                            </div>
                        </div>
                        
                        <div class="form-group">
                            <?php 
echo FORM::label($forms['html_footer']['key'], __('HTML in footer'), array('class' => 'col-md-4 control-label', 'for' => $forms['html_footer']['key']));
?>
                            <div class="col-md-8">
                                <?php 
echo FORM::textarea($forms['html_footer']['key'], $forms['html_footer']['value'], array('placeholder' => '', 'rows' => 3, 'cols' => 50, 'class' => 'tips form-control input-sm', 'id' => $forms['html_footer']['key'], 'data-content' => __('To include your custom HTML code (reference to JS or CSS files, etc.) in the footer of the rendered page.'), 'data-trigger' => "hover", 'data-placement' => "bottom", 'data-toggle' => "popover", 'data-original-title' => __('HTML in footer')));
?>
 
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading"><?php 
echo __("Amazon S3 Configuration");
?>
</div>
                <div class="panel-body">
                    <div class="form-horizontal">
                        
Exemplo n.º 23
0
    ?>
</option>
                            <?php 
}
?>
                        </select>
                    </div>
                </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>
    
Exemplo n.º 24
0
 * Строка таблицы загруженных изображений галереи
 */
?>
<tr class="template-download fade in">
    <td class="preview"><?php 
echo HTML::anchor($image->img_path, HTML::image($image->thumb_img_path));
?>
</td>
    <td class="system"></td>
    <td class="title">
        <div class="value"><?php 
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>
Exemplo n.º 25
0
                    <?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 
echo __('Active');
?>
                            </label>
                        </div>
Exemplo n.º 26
0
					<?php 
}
?>
					<!-- END PRICE AND STOCK -->
					
					<!-- START DESCRIPTION -->
					<?php 
if (core::config('advertisement.description') != FALSE) {
    ?>
						<div class="form-group">
							<div class="col-xs-12">
								<?php 
    echo FORM::label('description', _e('Description'), array('class' => '', 'for' => 'description', 'spellcheck' => TRUE));
    ?>
								<?php 
    echo FORM::textarea('description', $ad->description, array('class' => 'form-control col-md-9 col-sm-9 col-xs-12' . (Core::config("advertisement.description_bbcode") ? NULL : ' disable-bbcode'), 'name' => 'description', 'id' => 'description', 'rows' => 8, 'required'));
    ?>
							</div>
						</div>
					<?php 
}
?>
					<!-- END DESCRIPTION -->
					
					<!-- START PHONE -->
					<?php 
if (core::config('advertisement.phone') != FALSE or core::config('advertisement.address') != FALSE) {
    ?>
						<div class="form-group">
							<div class="col-xs-12">
								<?php 
Exemplo n.º 27
0
        echo Form::errors();
        ?>
                            <div class="form-group">
                                <div id="review_raty" data-baseurl="<?php 
        echo Route::url('default');
        ?>
"></div>
                            </div>

                            <div class="form-group">
                                <?php 
        echo FORM::label('description', __('Review'), array('for' => 'description'));
        ?>
                                <div class="controls">
                                    <?php 
        echo FORM::textarea('description', core::post('description', ''), array('placeholder' => __('Review'), 'class' => 'form-control', 'name' => 'description', 'id' => 'description', 'required'));
        ?>
   
                                </div>
                            </div>

                            <?php 
        if (core::config('advertisement.captcha') != FALSE) {
            ?>
                                <div class="form-group">
                                    <?php 
            if (Core::config('general.recaptcha_active')) {
                ?>
                                        <?php 
                echo Captcha::recaptcha_display();
                ?>
Exemplo n.º 28
0
</dt>
														<dd><?php 
    echo FORM::input('subject', Core::request('subject'), array('placeholder' => __('Subject'), 'class' => 'form-control', 'id' => 'subject'));
    ?>
</dd>
													</dl>
												<?php 
}
?>
												<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 
Exemplo n.º 29
0
			<div class="col-xs-10">
			<?php 
echo FORM::label('subject', __('Subject'), array('class' => 'control-label', 'for' => 'subject'));
?>
				<?php 
echo FORM::input('subject', "", array('placeholder' => __('Subject'), 'class' => 'form-control', 'id' => 'subject'));
?>
			</div>
		</div>
		<div class="form-group">
			<div class="col-xs-10">
			<?php 
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'));
Exemplo n.º 30
0
                    <?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, $cont->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-8">
                        <?php 
echo FORM::textarea('description', $cont->description, array('id' => 'description', 'class' => 'form-control', 'data-editor' => 'html'));
?>
                    </div>
                </div>
            
                <?php 
if ($cont->type == 'email') {
    ?>
                <div class="form-group">
                    <?php 
    echo FORM::label('from_email', __('From email'), array('class' => 'control-label col-md-2', 'for' => 'from_email'));
    ?>
                    <div class="col-sm-4">
                        <?php 
    echo FORM::input('from_email', $cont->from_email, array('placeholder' => __('from_email'), 'class' => 'form-control', 'id' => 'from_email'));
    ?>