Здоровье - это
удовольствие!
О компании Подробнее о системе комплексного оздоровления О массаже и здоровом
образе жизни
Контакты

/* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: /* :::::::::::::::::::::::::::::::::::::::: Snippet name: Wayfinder Short Desc: builds site navigation Version: 2.0 Authors: Kyle Jaebker (muddydogpaws.com) Ryan Thrash (vertexworks.com) Date: February 27, 2006 :::::::::::::::::::::::::::::::::::::::: Description: Totally refactored from original DropMenu nav builder to make it easier to create custom navigation by using chunks as output templates. By using templates, many of the paramaters are no longer needed for flexible output including tables, unordered- or ordered-lists (ULs or OLs), definition lists (DLs) or in any other format you desire. :::::::::::::::::::::::::::::::::::::::: Example Usage: [[Wayfinder? &startId=`0`]] :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; } :::::::::::::::::::::::::::::::::::::::: */ $wayfinder_base = $modx->config['base_path']."assets/snippets/wayfinder/"; //Include a custom config file if specified $config = (isset($config)) ? "{$wayfinder_base}configs/{$config}.config.php" : "{$wayfinder_base}configs/default.config.php"; if (file_exists($config)) { include_once("$config"); } include_once("{$wayfinder_base}wayfinder.inc.php"); if (class_exists('Wayfinder')) { $wf = new Wayfinder(); } else { return 'error: Wayfinder class not found'; } $wf->_config = array( 'id' => isset($startId) ? $startId : $modx->documentIdentifier, 'level' => isset($level) ? $level : 0, 'includeDocs' => isset($includeDocs) ? $includeDocs : 0, 'excludeDocs' => isset($excludeDocs) ? $excludeDocs : 0, 'ph' => isset($ph) ? $ph : FALSE, 'debug' => isset($debug) ? TRUE : FALSE, 'ignoreHidden' => isset($ignoreHidden) ? $ignoreHidden : FALSE, 'hideSubMenus' => isset($hideSubMenus) ? $hideSubMenus : FALSE, 'useWeblinkUrl' => isset($useWeblinkUrl) ? $useWeblinkUrl : TRUE, 'fullLink' => isset($fullLink) ? $fullLink : FALSE, 'nl' => isset($removeNewLines) ? '' : "\n", 'sortOrder' => isset($sortOrder) ? strtoupper($sortOrder) : 'ASC', 'sortBy' => isset($sortBy) ? $sortBy : 'menuindex', 'limit' => isset($limit) ? $limit : 0, 'cssTpl' => isset($cssTpl) ? $cssTpl : FALSE, 'jsTpl' => isset($jsTpl) ? $jsTpl : FALSE, 'rowIdPrefix' => isset($rowIdPrefix) ? $rowIdPrefix : FALSE, 'textOfLinks' => isset($textOfLinks) ? $textOfLinks : 'menutitle', 'titleOfLinks' => isset($titleOfLinks) ? $titleOfLinks : 'pagetitle', 'displayStart' => isset($displayStart) ? $displayStart : FALSE, ); //get user class definitions $wf->_css = array( 'first' => isset($firstClass) ? $firstClass : '', 'last' => isset($lastClass) ? $lastClass : 'last', 'here' => isset($hereClass) ? $hereClass : 'active', 'parent' => isset($parentClass) ? $parentClass : '', 'row' => isset($rowClass) ? $rowClass : '', 'outer' => isset($outerClass) ? $outerClass : '', 'inner' => isset($innerClass) ? $innerClass : '', 'level' => isset($levelClass) ? $levelClass: '', 'self' => isset($selfClass) ? $selfClass : '', 'weblink' => isset($webLinkClass) ? $webLinkClass : '', ); //get user templates $wf->_templates = array( 'outerTpl' => isset($outerTpl) ? $outerTpl : '', 'rowTpl' => isset($rowTpl) ? $rowTpl : '', 'parentRowTpl' => isset($parentRowTpl) ? $parentRowTpl : '', 'parentRowHereTpl' => isset($parentRowHereTpl) ? $parentRowHereTpl : '', 'hereTpl' => isset($hereTpl) ? $hereTpl : '', 'innerTpl' => isset($innerTpl) ? $innerTpl : '', 'innerRowTpl' => isset($innerRowTpl) ? $innerRowTpl : '', 'innerHereTpl' => isset($innerHereTpl) ? $innerHereTpl : '', 'activeParentRowTpl' => isset($activeParentRowTpl) ? $activeParentRowTpl : '', 'categoryFoldersTpl' => isset($categoryFoldersTpl) ? $categoryFoldersTpl : '', 'startItemTpl' => isset($startItemTpl) ? $startItemTpl : '', ); //Process Wayfinder $output = $wf->run(); if ($wf->_config['debug']) { $output .= $wf->renderDebugOutput(); } //Ouput Results if ($wf->_config['ph']) { $modx->setPlaceholder($wf->_config['ph'],$output); } else { return $output; }
Посетите наш салон и
попробуйте уникальные
товары в действии абсолютно
бесплатно!
Дарите полезные подарки!
г. Ростов-на-Дону,
ул.Ленина, 99А

