Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

Не сохраняются изменения в настройках


mur20

Recommended Posts

Не сохраняются изменения в Система- Настройки - Магазин

То Есть даже когда изменяешь Keywords или * Заголовок:

то при сохранении выпадает ошибка asdasd 

good-pets.com.ua

Надіслати
Поділитися на інших сайтах


2015-05-23 11:36:29 - PHP Warning:  in_array() expects parameter 2 to be array, integer given in /sata2/home/users/goodpets/www/www.good-pets.com.ua/vqmod/vqcache/vq2-admin_view_template_module_vsfilterf.tpl on line 42
2015-05-23 11:36:29 - PHP Warning:  in_array() expects parameter 2 to be array, integer given in /sata2/home/users/goodpets/www/www.good-pets.com.ua/vqmod/vqcache/vq2-admin_view_template_module_vsfilterf.tpl on line 47
2015-05-23 11:36:29 - PHP Warning:  in_array() expects parameter 2 to be array, integer given in /sata2/home/users/goodpets/www/www.good-pets.com.ua/vqmod/vqcache/vq2-admin_view_template_module_vsfilterf.tpl on line 52
2015-05-23 11:36:29 - PHP Warning:  in_array() expects parameter 2 to be array, integer given in /sata2/home/users/goodpets/www/www.good-pets.com.ua/vqmod/vqcache/vq2-admin_view_template_module_vsfilterf.tpl on line 57
2015-05-23 11:36:42 - PHP Warning:  in_array() expects parameter 2 to be array, integer given in /sata2/home/users/goodpets/www/www.good-pets.com.ua/vqmod/vqcache/vq2-admin_view_template_module_vsfilterf.tpl on line 42
2015-05-23 11:36:42 - PHP Warning:  in_array() expects parameter 2 to be array, integer given in /sata2/home/users/goodpets/www/www.good-pets.com.ua/vqmod/vqcache/vq2-admin_view_template_module_vsfilterf.tpl on line 47
2015-05-23 11:36:42 - PHP Warning:  in_array() expects parameter 2 to be array, integer given in /sata2/home/users/goodpets/www/www.good-pets.com.ua/vqmod/vqcache/vq2-admin_view_template_module_vsfilterf.tpl on line 52
2015-05-23 11:36:42 - PHP Warning:  in_array() expects parameter 2 to be array, integer given in /sata2/home/users/goodpets/www/www.good-pets.com.ua/vqmod/vqcache/vq2-admin_view_template_module_vsfilterf.tpl on line 57

ошибки в логах

сам файл vsfilterf.tpl

,

