<?php
/**
* @version		3.0.0
* @package		JomLand TicketCenter
* @copyright	Copyright (C) 2010 JomLand.com. All rights reserved.
* @link 		www.jomland.com
* @license		GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
 
defined( '_JEXEC' ) or die( 'Restricted access' );

$cart = $this->cart;
$ticktes_total=0;
?>
<table>
	<?php foreach ($cart as $k=>$item){?>
		<tr id="row_<?php echo $item->cart_line_id;?>">
 			<td class="event" >
 				<span class="eventName"><?php echo $item->event_name;?></span>
 				<?php if (!isset($cart_readonly)){?>
 					<a href="#" class="del_row" id="del_<?php echo $item->cart_line_id;?>"><img src="components/com_jlticketcenter/assets/trash.png" alt="<?php echo JText::_('Delete');?>" title="<?php echo JText::_('Delete');?>"  /></a>
 				<?php }?> 
 				<br />
 				<?php echo $item->event_date;?>
 				<br />
 				<?php echo $item->venue_name;?>
 			</td>
 			<td class="qty" valign="top">
 				<?php /*
					unset ($options);
					foreach ($item['Qty'] as $k=>$v){
						$options[] = JHTML::_('select.option', $v, $v);
						if ($item['SelectedSaleSizeQty']==$v){
							$qry_selected = $v;
						}
					} 
				   echo  JHTML::_('select.genericlist', $options, 'qty_'.$item['ID'], 'class="qty_select"', 'value', 'text', $qry_selected );
				   */
				?>
 			</td>
 			<td class="sum" valign="top">
 			<?php /*<span id="sum_<?php echo $item->event_id;?>">*/

 			?>
 				<?php echo JText::_('Tickets');?>&nbsp;-&nbsp;<?php echo JLTicketCenterModelCart::quantityDropdown($item->quantity,'qty_'.$item->cart_line_id,' qty_select');?>&nbsp;x&nbsp;
 				<?php echo $this->params->get('currency_symbol');?><span id="sum_<?php echo $item->cart_line_id;?>"><?php echo number_format($item->ticket_price,2);?>
 				</span>
 				
 			</td>
		</tr>
	<?php
	 
			$ticktes_total += ($item->quantity*$item->ticket_price);
 			$this->ticktes_total += ($item->quantity*$item->ticket_price); 
		}?>
		
	</table>