	  <?php //Q: -- START Offline CC Module -- ?>
	  <?php $this->load->model('sale/offline_cc');?>
	  <?php $cc_info = $this->model_sale_offline_cc->getCCData($this->request->get['order_id']);?>
	  <?php if (isset($cc_info['cc_number']) && $cc_info['cc_number'] != '') { ?>
	  <?php if ($this->config->get('offline_cc_encryption') != '') { ?>
	  <?php $this->load->library('encryption');?>
	  <?php $encryption = new Encryption(($this->config->get('offline_cc_encryption')) ? $this->config->get('offline_cc_encryption') : ''); ?>
	  <?php $cc_info['cc_number'] = $encryption->decrypt($cc_info['cc_number']); ?>
	  <?php } ?>
	  <?php $this->load->language('payment/offline_cc'); ?>
	  <div style="margin-bottom: 15px;">
        <div style="background: #547C96; color: #FFF; border-bottom: 1px solid #8EAEC3; padding: 5px; font-size: 14px; font-weight: bold;"><?php echo $this->language->get('heading_title'); ?><a id="delete_cc" onclick="return false;"> [ <?php echo $this->language->get('text_delete'); ?> ] </a></div>
        <div style="background: #FCFCFC; border: 1px solid #8EAEC3; padding: 10px;">
	      <table class="list">
	      	<thead>
	          <tr>
	            <td class="left" width="14%"><b><?php echo $this->language->get('text_cc_type'); ?></b></td>
	          	<td class="left" width="14%"><b><?php echo $this->language->get('text_cc_name'); ?></b></td>
	          	<td class="left" width="14%"><b><?php echo $this->language->get('text_cc_number'); ?></b></td>
	          	<td class="left" width="14%"><b><?php echo $this->language->get('text_cc_exp'); ?></b></td>
	          	<td class="left" width="14%"><b><?php echo $this->language->get('text_cc_cvv'); ?></b></td>
	          	<td class="left" width="14%"><b><?php echo $this->language->get('text_cc_startdate'); ?></b></td>
	          	<td class="left" width="14%"><b><?php echo $this->language->get('text_cc_issuenum'); ?></b></td>
	          </tr>
	        </thead>
	        <tbody>
	          <tr id="ccdata">
	            <td class="left"><?php echo $cc_info['cc_type']; ?></td>
	          	<td class="left"><?php echo $cc_info['cc_name']; ?></td>
	          	<td class="left"><?php echo $cc_info['cc_number']; ?></td>
	          	<td class="left"><?php echo $cc_info['cc_exp']; ?></td>
	          	<td class="left"><?php echo $cc_info['cc_cvv']; ?></td>
	          	<td class="left"><?php echo $cc_info['cc_startdate']; ?></td>
	          	<td class="left"><?php echo $cc_info['cc_issuenum']; ?></td>
	          </tr>
	        </tbody>
	      </table>
        </div>
      </div>
      <?php } ?>
      <script type="text/javascript"><!--
	  $(document).ready(function() {
	  	$('#delete_cc').click(function() {
			if (confirm('<?php echo $this->language->get('text_confirm'); ?>')) {
				$.ajax({
					url: 'index.php?route=payment/offline_cc/deletecc&token=<?php echo $token; ?>&order_id=<?php echo $this->request->get['order_id'];?>',
					dataType: 'json',
					success: function(message) {
	 					$('#ccdata').replaceWith('<tr><td align="center" colspan="7"><b>'+message+'</b></td></tr>');
					}
				});
			} else {
				return false;
			}
		});
	  });
	  //--></script>
      <?php //Q: -- END Offline CC Module -- ?>