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'); ?>
0) { echo ''; } ?>
'; 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 '

'; */ ?>

Модель:

Снят с производства.
Замена

0) { echo ''; } ?>
'; 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 '

'.$v.'

'; $sql_query = "SELECT * FROM `i_block_elements` WHERE `id_section`='$block_id' AND `version`='$lang' and product_class='".$v."'"; # Выполняем запрос $get_elements = mysql_query($sql_query); if (mysql_num_rows($get_elements) != 0) { # Выводим страницы $i = 1; while ($row = mysql_fetch_array($get_elements)) { $id = $row["id"]; $img = ($row["product_img"] != '' ? '' : ''); $header = str_replace('\"', '"', $row["product_name"]); echo '
'.((isset($img) && ($img != '')) ? ''.$img.'' : '').'
'.$header.'
'; } } else { echo '


'.$mod_lang_mass["$lang"]['no_elements'].'





'; } } ?>
0) { echo ''; } ?>
'; 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 '
'.str_replace('\"', '"', $rT["text_block"]).'
'; } # Инициализируем параметры класса Pages //$api->Pages->setvars($lang, $_SERVER['PHP_SELF'], $_SERVER['QUERY_STRING'], mysql_result(mysql_query("SELECT COUNT('id') FROM `i_block` WHERE `id_section`='$block_id' ".($moderation != '' ? "AND `$moderation`='1'" : '')), 0), $per_page, @$_GET['p']); //$sql_query = "SELECT * FROM `i_block` WHERE `id_section`='$block_id' ".($moderation != '' ? "AND `$moderation`='1'" : '')." ORDER BY `id` asc LIMIT ".$api->Pages->start_from.", $per_page"; $sql_query = "SELECT * FROM `i_block` WHERE `id_section`='$block_id'"; //$kolvo = mysql_query("SELECT * FROM `i_block` WHERE `id_section`='$block_id'"); //$kolEl = mysql_num_rows($kolvo); # Выполняем запрос $get_elements = mysql_query($sql_query); if (mysql_num_rows($get_elements) != 0) { # Выводим страницы //if ($kolEl > $per_page ) { echo $api->Pages->pages_gen().'
'; } $i = 1; while ($row = mysql_fetch_array($get_elements)) { $id = $row["id"]; $img = ($row["foto_block"] != '' ? '' : ''); $header = str_replace('\"', '"', $row["name_block"]); echo '
'.((isset($img) && ($img != '')) ? '
'.$img.'
' : '').' '.$header.'
'; if (($i%2)==0) { echo '
'; } $i++; } # Выводим страницы //if ($kolEl > $per_page ) { echo $api->Pages->pages_gen().'
'; } } else { echo '


'.$mod_lang_mass["$lang"]['no_elements'].'





'; } ?>
0) { echo ''; } } require($_SERVER["DOCUMENT_ROOT"]."/incom/template/footer.php"); ?>