<link rel="stylesheet" type="text/css" href="catalog/template/beststoreitems/css/page.css"/>
<style type="text/css">
.heading{margin-top:10px;}
.form_2 {overflow: hidden;width:100%;}
.item_style3 {background: url("https://www.beststoreitems.com/catalog/template/beststoreitems/image/item_style3_bg.gif") repeat-x scroll left top #FFFFFF;border: 1px solid #954401;clear: both;float: none;overflow: hidden;padding: 10px 0;}
.item_style3 p{font:12px/150% tahoma}
.item_style3 p img{display:inline-block;}
.item_style3 p .date{font-size:11px; color:#666;}
.content {margin: 10px;}
td{font-size:10px;}
.highlight1 {background-color:#FFFFFF;}
</style>
<script language="javascript" defer="defer">

function SelectPage(page)
 {
    document.pageform.page.value = page;
 	document.pageform.submit();
	return false;
 };

</script>
<div style="float:right; width:725px;">
<div class="heading">Buyer Talks</div>
<div class="form_2">
      <div class="item_style3">
      	<div class="content">
      		<p><a href="/index.php?controller=buyer_talks&action=addfeedback"><img src="https://www.beststoreitems.com/catalog/template/beststoreitems/image/sendyourstories.gif" alt=""></a></p>
			<p>&nbsp;</p>
			<p>&nbsp;</p>
			<?php if($buyer_talks){?>
			<?php foreach ($buyer_talks as $talks){?>
				<hr>
				<p>&nbsp;</p>
				<p><?php echo $talks['feedback'];?></p>
				<p align="right" style="line-height: 25px;"><img src="icon/<?php echo $talks['icon'];?>" alt="us"> By <?php echo $talks['name'];?>, from <?php echo $talks['contron_name'];?><br>
				<span class="date"><?php echo date('d / m / Y',strtotime($talks['create_time']))?></span></p>
			<?php }?>
			<?php }?>
      	</div>
      </div>
  </div>
  
  <table width="100%" style="margin-top:20px;float:left;">

        <tr><td align="left"><?php echo $text_results; ?></td>

        <td align="right">
        
   

    <input type="hidden" name="page" value="1" />
      <table cellspacing="8" cellpadding="0" class="page">

        <tr>

        <?php if ($page>1) { ?>

        <td id="page_box_previous"><a href="#" onclick="return SelectPage(<?php echo ($page-1); ?>);"><?php echo 'Previous'?></a></td>

        <?php };

        foreach ($pages as $pageentry) {   

                if ( $pageentry['value'] > ($page + max(9-$page,4)) ) {?>

                           <td id="page_box_next"><a href="#" onclick="return SelectPage(<?php echo ($page+1); ?>);"><?php echo 'Next'?></a></td>

                <?php 

                     break;

                 } ;

                

                if ( $pageentry['value'] < ($page - 4) ) {continue; }

                ?>

                                          

                <?php if ($pageentry['value'] == $page) { ?>

                <td width="20" height="16" align="center" valign="middle"><b><font color="Blue" size="1"><?php $x = explode(" ",$pageentry['text']);echo $x[0]; ?></font></b></td>

                <?php } else { ?>

                <td id="page_box" >

                <a href="#" onclick="return SelectPage(<?php echo $pageentry['value']; ?>);"><?php $x = explode(" ",$pageentry['text']);echo $x[0]; ?></a></td>

                <?php } ?>   

        <?php } ?>

      </tr></table>
</td></tr></table>
</div>