= UC_REDACTOR){ $edit = "[edit]"; $owner = "ДОБАВИЛ(А): ".$row["username"]." |"; } $addedday = substr($row['added'], 8, 2)."-".substr($row['added'], 5, 2)."-".substr($row['added'], 0, 4)." (".substr($row['added'], 11, 5).")"; ////////////////////////////////////САМА НОВОСТЬ///////////////////////////////////////// print(""); print(""); print(""); print(""); print(""); //print(""); print(""); print(""); print("

".format_comment($row["name"])."

".$edit."
".$row["stext"]."
Дата выхода: ".format_comment($row["relisedate"])."
Жанр: ".format_comment($row["genre"])."
Скачать клип: ".format_comment($row["link"])."
".format_comment($row["text"])."


".$owner." ПРОСМОТРОВ: ".$row["views"]." | КОММЕНТАРИЕВ: ".$row["comments"]." | ДАTА: ".$addedday."


"); ////////////////////////////////////САМА НОВОСТЬ///////////////////////////////////////// print("

\n"); $subres = mysql_query("SELECT COUNT(*) FROM videocomm WHERE news = $id"); $subrow = mysql_fetch_array($subres); $count = $subrow[0]; $limited = 10; if (!$count) { if($CURUSER){ print(""); print("
"); print("
"); //print("
Добавить комментарий
"); print("
"); print("
"); print("
"); print("
"); textbbcode("comment","text",""); print("
"); print("
"); print(""); print(""); print("
"); }else{ print("
"); print("
\n"); print(""); print("Что-бы разместить комментарий,  войдите в систему!
"); print("
"); } }else { //list($pagertop, $pagerbottom, $limit) = pager($limited, $count, "musicvideo.php?name=$cpu&", array(lastpagedefault => 1)); list($pagertop, $pagerbottom, $limit) = cpupager($limited, $count, "musicvideo", $cpu.".html"); $subres = sql_query("SELECT c.id, c.ip, c.text, c.user, c.added, c.editedby, c.editedat, u.avatar, u.warned, ". "u.username, u.title, u.class, u.donor, u.added AS useradd, u.gender, u.last_access, e.username AS editedbyname FROM videocomm AS c LEFT JOIN users AS u ON c.user = u.id LEFT JOIN users AS e ON c.editedby = e.id WHERE news = " . "$id ORDER BY c.id DESC $limit") or sqlerr(__FILE__, __LINE__); $allrows = array(); while ($subrow = mysql_fetch_array($subres)) $allrows[] = $subrow; print(""); print("
"); print("
"); print("
Добавить комментарий
"); print("
"); // print(""); print(""); print(""); print("
".$pagertop."
"); commenttable($allrows,"commentvideo"); print("
"); print($pagerbottom); print("
"); if($CURUSER){ print(""); print("
  ДОБАВИТЬ КОММЕНТАРИЙ
"); print("
"); print("
"); print("
" .textbbcode("comment","text","", 1) .""); print("
"); print("
"); print(""); print(""); print("
"); }else{ print("
"); print("
\n"); print(""); print("Что-бы разместить комментарий,  войдите в систему!
"); print("
"); } } } stdfoot("right"); ?>