<?php echo $header; ?>
<div id="content">
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <?php if ($success) { ?>
  <div class="success"><?php echo $success; ?></div>
  <?php } ?>
  <?php if ($error_warning) { ?>
  <div class="warning"><?php echo $error_warning; ?></div>
  <?php } ?>
  <div class="box">
    <div class="heading">
      <h1><img src="view/image/flat-image/module.png" alt="" /> <?php echo $heading_title; ?> <?php echo $vsfilterf_version; ?> (<?php echo $_SERVER['SERVER_NAME']; ?>) (<?php echo strstr(DIR_APPLICATION, 'admin', TRUE) ?>) </h1> 
        
      <div class="buttons">
          <?php if ($activation) { ?>
            <a id="vsfilterfactivation" onclick="vsfilterfdeactivate()" class="button"><?php echo $text_button_deactivate; ?></a>
          <?php } else { ?>
            <a id="vsfilterfactivation" onclick="vsfilterfactivate()" class="button"><?php echo $text_button_activate; ?></a>
          <?php } ?>
          <a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a>
          <a onclick="location = '<?php echo $cancel; ?>';" class="button"><?php echo $button_cancel; ?></a></div>
    </div>
    <div class="content">
      <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
        <table class="form">
          <thead>
            <tr>
              <td class="left"><?php echo $text_counting; ?></td>
              <td class="left"><?php echo $text_show_attribute_groups; ?></td>
              <td class="left"><?php echo $text_show_attributes; ?></td>
              <td class="left"><?php echo $text_attribute_slider; ?></td>

            </tr>
          </thead>
          <tbody>          
          <tr>
            <td class="left"><select name="vsfilterf_counting[]" style="min-width: 200px; min-height: 200px;" multiple>
                <?php if (in_array(1, $vsfilterf_counting)) { ?>
                <option value="1" selected="selected"><?php echo $text_counting_prices; ?></option>
                <?php } else { ?>
                <option value="1"><?php echo $text_counting_prices; ?></option>
                <?php } ?>
                <?php if (in_array(2, $vsfilterf_counting)) { ?>
                <option value="2" selected="selected"><?php echo $text_counting_manufacturers; ?></option>
                <?php } else { ?>
                <option value="2"><?php echo $text_counting_manufacturers; ?></option>
                <?php } ?>
                <?php if (in_array(3, $vsfilterf_counting)) { ?>
                <option value="3" selected="selected"><?php echo $text_counting_attributes; ?></option>
                <?php } else { ?>
                <option value="3"><?php echo $text_counting_attributes; ?></option>
                <?php } ?>
                <?php if (in_array(4, $vsfilterf_counting)) { ?>
                <option value="4" selected="selected"><?php echo $text_counting_options; ?></option>
                <?php } else { ?>
                <option value="4"><?php echo $text_counting_options; ?></option>
                <?php } ?>                
                </select></td>
            <td class="left"><select name="vsfilterf_show_attribute_groups[]" style="min-width: 200px; min-height: 200px;" multiple>
                  <?php foreach ($attribute_groups as $attribute_group) { ?>
                  <?php if (in_array($attribute_group['attribute_group_id'], $vsfilterf_show_attribute_groups)) { ?>
                  <option value="<?php echo $attribute_group['attribute_group_id']; ?>" selected="selected"><?php echo $attribute_group['name']; ?></option>
                  <?php } else { ?>
                  <option value="<?php echo $attribute_group['attribute_group_id']; ?>"><?php echo $attribute_group['name']; ?></option>
                  <?php } ?>
                  <?php } ?>
                </select></td>
            <td class="left"><select name="vsfilterf_show_attributes[]" style="min-width: 200px; min-height: 200px;" multiple>
                  <?php foreach ($attributes as $attribute) { ?>
                  <?php if (in_array($attribute['attribute_id'], $vsfilterf_show_attributes)) { ?>
                  <option value="<?php echo $attribute['attribute_id']; ?>" selected="selected"><?php echo $attribute['name']; ?></option>
                  <?php } else { ?>
                  <option value="<?php echo $attribute['attribute_id']; ?>"><?php echo $attribute['name']; ?></option>
                  <?php } ?>
                  <?php } ?>
                </select></td>
            <td class="left"><select name="vsfilterf_attribute_sliders[]" style="min-width: 200px; min-height: 200px;" multiple>
                  <?php foreach ($attributes as $attribute) { ?>
                  <?php if (in_array($attribute['attribute_id'], $vsfilterf_attribute_sliders)) { ?>
                  <option value="<?php echo $attribute['attribute_id']; ?>" selected="selected"><?php echo $attribute['name']; ?></option>
                  <?php } else { ?>
                  <option value="<?php echo $attribute['attribute_id']; ?>"><?php echo $attribute['name']; ?></option>
                  <?php } ?>
                  <?php } ?>
                </select></td>

          </tr>
          </tbody>
        </table>

        <table class="form">
          <thead>
            <tr>

              <td class="left"><?php echo $text_show_options; ?></td>
              <td class="left"><?php echo $text_show_option_image; ?></td>
              <td class="left"><?php echo $text_option_image_dimensions; ?></td>
            </tr>
          </thead>
          <tbody>          
          <tr>
              <td class="left"><select name="vsfilterf_show_options[]" style="min-width: 200px; min-height: 200px;" multiple>
                  <?php foreach ($options as $option) { ?>
                  <?php if (in_array($option['option_id'], $vsfilterf_show_options)) { ?>
                  <option value="<?php echo $option['option_id']; ?>" selected="selected"><?php echo $option['name']; ?></option>
                  <?php } else { ?>
                  <option value="<?php echo $option['option_id']; ?>"><?php echo $option['name']; ?></option>
                  <?php } ?>
                  <?php } ?>
                </select></td>
              <td class="left"><select name="vsfilterf_show_option_image[]" style="min-width: 200px; min-height: 200px;" multiple>
                  <?php foreach ($options as $option) { ?>
                  <?php if (in_array($option['option_id'], $vsfilterf_show_option_image)) { ?>
                  <option value="<?php echo $option['option_id']; ?>" selected="selected"><?php echo $option['name']; ?></option>
                  <?php } else { ?>
                  <option value="<?php echo $option['option_id']; ?>"><?php echo $option['name']; ?></option>
                  <?php } ?>
                  <?php } ?>
                </select></td>
              <td class="left">
                     <span><?php echo $text_option_image_width; ?>         </span><span><?php echo $text_option_image_height; ?></span><br>
                  <input type="number" value="<?php echo $vsfilterf_optionimage_dimensions_width; ?>" name="vsfilterf_optionimage_dimensions_width" style="max-width: 50px;">
                  <input type="number" value="<?php echo $vsfilterf_optionimage_dimensions_height; ?>" name="vsfilterf_optionimage_dimensions_height" style="max-width: 50px;">
              </td>
          </tr>
          </tbody>
        </table>

        <table class="form">
          <thead>
            <tr>
              <td class="left"><?php echo $text_allcategory_image; ?></td>
              <td class="left"><?php echo $text_usesubcategory; ?></td>
              <td class="left"><?php echo $text_showsubcategory; ?></td>
              <td class="left"><?php echo $text_showmemoryusage; ?></td>

              <td class="left" style="width: 1000px;"></td>
            </tr>
          </thead>
          <tbody>          
          <tr>
              <td valign="top"><div class="image"><img src="<?php echo $thumb; ?>" alt="" id="thumb" />
                  <input type="hidden" name="image" value="<?php echo $image; ?>" id="image" />
                  <br />
                  <a class="upload-image" onclick="image_upload('image', 'thumb');"><?php echo $text_browse; ?></a>  |  <a onclick="$('#thumb').attr('src', '<?php echo $no_image; ?>'); $('#image').attr('value', '');"><?php echo $text_clear; ?></a></div></td>
              <td class="left">
                      <?php if (!empty($vsfilterf_usesubcategory)) { ?>
                      <input class="vscheckbox_usesubcategory" type="checkbox" value="1" name="vsfilterf_usesubcategory" style="max-width: 50px;" checked="checked">
                      <?php } else { ?>
                      <input class="vscheckbox_usesubcategory" type="checkbox" value="0" name="vsfilterf_usesubcategory" style="max-width: 50px;" >
                      <?php } ?>
              </td>
              <td class="left">
                      <?php if (!empty($vsfilterf_showsubcategory)) { ?>
                      <input class="vscheckbox_showsubcategory" type="checkbox" value="1" name="vsfilterf_showsubcategory" style="max-width: 50px;" checked="checked">
                      <?php } else { ?>
                      <input class="vscheckbox_showsubcategory" type="checkbox" value="0" name="vsfilterf_showsubcategory" style="max-width: 50px;" >
                      <?php } ?>
              </td>
              <td class="left">
                      <?php if (!empty($vsfilterf_showmemoryusage)) { ?>
                      <input class="vscheckbox_showmemoryusage" type="checkbox" value="1" name="vsfilterf_showmemoryusage" style="max-width: 50px;" checked="checked">
                      <?php } else { ?>
                      <input class="vscheckbox_showmemoryusage" type="checkbox" value="0" name="vsfilterf_showmemoryusage" style="max-width: 50px;" >
                      <?php } ?>
              </td>
              <td class="left" style="width: 1000px;"></td>
          </tr>
          </tbody>
        </table>

        <div id="languages" class="htabs">
            <?php foreach ($languages as $language) { ?>
            <a href="#language<?php echo $language['language_id']; ?>"><img src="view/image/flags/<?php echo $language['image']; ?>" title="<?php echo $language['name']; ?>" alt="<?php echo $language['name']; ?>" /> <?php echo $language['name']; ?></a>
            <?php } ?>
        </div>
        <?php foreach ($languages as $language) { ?>
        <div id="language<?php echo $language['language_id']; ?>">
        <table class="form">
          <thead>
            <tr>
              <td class="left"><?php echo $text_filter; ?></td>
              <td class="left"><?php echo $text_use_sub_category; ?></td>
              <td class="left"><?php echo $text_clearFilter; ?></td>

              <td class="left"><?php echo $text_price; ?></td>
              <td class="left"><?php echo $text_from; ?></td>
              <td class="left"><?php echo $text_to; ?></td>   
            </tr>
          </thead>
          <tbody>          
          <tr>
            <td class="left"><input type="text" value="<?php echo isset($vsfilterf_all[$language['language_id']]) ? $vsfilterf_all[$language['language_id']]['filtername'] : $text_filter_default; ?>" name="vsfilterf_all[<?php echo $language['language_id']; ?>][filtername]" style="max-width: 200px;"></td>
            <td class="left"><input type="text" value="<?php echo isset($vsfilterf_all[$language['language_id']]) ? $vsfilterf_all[$language['language_id']]['use_subcategory'] : $text_use_sub_category_default; ?>" name="vsfilterf_all[<?php echo $language['language_id']; ?>][use_subcategory]" style="max-width: 200px;"></td>
            <td class="left"><input type="text" value="<?php echo isset($vsfilterf_all[$language['language_id']]) ? $vsfilterf_all[$language['language_id']]['clear_filter'] : $text_clearFilter_default; ?>" name="vsfilterf_all[<?php echo $language['language_id']; ?>][clear_filter]" style="max-width: 200px;"></td>

            <td class="left"><input type="text" value="<?php echo isset($vsfilterf_all[$language['language_id']]) ? $vsfilterf_all[$language['language_id']]['pricename'] : $text_price_default; ?>" name="vsfilterf_all[<?php echo $language['language_id']; ?>][pricename]" style="max-width: 200px;"></td>
            <td class="left"><input type="text" value="<?php echo isset($vsfilterf_all[$language['language_id']]) ? $vsfilterf_all[$language['language_id']]['from'] : $text_from_default; ?>" name="vsfilterf_all[<?php echo $language['language_id']; ?>][from]" style="max-width: 200px;"></td>
            <td class="left"><input type="text" value="<?php echo isset($vsfilterf_all[$language['language_id']]) ? $vsfilterf_all[$language['language_id']]['to'] : $text_to_default; ?>" name="vsfilterf_all[<?php echo $language['language_id']; ?>][to]" style="max-width: 200px;"></td>


          </tr>
          </tbody>
        </table>

        <table class="form">
          <thead>
            <tr>

              <td class="left"><?php echo $text_manufacturers; ?></td>

              <td class="left"><?php echo $text_attributes; ?></td>
              <td class="left"><?php echo $text_attribute_slider_title; ?></td>

              <td class="left"><?php echo $text_options; ?></td>    
            </tr>
          </thead>
          <tbody>          
          <tr>

            <td class="left"><input type="text" value="<?php echo isset($vsfilterf_all[$language['language_id']]) ? $vsfilterf_all[$language['language_id']]['manufacturersname'] : $text_manufacturers_default; ?>" name="vsfilterf_all[<?php echo $language['language_id']; ?>][manufacturersname]" style="max-width: 200px;"></td>

            <td class="left"><input type="text" value="<?php echo isset($vsfilterf_all[$language['language_id']]) ? $vsfilterf_all[$language['language_id']]['attributesname'] : $text_attributes_default; ?>" name="vsfilterf_all[<?php echo $language['language_id']; ?>][attributesname]" style="max-width: 200px;"></td>            
            <td class="left"><input type="text" value="<?php echo isset($vsfilterf_all[$language['language_id']]) ? $vsfilterf_all[$language['language_id']]['attributeslidertitle'] : $text_attribute_slider_title_default; ?>" name="vsfilterf_all[<?php echo $language['language_id']; ?>][attributeslidertitle]" style="max-width: 200px;"></td>

            <td class="left"><input type="text" value="<?php echo isset($vsfilterf_all[$language['language_id']]) ? $vsfilterf_all[$language['language_id']]['options'] : $text_options_default; ?>" name="vsfilterf_all[<?php echo $language['language_id']; ?>][options]" style="max-width: 200px;"></td>
          </tr>
          </tbody>
        </table>

        <table class="form">
          <thead>
            <tr>
              <td class="left"><?php echo $text_allcategory_title; ?></td>
              <td class="left"><?php echo $text_allcategory_description; ?></td>
              <td class="left"><?php echo $text_allcategory_meta_description; ?></td>
              <td class="left"><?php echo $text_allcategory_meta_keyword; ?></td>
              
            </tr>
          </thead>
          <tbody>          
          <tr>
            <td class="left"><input type="text" value="<?php echo isset($vsfilterf_all[$language['language_id']]) ? $vsfilterf_all[$language['language_id']]['allcategory_title'] : $text_allcategory_title_default; ?>" name="vsfilterf_all[<?php echo $language['language_id']; ?>][allcategory_title]" style="max-width: 200px;"></td>
            <td><textarea name="vsfilterf_all[<?php echo $language['language_id']; ?>][category_description]" cols="40" rows="5"><?php echo isset($vsfilterf_all[$language['language_id']]) ? $vsfilterf_all[$language['language_id']]['category_description'] : $text_allcategory_description_default; ?></textarea></td>
            <td><textarea name="vsfilterf_all[<?php echo $language['language_id']; ?>][meta_description]" cols="40" rows="5"><?php echo isset($vsfilterf_all[$language['language_id']]) ? $vsfilterf_all[$language['language_id']]['meta_description'] : $text_allcategory_meta_description_default; ?></textarea></td>
            <td><textarea name="vsfilterf_all[<?php echo $language['language_id']; ?>][meta_keyword]" cols="40" rows="5"><?php echo isset($vsfilterf_all[$language['language_id']]) ? $vsfilterf_all[$language['language_id']]['meta_keyword'] : $text_allcategory_meta_keyword_default; ?></textarea></td>
            
          </tr>
          </tbody>
        </table>

        </div>
        <?php } ?>

        <table id="module" class="list">
          <thead>
            <tr>
              <td class="left"><?php echo $entry_layout; ?></td>
              <td class="left"><?php echo $entry_position; ?></td>
              <td class="left"><?php echo $text_method_choice_method; ?></td>
              <td class="left"><?php echo $text_display; ?></td>
              <td class="left"><?php echo $text_attribute_level; ?></td>
              <td class="left"><?php echo $text_option_level; ?></td>
              <td class="left"><?php echo $entry_status; ?></td>
              <td class="right"><?php echo $entry_sort_order; ?></td>
              <td></td>
            </tr>
          </thead>
          <?php $module_row = 0; ?>
          <?php foreach ($modules as $module) { ?>
          <tbody id="module-row<?php echo $module_row; ?>">
            <tr>
              <td class="left"><select name="vsfilterf_module[<?php echo $module_row; ?>][layout_id]">
                  <?php foreach ($layouts as $layout) { ?>
                  <?php if ($layout['layout_id'] == $module['layout_id']) { ?>
                  <option value="<?php echo $layout['layout_id']; ?>" selected="selected"><?php echo $layout['name']; ?></option>
                  <?php } else { ?>
                  <option value="<?php echo $layout['layout_id']; ?>"><?php echo $layout['name']; ?></option>
                  <?php } ?>
                  <?php } ?>
                </select></td>
              <td class="left"><select name="vsfilterf_module[<?php echo $module_row; ?>][position]">
                  <?php if ($module['position'] == 'content_top') { ?>
                  <option value="content_top" selected="selected"><?php echo $text_content_top; ?></option>
                  <?php } else { ?>
                  <option value="content_top"><?php echo $text_content_top; ?></option>
                  <?php } ?>
                  <?php if ($module['position'] == 'content_bottom') { ?>
                  <option value="content_bottom" selected="selected"><?php echo $text_content_bottom; ?></option>
                  <?php } else { ?>
                  <option value="content_bottom"><?php echo $text_content_bottom; ?></option>
                  <?php } ?>
                  <?php if ($module['position'] == 'column_left') { ?>
                  <option value="column_left" selected="selected"><?php echo $text_column_left; ?></option>
                  <?php } else { ?>
                  <option value="column_left"><?php echo $text_column_left; ?></option>
                  <?php } ?>
                  <?php if ($module['position'] == 'column_right') { ?>
                  <option value="column_right" selected="selected"><?php echo $text_column_right; ?></option>
                  <?php } else { ?>
                  <option value="column_right"><?php echo $text_column_right; ?></option>
                  <?php } ?>
                </select></td>
              <td class="left"><select name="vsfilterf_module[<?php echo $module_row; ?>][choice_method]">
                  <?php if ($module['choice_method']) { ?>
                  <option value="1" selected="selected"><?php echo $text_method_choice_exclusively; ?></option>
                  <option value="0"><?php echo $text_method_choice_inclusively; ?></option>
                  <?php } else { ?>
                  <option value="1"><?php echo $text_method_choice_exclusively; ?></option>
                  <option value="0" selected="selected"><?php echo $text_method_choice_inclusively; ?></option>
                  <?php } ?>
                </select></td>
              <td class="left"><select name="vsfilterf_module[<?php echo $module_row; ?>][display][]" multiple>  
                  <?php if (in_array('text_display_price', $module['display'])) { ?>
                  <option value="text_display_price" selected="selected"><?php echo $text_display_price; ?></option>
                  <?php } else { ?>
                  <option value="text_display_price"><?php echo $text_display_price; ?></option>
                  <?php } ?>
                  <?php if (in_array('text_display_manufacturer', $module['display'])) { ?>
                  <option value="text_display_manufacturer" selected="selected"><?php echo $text_display_manufacturer; ?></option>
                  <?php } else { ?>
                  <option value="text_display_manufacturer"><?php echo $text_display_manufacturer; ?></option>
                  <?php } ?>
                  <?php if (in_array('text_display_attribute', $module['display'])) { ?>
                  <option value="text_display_attribute" selected="selected"><?php echo $text_display_attribute; ?></option>
                  <?php } else { ?>
                  <option value="text_display_attribute"><?php echo $text_display_attribute; ?></option>
                  <?php } ?>
                  <?php if (in_array('text_display_option', $module['display'])) { ?>
                  <option value="text_display_option" selected="selected"><?php echo $text_display_option; ?></option>
                  <?php } else { ?>
                  <option value="text_display_option"><?php echo $text_display_option; ?></option>
                  <?php } ?>
                </select></td>
              <td class="left"><select name="vsfilterf_module[<?php echo $module_row; ?>][attrlevel][]" multiple>  
                  <?php if (in_array('1', $module['attrlevel'])) { ?>
                  <option value="1" selected="selected"><?php echo $text_attribute_level_1; ?></option>
                  <?php } else { ?>
                  <option value="1"><?php echo $text_attribute_level_1; ?></option>
                  <?php } ?>
                  <?php if (in_array('2', $module['attrlevel'])) { ?>
                  <option value="2" selected="selected"><?php echo $text_attribute_level_2; ?></option>
                  <?php } else { ?>
                  <option value="2"><?php echo $text_attribute_level_2; ?></option>
                  <?php } ?>
                  <?php if (in_array('3', $module['attrlevel'])) { ?>
                  <option value="3" selected="selected"><?php echo $text_attribute_level_3; ?></option>
                  <?php } else { ?>
                  <option value="3"><?php echo $text_attribute_level_3; ?></option>
                  <?php } ?>
                </select></td>
              <td class="left"><select name="vsfilterf_module[<?php echo $module_row; ?>][optionlevel][]" multiple>  
                  <?php if (in_array('1', $module['optionlevel'])) { ?>
                  <option value="1" selected="selected"><?php echo $text_option_level_1; ?></option>
                  <?php } else { ?>
                  <option value="1"><?php echo $text_option_level_1; ?></option>
                  <?php } ?>
                  <?php if (in_array('2', $module['optionlevel'])) { ?>
                  <option value="2" selected="selected"><?php echo $text_option_level_2; ?></option>
                  <?php } else { ?>
                  <option value="2"><?php echo $text_option_level_2; ?></option>
                  <?php } ?>
                </select></td>
              <td class="left"><select name="vsfilterf_module[<?php echo $module_row; ?>][status]">
                  <?php if ($module['status']) { ?>
                  <option value="1" selected="selected"><?php echo $text_enabled; ?></option>
                  <option value="0"><?php echo $text_disabled; ?></option>
                  <?php } else { ?>
                  <option value="1"><?php echo $text_enabled; ?></option>
                  <option value="0" selected="selected"><?php echo $text_disabled; ?></option>
                  <?php } ?>
                </select></td>
              <td class="right"><input type="text" name="vsfilterf_module[<?php echo $module_row; ?>][sort_order]" value="<?php echo $module['sort_order']; ?>" size="3" /></td>
              <td class="left"><a onclick="$('#module-row<?php echo $module_row; ?>').remove();" class="button delete"><?php echo $button_remove; ?></a></td>
            </tr>
          </tbody>
          <?php $module_row++; ?>
          <?php } ?>
          <tfoot>
            <tr>
              <td colspan="5"></td>
              <td class="left"><a onclick="addModule();" class="button insert"><?php echo $button_add_module; ?></a></td>
            </tr>
          </tfoot>
        </table>
      </form>
    </div>
  </div>
