Проблема с JavaScript (Constructor)

Тема в разделе "JavaScript", создана пользователем ValeriusSoft, 15 июн 2015.

  1. ValeriusSoft

    ValeriusSoft

    Регистрация:
    4 фев 2015
    Сообщения:
    83
    Симпатии:
    31
    Добрый день!
    У меня проблема с Конструктором http://constructor.furnimob.md/
    Не отображаются картинки...

    Этот путь не работает:
    http://constructor.furnimob.md/image.php?height=150&src=dsp/red_der.jpg
    Failed to load resource: the server responded with a status of 404 (Not Found)

    А должно быть, вот этот путь что бы картинки сработали:
    http://constructor.furnimob.md/Files/Textures/dsp/red_der.jpg

    Как исправить? предлагайте пожалуйста любые способы устранить этот баг

    У меня на сайте нету файла image.php
    как сменить путь?
    Вот в файле image-area.js

    Код:
    /**
    * Image area representation data type
    */
    konstructor.ImageArea = function ( space, is, svg_selector, width, height, simplest_flag, border_flag )
    {
        this.mySpace = space;
        this.myIS = is;
        this.mySVGSelector = svg_selector;
       
        this.myBGWidth = width;
        this.myBGHeight = height;
       
        this.mySimplestFlag = simplest_flag;
        this.myBorderFlag = border_flag;
    
        this.init();
    }
    
    // Adding methods
    imfish.mixin(konstructor.ImageArea.prototype, {
        /**
         * Initialising area function
         */
        init: function ()
        {
            var obj = this;
    
            var selector_ind = this.mySVGSelector.addObject(this.mySpace);
            this.mySelectorIndR = selector_ind;
           
            $(this.mySpace.node).css({cursor: "pointer"});
           
            $(this.mySpace.node).mouseover(function () {
                obj.mySpace.attr({"opacity": 1});
            });
           
            $(this.mySpace.node).mouseout(function () {
                obj.mySpace.attr({"opacity": 1});
            });
           
            $(this.mySpace.node).click(function () {
                obj.mySpace.toFront();
    
                obj.mySVGSelector.select(selector_ind);
               
                obj.myIS.show(function ( file_name ) {
                    obj.mySpace.attr({"fill": "url(image." + konstructor.settings.konstructor.php_ext +
                        "?src=" + encodeURIComponent(file_name) +
                        "&width=" + obj.myBGWidth +
                        "&height=" + obj.myBGHeight +
                        "&save_wh=0" +
                        ")"
                    });
                    if (obj.callback) {
                        obj.callback();
                    }
                });
    
                if (obj.mySimplestFlag) {
                    obj.myIS.showSimplest();
                } else {
                    obj.myIS.hideSimplest();
                }
    
                if (obj.myBorderFlag) {
                    obj.myIS.showBorderItems();
                } else {
                    obj.myIS.hideBorderItems();
                }
            });
        },
       
        /**
         * Emulating click function
         */
        click: function () {
            var obj = this;
    
            obj.mySpace.toFront();
    
            obj.mySVGSelector.select(this.mySelectorIndR);
           
            obj.myIS.show(function ( file_name ) {
                obj.mySpace.attr({"fill": "url(image." + konstructor.settings.konstructor.php_ext +
                    "?src=" + encodeURIComponent(file_name) +
                    "&width=" + obj.myBGWidth +
                    "&height=" + obj.myBGHeight +
                    "&save_wh=0" +
                    ")"
                });
                if (obj.callback) {
                    obj.callback();
                }
            });
    
            if (obj.mySimplestFlag) {
                obj.myIS.showSimplest();
            } else {
                obj.myIS.hideSimplest();
            }
    
            if (obj.myBorderFlag) {
                obj.myIS.showBorderItems();
            } else {
                obj.myIS.hideBorderItems();
            }
        }
    });
    Вот файл image-selector.js

    Код:
    /**
    * Images selector representation data type
    */
    konstructor.ImagesSelector = function ( folder, space )
    {
        this.myFolder = folder;
        this.mySpace = space;
       
        this.myCallback = function () {};
       
        this.getSettings();
       
        this.hide();
        this.load();
    }
    
    // Adding methods
    imfish.mixin(konstructor.ImagesSelector.prototype, {
        /**
         * Preprocessing application settings function
         */
        getSettings: function () {
            this.myFillersTypes = konstructor.settings.doors3.fillers_types;
        },
       
        /**
         * Loading files list function
         */
        load: function () {
            // Clearing space
            this.mySpace.html("");
           
            // Creating DOM
            var divMenu = $("<div></div>")
                .css({
                    "float": "left",
                    width: 205,
                    cursor: "pointer"
                })
                .appendTo(this.mySpace);
            var divImages = $("<div></div>")
                .css({
                    "float": "left",
                    'border': '1px solid #adadad',
                    'margin-left': 7,
                    'padding': 5
                })
                .appendTo(this.mySpace);
           
            // Creating frames application for menu elements content
            this.myContentApp = new imfish.FramesApp(divImages);
           
            // Setting application width
            this.myContentApp.setFrameWidth(350);
            this.myContentApp.navigationControl = false;
       
            // Creating menu and generating frames
            var frames = [];
            this.mySimplestItems = [];
            this.myBorderItems = [];
            for (var i in this.myFillersTypes)
            {
                // Creating menu item
                var menuItem = $("<div></div>")
                    .attr('menu-item', true)
                    .css({height: 19, 'padding-top': 2, 'padding-bottom': 2})
                    .html($('<div>').css('float', 'left').html(this.myFillersTypes[i].name))
                    .appendTo(divMenu);
                if (this.myFillersTypes[i].submenu)
                    menuItem.css({'margin-left': 20, 'font-size': '10pt'});
                if (i != 0) {
                    menuItem.css({'border-top': '1px solid #adadad'});
                }
                if (typeof this.myFillersTypes[i].label == 'undefined') {
                    var menuImg = $('<img>')
                        .attr('src', 'Files/Icons/s2.gif')
                        .css({'float': 'right'})
                        .appendTo(menuItem);
                }
               
                // Saving simplest menu
                if (this.myFillersTypes[i].simple)
                    this.mySimplestItems[this.mySimplestItems.length] = menuItem;
                if (this.myFillersTypes[i].borderFlag)
                    this.myBorderItems[this.myBorderItems.length] = menuItem;
               
                // Generating current item frame
                var obj = this;
                var frame = {};
                new function ( frame, ind ) {
                    frame.render = function () {
                        obj.myContentApp.myNavigationContainer.css({height: 0}).hide();
                       
                        // Checking first function call was proceed later
                        if (this.firstCall)
                            return;
                       
                        if (obj.myFillersTypes[ind].files.length == 0)   
                            this.mySpace.html('&nbsp;');
                           
                        // Adding images
                        for (var i in obj.myFillersTypes[ind].files) {
                            var file_name = obj.myFillersTypes[ind].files[i];
                           
                            var container = $('<div>').css('float', 'left').appendTo(this.mySpace);
                            container.css({
                                "padding-left": "5px",
                                "padding-top": "5px",
                                "padding-bottom": "5px",
                                "cursor": "pointer",
                                'font-size': '10pt'
                            });
    
                            var imageHeight = obj.myFillersTypes[ind].imagesHeight || 150;
               
                            var img = $("<img />");
                            img.attr("src", "image." + konstructor.settings.konstructor.php_ext + "?height=" + imageHeight + "&src=" + file_name);                   
                            img.appendTo(container);
                           
                            if (obj.myFillersTypes[ind].titles && typeof obj.myFillersTypes[ind].titles[i] == 'string')
                                container.append('<br>' + obj.myFillersTypes[ind].titles[i]);
                           
                            new function ( file_name ) {
                                konstructor.UI.clickable(img, function () {
                                    obj.myCallback(file_name);
                                });
                            }(file_name);
                        }
                           
                        // Setting first call flag
                        this.firstCall = true;
                    };
                } (frame, i);
               
                // Showign menu item frame by mouseover
                if (typeof this.myFillersTypes[i].label == 'undefined') {
                    new function ( obj, menuItem, ind ) {
                        menuItem.mouseover(function () {
                            menuItem.find('img').attr('src', 'Files/Icons/s1.gif');
                            menuItem.find('div').css({color: '#ce171f'});
                        });
                        menuItem.mouseout(function () {
                            if (menuItem.css('color') != 'rgb(206, 23, 31)') {
                                menuItem.find('img').attr('src', 'Files/Icons/s2.gif');
                            }
                           
                            menuItem.find('div').css({color: ''});
                        });
                        menuItem.click(function () {
                            menuItem.parent().find('div').css({color: '', 'text-weight': ''});
                            menuItem.parent().find('img').attr('src', 'Files/Icons/s2.gif');
    
                            menuItem.css({color: '#ce171f'});
                            menuItem.find('img').attr('src', 'Files/Icons/s1.gif');
    
                            obj.myContentApp.selectFrame(ind, true);
                           
                            // Setting images space height
                            var height = obj.myContentApp.selectedFrameHeight();
                            if (height < 360)
                                height = 360;
                            divImages.css('height', height);
                           
                            // Setting simplest flag
                            obj.selectedIsSimplest = obj.myFillersTypes[ind].simple ? true : false;
                            obj.selectedIsBorder = obj.myFillersTypes[ind].borderFlag ? true : false;
                        })
                    } (this, menuItem, i);
                }
               
                frames[frames.length] = frame;
            }
           
            // Adding frames to application
            this.myContentApp.setFrames(frames);
           
            // Rendering all frames
            this.myContentApp.renderFrames();
                           
            // Setting images space height
            var height = obj.myContentApp.selectedFrameHeight();
            divImages.css('height', 360);
           
            // Selecting first menu item
            this.mySpace.find('div[menu-item=true]:eq(0)').css({color: '#ce171f', 'text-weight': 'bold'});
            this.mySpace.find('div[menu-item=true]:eq(0) > img').attr('src', 'Files/Icons/s1.gif');
        },
    
        /**
         * Hiding images function
         */
        show: function ( callback )    {
            this.myCallback = callback;
            this.mySpace.show();
        },
       
        /**
         * Hiding images function
         */
        hide: function () {
            this.mySpace.hide();
        },
       
        /**
         * Showing simplest items function
         */
        showSimplest: function () {
            for (var i in this.mySimplestItems)
                this.mySimplestItems[i].show();
        },
       
        /**
         * Showing simplest items function
         */
        hideSimplest: function () {
            for (var i in this.mySimplestItems)
                this.mySimplestItems[i].hide();
               
            if (this.selectedIsSimplest == true) {
                this.mySpace.find('div[menu-item=true]').css({color: ''});
                this.mySpace.find('div[menu-item=true] > img').attr('src', 'Files/Icons/s2.gif');
       
                this.mySpace.find('div[menu-item=true]:eq(0)').css({color: '#ce171f', 'text-weight': 'bold'});
                this.mySpace.find('div[menu-item=true]:eq(0) > img').attr('src', 'Files/Icons/s1.gif');
    
                this.myContentApp.selectFrame(0, true);
            }
        },
       
        /**
         * Showing border items function
         */
        showBorderItems: function () {
            for (var i in this.myBorderItems)
                this.myBorderItems[i].show();
        },
       
        /**
         * Showing border items function
         */
        hideBorderItems: function () {
            for (var i in this.myBorderItems)
                this.myBorderItems[i].hide();
               
            if (this.selectedIsBorder == true) {
                this.mySpace.find('div[menu-item=true]').css({color: ''});
                this.mySpace.find('div[menu-item=true] > img').attr('src', 'Files/Icons/s2.gif');
       
                this.mySpace.find('div[menu-item=true]:eq(0)').css({color: '#ce171f', 'text-weight': 'bold'});
                this.mySpace.find('div[menu-item=true]:eq(0) > img').attr('src', 'Files/Icons/s1.gif');
    
                this.myContentApp.selectFrame(0, true);
            }
        }
    });
    Вот код из файла settings.doors3.js

    Код:
    // Declaration of settings variable
    konstructor.settings.doors3 = {
        doorsCountReccomend: [
            [2, 1000, 2400],
            [3, 1500, 3600],
            [4, 2000, 4800],
            [5, 2500, 6000],
            [6, 3000, 6000]
        ],
        doorsCountBest: [
            [2, 1775],
            [3, 2250],
            [4, 3550],
            [5, 4400],
            [6, 6000]
        ],
        models: [
            {
                type: "horizontal",
                borders: []
            },
            {
                type: "vertical",
                borders: [{b1: 0.15, b2: 0.85}]
            },
            {
                type: "vertical",
                borders: [{b1: 0.85, b2: 0.15}]
            },
            {
                type: "horizontal",
                borders: [[1, 10]]
            },
            {
                type: "horizontal",
                borders: [[10, 1]]
            },
            {
                type: "horizontal",
                borders: [[4, 1], [7, 10]]
            },
            {
                type: "horizontal",
                borders: [[1, 4], [10, 7]]
            },
            {
                type: "horizontal",
                borders: [[4, 4], [7, 7]]
            },
            {
                type: "horizontal",
                borders: [[10, 10]]
            },
            {
                type: "horizontal",
                borders: [[1, 1], [10, 10]]
            },
           
           
           
            {
                type: "horizontal",
                borders: [[1, 1]]
            },
            {
                type: "horizontal",
                borders: [[5, 3], [8, 6]]
            },
            {
                type: "horizontal",
                borders: [[3, 3], [6, 6]]
            },
            {
                type: "horizontal",
                borders: [[3, 5], [6, 8]]
            },
            {
                type: "horizontal",
                borders: [[5, 5], [8, 8]]
            },
            {
                type: "horizontal",
                borders: [[3, 3], [4, 4], [7, 7], [8, 8]]
            },
            {
                type: "horizontal",
                borders: [[5, 5], [6, 6]]
            },
            {
                type: "horizontal",
                borders: [[1, 1], [5, 5], [6, 6], [10, 10]]
            },
            {
                type: "horizontal",
                borders: [[2, 2], [5, 5], [6, 6], [9, 9]]
            },
            {
                type: "horizontal",
                borders: [[3, 3], [5, 5], [6, 6], [8, 8]]
            },
    
           
    
            {
                type: "horizontal",
                borders: [[4, 4], [5, 5], [6, 6], [7, 7]]
            },
            {
                type: "horizontal",
                borders: [[1, 1], [4, 4], [7, 7], [10, 10]]
            },
            {
                type: "horizontal",
                borders: [[1, 1], [4, 4], [7, 7]]
            },
            {
                type: "horizontal",
                borders: [[4, 4], [7, 7], [10, 10]]
            },
            {
                type: "horizontal",
                borders: [[7, 7], [10, 10]]
            },
            {
                type: "horizontal",
                borders: [[1, 1], [4, 4]]
            },
            {
                type: "horizontal",
                borders: [[1, 1], [8, 8]]
            },
            {
                type: "horizontal",
                borders: [[3, 3], [10, 10]]
            },
            {
                type: "horizontal",
                borders: [[3, 1], [10, 8]]
            },
            {
                type: "horizontal",
                borders: [[1, 3], [8, 10]]
            },
    
           
           
            {
                type: "horizontal",
                borders: [[3, 1], [6, 4]]
            },
            {
                type: "horizontal",
                borders: [[1, 3], [4, 6]]
            },
            {
                type: "horizontal",
                borders: [[7, 5], [10, 8]]
            },
            {
                type: "horizontal",
                borders: [[5, 7], [8, 10]]
            },
            {
                type: "horizontal",
                borders: [[4, 1], [7, 4], [10, 7]]
            },
            {
                type: "horizontal",
                borders: [[1, 4], [4, 7], [7, 10]]
            },
            {
                type: "horizontal",
                borders: [[3, 1], [5, 5], [6, 6], [8, 10]]
            },
            {
                type: "horizontal",
                borders: [[1, 3], [5, 5], [6, 6], [10, 8]]
            },
            {
                type: "horizontal",
                borders: [[1, 3], [5, 5], [6, 6], [8, 10]]
            },
            {
                type: "horizontal",
                borders: [[3, 1], [5, 5], [6, 6], [10, 8]]
            },
            {
                type: "vertical",
                borders: [{b1: 0.15, b2: 0.15}]
            },
            {
                type: "vertical",
                borders: [{b1: 0.85, b2: 0.85}]
            },
            {
                type: "vertical",
                borders: [{b1: 0.50, b2: 0.50}]
            }
        ],
        fillers_types: [
            {
                name: "ДСП 10мм",
                files: ["dsp/milk_dsp.jpg", "dsp/buk.html", "dsp/dub.html", "dsp/orex.html", "dsp/red_der.html", "dsp/venge.html", "dsp/white_dsp.html", "dsp/vishna.html", "dsp/shimolight_dsp.html", "dsp/shimo_dsp.jpg"],
                titles: ['млеч.дуб', 'бук', 'дуб', 'орех', 'кр.дер.', 'венге', 'белый', 'вишня', 'ясень св.', 'ясень тем.']
            },
            {
                name: "ДСП 16мм (вставки)",
                files: ["dsp/bej_dsp.jpg", "dsp/grey_dsp.jpg"],
                titles: ['бежевый', 'серый'],
                borderFlag: true
            },
            {
                name: "МДФ 16мм 'пластик'",
                files: ["plastik/1.jpg", "plastik/2.html", "plastik/3.html", "plastik/4.html", "plastik/5.html",
                    "plastik/6.html", "plastik/7.html", "plastik/8.html", "plastik/9.html", "plastik/10.jpg" ],
                borderFlag: true
            },
            {
                name: "МДФ 16мм 'дерево'",
                files: ["dsp/belder.jpg", "dsp/dub_bel.html", "dsp/dub_vib.html", "dsp/jassiz.html", "dsp/starder.jpg"],
                titles: ['бел.дер.', 'дуб бел.', 'дуб выб.', 'яс.сиз.', 'стар.дер.' ],
                borderFlag: true
            },
            {
                name: "Зеркало без рисунка",
                files: ["zerkalo/norm.jpg", "zerkalo/ton.jpg"],
                titles: ['обычное', 'тонированое']
            },
            {
                name: "Зеркало с декором",
                files: ["zerkalo/1.jpg", "zerkalo/1f.html", "zerkalo/2.html", "zerkalo/2f.html", "zerkalo/3.html", "zerkalo/4.html", "zerkalo/4f.html", "zerkalo/5.html", "zerkalo/5f.html", "zerkalo/6.html", "zerkalo/6f.html", "zerkalo/7.html", "zerkalo/7f.html", "zerkalo/8.html", "zerkalo/8f.html", "zerkalo/9f.html", "zerkalo/9.jpg" ],
                titles: ['1', '1ф', '2', '2ф', '3', '4', '4ф', '5', '5ф', '6', '6ф', '7', '7ф', '8', '8ф', '9ф', '9']
            },
    
            {
                name: "Cтекло",
                label: true,
                files: []
            },
            {
                name: "Матовое",
                submenu: true,
                files: ["steklo-mat/br_prosr.jpg", "steklo-mat/mat.jpg"]
            },
            {
                name: "Пленка (А) ORACAL-641",
                submenu: true,
                files: ["steklo/small/q_010.jpg", "steklo/small/q_082.html", "steklo/small/q_023.html", "steklo/small/q_091.html", "steklo/small/q_090.html", "steklo/small/q_072.html", "steklo/small/q_070.jpg"],
                titles: ['010', '082', '023', '091', '090', '072', '070']
            },
            {
                name: "Пленка (B) ORACAL-641",
                submenu: true,
                files: ["steklo/small/q_035.jpg", "steklo/small/q_040.html", "steklo/small/q_041.html", "steklo/small/q_043.html", "steklo/small/q_050.html", "steklo/small/q_052.html", "steklo/small/q_053.html", "steklo/small/q_055.html", "steklo/small/q_056.html", "steklo/small/q_061.html",
                      "steklo/small/q_063.html", "steklo/small/q_073.html", "steklo/small/q_076.html", "steklo/small/q_080.html", "steklo/small/q_081.html", "steklo/small/q_083.html", "steklo/small/q_092.jpg" ],
                titles: ['035', '040', '041', '043', '050', '052', '053', '055', '056', '061', '063', '073', '076', '080', '081', '083', '092' ]
    
            },
    
            {
                name: "Ротанг, бамбук",
                files: ["rotang_bamb/rotang_green.jpg", "rotang_bamb/rotang_kojak.html", "rotang_bamb/rotang_kori.html", "rotang_bamb/rotang_vanil.html", "rotang_bamb/rotang_yellow.html", "rotang_bamb/bambuu.jpg"],
                titles: ['зеленый<br>жемчуг', 'ясно конь-<br>ячный', 'корич-<br>невый', 'ваниль', 'желтый<br>&nbsp;', 'бамбук']
            },
            {
                name: "ФОТО на стекле",
                files: ['peskostru/small/41.jpg', 'peskostru/small/42.html', 'peskostru/small/43.html', 'peskostru/small/44.html', 'peskostru/small/45.html',
                    'peskostru/small/46.html', 'peskostru/small/47.html', 'peskostru/small/48.html', 'peskostru/small/49.jpg'],
                borderFlag: true,
                imagesHeight: 70
            },
    
            {
                name: "Декор. на стекле",
                files: [ 
                "steklo/small/tk01.jpg", "steklo/small/tk02.html", "steklo/small/tk03.html", "steklo/small/tk04.html", "steklo/small/tk05.html", "steklo/small/tk06.html",
                "steklo/small/tk07.html", "steklo/small/tk08.html", "steklo/small/tk09.html", "steklo/small/tk10.html", "steklo/small/tk11.html", "steklo/small/tk12.html",
                "steklo/small/tk13.html", "steklo/small/tk14.html", "steklo/small/tk15.html", "steklo/small/tk16.html", "steklo/small/tk17.html", "steklo/small/tk18.html",
                "steklo/small/tk19.html", "steklo/small/tk20.html", "steklo/small/tk21.html", "steklo/small/tk22.html", "steklo/small/tk23.html", "steklo/small/tk24.html",
                "steklo/small/tk25.html", "steklo/small/tk26.html", "steklo/small/tk27.html", "steklo/small/tk28.html", "steklo/small/tk29.html", "steklo/small/tk30.html",
                "steklo/small/tk31.html", "steklo/small/tk32.html", "steklo/small/tk33.html", "steklo/small/tk34.html", "steklo/small/tk35.html", "steklo/small/tk36.jpg"],
                borderFlag: true,
                imagesHeight: 70
    
            },
    
    {
                name: "Рисунки 'Пескоструй'",
                files: ['peskostru/small/1.jpg', 'peskostru/small/2.html', 'peskostru/small/3.html', 'peskostru/small/4.html', 'peskostru/small/5.html',
                    'peskostru/small/6.html', 'peskostru/small/7.html', 'peskostru/small/8.html', 'peskostru/small/9.html', 'peskostru/small/10.html', 'peskostru/small/11.html',
                    'peskostru/small/12.html', 'peskostru/small/13.html', 'peskostru/small/14.html', 'peskostru/small/15.html', 'peskostru/small/16.html',
                    'peskostru/small/17.html', 'peskostru/small/18.html', 'peskostru/small/19.html', 'peskostru/small/20.html', 'peskostru/small/21.html',
                    'peskostru/small/22.html', 'peskostru/small/23.html', 'peskostru/small/24.html', 'peskostru/small/25.html', 'peskostru/small/26.html',
                    'peskostru/small/27.html', 'peskostru/small/28.html', 'peskostru/small/29.html', 'peskostru/small/30.html', 'peskostru/small/31.html',
                    'peskostru/small/32.html', 'peskostru/small/33.html', 'peskostru/small/34.html', 'peskostru/small/35.html', 'peskostru/small/36.jpg'],
                borderFlag: true,
                imagesHeight: 70
            },
    {
                name: "ФОТОПЕЧАТЬ на стекле",
                files: [],
                simple: true,
                label: true        },
    //{
    //            name: "Примеры",
    //            files: ["peskostru/abstract/71.jpg", "peskostru/abstract/72.jpg", "peskostru/abstract/73.jpg", "peskostru/abstract/74.jpg", "peskostru/abstract/75.jpg",
    //                "peskostru/abstract/76.jpg", "peskostru/abstract/77.jpg", "peskostru/abstract/78.jpg", "peskostru/abstract/79.jpg", "peskostru/abstract/80.jpg"],
    //            simple: true,
    //            submenu: true
    //        },
    
            {
                name: "Декор. текстуры",
                files: [ 
                "steklo/tk01.jpg", "steklo/tk02.html", "steklo/tk03.html", "steklo/tk04.html", "steklo/tk05.html", "steklo/tk06.html",
                "steklo/tk07.html", "steklo/tk08.html", "steklo/tk09.html", "steklo/tk10.html", "steklo/tk11.html", "steklo/tk12.html",
                "steklo/tk13.html", "steklo/tk14.html", "steklo/tk15.html", "steklo/tk16.html", "steklo/tk17.html", "steklo/tk18.html",
                "steklo/tk19.html", "steklo/tk20.html", "steklo/tk21.html", "steklo/tk22.html", "steklo/tk23.html", "steklo/tk24.html",
                "steklo/tk25.html", "steklo/tk26.html", "steklo/tk27.html", "steklo/tk28.html", "steklo/tk29.html", "steklo/tk30.html",
                "steklo/tk31.html", "steklo/tk32.html", "steklo/tk33.html", "steklo/tk34.html", "steklo/tk35.html", "steklo/tk36.jpg"],
                simple: true,
                submenu: true
    
            },
    
    
    {
                name: "Города",
                files: ["peskostru/abstract/81.jpg", "peskostru/abstract/82.html", "peskostru/abstract/83.html", "peskostru/abstract/84.html", "peskostru/abstract/85.html",
                    "peskostru/abstract/86.html", "peskostru/abstract/87.html", "peskostru/abstract/88.html", "peskostru/abstract/89.html", "peskostru/abstract/90.html",
                    "peskostru/abstract/91.html", "peskostru/abstract/92.html", "peskostru/abstract/93.html", "peskostru/abstract/94.html", "peskostru/abstract/95.html",
                    "peskostru/abstract/96.html", "peskostru/abstract/97.html", "peskostru/abstract/98.html", "peskostru/abstract/99.html", "peskostru/abstract/100.html",
                    "peskostru/abstract/101.html", "peskostru/abstract/102.html", "peskostru/abstract/103.html", "peskostru/abstract/104.html", "peskostru/abstract/105.html",
                    "peskostru/abstract/106.html", "peskostru/abstract/107.html", "peskostru/abstract/108.jpg"],
                simple: true,
                submenu: true
            },
    {
                name: "Природа",
                files: ["peskostru/abstract/120.jpg", "peskostru/abstract/121.html", "peskostru/abstract/122.html", "peskostru/abstract/123.html", "peskostru/abstract/124.html",
                    "peskostru/abstract/125.html", "peskostru/abstract/126.html", "peskostru/abstract/127.html", "peskostru/abstract/128.html", "peskostru/abstract/129.html",
                    "peskostru/abstract/130.html", "peskostru/abstract/131.html", "peskostru/abstract/132.html", "peskostru/abstract/133.html", "peskostru/abstract/134.html",
                    "peskostru/abstract/135.html", "peskostru/abstract/136.html", "peskostru/abstract/137.html", "peskostru/abstract/138.html", "peskostru/abstract/139.html",
                    "peskostru/abstract/140.html", "peskostru/abstract/141.html", "peskostru/abstract/142.html", "peskostru/abstract/143.html", "peskostru/abstract/144.html",
                    "peskostru/abstract/145.html", "peskostru/abstract/146.html", "peskostru/abstract/147.jpg"],
    
                simple: true,
                submenu: true
            },
    {
                name: "Абстрактные",
                files: ["peskostru/abstract/160.jpg", "peskostru/abstract/161.html", "peskostru/abstract/162.html", "peskostru/abstract/163.html", "peskostru/abstract/164.html",
                    "peskostru/abstract/165.html", "peskostru/abstract/166.html", "peskostru/abstract/167.html", "peskostru/abstract/168.html", "peskostru/abstract/169.html",
                    "peskostru/abstract/170.html", "peskostru/abstract/171.html", "peskostru/abstract/172.html", "peskostru/abstract/173.html", "peskostru/abstract/174.html",
                    "peskostru/abstract/175.html", "peskostru/abstract/176.html", "peskostru/abstract/177.html", "peskostru/abstract/178.html", "peskostru/abstract/179.html",
                    "peskostru/abstract/180.html", "peskostru/abstract/181.html", "peskostru/abstract/182.html", "peskostru/abstract/183.html", "peskostru/abstract/184.html",
                    "peskostru/abstract/185.html", "peskostru/abstract/186.html", "peskostru/abstract/187.html", "peskostru/abstract/188.html", "peskostru/abstract/189.jpg"],
    
                simple: true,
                submenu: true
            },
            {
                name: "Детские",
                files: ["peskostru/detsk/70.jpg", "peskostru/detsk/71.html", "peskostru/detsk/72.html", "peskostru/detsk/73.html",
                    "peskostru/detsk/74.html", "peskostru/detsk/75.html", "peskostru/detsk/76.html", "peskostru/detsk/77.html",
                    "peskostru/detsk/78.html", "peskostru/detsk/79.html", "peskostru/detsk/80.html", "peskostru/detsk/81.html",
                    "peskostru/detsk/82.html", "peskostru/detsk/83.html", "peskostru/detsk/84.html", "peskostru/detsk/85.html",
                    "peskostru/detsk/86.html", "peskostru/detsk/87.html", "peskostru/detsk/88.html", "peskostru/detsk/89.jpg"],
                simple: true,
                submenu: true
            },
    
            {
                name: "Рисунки 'Пескоструй'",
                files: [],
                simple: true,
                label: true
            },
            {
                name: "Абстрактные",
                files: ["peskostru/abstract/1.jpg", "peskostru/abstract/4.html", "peskostru/abstract/5.html", "peskostru/abstract/7.html", "peskostru/abstract/12.html",
                    "peskostru/abstract/18.html", "peskostru/abstract/21.html", "peskostru/abstract/24.html", "peskostru/abstract/25.html", "peskostru/abstract/26.html",
                    "peskostru/abstract/30.html", "peskostru/abstract/32.html", "peskostru/abstract/36.html", "peskostru/abstract/37.html", "peskostru/abstract/47.html",
                    "peskostru/abstract/49.html", "peskostru/abstract/50.html", "peskostru/abstract/51.html", "peskostru/abstract/60.html", "peskostru/abstract/61.html",
                    "peskostru/abstract/67.html", "peskostru/abstract/70.jpg"],
                simple: true,
                submenu: true
            },
            {
                name: "Детские",
                files: ["peskostru/detsk/16.jpg", "peskostru/detsk/19.html", "peskostru/detsk/22.html", "peskostru/detsk/23.html",
                    "peskostru/detsk/29.html", "peskostru/detsk/31.html", "peskostru/detsk/34.html", "peskostru/detsk/40.html",
                    "peskostru/detsk/41.html", "peskostru/detsk/42.html", "peskostru/detsk/48.html", "peskostru/detsk/52.html",
                    "peskostru/detsk/65.jpg"],
                simple: true,
                submenu: true
            },
            {
                name: "Floral",
                files: ["peskostru/rastiteln/2.jpg", "peskostru/rastiteln/3.html", "peskostru/rastiteln/6.html", "peskostru/rastiteln/8.html", "peskostru/rastiteln/9.html",
                    "peskostru/rastiteln/10.html", "peskostru/rastiteln/11.html", "peskostru/rastiteln/17.html",
                    "peskostru/rastiteln/20.html", "peskostru/rastiteln/38.html", "peskostru/rastiteln/27.html", "peskostru/rastiteln/28.html", "peskostru/rastiteln/39.html",
                    "peskostru/rastiteln/43.html", "peskostru/rastiteln/44.html", "peskostru/rastiteln/45.html", "peskostru/rastiteln/46.html", "peskostru/rastiteln/53.html",
                    "peskostru/rastiteln/62.html", "peskostru/rastiteln/63.html", "peskostru/rastiteln/64.html", "peskostru/rastiteln/77.html", "peskostru/rastiteln/78.html",
                    "peskostru/rastiteln/81.html", "peskostru/rastiteln/83.jpg"],
                simple: true,
                submenu: true
            },
            {
                name: "Nature",
                files: ["peskostru/nature/14.jpg", "peskostru/nature/35.html", "peskostru/nature/66.html", "peskostru/nature/69.html", "peskostru/nature/79.html", "peskostru/nature/80.html",
                    "peskostru/animal/13.html", "peskostru/animal/33.html", "peskostru/animal/54.html", "peskostru/animal/55.html", "peskostru/animal/56.html",
                    "peskostru/animal/57.html", "peskostru/animal/58.html", "peskostru/animal/59.html", "peskostru/animal/68.html", "peskostru/animal/71.html",
                    "peskostru/animal/72.html", "peskostru/animal/74.html", "peskostru/animal/75.html", "peskostru/animal/76.html",
                    "peskostru/animal/73.html", "peskostru/animal/82.jpg"],
                simple: true,
                submenu: true
            }
        ],
        previews_size: {
            width: 50,
            height: 100
        },
        model_size: {
            width: 100,
            height: 200
        },
        colors: {
            borders: "#bbbbbb",
            inner: "#fff"
        },
        profileTypes: [
                {name: 'серебро', image: 'silver.gif', color: '#bbbbbb'},
                {name: 'шампань', image: 'shampan.gif', color: '#958e8b'},
                {name: 'золото', image: 'gold.gif', color: '#b29c25'}
            ],
        showBestButton: true
    };
    
    
    
    
    /***
    * Settings postprocessing
    **/
    
    
    for (var i in konstructor.settings.doors3.fillers_types) {
        fillerType = konstructor.settings.doors3.fillers_types[i];
       
        if (typeof fillerType.titles == 'undefined') {
            fillerType.titles = [];
           
            for (var j in fillerType.files) {
                fillerType.titles[j] = '#' + (parseInt(j) + 1);
            }
        }
    }
    
    for (var i in konstructor.settings.doors3.models) {
        var model = konstructor.settings.doors3.models[i];
       
        if (model.type == 'horizontal') {
            for (var j in model.borders) {
                if (model.borders[j].b1) {
                    model.borders[j].b1 = model.borders[j].b1 / 11;
                    model.borders[j].b2 = model.borders[j].b2 / 11;
                } else {
                    model.borders[j] = {
                        b1: model.borders[j][0] / 11,
                        b2: model.borders[j][1] / 11
                    }
                }
            }
        }
    }
    
    var rowLength = 10, rowStart = false, rowInd = -1;
    for (var i in konstructor.settings.doors3.models) {
        var model = konstructor.settings.doors3.models[i];
    
        if ((parseInt(i) % rowLength) == 0) {
            rowInd++;
        }
       
        model.row = rowInd;
        model.rowLength = rowLength;
    }
    
    konstructor.settings.doors3.previewsRowsCount = rowInd + 1;
    
    И код из файла settings.konstructor.js

    Код:
    konstructor.settings = {};
    
    // Declaration of settings variable
    konstructor.settings.konstructor = {
        php_ext: "php"
    };
     
  2. $iD

    $iD Команда форума

    Регистрация:
    13 мар 2012
    Сообщения:
    3.580
    Симпатии:
    1.482
    помимо картинок у вас не все скрипты есть.
    например:
    Код:
    http://constructor.furnimob.md/doors3/Common/line.js
    потом, проблемы с кодировкой.

    p.s. пофиксите хотя бы это, потом будем смотреть дальше.