JEMBOT MAWOT Bypass Shell

Current Path : /home/cinepatreb/billetterie/modules/selltickets/views/templates/front/
Upload File :
Current File : /home/cinepatreb/billetterie/modules/selltickets/views/templates/front/tickets.tpl

{*
 *
 * Sell Tickets module for Prestashop by Avellana Digital
 *
 * @author     Avellana Digital SL
 * @copyright  Copyright (c) 2019 Avellana Digital - www.avellanadigital.com
 * @license    Commercial license
 * @version    4.0.0
*}

<!-- selltickets -->
{capture name=path}<a href="{$link->getPageLink('my-account', true)|escape:'htmlall':'UTF-8'}">{l s='My account' mod='selltickets'}</a><span class="navigation-pipe">{$navigationPipe|escape:'htmlall':'UTF-8'}</span>{l s='My tickets' mod='selltickets'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}

<h1 class="page-heading">{l s='My tickets' mod='selltickets'}</h1>
<p>{l s='View the tickets that you purchased on orders' mod='selltickets'}</p>
<div class="block-center">
{if $order_tickets && isset($order_tickets)}
	<table id="order-list" class="table table-bordered default">
		<thead>
			<tr>
				<th class="item">{l s='Order' mod='selltickets'}</th>
				<th class="item">{l s='Ticket' mod='selltickets'}</th>
				<th class="last_item">{l s='Download' mod='selltickets'}</th>
			</tr>
		</thead>
		<tbody>
		{foreach from=$order_tickets item=ticketinf}
			{foreach from=$ticketinf item=ticket}
			<tr class="first_item">
				<td class="text-center"><small>{l s='date:' mod='selltickets'} {$ticket.order_date|escape:'htmlall':'UTF-8'}</small><br/><span>{$ticket.order_reference|escape:'htmlall':'UTF-8'}</span></td>
				<td class="text-center ticket-nameinf" onClick="openQRinfo({$ticket.order_id|escape:'htmlall':'UTF-8'}, {$ticket.id_product|escape:'htmlall':'UTF-8'}, {$ticket.id_product_attribute|escape:'htmlall':'UTF-8'});" title="{l s='View QR' mod='selltickets'}">
					<strong><i class="icon-qrcode"></i> {$ticket.name|escape:'htmlall':'UTF-8'}</strong><br/>x {$ticket.qty|escape:'htmlall':'UTF-8'}
				</td>
				<td class="text-center">
					<a href="{$link->getModuleLink('selltickets', 'tickets', [], true)|escape:'htmlall':'UTF-8'}?ticket={$ticket.order_id|escape:'htmlall':'UTF-8'}-{$ticket.filename|escape:'htmlall':'UTF-8'}-{$ticket.id_product|escape:'htmlall':'UTF-8'}-{$ticket.id_product_attribute|escape:'htmlall':'UTF-8'}" title="{l s='Ticket' mod='selltickets'}" class="btn btn-default button button-small"><span><i class="icon-download"></i> {l s='PDF' mod='selltickets'}</span></a>
				</td>
			</tr>
			<tr class="infoticket" id="infoticket_{$ticket.order_id|escape:'htmlall':'UTF-8'}_{$ticket.id_product|escape:'htmlall':'UTF-8'}_{$ticket.id_product_attribute|escape:'htmlall':'UTF-8'}">
				<td colspan="3">
					<div class="info-sup-ticket col-lg-12 row">
						<div class="row col-lg-8">
							<div><strong class="dark">{l s='Price total' mod='selltickets'}:</strong> <span class="color-myaccount">{convertPrice price=$ticket.price_total|escape:'htmlall':'UTF-8'}</span></div>
							<div><strong class="dark">{l s='Payment method' mod='selltickets'}:</strong> <span class="color-myaccount">{$ticket.payment|escape:'htmlall':'UTF-8'}</span></div>
						</div>								
						{if $ticket.invoice AND $invoiceAllowed}
						<div class="row col-lg-4">
							<div>
								<strong class="dark">{l s='Invoice' mod='selltickets'}:</strong> 
								<span class="color-myaccount">
									<a href="{$link->getPageLink('pdf-invoice', true)|escape:'htmlall':'UTF-8'}?id_order={$ticket.order_id|escape:'htmlall':'UTF-8'}{if $is_guest}&amp;secure_key={$ticket.order_secure_key|escape:'htmlall':'UTF-8'}{/if}"><i class="icon-file-text"></i> PDF</a>
								</span>
							</div>
						</div>
						{/if}
					</div>
					<div class="clearfix">&nbsp;</div>
					{foreach $ticket.customer_info item=customer_inf}
						<div class="box-ticket">
							<div id="str_{$customer_inf.id_customer_ticket|escape:'htmlall':'UTF-8'}">
								<div class="infostatus"></div>
								{if $ticket.nominal}
								<p><strong>{l s='Owner:' mod='selltickets'}</strong> 
								<span class="customer_name">{$customer_inf.name|escape:'htmlall':'UTF-8'}</span> <span class="customer_firstname">{$customer_inf.firstname|escape:'htmlall':'UTF-8'}</span> <span class="customer_phone">{$customer_inf.phone|escape:'htmlall':'UTF-8'}</span></p>
								{/if}
								{if isset($customer_inf.seat)}
								{foreach from=$customer_inf.seat item=seat key=id_tickets_seat name=seatsinfo}
									<strong>{$seat}</strong> {*<small>({$customer_inf.nameseatmap[$id_tickets_seat]})</small>*}{if !$smarty.foreach.seatsinfo.last}<br/>{/if} 
								{/foreach}
								{/if}
							</div>
							<div class="clearfix">&nbsp;</div>
							<div class="ticket-qr">
								<div class="content-qr" style="background:url('{$customer_inf.qr|escape:'htmlall':'UTF-8'}') no-repeat center center transparent;">&nbsp;</div>
							</div>
						</div>
						
						
						
					{/foreach}
				</td>
			</tr>
			{/foreach}
		{/foreach}
		</tbody>
	</table>
	{literal}
	<script type="text/javascript">
		function openQRinfo(id_order, id_product, id_product_attribute)
		{
			$('.infoticket').hide();
			$('#infoticket_'+id_order+'_'+id_product+'_'+id_product_attribute).fadeToggle();
		}	
	</script>
	{/literal}
{else}
	<p class="warning">{l s='No tickets purchased' mod='selltickets'}</p>
{/if}
</div>
<!-- /selltickets -->

xxxxx1.0, XXX xxxx