".pg_Result($name_result,0,1)."":""; $review = ((pg_Result($name_result,0,2)) && (pg_Result($name_result,0,2)!=" "))?("

".implode(" ",file("/usr/local/www/ts/data/cannels/discr/".pg_Result($name_result,0,2)))."

"):""; $logo = ((pg_Result($name_result,0,3)) && (pg_Result($name_result,0,3)!=" "))?"":""; } } #$city_cmd = "select id,name from city where dish.city=city.id and dish.vid=video.id and dish.status=1 group by id order by name;"; $city_cmd = "select distinct id,name from city where dish.city=city.id and dish.vid=video.cid and dish.status=1 order by name;"; $city_result = pg_exec ($db, $city_cmd); #$sat_cmd = "select id,name,deg,dolg from sat where dish.sid=sat.id and dish.vid=video.id and dish.status=1 group by id order by deg, name;"; $sat_cmd = "select distinct id,name,deg,dolg from sat where dish.sid=sat.id and dish.vid=video.cid and dish.status=1 order by deg, name;"; $sat_result = pg_exec ($db, $sat_cmd); $cmd = ""; $err = ""; if($sat!= ""){$cmd = " dish.sid=$sat ";} if($city!= ""){$cmd = (($cmd!="")?"$cmd and dish.city=$city ":" dish.city=$city ");} if($cid!= ""){$cmd = (($cmd!="")?"$cmd and channel.id=$cid ":" channel.id=$cid ");} $order = (($order<5 && $order>-1 && ($order))?($order):(5)); $orforpage=$order; $satsort = (($order==1)?"\"":"\""); $satsort = $satsort.(($order==0)?"\"":"\""); $citysort = (($order==3)?"\"":"\""); $citysort = $citysort.(($order==2)?"\"":"\""); $datesort = (($order==5)?"\"":"\""); $datesort = $datesort.(($order==4)?"\"":"\""); $order = "$ord[$order]"; $order = "order by $order"; $result; if($cmd!=""){ $cmd = "select distinct city.name,diam,mail,dish.name,channel.name,sat.name,sat.deg,sat.dolg,int4(abstime(dish.date)), dish.oid,dish.date from dish, city, sat, channel, video where $cmd and dish.sid=sat.id and dish.city=city.id and channel.id=dish.vid and status!=0 and dish.sid=video.sid and vid=video.cid $order;"; # 1 2 3 4 5 6 7 8 9 10 # $cmd = "select city.name,diam,mail,name,channel.name,sat.name,sat.deg,sat.dolg,date,oid from dish where sid=12 and sid=sat.id and dish.city=city.id and channel.id=dish.vid and status!=0 and sid=video.sid and vid=video.cid group by oid;"; $result = pg_Exec($db,$cmd); }else{ $err = "Вы не выбрали ".(($sat=="")?" спутник":"").(($city=="")?" город":""); } $month = array("Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"); //$title = "Telesputnik Reception Conditions for "; ?> Telesputnik Reception Conditions
'bannerid:'.$phpAds_raw['bannerid']); echo $phpAds_raw['html']; } ?> " cellpadding=2 cellspacing=0 border=0>
0) || (!$QUERY_STRING))?("

Условия приема ".((($satellite) || ($cityname) || ($channel))?"
$satellite $cityname $channel":"")."

"):""; } print "

$img$link

\n$review"; ?>
0){ if($sat){ $covercmd = "select id from cover where id=$sat"; $coverresult = pg_exec($db,$covercmd); $cover_str = ((pg_NumRows($coverresult)>0)?"Зоны покрытия":""); } ?>
":"")."Таблица частот
$cover_str"; ?>
Всего записей в базе: Найдено записей: ".pg_NumRows($result); ?>
".(($sat)?"":("")).(($city)?"":("")).""; $mzn=pg_NumRows($result); if($mzn>$nstran*10){ $mzn=$nstran*10; } for($di=($nstran-1)*10;$di<$mzn;$di++){ $color=($di%2)?"#ffeedd":"#ffffff"; print "".(($sat)?"":("")).(($city)?"":(""))."\n"; } print "

Спутник, °$satsort

Город$citysort

D антенны см.

Канал

Автор

Дата$datesort

".pg_Result($result,$di,5).", ".pg_Result($result,$di,6)."°".pg_Result($result,$di,7)."

г. ".pg_Result($result,$di,0)."

".pg_Result($result,$di,1)."

".pg_Result($result,$di,4)."

"; print " ".((pg_Result($result,$di,3)!="")?(((pg_Result($result,$di,2)!="")?(""):"").pg_Result($result,$di,3)):("неизвестный"))."

".strftime("%d %b %Y",pg_Result($result,$di,8))."

\n"; if(pg_NumRows($result)>10){ for($di=0;$dipg_NumRows($result)){ $mzn=pg_NumRows($result); } if($mzn-$di-1==0){ printf("%d ", $di+1); }else{ printf("%d-%d ", $di+1,$mzn); } }else{ $ft=round($di/10)+1; $mzn=$di+10; if($mzn>pg_NumRows($result)){ $mzn=pg_NumRows($result); } if($mzn-$di-1==0){ printf("%d ", $city,$ft,$sat,$orforpage,$di+1); }else{ printf("%d-%d ", $city,$ft,$sat,$orforpage,$di+1,$mzn); } } } } print "\n
"; print "\n"; }else{ print "

Информация по условиям приема $satellite $cityname не найдена.

"; print "\n"; } }else{ # echo "

Спутник($id) не найден.

\n\n

Выбрать спутник, для которого у нас имеются зоны покрытия, можно здесь.

\n

 

"; } $width="100%"; ?>

Здесь представлена информация о условиях приема, присланная нашими читателями и посетителями сайта. Добавить данные о условиях приема в Вашем городе можно на любой из страниц раздела ТАБЛИЦА ЧАСТОТ.

\n\n"; } if(pg_NumRows($sat_result)>0){ print "\n
0) || (pg_NumRows($sat_result)>0)) { print "

Выберите спутник и/или город:

Город:"; } if(pg_NumRows($city_result)>0){ print "
Спутник:
"; } if((pg_NumRows($city_result)>0) || (pg_NumRows($sat_result)>0)) { print "   \n"; } ?>
\n\n
";}; print "".pg_Result($city_result,$i,1)."
\n"; if($city == pg_Result($city_result,$i,0)){print "
";} } ?>

 

Рейтинг@Mail.ru
Rambler's Top100
Copyright© , ТЕЛЕСПУТНИК
webmaster@telesputnik.ru