<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: 			*/
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004-2010 ARMIA INC                                    |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts VistaCart                     |
// +----------------------------------------------------------------------+
// | Authors: Jipson<jipson.thomas@armiasystems.com>             		  |
// +----------------------------------------------------------------------+
?>
<div >
			
			<div align="center">
				<h2 class="title text-center mainhd">My Refund requests</h2>
            </div>
			
            <br />			
			<div align="left" id="item_details_admin">
				<!--items display area start -->
              <div align="left" id="item_details_admin">
				<!--items display area start -->
				  <div align="center" id="items_display_area_admin">
						
									
									
                       <div id="list_admin_top">
					   					<div class="list9"><strong>#</strong></div>
										<div class="listp6"><strong><?php echo $paginator->sort('Request Number', 'Refund.id'); ?></strong></div>
										<div class="listp6"><strong><?php echo $paginator->sort('User Name', 'User.uname'); ?></strong></div>	
										<div class="list16"><strong><?php echo $paginator->sort('Date', 'Refund.date'); ?></strong></div>	
										<div class="list16"><strong><?php echo $paginator->sort('Order Number', 'Refund.order_id'); ?></strong></div>	
										<div class="list17"><strong><?php echo $paginator->sort('Status', 'Refund.status'); ?></strong></div>											
												
										<div align="left" class="float_clear"><?php echo $html->image('/img/clear.gif', array('width' => 1, 'height' => 1));?></div>
						</div>




				<?php
				$cnt=1;
	         if(!empty($data)){
	foreach ($data as $oder){?>   
						<div id="list_admin">
										<div class="list9"><?php echo $cnt++;?></div>
										<div class="listp6">
																				
										<?php echo $html->link($oder['Refund']['id'], 
			"/refunds/refundetails/".$oder['Refund']['id']); ?>
										</div>
										
										<div class="listp6">
										<?php echo $oder['User']['uname']; ?>
                                        </div> 
										
										<div class="list16">
										<?php $dt	= strtotime($oder['Refund']['date']); echo date("m/d/Y",$dt ); ?>
                                        </div>                                        
										<div class="list16">
										<?php echo $html->link($oder['Refund']['order_id'], "/orders/userorderdetails/".$oder['Refund']['order_id']); ?>
                                        </div> 
										<div class="list17">
										<?php echo $oder['Refund']['status']; ?>
                                        </div> 										
										
										<div align="left" class="float_clear"><?php echo $html->image('/img/clear.gif', array('width' => 1, 'height' => 1));?></div>
						</div>
			 <?php 		
			 } ?>
			   <div id="list_admin">									
										
										<div>&nbsp;</div>
										<div><?php echo $this->renderElement('pagination'); // Render the pagination element ?> </div>
										<div>&nbsp;</div>	
																	
										<div align="left" class="float_clear"><?php echo $html->image('/img/clear.gif', array('width' => 1, 'height' => 1));?></div>
						          </div>			
								   <div id="list_admin">									
										
										<div>&nbsp;</div>
										<div><input type="button" value="Back" onClick="window.location.href='<?php echo $sitebase.$sitefolder;?>/users/myaccount/'" class="btn-gry01"></div>
										<div>&nbsp;</div>	
																	
										<div align="left" class="float_clear"><?php echo $html->image('/img/clear.gif', array('width' => 1, 'height' => 1));?></div>
						          </div>			
			 <?php } else { ?>
			          <div id="list_admin">									
										
										<div>&nbsp;</div>
										<div><strong>Sorry no requests found !</strong></div>
										<div>&nbsp;</div>	
										<div>&nbsp;</div>										
										<div align="left" class="float_clear"><?php echo $html->image('/img/clear.gif', array('width' => 1, 'height' => 1));?></div>
						</div>			     
			 <?php } ?>
						           
				  </div>
				  </div>  </div>