Размер файла: 1.26Kb
<?php
require '../inc/func.php';
bk_head('Member Girls');
require '../inc/head.php';
####female###
$UsersOn = mysql_result(mysql_query('select count(id) from `users` where `last_active`>='.(time() - 300).''),0);
echo '<div class="list1"><div class="tt"> Người dùng</div>Online: '.$UsersOn.'';
echo '<div class="shadow">Tìm Theo <span><a href="index.php">Tất Cả</a></span> ♥<span>Girl</span> <span><a href="boy.php">Boy</a></span></div>';
//*Trang*//
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE gender = 'f' "), 0);
$display = 3;
$count_pages = ceil($total/$display);
$page = (isset($_GET['page']) and is_numeric($_GET['page']) and $_GET['page']>1 and $_GET['page']<=$count_pages) ? $_GET['page'] : 1;
$start = $page*$display-$display;
//*Trang*//
if($total > 0){
$f_Users = mysql_query('SELECT * FROM users WHERE gender = "f" ORDER BY regtime DESC LIMIT '.$start.','.$display);
while ($sf_Users = mysql_fetch_assoc($f_Users)){
echo '<div class="list1"><a href="/u/'.$sf_Users['id'].'">'.$sf_Users['username'].'</a> ';
echo '</div>';
}
if($total > 3)
{
echo '<div class="shadow">';
pages($page,$count_pages,'?page=');
echo '</div>';
}
}else{
err('Trống!');
}
echo '</div>';
bk_foot();
?>