Тел: (863)245-46-51

/*********************************** * * Andchir - http://wdevblog.net.ru * Cниппет Shopkeeper 0.8.5 для MODx * Корзина заказов * ***********************************/ //set_time_limit(3); if(!function_exists('populateOrderData')){ //Функция заполнения данных о заказанных товарах function populateOrderData( &$fields ){ function additString($num,$charset){ $additParam = $charset=="windows-1251" ? iconv("UTF-8", "windows-1251", $_COOKIE['additParam']) : $_COOKIE['additParam']; if($additParam!='' && strpos($additParam,$num.'==')!==false ){ eval("\$reg=\"/".$num."==(.[^;]*)/\";"); preg_match_all($reg,$additParam,$matches); $additParamStr = $matches[1][0]; $output = ''; $additParamArray = strpos($additParamStr,'||')!==false ? explode('||',$additParamStr) : array($additParamStr); for($i=0;$i0 ? " ($price)" : ''; $output .= ", ".$item.$priceStr; } return $output; }else{ return ''; } } global $modx; $dbname = $modx->db->config['dbase']; $dbprefix = $modx->db->config['table_prefix']; $mod_table = $dbprefix."manager_shopkeeper"; $mod_config_table = $dbprefix."manager_shopkeeper_config"; $base_dir = $modx->config['rb_base_dir']; $site_url = $modx->config['site_url']; $manager_language = $modx->config['manager_language']; $charset = $modx->config['modx_charset']; $lang_char = $charset=="UTF-8" ? "_utf8" : ""; if(file_exists($base_dir."snippets/shopkeeper/lang/".$manager_language.".php")){ $lang = $manager_language; }elseif(file_exists($base_dir."snippets/shopkeeper/lang/russian".$charset.".php")){ $lang = "russian".$charset; }else{ $lang = "russian"; } include_once $base_dir."snippets/shopkeeper/lang/".$lang.".php"; $currency = ""; if (mysql_num_rows(mysql_query("show tables from $dbname like '$mod_table'"))>0){ $config_query = $modx->db->select("*", $mod_config_table, "", "", ""); while($config = mysql_fetch_array($config_query)){ $$config[1] = $config[2]; } } if(isset($_COOKIE['stuffAll'])&&!empty($_COOKIE['stuffAll'])){ if($charset=="windows-1251"){ $dataString = iconv("UTF-8", "windows-1251", $_COOKIE['stuffAll']); }else{ $dataString = $_COOKIE['stuffAll']; } $dataArray = split(';',$dataString); $orderData = ""; $priceAll = 0; for($i=0;$i4){ list($id, $name, $count, $price, $additPrice, $link) = split(",", $dataArray[$i]); $sumPrice = "
".(($price+$additPrice)*$count)." $currency"; }else{ list($id, $name, $count, $price, $link) = split(",", $dataArray[$i]); if(isset($additPrice))unset($additPrice); $sumPrice = ""; } $additData = ""; if(isset($_COOKIE['additParam'])||!empty($_COOKIE['additParam'])){ $additData = additString($i+1,$charset); } $priceAll += isset($additPrice) ? ($price+$additPrice)*$count : $price*$count; if($i==0)$orderData .= "
    "; $nameStr = $link!="null" ? "$name" : $name; $orderData .= "
  1. $nameStr ($price $currency)$additData x $count$sumPrice
  2. \n"; if($i==count($dataArray)-1)$orderData .= "
"; } $orderData .= "
".$langTxt['sumTotal'].": $priceAll $currency

