|
|
 |

News
include($DOCUMENT_ROOT."/eng/config.inc.php");
include($DOCUMENT_ROOT."/eng/connect.php");
include($DOCUMENT_ROOT."/eng/_classes/include.inc.php");
if($id)
{
$res=mysql_query("SELECT link,news_id,announce,body,title,photo1,photo2,photo3,DATE_FORMAT(news_date,'%e.%m.%Y') as p_date FROM eng_news WHERE news_id='$id'");
if(mysql_num_rows($res)>0)
{
$row=mysql_fetch_array($res);
#if(!$row['photo']) $row['photo']="/img/spacer.gif";
#else $row['photo']=$IMAGE_NEWS_PATH.$row['photo'];
if($row['photo1']) $photos['[IMAGE1]']=" ";
else $row['[IMAGE1]']='';
if($row['photo2']) $photos['[IMAGE2]']=" ";
else $row['[IMAGE2]']='';
if($row['photo3']) $photos['[IMAGE3]']=" ";
else $row['[IMAGE3]']='';
$data=ParseTemplate($row,"news_full");
foreach($photos as $key=>$val) {
$data=str_replace($key,$val,$data);
}
print $data;
}
else
{
print "Новость не найдена !";
}
}
else
{
if(!$page) $page=1;
$pos=($page-1)*20;
if($section) $where=" WHERE section_id='$section'";
else $where="";
$res=mysql_query("SELECT link,news_id,announce,body,title,photo1,photo2,photo3,news_date,DATE_FORMAT(news_date,'%e.%m.%Y') as p_date FROM eng_news $where ORDER BY news_date DESC,news_id DESC LIMIT $pos,20");
$recordscount=mysql_result(mysql_query("SELECT count(news_id) as recordscount FROM news $where"),0,"recordscount");
$pagescount=ceil($recordscount/20);
if(mysql_num_rows($res)>0)
{
while($row=mysql_fetch_array($res))
{
#if(!$row['photo']) $row['photo']="/img/spacer.gif";
#else $row['photo']=$IMAGE_NEWS_PATH.$row['photo'];
if($row['photo1']) $photos['[IMAGE1]']=" ";
else $row['[IMAGE1]']='';
if($row['photo2']) $photos['[IMAGE2]']=" ";
else $row['[IMAGE2]']='';
if($row['photo3']) $photos['[IMAGE3]']=" ";
else $row['[IMAGE3]']='';
if($row['body']) $row['more_url']="".$NEWS_MORE_TEXT."";
else $row['more_url']='';
if($row['link']) {
$row['url']=$row['link'];
$row['more_url']="".$NEWS_MORE_TEXT."";
}
else $row['url']=$SCRIPT."?id=".$row['news_id'];
$data=ParseTemplate($row,"news_in_list");
foreach($photos as $key=>$val) {
$data=str_replace($key,$val,$data);
}
print $data;
}
if($pagescount>1)
{
print " | | ";
for($i=1;$i<=$pagescount;$i++)
{
if($i==$page) print "".$i." ";
else print "$i ";
}
print " | ";
}
}
}
?>
 |
|
 |
 |
 |
Product Catalogue:
$blocks=array();
$blocks[]=<<

The unique non-polluting soap for stain removing manufactured on the basis of natural bile. There are different fragrances in the range.
|
BLOCK1;
$blocks[]=<<

This range includes cleaning products: consumer durable sponges with an abrasive layer for utensil cleaning, viscose and cellulose cloths, floor cloths, bin liners, gloves, etc.
|
BLOCK2;
$blocks[]=<<

The range of goods under the trade mark includes goods for body care.
Classic, attractive colored, ergonomic polyurethane foam body sponges and popular among buyers sponges, made of natural materials: sisal and luffa, are presented under the trade mark “Nezhenka”.
Packing of TM is made in attractive for buyers tender colors.
|
BLOCK3;
$blocks[]=<<

The range of goods under the trade mark includes body sponges and bast wisps, attractive for children.
Original form, polyurethane foam, attractive for children and comfortable for adults and original sponges and bast wisps made of natural materials in form of toys , are presented under the trade mark “Chistulka”
Design and packing are developed in bright “cartoon” symbols, drawing children and their parents attention.
|
BLOCK4;
$blocks[]=<<

The new brand of high quality household products for people who like experimenting with new items, who appreciate stylish practical things and value time. The range includes wet wipes that do not require using of detergents, microfiber cloths, various household gloves, etc.
|
BLOCK5;
$rand=array_rand($blocks,2);
print $blocks[$rand[0]].$blocks[$rand[1]];
?>
|
|
 |
|
|