'; } else if ( $vers=='eng') { echo' '; } else { echo' '; } ?>
$date
"; } } ?>
 
'; } else if ( $vers=='eng') { echo' newsfeed:
'; } else { echo' Abonarea la stiri:
'; } ?>  
'; break; # вывод архива новостей (из базы) case 'archive'; if ( $vers=='rus' ) { $query="SELECT id, date, caption as caption, text as text FROM news WHERE date LIKE '%$period%' ORDER BY date DESC"; } else if ( $vers=='eng' ) { $query="SELECT id, date, caption_e as caption, text_e as text FROM news WHERE date LIKE '%$period%' AND caption_e<>'' ORDER BY date DESC"; } else { $query="SELECT id, date, caption_r as caption, text_r as text FROM news WHERE date LIKE '%$period%' ORDER BY date DESC"; } $result = mysql_query($query,$link) or die ("Unable to select news record"); for ($i=0; $i < mysql_num_rows($result); $i++ ) { $id = mysql_result($result,$i,"id"); $date = mysql_result($result,$i,"date"); $date = TransformDate($date); $caption = mysql_result($result,$i,"caption"); $text = mysql_result($result,$i,"text"); print "$date - $caption

$text

"; } echo''; break; # просомтр текста новости case 'view'; if ( $vers=='rus' ) { $query="SELECT id, date, caption as caption, text as text FROM news WHERE id=$id_get"; } else if ( $vers=='eng' ) { $query="SELECT id, date, caption_e as caption, text_e as text FROM news WHERE id=$id_get"; } else { $query="SELECT id, date, caption_r as caption, text_r as text FROM news WHERE id=$id_get"; } $result = mysql_query($query,$link) or die ("Unable to select news record"); $id = mysql_result($result,0,"id"); $date = mysql_result($result,0,"date"); $date = TransformDate($date); $caption = mysql_result($result,0,"caption"); $text = mysql_result($result,0,"text"); print "$date - $caption

$text

"; echo''; print "
"; if ( $vers=='rus' ) { print "При использовании наших новостей, ссылка на официальный сайт \"Zdob si Zdub\", обязательна! "; } else if ( $vers=='eng' ) { print "In the event of our news utilization, please, refer to the official \"Zdob si Zdub\" site!"; } else { print "In cazul utilizarii stirilor noastre, faceti neaparat referire la site-ul official \"Zdob si Zdub\"!"; } break; # вывод последних 5 текстов новостей (режим по умолчанию) default; if ( $vers=='rus' ) { $query="SELECT id, date, caption as caption, text as text FROM news ORDER BY date DESC LIMIT 0,5"; } else if ( $vers=='eng' ) { $query="SELECT id, date, caption_e as caption, text_e as text FROM news WHERE caption_e<>'' ORDER BY date DESC LIMIT 0,5"; } else { $query="SELECT id, date, caption_r as caption, text_r as text FROM news ORDER BY date DESC LIMIT 0,5"; } $result = mysql_query($query,$link) or die ("Unable to select news record"); for ($i=0; $i < mysql_num_rows($result); $i++ ) { $id = mysql_result($result,$i,"id"); $date = mysql_result($result,$i,"date"); $date = TransformDate($date); $caption = mysql_result($result,$i,"caption"); $text = mysql_result($result,$i,"text"); print "$date - $caption

$text


"; } } ?>
Design by: Oleg Pospelov (c) 2004, Youry Savransky (c) 2003