fetch_row(); $count = $row[0]; if (!$count) { $content .= "Нет новостей на сайте..."; }else{ $perpage = 60; //if($CURUSER) list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, $_SERVER["PHP_SELF"]."?" ); // else // list($pagertop, $pagerbottom, $limit) = ppager($perpage, $count, $_SERVER["PHP_SELF"]."?" ); $sql = "SELECT biografy.*, username FROM biografy LEFT JOIN users ON biografy.owner = users.id ORDER BY added DESC $limit"; $result = sql_query($sql) or sqlerr(__FILE__,__LINE__); $content .= ""; while( $row = mysql_fetch_assoc($result) ) { if ($CURUSER["id"] == $row["owner"] || get_user_class() > UC_JOURNALIST) $owned = 1; else $owned = 0; if ($owned) $obj = "". "\"".$tracker_lang['edit']."\"" ."\n"; if($tr == 5){ $content.=""; } $content .= ""; // $content .= "
"; $content .= "" ."\"".$row["artist"]."\"" ."
" ."".$row["artist"]."  ".$obj."
"; if($tr == 5){ $tr=0; } $tr++; } $content .= ""; } stdhead(); print $content."

".$pagerbottom."
"; stdfoot(); ?>