<?php
$active = " ui-tabs-active ui-state-active";
?>
<div class="ui-tabs ui-widget ui-widget-content ui-corner-all b10">
	<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
		<li class="ui-state-default ui-corner-top<?php echo $_GET['controller'] == 'pjAdminEvents' && $_GET['action'] == 'pjActionUpdate' ? $active : NULL;?>"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminEvents&amp;action=pjActionUpdate&event_id=<?php echo $tpl['event_arr']['id'];?>"><?php __('tabGeneral'); ?></a></li>
		<li class="ui-state-default ui-corner-top<?php echo $_GET['controller'] == 'pjAdminEvents' && $_GET['action'] == 'pjActionTickets' ? $active : NULL;?>"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminEvents&amp;action=pjActionTickets&event_id=<?php echo $tpl['event_arr']['id'];?>"><?php __('tabTickets'); ?></a></li>
		<li class="ui-state-default ui-corner-top<?php echo $_GET['controller'] == 'pjAdminEvents' && $_GET['action'] == 'pjActionMap' ? $active : NULL;?>"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminEvents&amp;action=pjActionMap&event_id=<?php echo $tpl['event_arr']['id'];?>"><?php __('tabMap'); ?></a></li>
		<li class="ui-state-default ui-corner-top<?php echo $_GET['controller'] == 'pjAdminEvents' && $_GET['action'] == 'pjActionDiscount' ? $active : NULL;?>"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminEvents&amp;action=pjActionDiscount&event_id=<?php echo $tpl['event_arr']['id'];?>"><?php __('tabDiscount'); ?></a></li>
		<li class="ui-state-default ui-corner-top<?php echo $_GET['controller'] == 'pjAdminEvents' && $_GET['action'] == 'pjActionBookings' ? $active : NULL;?>"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminEvents&amp;action=pjActionBookings&event_id=<?php echo $tpl['event_arr']['id'];?>"><?php __('tabBookings'); ?></a></li>
		<?php
		if((int) $tpl['event_arr']['cnt_waitlists'] > 0)
		{ 
			?>
			<li class="ui-state-default ui-corner-top<?php echo $_GET['controller'] == 'pjAdminEvents' && $_GET['action'] == 'pjActionWaitlist' ? $active : NULL;?>"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminEvents&amp;action=pjActionWaitlist&event_id=<?php echo $tpl['event_arr']['id'];?>"><?php __('tabWaitlist'); ?></a></li>
			<?php
		} 
		?>
		<li class="ui-state-default ui-corner-top<?php echo $_GET['controller'] == 'pjAdminEvents' && $_GET['action'] == 'pjActionTicket' ? $active : NULL;?>"><a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminEvents&amp;action=pjActionTicket&event_id=<?php echo $tpl['event_arr']['id'];?>"><?php __('tabPDFTicket'); ?></a></li>
	</ul>
</div>