</div>
<script type="text/javascript" src="view/javascript/ckeditor/ckeditor.js"></script> 
<script type="text/javascript"><!--
<?php foreach ($languages as $language) { ?>
CKEDITOR.replace('description<?php echo $language['language_id']; ?>', {
	filebrowserBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	filebrowserImageBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	filebrowserFlashBrowseUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	filebrowserUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	filebrowserImageUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>',
	filebrowserFlashUploadUrl: 'index.php?route=common/filemanager&token=<?php echo $token; ?>'
});
<?php } ?>
//--></script>
<script type="text/javascript"><!--
function image_upload(field, thumb) {
	$('#dialog').remove();
	
	$('#content').prepend('<div id="dialog" style="padding: 3px 0px 0px 0px;"><iframe src="index.php?route=common/filemanager&token=<?php echo $token; ?>&field=' + encodeURIComponent(field) + '" style="padding:0; margin: 0; display: block; width: 100%; height: 100%;" frameborder="no" scrolling="auto"></iframe></div>');
	
	$('#dialog').dialog({
		title: '<?php echo $text_image_manager; ?>',
		close: function (event, ui) {
			if ($('#' + field).attr('value')) {
				$.ajax({
					url: 'index.php?route=common/filemanager/image&token=<?php echo $token; ?>ℑ=' + encodeURIComponent($('#' + field).val()),
					dataType: 'text',
					success: function(data) {
						$('#' + thumb).replaceWith('<img src="' + data + '" alt="" id="' + thumb + '" />');
					}
				});
			}
		},	
		bgiframe: false,
		width: 800,
		height: 400,
		resizable: false,
		modal: false
	});
};
//--></script> 
<script type="text/javascript"><!--
$('#tabs a').tabs(); 
$('#languages a').tabs();
//--></script>
<script type="text/javascript"><!--
var module_row = <?php echo $module_row; ?>;

