<?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
*/ 
// no direct access
defined('_JEXEC') or die('Restricted access');

if (!isset($data)){
	$CardType	='Visa';	
	$CardNumber = '';
	$DateMonth = '1';
	$cvv		='';
}else{
	$CardType	= $data['creditCardType'];
	$CardNumber = $data['creditCardNumber'];
	$DateMonth  = $data['expDateMonth'];
	$cvv		= $data['cvv2Number'];
}
?>

	<fieldset class="credit_card" id="credit_card">
		<legend><?php echo JText::_('Credit Card');?></legend>
		
		<label for="creditCardType"><?php echo JText::_('Card Type');?></label>
		<select name="creditCardType">
				<option value="Visa" <?php if($CardType=='Visa')echo 'selected';?>>Visa</option>
				<option value="MasterCard" <?php if($CardType=='MasterCard')echo 'selected';?>>MasterCard</option>
				<option value="Discover" <?php if($CardType=='Discover')echo 'selected';?>>Discover</option>
				<option value="Amex" <?php if($CardType=='Amex')echo 'selected';?>>American Express</option>
			</select>
			
		<label for="creditCardType"><?php echo JText::_('Card Number');?></label>
		<input type="text" size="19" maxlength="19" name="creditCardNumber" id="creditCardNumber"  value="<?php echo $CardNumber;?>">
		
		<label for="expDateMonth"><?php echo JText::_('Expiration Date');?></label>
		<select name="expDateMonth" class="cart_date">
			<option value="1" <?php if($DateMonth==1)echo 'selected';?>>01</option>
			<option value="2" <?php if($DateMonth==2)echo 'selected';?>>02</option>
			<option value="3" <?php if($DateMonth==3)echo 'selected';?>>03</option>
			<option value="4" <?php if($DateMonth==4)echo 'selected';?>>04</option>
			<option value="5" <?php if($DateMonth==5)echo 'selected';?>>05</option>
			<option value="6" <?php if($DateMonth==6)echo 'selected';?>>06</option>
			<option value="7" <?php if($DateMonth==7)echo 'selected';?>>07</option>
			<option value="8" <?php if($DateMonth==8)echo 'selected';?>>08</option>
			<option value="9" <?php if($DateMonth==9)echo 'selected';?>>09</option>
			<option value="10" <?php if($DateMonth==10)echo 'selected';?>>10</option>
			<option value="11" <?php if($DateMonth==11)echo 'selected';?>>11</option>
			<option value="12" <?php if($DateMonth==12)echo 'selected';?>>12</option>
		</select>
		<?php echo $this->credit_card_year;?>
	
		<label for="creditCardType"><?php echo JText::_('CVV');?></label>
		<input type=text size="3" maxlength="4" name="cvv2Number" id="cvv2Number"  value="<?php echo $cvv;?>">
	
	</fieldset>