211
Разработка / Re: Re: Shop-Script "Lego Edition" 30.05 SP
« : Июля 04, 2011, 12:21:15 pm »
работает. точно в цель
Большое спасибо
Большое спасибо
🔶 Свежий релиз CMS Legosp 6.3.1
😎 Новый универсальный шаблон "Store"
👉 Новая услуга "Бесплатный SEO анализ" вашего сайта!
🔴 6 супер модулей всего за 👉100$ В разделе модули "Комплект из 6-ти модулей"
💣 УРА! Мы обновили дизайн сайта!
☁️ Интернет-магазин в облаке Legosp CLOUD!⚡⚡⚡
В этом разделе можно просмотреть все сообщения, сделанные этим пользователем.
<?xml version="1.0" encoding="{$smarty.const.DEFAULT_CHARSET}"?>
<rss version="2.0">
<channel>
<title>{$smarty.const.CONF_SHOP_NAME}</title>
<link>http://{$smarty.const.CONF_SHOP_URL}/</link>
<description>{$smarty.const.CONF_SHOP_NAME}</description>
<language>ru-RU</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>Shop-Script Lego SP</generator>
<managingEditor>{$smarty.const.CONF_GENERAL_EMAIL}</managingEditor>
<webMaster>{$smarty.const.CONF_GENERAL_EMAIL}</webMaster>
<lastBuildDate>{$smarty.now|date_format:"%r"}</lastBuildDate>
<item>
<title>Меню ленты.</title>
<description><![CDATA[<a href="http://{$smarty.const.CONF_SHOP_URL}/new.xml">Новые Товары</a>| <a href="http://{$smarty.const.CONF_SHOP_URL}/rss-pages.xml">Статьи</a> |
<a href="http://{$smarty.const.CONF_SHOP_URL}/rss-review.xml">Отзывы</a>|
<a href="http://{$smarty.const.CONF_SHOP_URL}/rss.xml">Новости</a> <hr />]]></description>
</item>
{foreach from=$products item=product}
<item>
<title>{$product.name}</title>
<link>http://{$smarty.const.CONF_SHOP_URL}/{if $product.hurl}{$smarty.const.REDIRECT_PRODUCT}/{$product.hurl}{else}index.php?productID={$product.productID}{/if}</link>
<guid>http://{$smarty.const.CONF_SHOP_URL}/{if $product.hurl}{$smarty.const.REDIRECT_PRODUCT}/{$product.hurl}{else}index.php?productID={$product.productID}{/if}</guid>
{assign var="imag" value="http://`$smarty.const.CONF_SHOP_URL`/products_pictures/`$product.thumbnail`"}
<description><![CDATA[<img src="{$imag}" width="150" align="left" alt="" />{$products.brief}]]></description>
</item>
{/foreach}
{foreach from=$news item=newss}
<item>
<title>{$newss.title}</title>
<link>http://{$smarty.const.CONF_SHOP_URL}/{if $newss.hurl}{$smarty.const.REDIRECT_NEWS}/{$newss.hurl}{else}index.php?news={$newss.id}{/if}</link>
<guid>http://{$smarty.const.CONF_SHOP_URL}/{if $newss.hurl}{$smarty.const.REDIRECT_NEWS}/{$newss.hurl}{else}index.php?news={$newss.id}{/if}</guid>
{assign var="imag" value="http://`$smarty.const.CONF_SHOP_URL`/products_pictures/`$newss.Pict`"}
<description><![CDATA[<img src="{$imag}" width="150" align="left" alt="" />{$newss.brief}]]></description>
</item>
{/foreach}
{foreach from=$pages item=page}
<item>
<title>{$page.title}</title>
<link>http://{$smarty.const.CONF_SHOP_URL}/{if $page.hurl}{$smarty.const.REDIRECT_PAGES}/{$page.hurl}{else}index.php?pages={$page.id}{/if}</link>
<guid>http://{$smarty.const.CONF_SHOP_URL}/{if $page.hurl}{$smarty.const.REDIRECT_PAGES}/{$page.hurl}{else}index.php?pages={$page.id}{/if}</guid>
{assign var="imag_p" value="http://`$smarty.const.CONF_SHOP_URL`/products_pictures/`$page.Pict`"}
<description><![CDATA[<img src="{$imag_p}" width="150" align="left" alt="" />{$page.brief}]]></description>
</item>
{/foreach}
{foreach from=$reviews item=review}
<item>
<title>{$review.username}</title>
<link>http://{$smarty.const.CONF_SHOP_URL}/index.php?productID={$review.productID}</link>
<guid>http://{$smarty.const.CONF_SHOP_URL}/index.php?productID={$review.productID}</guid>
<description><![CDATA[{$review.review}]]></description>
</item>
{/foreach}
</channel>
</rss>
<?php
include("../cfg/connect.inc.php");
include("../includes/database/mysql.php");
include("../cfg/general.inc.php");
include("../cfg/appearence.inc.php");
include("../cfg/functions.php");
include("../cfg/category_functions.php");
include("../cfg/language_list.php");
include("../cfg/redirect.inc.php");
include("../languages/russian.php");
require '../smarty/smarty.class.php';
$smarty = new Smarty; //core smarty object
#$smarty->register_modifier("filesize","filesize");
db_connect(DB_HOST,DB_USER,DB_PASS) or die (db_error());
db_select_db(DB_NAME) or die (db_error());
if (isset($_GET['products'])) {
$page = db_arAll("SELECT * FROM `".PRODUCTS_TABLE."` WHERE enable=1 ORDER BY id DESC LIMIT 20");
$smarty->assign("products", $products);
$smarty->assign("title", "Новые Товары");
header("Content-type: text/xml");
$smarty->display("../css/css_".CONF_COLOR_SCHEME."/theme/rss.tpl.html");
}
elseif (isset($_GET['pages'])) {
$page = db_arAll("SELECT * FROM `".PAGES_TABLE."` WHERE enable=1 ORDER BY id DESC LIMIT 10");
$smarty->assign("pages", $page);
$smarty->assign("title", "Статьи");
header("Content-type: text/xml");
$smarty->display("../css/css_".CONF_COLOR_SCHEME."/theme/rss.tpl.html");
}
elseif (isset($_GET['review'])) {
$review = db_arAll("SELECT * FROM `".REVIEW_TABLE."` ORDER BY reviewID DESC LIMIT 10");
$smarty->assign("reviews", $review);
$smarty->assign("title", "Отзывы");
header("Content-type: text/xml");
$smarty->display("../css/css_".CONF_COLOR_SCHEME."/theme/rss.tpl.html");
}
else {
$newss = db_arAll("SELECT * FROM `".NEWS_TABLE."` WHERE enable=1 ORDER BY id DESC LIMIT 10");
$smarty->assign("news", $newss);
$smarty->assign("title", "Новости");
header("Content-type: text/xml");
$smarty->display("../css/css_".CONF_COLOR_SCHEME."/theme/rss.tpl.html");
}
?>