function addModule() {	
	html  = '<tbody id="module-row' + module_row + '">';
	html += '  <tr>';
	html += '    <td class="left"><select name="vsfilterf_module[' + module_row + '][layout_id]">';
	<?php foreach ($layouts as $layout) { ?>
	html += '      <option value="<?php echo $layout['layout_id']; ?>"><?php echo addslashes($layout['name']); ?></option>';
	<?php } ?>
	html += '    </select></td>';
	html += '    <td class="left"><select name="vsfilterf_module[' + module_row + '][position]">';
	html += '      <option value="content_top"><?php echo $text_content_top; ?></option>';
	html += '      <option value="content_bottom"><?php echo $text_content_bottom; ?></option>';
	html += '      <option value="column_left"><?php echo $text_column_left; ?></option>';
	html += '      <option value="column_right"><?php echo $text_column_right; ?></option>';
	html += '    </select></td>';

	html += '    <td class="left"><select name="vsfilterf_module[' + module_row + '][choice_method]">';
    html += '      <option value="1" selected="selected"><?php echo $text_method_choice_exclusively; ?></option>';
    html += '      <option value="0"><?php echo $text_method_choice_inclusively; ?></option>';
    html += '    </select></td>';

    html += '    <td class="left"><select name="vsfilterf_module[' + module_row + '][display][]" multiple>';
    html += '      <option value="text_display_price" selected="selected"><?php echo $text_display_price; ?></option>';
    html += '      <option value="text_display_manufacturer" selected="selected"><?php echo $text_display_manufacturer; ?></option>';
    html += '      <option value="text_display_attribute" selected="selected"><?php echo $text_display_attribute; ?></option>';
    html += '      <option value="text_display_option" selected="selected"><?php echo $text_display_option; ?></option>';
    html += '    </select></td>';

    html += '    <td class="left"><select name="vsfilterf_module[' + module_row + '][attrlevel][]" multiple>';
    html += '      <option value="1" selected="selected"><?php echo $text_attribute_level_1; ?></option>';
    html += '      <option value="2" selected="selected"><?php echo $text_attribute_level_2; ?></option>';
    html += '      <option value="3" selected="selected"><?php echo $text_attribute_level_3; ?></option>';
    html += '    </select></td>';

    html += '    <td class="left"><select name="vsfilterf_module[' + module_row + '][optionlevel][]" multiple>';
    html += '      <option value="1" selected="selected"><?php echo $text_option_level_1; ?></option>';
    html += '      <option value="2" selected="selected"><?php echo $text_option_level_2; ?></option>';
    html += '    </select></td>';

	html += '    <td class="left"><select name="vsfilterf_module[' + module_row + '][status]">';
    html += '      <option value="1" selected="selected"><?php echo $text_enabled; ?></option>';
    html += '      <option value="0"><?php echo $text_disabled; ?></option>';
    html += '    </select></td>';
	html += '    <td class="right"><input type="text" name="vsfilterf_module[' + module_row + '][sort_order]" value="" size="3" /></td>';
	html += '    <td class="left"><a onclick="$(\'#module-row' + module_row + '\').remove();" class="button delete"><?php echo $button_remove; ?></a></td>';
	html += '  </tr>';
	html += '</tbody>';
	
	$('#module tfoot').before(html);
	
	module_row++;
}
//--></script> 
<script type="text/javascript">
    $('.vscheckbox_usesubcategory').bind('click', function () {
        if ($(".vscheckbox_usesubcategory").attr('checked') == 'checked')
        {
            $(".vscheckbox_usesubcategory").attr('value', 1);
        }
        else
        {
            $(".vscheckbox_usesubcategory").attr('value', 0);
        }
        
    });
    $('.vscheckbox_showsubcategory').bind('click', function () {
        if ($(".vscheckbox_showsubcategory").attr('checked') == 'checked')
        {
            $(".vscheckbox_showsubcategory").attr('value', 1);
        }
        else
        {
            $(".vscheckbox_showsubcategory").attr('value', 0);
        }
        
    });    
    $('.vscheckbox_showmemoryusage').bind('click', function () {
        if ($(".vscheckbox_showmemoryusage").attr('checked') == 'checked')
        {
            $(".vscheckbox_showmemoryusage").attr('value', 1);
        }
        else
        {
            $(".vscheckbox_showmemoryusage").attr('value', 0);
        }
        
    });

    $('.button').bind('click', function () {
        $('.success').hide();
    });
    function vsfilterfactivate() {
        $.ajax({
            url: 'index.php?route=module/vsfilterf/vsfilterfactivate&token=<?php echo $token; ?>',
            async: false,
            dataType: 'json'
        })
        .always(function (data, textStatus, errorThrown) {
            alert(textStatus + ': ' + data['info']);
            window.location.reload(true);
        });
    };

    function vsfilterfdeactivate() {
        $.ajax({
            url: 'index.php?route=module/vsfilterf/vsfilterfdeactivate&token=<?php echo $token; ?>',
            async: false,
            dataType: 'json'
        })
        .always(function (data, textStatus, jqXHRerrorThrown) {
            alert(textStatus + ': ' + data['info']);
            window.location.reload(true);
        });
    };
</script>
<?php echo $footer; ?>
,
Надіслати
Поділитися на інших сайтах


К автору за разъяснениями и уточнить там же ,как быть если не покупал сам.Но кажется мне что звание "Пользователь вареза!" не верно было истолковано.Это не то чем гордится можно.Это последнее предупреждение.И вероятнее всего момент залететь в бан настал.

 

Потому как "первый разработчик" вот этого

 

http://good-pets.com.ua/

звучит как бред....

Надіслати
Поділитися на інших сайтах

Гість
Ця тема закрита для публікації повідомлень.
  • Зараз на сторінці   0 користувачів

    • Ні користувачів, які переглядиють цю сторінку

×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.