Skip to content

Instantly share code, notes, and snippets.

View webnitros's full-sized avatar

Андрей webnitros

View GitHub Profile
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
/**
* Created by Andrey Stepanenko.
* User: webnitros
* Date: 04.10.2022
* Time: 20:10
*/
include_once dirname(__FILE__) . '/vendor/autoload.php';
@@include('html/header.html', {
"title": "Бренды",
"layout": "home",
"list" : ["css/page/brands.min.css","css/jivosite.min.css"]
})
@webnitros
webnitros / header.html
Created September 22, 2022 14:35
list
@@if (context.list) {
@@for (var i = 0; i < context.list.length; i++) {
<link rel="stylesheet" href="`+context.list[i]+`">
}
}
@webnitros
webnitros / search.grid.js
Created August 26, 2022 06:58
Получение ajax ответа в grid store
listeners: {
afterrender: function () {
var grid = this
var store = grid.getStore()
store.on('datachanged', function (res, des) {
console.log(res.reader.jsonData)
})
}
var megaMenuHover = {
initCategories: false,
disableOpen: false,
btn: null,
wrapper: null,
allowedClose: true,
showHover: null,
wrapperCenter: null,
open: false,
debug: true,
/*Открытие попапа категорий*/
var fdkMegaMenu = {
all: [],
versionCache: fdkConfig.menu_version_cache || 0, // настройка нужна для обновления кэшированных файлов json бразером. Иначе меню не будет обновляться
menuLeft: null,
elements: null,
elementsNew: null,
elementsSales: null,
track_click_to_side: false,
callBackMakeMenuTall: null,
/*Открытие попапа категорий*/
var fdkMegaMenu = {
all: [],
versionCache: fdkConfig.menu_version_cache || 0, // настройка нужна для обновления кэшированных файлов json бразером. Иначе меню не будет обновляться
menuLeft: null,
elements: null,
elementsNew: null,
elementsSales: null,
track_click_to_side: false,
callBackMakeMenuTall: null,
function loadDocs () {
$.ajax({
type: 'GET',
url:'https://ms.fandeco.ru/rest/docnew/' + fdkConfig.product_artikul_1c + '?vendor=' + fdkConfig.product_vendor_name,
dataType: 'json',
async: true,
success: function (response) {
<?php
/**
* Created by Andrey Stepanenko.
* User: webnitros
* Date: 25.04.2022
* Time: 11:29
*/
namespace FileBrowserClient\Tests;
<?php
class MyController1cExportOrder extends ApiInterface
{
public function post()
{
$this->get();
}
public function get()