This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$title = mb_strimwidth($title, 0, 85, "..."); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
?> | |
<h1>Отзывы</h1> | |
<ul id="tabs"> | |
<li><a title="tab1" href="#">Опубликованные отзывы</a></li> | |
<li><a title="tab2" href="#">Неопубликованные отзывы</a></li> | |
</ul> | |
<div id="content"> | |
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
?> | |
<style> | |
#content{ | |
width:820px; | |
} | |
ul{ | |
margin: 0; | |
border: 1px solid #d8d8d8; | |
padding-left: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Подключение эквайринга | |
Необходимо получить от клиента доступы в кабинет пользователя нужной платежной системы. | |
Для webpay сначала дается доступ к тестовому кабинету. В нем проверяется правильность подключения и деньги не списываются при оплате. Когда все готово и работает – клиент пишет в webpay, и ему дают доступы от рабочего кабинета. | |
Для bepaid кабинет один. | |
Произвести необходимую настройку в кабинете пользователя платежной системы. | |
Для webpay - задать секретный ключ, прописать страницы error, success, notify. Забираем из кабинета id магазина. | |
Для bepaid надо в кабинете настроить данные тестового платежа – срок действия тестовой карточки и прочее. Также забираем id магазина. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Create a web friendly URL slug from a string. | |
* | |
* Although supported, transliteration is discouraged because | |
* 1) most web browsers support UTF-8 characters in URLs | |
* 2) transliteration causes a loss of information | |
* | |
* @author Sean Murphy <sean@iamseanmurphy.com> | |
* @copyright Copyright 2012 Sean Murphy. All rights reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$url = "https://online.moysklad.ru/api/remap/1.1/report/stock/all?&limit=100&offset=".$offset; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_USERPWD, "api@media-group : pass"); | |
$result = curl_exec($ch); | |
curl_close($ch); | |
$array = json_decode($result, true); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//include MODX API | |
define('MODX_API_MODE', true); | |
require_once($_SERVER['DOCUMENT_ROOT'].'/index.php'); | |
$modx=new modX(); | |
$modx->initialize('web'); | |
$q = $modx->newQuery('modResource'); | |
$q->limit('500','0'); //($limit,$offset) | |
$modx->addDerivativeCriteria('modResource', $q);// | |
$docs = $modx->getIterator('modResource', $q); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="modal fade" id="callBack"> | |
<div class="modal-dialog modal-sm"> | |
<div id="myModal_form"> | |
[!eForm? &formid=`Form` &fromname=`admin@site.by` &from=`admin@site.by` &to=`[[DocInfo? &docid=`2` &field=`send-email`]]` &tpl=`tplForm` &report=`tplReport` &thankyou=`tplThank` &subject=`Заказ звонка с сайта [(site_name)]`!] | |
</div> | |
</div> | |
</div> | |
tplForm | |
<form method="post" action="[~[*id*]~]" name="Form" id="Form" class="modal-content"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//include MODX API | |
define('MODX_API_MODE', true); | |
require_once($_SERVER['DOCUMENT_ROOT'].'/index.php'); | |
$modx=new modX(); | |
$modx->initialize('web'); | |
function debug($arr){ | |
echo '<pre>'; | |
var_dump($arr); |