<?php require_once 'protect.php'; ?>
<?php include 'review.php';?>
<?php
$resultr1 = $mysqli->query("SELECT id FROM members WHERE item_id=0 AND publish='yes'");
$rows = mysqli_num_rows($resultr1);

include ('pagination.php'); 	

$resultr2 = $mysqli->query("SELECT * FROM members WHERE item_id=0 AND publish='yes' ORDER BY id desc LIMIT $start,$nritems");
while($row = $resultr2->fetch_array()) {	
$rid=$row['id'];
$rname=$row['name'];
$rcity=$row['city'];
$rcountry=$row['country'];
$rcomments=$row['comments'];
$rate=$row['rate'];
$rimage=$row['image'];
$date=$row['date'];
?>
<?php if ($rimage==1) { list($width, $height) = getimagesize($imgsize."members/".$rid.".jpg"); ?>
<div class="floatleft">
<?php if ($width>500 OR $height>500) { ?>
<a id="thumb<?php echo $rid ?>i" href="<?php echo $filepath ?>members/<?php echo $rid ?>.jpg" onclick="return hs.expand(this)" title="<?php echo $rname ?>">
<img src="<?php echo $codepath ?>includes/image.php?image=<?php echo $imagepath ?>members/<?php echo $rid ?>.jpg&amp;nwidth=300" class="bordercolor2 img-mod" alt="<?php echo $rname ?>">
</a>
<?php }else{?>
<img src="<?php echo $codepath ?>includes/image.php?image=<?php echo $imagepath ?>members/<?php echo $rid ?>.jpg&amp;nwidth=300" class="bordercolor2 img-mod" alt="<?php echo $rname ?>">
<?php } ?>
</div>
<?php }else{?>
<?php if ($rate<8) { ?>
<div class="icon fa-comment colorn bordercolor2 img-mod"></div>
<?php }else{?>
<div class="color2 bgrcolor2 bordern img-mod"><?php echo $rate ?></div>
<?php } ?>
<?php } ?>
<span class="titles"><?php echo $rname ?></span> &nbsp; &nbsp; <span class="text2"><?php echo $rcity?>  <strong><?php echo $rcountry?></strong></span>
<div class="floatright color2"><?php echo $date ?></div>
<div class="padtop10"><?php echo $rcomments ?></div>
<hr>
<?php } ?>
<?php include 'paginate.php';?> 