if(!$HTML_Session_ID){
?> *กรุณาสมัครสมาชิกของเว็บไซต์ ก่อนใช้งานเว็บบอร์ด
Please Register Member for Website.
}else{
if($_SESSION["HTML_Session_ID"]){
?>
}
}
?> |
|
|
|
|
$sql = " SELECT * ".
" FROM "._TABLE_FORUM_.
" WHERE "._TABLE_FORUM_."_MenuID = '$menu_id' ";
if($txt_Search)
{
$sql .= " AND ";
$sql .= " ( "._TABLE_FORUM_."_Title like'%$txt_Search%'";
#$sql .= " or "._TABLE_FORUM_."_Subject like'%$txt_Search%'";
$sql .= " )";
}
$sql .= " ORDER BY "._TABLE_FORUM_."_ID ASC ";
#echo $sql;
$result = mysql_query($sql);
$count_row = mysql_num_rows($result);
if($count_row > 0){
if($page)$row_index = (_PAGE_SIZE_ * $page)-_PAGE_SIZE_;
else $row_index = 0;
while($rs = mysql_fetch_array($result)){
$_forum_id = $rs[_TABLE_FORUM_."_ID"];
?>
{{ =$rs[_TABLE_FORUM_."_Title"]?> }} |
#content forum webboard
$sql = " SELECT "._TABLE_GROUP_."_ID , "._TABLE_GROUP_."_PhysicalName , "._TABLE_GROUP_."_Title , "._TABLE_GROUP_."_Subject , "._TABLE_GROUP_."_Status ".
" , (SELECT count("._TABLE_."_ID) FROM "._TABLE_." WHERE "._TABLE_."_GroupID = "._TABLE_GROUP_."_ID ) as "._TABLE_."_CountBoard ".
" , (SELECT "._TABLE_."_Title FROM "._TABLE_." WHERE "._TABLE_."_GroupID = "._TABLE_GROUP_."_ID ORDER BY "._TABLE_."_ID DESC limit 1 ) as ".
_TABLE_."_NewBoard ".
" , (SELECT "._TABLE_."_ID FROM "._TABLE_." WHERE "._TABLE_."_GroupID = "._TABLE_GROUP_."_ID ORDER BY "._TABLE_."_ID DESC limit 1 ) as ".
_TABLE_."_ID ".
" FROM "._TABLE_GROUP_.
#" LEFT JOIN "._TABLE_." ON "._TABLE_."_GroupID = "._TABLE_GROUP_."_ID ".
" WHERE "._TABLE_GROUP_."_ForumID = '$_forum_id' ".
" ORDER BY "._TABLE_GROUP_."_ID ASC ";
#echo $sql;
$result_wd = mysql_query($sql);
$count_row_wd = mysql_num_rows($result_wd);
if($count_row_wd > 0){
$_my_index = 0;
while($rs_wd = mysql_fetch_array($result_wd)){
++$_my_index;
?>
}
}
?>
|
}
}
include_once("admin/object/obj_useronline/object_dis.php");
?>
#static forum and last user
$sql = " SELECT "._MODULE_TABLE_MEMBER_."_ID , "._MODULE_TABLE_MEMBER_."_UserName , ".
" (SELECT COUNT("._MODULE_TABLE_MEMBER_."_ID) ".
" FROM "._MODULE_TABLE_MEMBER_." WHERE "._MODULE_TABLE_MEMBER_."_Status = 'Enable' ) AS "._MODULE_TABLE_MEMBER_."_CountUser , ".
" (SELECT COUNT("._TABLE_FORUM_."_ID) FROM "._TABLE_FORUM_." WHERE "._TABLE_FORUM_."_Status = 'Enable' ) AS "._TABLE_FORUM_."_SumForum , ".
" (SELECT COUNT("._TABLE_."_ID) FROM "._TABLE_." WHERE "._TABLE_."_Status = 'Enable' ) AS "._TABLE_."_SumForum ".
" FROM "._MODULE_TABLE_MEMBER_.
" WHERE "._MODULE_TABLE_MEMBER_."_Status = 'Enable' ".
" ORDER BY "._MODULE_TABLE_MEMBER_."_ID DESC limit 1";
$result = mysql_query($sql);
$rs = mysql_fetch_array($result);
?>
สถิติการใช้งานเว็บบอร์ด
หัวข้อ: =number_format($rs[_TABLE_FORUM_."_SumForum"],0,'',',')?>, กระทู้: =number_format($rs[_TABLE_."_SumForum"],0,'',',')?> สมาชิก: =number_format($rs[_MODULE_TABLE_MEMBER_."_CountUser"],0,'',',')?> สมาชิกที่ใช้งานอยู่: include_once("admin/object/obj_useronline/object.php")?>
ยินดีต้อนรับ คุณ =$rs[_MODULE_TABLE_MEMBER_."_UserName"]?> เป็นสมาชิกคนล่าสุด |
สมาชิกที่กำลังออนไลน์
include("admin/object/obj_useronline/object_user_online.php")?>
|
|
|
include("menu/right_menu.php");
?> |