JEMBOT MAWOT Bypass Shell
{*
*
* 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
*}
{extends file='customer/page.tpl'}
{block name='page_title'}
{l s='My tickets' mod='selltickets'}
{/block}
{block name="page_content"}
<!-- selltickets -->
<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-striped table-bordered table-labeled hidden-sm-down">
<thead class="thead-default">
<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}</small><br/><span>{$ticket.order_reference}</span></td>
<td class="text-center ticket-nameinf" onClick="openQRinfo({$ticket.order_id}, {$ticket.id_product}, {$ticket.id_product_attribute}, '');" title="{l s='View QR' mod='selltickets'}">
<strong><i class="icon-qrcode"></i> {$ticket.name}</strong><br/>x {$ticket.qty}
</td>
<td class="text-center">
{assign var="params_ticket" value="`$ticket.order_id`-`$ticket.filename`-`$ticket.id_product`-`$ticket.id_product_attribute`"}
<a href="{url entity='module' name='selltickets' controller='tickets' params=['ticket' => $params_ticket]}" 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}_{$ticket.id_product}_{$ticket.id_product_attribute}">
<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">{Tools::displayPrice($ticket.price_total)}</span></div>
<div><strong class="dark">{l s='Payment method' mod='selltickets'}:</strong> <span class="color-myaccount">{$ticket.payment}</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="{url entity='pdf-invoice' params=['id_order' => $ticket.order_id]}"><i class="icon-file-text"></i> PDF</a>
</span>
</div>
</div>
{/if}
</div>
<div class="clearfix"> </div>
{foreach $ticket.customer_info item=customer_inf}
<div class="box-ticket">
<div id="str_{$customer_inf.id_customer_ticket}">
<div class="infostatus"></div>
{if $ticket.nominal}
<p><strong>{l s='Owner:' mod='selltickets'}</strong>
<span class="customer_name">{$customer_inf.name}</span> <span class="customer_firstname">{$customer_inf.firstname}</span> <span class="customer_phone">{$customer_inf.phone}</span></p>
{/if}
{if $ticket.seats}
<p><strong>{l s='Seat(s):' mod='selltickets'}</strong><br/>
<span class="customer_name">
{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}
</span></p>
{/if}
</div>
<div class="clearfix"> </div>
<div class="ticket-qr">
<div class="content-qr" style="background:url('{$customer_inf.qr}') no-repeat center center transparent;"> </div>
</div>
</div>
{/foreach}
</td>
</tr>
{/foreach}
{/foreach}
</tbody>
</table>
<div class="orders_mvl hidden-md-up">
{foreach from=$order_tickets item=ticketinf}
{foreach from=$ticketinf item=ticket}
<div class="first_item row">
<div class="col-xs-12">
<small>{l s='date:' mod='selltickets'} {$ticket.order_date}</small><br/><span>{$ticket.order_reference}</span>
</div>
<div class="col-xs-10 ticket-nameinf col-xs-10" title="{l s='View QR' mod='selltickets'}">
<strong><i class="icon-qrcode"></i> {$ticket.name}</strong><br/>x {$ticket.qty}
</div>
<div class="col-xs-2 text-xs-right">
<div>
<a href="#" onClick="openQRinfo({$ticket.order_id}, {$ticket.id_product}, {$ticket.id_product_attribute}, 'mvl_');">
<i class="material-icons">ξΆ¶</i>
</a>
</div>
</div>
<div class="col-xs-12 butpdf">
{assign var="params_ticket" value="`$ticket.order_id`-`$ticket.filename`-`$ticket.id_product`-`$ticket.id_product_attribute`"}
<a href="{url entity='module' name='selltickets' controller='tickets' params=['ticket' => $params_ticket]}" title="{l s='Ticket' mod='selltickets'}" class="btn btn-primary button button-small"><span><i class="icon-download"></i> {l s='PDF' mod='selltickets'}</span></a>
</div>
</div>
<div class="infoticket" id="mvl_infoticket_{$ticket.order_id}_{$ticket.id_product}_{$ticket.id_product_attribute}">
<div>
<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">{Tools::displayPrice($ticket.price_total)}</span></div>
<div><strong class="dark">{l s='Payment method' mod='selltickets'}:</strong> <span class="color-myaccount">{$ticket.payment}</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="{url entity='pdf-invoice' params=['id_order' => $ticket.order_id]}"><i class="icon-file-text"></i> PDF</a>
</span>
</div>
</div>
{/if}
</div>
<div class="clearfix"> </div>
{foreach $ticket.customer_info item=customer_inf}
<div class="box-ticket">
<div id="str_{$customer_inf.id_customer_ticket}">
<div class="infostatus"></div>
<p><strong>{l s='Owner:' mod='selltickets'}</strong>
<span class="customer_name">{$customer_inf.name}</span> <span class="customer_firstname">{$customer_inf.firstname}</span> <span class="customer_phone">{$customer_inf.phone}</span></p>
</div>
<div class="clearfix"> </div>
<div class="ticket-qr">
<div class="content-qr" style="background:url('{$customer_inf.qr}') no-repeat center center transparent;"> </div>
</div>
</div>
{/foreach}
</div>
</div>
{/foreach}
{/foreach}
</div>
{literal}
<script type="text/javascript">
function openQRinfo(id_order, id_product, id_product_attribute, prefix)
{
$('.infoticket').hide();
$('#'+prefix+'infoticket_'+id_order+'_'+id_product+'_'+id_product_attribute).fadeToggle();
}
</script>
{/literal}
{else}
<p class="alert alert-warning">{l s='No tickets purchased' mod='selltickets'}</p>
{/if}
</div>
<!-- /selltickets -->
{/block}
xxxxx1.0, XXX xxxx