$block_id = 8; $per_page = 20; $moderation = ''; $lang = 'ru'; include_once($_SERVER['DOCUMENT_ROOT']."/incom/modules/general/mysql.php"); if (isset($_GET["id"])) { $id=intval($_GET["id"]); $s=mysql_query("select `product_name` from i_block_elements where `id`='$id' limit 1"); $r=mysql_fetch_array($s); $title = str_replace('\"', '"', $r["product_name"]); } else if (isset($_GET["ids"])) { $id=intval($_GET["ids"]); $s=mysql_query("select `name_block` from i_block where `id`='".$id."' limit 1"); $r=mysql_fetch_array($s); $title = str_replace('\"', '"', $r["name_block"]); } else $title = 'Продукты'; $keywords = ''; $description= ''; # Языковые переменные $mod_lang_mass = Array( # Русский 'ru'=>Array( 'no_elements'=>'Извините, в данный момент элементов нет!', 'more'=>'Подробнее...' ), # Английский 'en'=>Array( 'no_elements'=>'Sorry, no elements found!', 'more'=>'More...' ) ); require($_SERVER["DOCUMENT_ROOT"]."/incom/template/header.php"); # Если послан ID элемента if (isset($_GET['id']) AND (intval($_GET['id']) != '')) { $element_id = intval($_GET['id']); $sql_query = "SELECT * FROM `i_block_elements` WHERE `version`='".$lang."' AND `id`='".$element_id."' LIMIT 1"; $get_element = mysql_query($sql_query); if (mysql_num_rows($get_element) == 1) { $r=mysql_fetch_array($get_element); if ($r["product_img"]!='') { $img = ''; $img2 = $r["product_img"]; } $header = stripslashes($r["product_name"]); $model = stripslashes($r["product_mod"]); $obzor = stripslashes($r["product_obzor"]); $func = stripslashes($r["product_function"]); $teh = stripslashes($r["product_teh"]); $mod = stripslashes($r["product_model"]); $doc = stripslashes($r["product_doc"]); $prog = stripslashes($r["product_prog"]); $dem = stripslashes($r["product_dem"]); $dem = stripslashes($r["product_dem"]); $product_zam_name = stripslashes($r["product_zam_name"]); $product_zam_link = stripslashes($r["product_zam_link"]); $product_date_ot = $api->Strings->date($lang, $r["product_date_ot"], 'sql', 'date'); $product_date_do = $api->Strings->date($lang, $r["product_date_do"], 'sql', 'date'); ?>
'; echo 'Продукты > '; $sK=mysql_query("select * from i_block where id='".intval($_GET["cat"])."' LIMIT 1"); if (mysql_num_rows($sK)==1) { $rK=mysql_fetch_array($sK); echo ''.$rK["name_block"].' > '; } $sK=mysql_query("select * from i_block where id='".intval($_GET["ids"])."' LIMIT 1"); if (mysql_num_rows($sK)==1) { $rK=mysql_fetch_array($sK); echo ''.$rK["name_block"].' > '; } $sK=mysql_query("select * from i_block_elements where id='".intval($_GET["id"])."' LIMIT 1"); if (mysql_num_rows($sK)==1) { $rK=mysql_fetch_array($sK); echo ''.$rK["product_name"].''; } echo '
'; */ ?>Модель:
} ?> if (($product_zam_name!='') && ($product_zam_link!='')) { ?> } ?>'; echo 'Продукты > '; $sK=mysql_query("select * from i_block where id='".intval($_GET["cat"])."' LIMIT 1"); if (mysql_num_rows($sK)==1) { $rK=mysql_fetch_array($sK); echo ''.$rK["name_block"].' > '; } $sK=mysql_query("select * from i_block where id='".intval($_GET["ids"])."' LIMIT 1"); if (mysql_num_rows($sK)==1) { $rK=mysql_fetch_array($sK); echo ''.$rK["name_block"].''; } echo '
'; */ $s=mysql_query("select * from i_block where id='".intval($_GET["ids"])."' order by sort_block asc LIMIT 1"); if (mysql_num_rows($s)==1) { $r=mysql_fetch_array($s); $class = explode(';', $r["class_block"]); } $block_id = intval($_GET['ids']); foreach($class as $k=>$v) { echo ''.$mod_lang_mass["$lang"]['no_elements'].'
'; echo 'Продукты > '; $sK=mysql_query("select * from i_block where id='".intval($_GET["cat"])."' LIMIT 1"); if (mysql_num_rows($sK)==1) { $rK=mysql_fetch_array($sK); echo ''.$rK["name_block"].''; } echo '
'; */ $block_id = intval($_GET['cat']); $sT=mysql_query("select * from i_block where id='".intval($_GET["cat"])."' LIMIT 1"); if (mysql_num_rows($sT)==1) { $rT=mysql_fetch_array($sT); echo ''.$mod_lang_mass["$lang"]['no_elements'].'