"; $fields['orderData'] = $orderData; }else{ $fields['orderData'] = "".$langTxt['noSelected'].""; } return true; } //Функция отправки заказа в модуль Shopkeeper function sendOrderToManager( &$fields ){ global $modx; $charset = $modx->config['modx_charset']; $dbname = $modx->db->config['dbase']; $dbprefix = $modx->db->config['table_prefix']; $mod_table = $dbprefix."manager_shopkeeper"; $mod_config_table = $dbprefix."manager_shopkeeper_config"; $reportTpl=$fields['reportTpl']; if(isset($_COOKIE['stuffAll'])&&!empty($_COOKIE['stuffAll'])){ if($charset=="windows-1251"){ $dataString = iconv("UTF-8", "windows-1251", $_COOKIE['stuffAll']); }else{ $dataString = $_COOKIE['stuffAll']; } $dataArray = split(';',$dataString); $priceAll = 0; for($i=0;$i3){ list($id, $name, $count, $price, $additPrice) = split(",", $dataArray[$i]); $price = $price+$additPrice; }else{ list($id, $name, $count, $price) = split(",", $dataArray[$i]); } $priceAll += $price*$count; } } if (mysql_num_rows(mysql_query("show tables from $dbname like '$mod_table'"))>0){ $config_query = $modx->db->select("*", $mod_config_table, "", "", ""); while($config = mysql_fetch_array($config_query)){ $$config[1] = $config[2]; } $short_txt = $template; foreach ($fields as $key => $val) { $short_txt = str_replace('',$val,$short_txt); } $short_txt = $modx->db->escape($short_txt); $description = $modx->parseChunk($reportTpl, $fields, ''); $description = $modx->db->escape($description); $price = $priceAll; $sql = "INSERT INTO $mod_table VALUES (NULL,'$short_txt','$description','$price',NOW(),'',1)"; $modx->db->query($sql); } return true; } $charset = $modx->config['modx_charset']; $rb_base_url = $modx->config['rb_base_url']; $isfolder = $modx->documentObject['isfolder'] ? true : false; if (!isset($lang)) $lang = "ru"; if (!isset($cartTpl)) $cartTpl = "shopCart"; if (!isset($goodsGroup)) $goodsGroup = "1"; if (!isset($style)) $style = $rb_base_url."snippets/shopkeeper/style.css"; if (!isset($cartType)) $cartType = "full"; if (!isset($currency)) $currency = "руб."; if (!isset($delItemBut)) $delItemBut = "img"; if (!isset($noCounter)) $noCounter = "0"; if (!isset($orderFormPage)) $orderFormPage = "1"; if (!isset($gotoid)) $gotoid = "1"; if (!isset($noJQuery)) $noJQuery = "0"; if (!isset($noConflict)) $noConflict = false; if (!isset($clStuffCont)) $clStuffCont = "shop-stuff"; if (!isset($clToCartCont)) $clToCartCont = "shs-tocart"; if (!isset($clTitle)) $clTitle = "shs-title"; if (!isset($clPrice)) $clPrice = "shs-price"; if (!isset($clLink)) $clLink = "shs-link"; if (!isset($clButton)) $clButton = "shs-but"; if (!isset($nameHidden)) $nameHidden = "shs-id"; $lang_char = $charset=="UTF-8" ? "_utf8" : ""; if($style!="0"){$headHtml = " "; } if($noJQuery=="0"){$headHtml .=" "; } $headHtml .=" "; $modx->regClientStartupHTMLBlock($headHtml); $result = $modx->getChunk($cartTpl); echo $result; }
Массажер для глаз

Массажер способствует улучшения зрения, расслаблению и снятию напряжения с глаз благодаря вибромассажному, тепловому и компрессионному воздействию.

Массажер предназначен для механического воздействия на акупунктурные точки, расположенные вокруг глаз, что рефлекторно способствует более сильной циркуляции крови, снятию напряжения и усталости, повышению резкости зрения, избавлению от головной боли и улучшению памяти. Приятная вибрация позволяет снять стресс, а инфракрасный прогрев стимулирует кровообращение.

1) Благоприятно воздействует на нервную систему
2) Улучшает кровообращение
3) Воздействует на внутренние органы через точки акупунктуры

Подробнее о массажере для глаз



Цена: 3200 руб.
Вернуться к списку товаров
© «Здоровье с удовольствием». Разработка