'.$rowpi[name].'

'; $body .="

Хиты продаж!

"; #Влево $body .="Влево
"; $sql = "select catalog.id as gid, catalog.name as gname, catalog.ext as gext, catalog.price as gprice, catalog.emain as gemain, catalog.enew as genew, catalog.gvid_id from catalog where catalog.enew='Y' order by rand()"; $sth = my_exec($sql); while($row = mysql_fetch_array($sth)) { if ($row[gid]) { $body .="
\"".$row[gname]."\"
"; # $body .="".($row[genew]=='Y'?'New':'').""; $body .="".$row[gname].""; if ($row[gprice]) $body .="".$row[gprice]." р."; $body .="
"; } } $body .="
Вправо
"; $body .="

СКОРО В ПРОДАЖЕ!

"; $body .="Влево
"; $sql = "select catalog.id as gid, catalog.name as gname, catalog.ext as gext, catalog.price as gprice, catalog.emain as gemain, catalog.enew as genew, catalog.gvid_id from catalog where catalog.emain='Y' order by rand()"; $sth = my_exec($sql); while($row = mysql_fetch_array($sth)) { if ($row[gid]) { $body .="
\"".$row[gname]."\"
"; # $body .="".($row[genew]=='Y'?'New':'').""; $body .="".$row[gname].""; if ($row[gprice]) $body .="".$row[gprice]." р."; $body .="
"; } } $body .="
Вправо
"; ### магазины + гестбук $body .=""; ### баннер покупатели $sql = "select id, name, ext, link, ebig from banner where ebig='2' and eshow='Y' order by rand() limit 0,1"; $sth = my_exec($sql); $row = mysql_fetch_array($sth); $body .="
"; if ($row[ext]==".swf"){ $flvurl="upload/pic_banner/picture_".$row[id]; $body .=" "; } else{ $body .="\"".$row[name]."\""; } $body .="
"; ### новости $body .=""; ### баннер клиенты $sqlpi = "select pages.* from pages where pname='index2' "; $sthpi = my_exec($sqlpi); $rowpi = mysql_fetch_array($sthpi); if ($rowpi[name]) $body .= '
'.$rowpi[name].'
'; $sql = "select id, name, ext, link, ebig from banner where ebig='3' and eshow='Y' order by rand() limit 0,1"; $sth = my_exec($sql); $row = mysql_fetch_array($sth); $body .="
"; if ($row[ext]==".swf"){ $flvurl="upload/pic_banner/picture_".$row[id]; $body .=" "; } else{ $body .="\"".$row[name]."\""; } $body .="
"; ### открытие $body .=""; ## Интервью $body .=""; include_once($root."/template.php"); ?>