\"Редактировать\"\"Удалить\"  ";} ?>
Тема :
0) { if ($user_ar[$show_data[user_id]]['foto_small'] != "") { echo ''; } else { echo ''; } $s = $user_ar[$show_data[user_id]]['userstat']; $status = "(" .$status_ar[$s] . ")"; if ($user_ar[$show_data[user_id]]['on_site'] < 600) { $on_site = ", статус : на сайте"; } } echo "Автор : $show_data[author] $status".$on_site."
"; if ($show_data[user_id] > 0) { echo "Cообщений на форуме: ".$user_ar[$show_data[user_id]]['num']."
просмотреть профайл
Сообщение создано: "; } echo date("d.m.Y H:i",$show_data[date])." ".$edit_line."
".MakeText($show_data[message]); ?>
0 )) { ?>
  Тема  Автор  Дата


60) ? substr($str,0,60)."..." : $str; } function PrintReplys($id, $start_tab, $sid, $start_id) { GLOBAL $db, $BaseName, $color_counter, $base, $comment,$user_ar; if ($start_tab) { $result = DB_Exec("select main_link_id from forum where id=$id"); $db_data = db_fetch_array ($result); $id = ($db_data[main_link_id] == 0) ? $id : $db_data[main_link_id]; db_free_result($result); $start_tab = 0; PrintReplys($id,$start_tab,$sid,$start_id); return; } $sort = ($id == 0) ? " desc " : " asc "; $al = 'width=12 height=20 align=top'; $al2 = 'width=9 height=20 align=top'; $result = DB_Exec("select * from forum where id=$id"); $db_data = db_fetch_array ($result); if ($db_data[main_link_id] == 0) { $tdclass = ($color_counter % 2) ? "tdforumclass1" : "tdforumclass2"; $color_counter++; $sid = 0; echo ""; if ($db_data["id"] == $start_id) $tdclass =tdselforumclass; echo "$s"; echo ""; echo " "; echo (($db_data["id"] != $start_id)) ? " ".MkString($db_data[title])." » ".TestCookie($db_data[id])." " : " ".MkString($db_data[title])." ".TestCookie($db_data[id])." " ; echo ""; if ($db_data['user_id'] > 0) { $key = $db_data[user_id]; echo "".$db_data[author]; } else { echo "".$db_data[author]; } ""; echo "".date("d.m.Y H:i",$db_data[date])." "; echo ""; } db_free_result($result); $ts=$sid; $result = DB_Exec("select * from forum where link_id=$id order by id $sort"); $num_row = db_num_rows($result); $ident=0; while ($db_data = db_fetch_array ($result)) { $s = ""; $sid = $ts; for ($i = 0; $i < strlen($sid); $i++) { if ($sid[$i] == "1") $s .= ""; else $s .= ""; } $tdclass = ($color_counter % 2) ? "tdforumclass1" : "tdforumclass2"; $color_counter++; echo ""; if ($db_data[id] == $start_id) $tdclass =tdselforumclass; echo "$s"; if (++$ident != $num_row) echo ""; else echo ""; $test_result = DB_Exec("select id from forum where link_id=$id and id > $db_data[id]"); $test_row = db_num_rows($test_result); if ($test_row != 0) $sid .= 1; else $sid .= 0; db_free_result($test_result); $result_2 = DB_Exec("select count(id) as cnt from forum where link_id=$db_data[id]"); $data_2 = db_fetch_array ($result_2); if ($data_2[cnt] > 0) { echo ""; } else {echo "";} db_free_result($result_2); echo (($db_data[id] == $start_id)) ? " ".MkString($db_data[title])." ".TestCookie($db_data[id])." " : " ".MkString($db_data[title])." » ".TestCookie($db_data[id])." "; echo ""; if ($db_data['user_id'] > 0) { echo " ".$db_data[author]; } else { echo " ".$db_data[author]; } ""; echo "".date("d.m.Y H:i",$db_data[date])." "; echo ""; PrintReplys($db_data[id], $start_tab, $sid, $start_id); }//while mysql_free_result($result); $sid=$ts; return 0; }//functiom