<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: 			*/
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004-2008 ARMIA INC                                    |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts EasyCart                      |
// +----------------------------------------------------------------------+
// | Authors: Jipson<jipson.thomas@armiasystems.com>             		  |
// +----------------------------------------------------------------------+
?>

<div align="center">
	<h2 class="title text-center mainhd">FEEDBACKS</h2>
</div>
             <br />
					
		 <!--Start of items Add area start -->   						
            <div align="left" id="item_details_admin">			                     
						<div align="left" class="inner_content_area_admin">	
						 <div id="admin_heading">Feedbacks on <?php echo $pname; ?></div>
						 						
							<?php
								if(!empty($feeds)){
									foreach($feeds as $feed){
									 ?>
									 	<div class="feedback_outer">
											<div class="col-xs-12 col-sm-6 feedback_inner">
												<strong>Posted By</strong>
												<span><?php echo $feed["User"]["uname"]; ?></span>
											</div>
											<div class="col-xs-12 col-sm-6 feedback_inner">
												<strong>Posted On</strong>
												 <span>
													<?php 
													$dt	= strtotime($feed["Feedback"]["date"]);
													echo date("m-d-Y",$dt );
													?>
												 </span>
											</div>
											
											
											<div class="col-xs-12 col-sm-6 feedback_inner">
												<strong>Type of Feedback</strong>
												<span>
													<?php echo Sanitize::html($feed["Feedback"]["type"]); ?>
												</span>
											</div>
											<div class="col-xs-12 col-sm-12 feedback_inner">
												<strong>Feedback Comments</strong>
												<div class="clearfix">&nbsp;</div>
												<?php echo Sanitize::html($feed["Feedback"]["comment"]); ?>
											</div>
										<div class="clearfix"></div>
										</div>	  
										  
								<?php } ?>
								
								    <div id="admin_bottom">												                 
										<div align="center">
										<?php echo $paginator->numbers(); ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $paginator->counter(); ?>
	
										</div>			
										<div align="left" class="float_clear"><?php echo $html->image('/img/clear.gif', array('width' => 1, 'height' => 1));?></div>
									  </div>		
							     <?php } else { ?>		
							      <div class="result">
								  No Feedbacks Found
								 </div>  
								 <?php } ?>
					  </div>
            </div>
            <div align="left" class="float_clear1"><?php echo $html->image('/img/clear.gif', array('width' => 1, 'height' => 1));?></div>
            <br /> <br /> 	
		 <!--End of items add area -->   