JEMBOT MAWOT Bypass Shell

Current Path : /home/cinepatreb/billetterie/modules/selltickets/views/templates/admin/
Upload File :
Current File : /home/cinepatreb/billetterie/modules/selltickets/views/templates/admin/selltickets.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
*}

<img src="{$base|escape:'htmlall':'UTF-8'}modules/selltickets/logo.png" class="ico-ave">
<h1>{l s='SellTickets' mod='selltickets'}</h1>
<p>{l s='Module to create and manage tickets for events' mod='selltickets'}</p>

<div class="clear">&nbsp;</div>
<fieldset id="selltickets">
    	{literal}
    <script type="text/javascript">
    	var seti_lang = {
    		gridnotzero : "{/literal}{l s='Columns and rows must be more than 0' mod='selltickets'}{literal}",
    		associateclickbefore : "{/literal}{l s='If you want to associate a previously created seat map you must assign it by clicking on the button, before saving the ticket' mod='selltickets'}{literal}",
    		clicksquares : "{/literal}{l s='You must click on the squares to create your room on the seat map' mod='selltickets'}{literal}",
    		overrides : "{/literal}{l s='Are you sure? It may conflict with another installed modules or if you have modified code' mod='selltickets'}{literal}",
    		deleteticket : "{/literal}{l s='Delete Ticket? All related data will be deleted' mod='selltickets'}{literal}",
    		canceldeleteticketorder : "{/literal}{l s='Cancel and delete this Ticket order? This will make the ticket invalid because won\'t printed in CSV file and customer cannot download PDF ticket again' mod='selltickets'}{literal}",
    		validateticket : "{/literal}{l s='Do you want to validate this ticket? If you will scann this ticket with the SellTickets APP it will appear as previously validated' mod='selltickets'}{literal}",
    		validated : "{/literal}{l s='Validated' mod='selltickets'}{literal}",
    		notvalidated : "{/literal}{l s='Not validated' mod='selltickets'}{literal}",
    		selectproduct : "{/literal}{l s='Please select one product for the ticket info' mod='selltickets'}{literal}"
    	}
    	var seti_config = {
			edit : {/literal}{if Tools::getValue('edit')}true{else}false{/if}{literal},
			t : {/literal}{if Tools::getValue('t')}{Tools::getValue('t')|escape:'htmlall':'UTF-8'}{else}false{/if}{literal},
			id_order : {/literal}{if Tools::getValue('id_order')}{Tools::getValue('id_order')|escape:'htmlall':'UTF-8'}{else}false{/if}{literal},
			urlbase : "{/literal}{$url_base|escape:'quotes':'UTF-8'}{literal}",
			ajaxurl : "{/literal}{$linkobj->getModuleLink('selltickets', 'ajax', [], true)|escape:'htmlall':'UTF-8'}{literal}",
			token : "{/literal}{$ajax_token_admin|escape:'htmlall':'UTF-8'}{literal}",
			overrides : {/literal}{$overrides|escape:'htmlall':'UTF-8'}{literal}
    	}
	</script>
	{/literal}
	{if $perms}
	<div class="result">
		<div class="alert alert-warning">{$perms|escape:'html':'UTF-8'|htmlspecialchars_decode:3}</div>
	</div>
	{/if}
	{if !$overrides}
	<div class="result">
		<div class="alert alert-warning"><strong>{l s='IMPORTANT:' mod='selltickets'}</strong> {l s='If you want to sell tickets of virtual products with combinations you must' mod='selltickets'} <a href="#" onClick="installOverrides();">{l s='click here' mod='selltickets'}</a>. {l s='It will replaced Admin templates of product controller to allow the sale of virtual products with attribute combinations' mod='selltickets'}</div>
	</div>
	{/if}
	{if $result}
	<div class="result">
		<div class="alert {if $st_error}alert-danger{else}alert-success{/if}">
			{$result|escape:'html':'UTF-8'|htmlspecialchars_decode:3}
			{if $warning_overrides}
                {l s='Error: Some files already exists on override template path.' mod='selltickets'} {l s='You need to copy manually from:' mod='selltickets'}<br/>

                {foreach from=$from_overrides item=file_from}
                	<strong>{$file_from|escape:'htmlall':'UTF-8'}</strong><br/>
                {/foreach}
                <br/>
                {l s='to:' mod='selltickets'}<br/>
                {foreach from=$to_overrides item=file_to}
                	<strong>{$file_to|escape:'htmlall':'UTF-8'}</strong><br/>
                {/foreach}
            {/if}
		</div>
	</div>
	{/if}
	<form method="post" action="{$url_base|escape:'quotes':'UTF-8'}" id="selltickets_form_principal" class="form-horizontal col-xs-12 col-sm-7 col-md-7 col-lg-8">
		<input id="submitFilterselltickets" name="submitFilterselltickets" value="0" type="hidden">	
		<div class="panel">
			<div class="panel-heading">
				<i class="icon-edit"></i> {l s='Tickets management' mod='selltickets'}
			</div>
			<div class="layer-selltickets"{if !empty($ed_id_ticket)} style="display:block;"{/if}>
				<div class="form-group">
					<div class="clearfix row col-xs-12 col-sm-12 col-md-12 col-lg-12">
						<h2 class="sellticketstitle">{if !empty($ed_id_ticket)}{l s='Edit Ticket Info:' mod='selltickets'} #{$ed_id_ticket|escape:'htmlall':'UTF-8'}{else}{l s='Add new Ticket' mod='selltickets'}{/if}</h2>
					</div>
					<label class="control-label col-xs-12 col-sm-5 col-md-4 col-lg-3 required">{l s='Assigned product' mod='selltickets'}</label>
					<div class="col-xs-12 col-sm-7 col-md-8 col-lg-9">
						{if !empty($ed_id_product)}
						<input type="hidden" value="{$ed_id_product|escape:'htmlall':'UTF-8'}" name="id_product"/>
						{foreach from=$products item=product}
							{if !empty($ed_id_product) AND $ed_id_product == $product.id_product}<p><strong>{$product.name|escape:'htmlall':'UTF-8'}</strong> (<a href="{$url_product|escape:'htmlall':'UTF-8'}&id_product={$ed_id_product|escape:'htmlall':'UTF-8'}">{l s='ID product:' mod='selltickets'} {$ed_id_product|escape:'htmlall':'UTF-8'}</a>)</p>{/if}
						{/foreach}
						{else}
						<select name="id_product" {if !empty($ed_id_product)} disabled{/if}>
							<option value="0">{l s='Select a product from the list' mod='selltickets'}</option>
						{foreach from=$products item=product}
							{if $product.name != '' && $product.active == 1 && !in_array($product.id_product, $products_not_available)}
							<option value="{$product.id_product|escape:'htmlall':'UTF-8'}"{if !empty($ed_id_product) AND $ed_id_product == $product.id_product} selected{/if}>{$product.name|escape:'htmlall':'UTF-8'}</option>
							{/if}
						{/foreach}
						</select>
						{/if}
						<p class="preference_description clear">{l s='When you assign a ticket to a product will automatically converted into type \'Virtual\' without any downloadable attachment file. The ticket (PDF file) is generated automatically in the purchase by sending the email to the customer when order status is like the order states configuration' mod='selltickets'}<br/>{l s='You should not change the type of product on back-end because the product type \'Virtual\' won\'t apply shipping costs.' mod='selltickets'}</p>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-5 col-md-4 col-lg-3">{l s='Name/Ticket title' mod='selltickets'}</label>
					<div class="col-xs-12 col-sm-7 col-md-8 col-lg-9">
	                  {foreach from=$languages item=lang}
	                  <div class="translatable-field row lang-{$lang.id_lang|escape:'htmlall':'UTF-8'}" style="display: {if $selected_lang_iso == $lang.iso_code}block{else}none{/if};">
	                     <div class="col-lg-11">
	                          <input type="text" class="form-control" data-lang="{$lang.id_lang|escape:'htmlall':'UTF-8'}" name="name[{$lang.id_lang|escape:'htmlall':'UTF-8'}]" placeholder="{l s='Name/Ticket title' mod='selltickets'}" value="{if !empty($ed_nom[$lang.id_lang])}{$ed_nom[$lang.id_lang]|escape:'htmlall':'UTF-8'}{/if}">
	                     </div>
	                     <div class="col-lg-1">
	                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
	                        {$lang.iso_code|escape:'htmlall':'UTF-8'}
	                        <span class="caret"></span>
	                        </button>
	                        <ul class="dropdown-menu">
	                          {foreach from=$languages item=lang_aux}
	                           <li><a href="javascript:hideOtherLanguage({$lang_aux.id_lang|escape:'htmlall':'UTF-8'});">{$lang_aux.name|escape:'htmlall':'UTF-8'}</a></li>
	                          {/foreach}
	                        </ul>
	                     </div>
	                  </div>
	                  {/foreach}
						<p class="preference_description clear">{l s='If you do not enter a custom name, the product name will be used' mod='selltickets'}. {l s='If the product has combinations, they will appear under the name in PDF file' mod='selltickets'}</p>
					</div>
				</div>

				<label class="control-label col-xs-12 col-sm-5 col-md-4 col-lg-3 label-desc">&nbsp;</label>	
				<div class="form-group row col-xs-12 col-sm-7 col-md-8 col-lg-9">
					<div class="row col-lg-6">
						<div class="col-lg-12">
							<label class="control-label">{l s='Event date' mod='selltickets'}</label>
			                  {foreach from=$languages item=lang}
			                  <div class="translatable-field row lang-{$lang.id_lang|escape:'htmlall':'UTF-8'}" style="display: {if $selected_lang_iso == $lang.iso_code}block{else}none{/if};">
			                     <div class="col-lg-10">
			                          <input type="text" class="form-control" data-lang="{$lang.id_lang|escape:'htmlall':'UTF-8'}" name="date[{$lang.id_lang|escape:'htmlall':'UTF-8'}]" placeholder="{l s='Date free format' mod='selltickets'}" value="{if !empty($ed_date[$lang.id_lang])}{$ed_date[$lang.id_lang]|escape:'htmlall':'UTF-8'}{/if}">
			                     </div>
			                     <div class="col-lg-2">
			                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			                        {$lang.iso_code|escape:'htmlall':'UTF-8'}
			                        <span class="caret"></span>
			                        </button>
			                        <ul class="dropdown-menu">
			                          {foreach from=$languages item=lang_aux}
			                           <li><a href="javascript:hideOtherLanguage({$lang_aux.id_lang|escape:'htmlall':'UTF-8'});">{$lang_aux.name|escape:'htmlall':'UTF-8'}</a></li>
			                          {/foreach}
			                        </ul>
			                     </div>
			                  </div>
			                  {/foreach}
						</div>
					</div>
					<div class="col-lg-6">
						<div class="col-lg-12">
							<label class="control-label">{l s='Time' mod='selltickets'}</label>
			                  {foreach from=$languages item=lang}
			                  <div class="translatable-field row lang-{$lang.id_lang|escape:'htmlall':'UTF-8'}" style="display: {if $selected_lang_iso == $lang.iso_code}block{else}none{/if};">
			                     <div class="col-lg-10">
			                          <input type="text" class="form-control" data-lang="{$lang.id_lang|escape:'htmlall':'UTF-8'}" name="hour[{$lang.id_lang|escape:'htmlall':'UTF-8'}]" placeholder="{l s='Time free format' mod='selltickets'}" value="{if !empty($ed_hour[$lang.id_lang])}{$ed_hour[$lang.id_lang]|escape:'htmlall':'UTF-8'}{/if}">
			                     </div>
			                     <div class="col-lg-2">
			                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			                        {$lang.iso_code|escape:'htmlall':'UTF-8'}
			                        <span class="caret"></span>
			                        </button>
			                        <ul class="dropdown-menu">
			                          {foreach from=$languages item=lang_aux}
			                           <li><a href="javascript:hideOtherLanguage({$lang_aux.id_lang|escape:'htmlall':'UTF-8'});">{$lang_aux.name|escape:'htmlall':'UTF-8'}</a></li>
			                          {/foreach}
			                        </ul>
			                     </div>
			                  </div>
			                  {/foreach}
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-5 col-md-4 col-lg-3">{l s='Details' mod='selltickets'}</label>
					<div class="col-xs-12 col-sm-7 col-md-8 col-lg-9">
	                  {foreach from=$languages item=lang}
	                  <div class="translatable-field row lang-{$lang.id_lang|escape:'htmlall':'UTF-8'}" style="display: {if $selected_lang_iso == $lang.iso_code}block{else}none{/if};">
	                     <div class="col-lg-11">
	                     	<textarea class="form-control" data-lang="{$lang.id_lang|escape:'htmlall':'UTF-8'}" name="conditions[{$lang.id_lang|escape:'htmlall':'UTF-8'}]" cols="55" rows="3">{if !empty($ed_conditions[$lang.id_lang])}{$ed_conditions[$lang.id_lang]|escape:'htmlall':'UTF-8'}{/if}</textarea>
	                     </div>
	                     <div class="col-lg-1">
	                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
	                        {$lang.iso_code|escape:'htmlall':'UTF-8'}
	                        <span class="caret"></span>
	                        </button>
	                        <ul class="dropdown-menu">
	                          {foreach from=$languages item=lang_aux}
	                           <li><a href="javascript:hideOtherLanguage({$lang_aux.id_lang|escape:'htmlall':'UTF-8'});">{$lang_aux.name|escape:'htmlall':'UTF-8'}</a></li>
	                          {/foreach}
	                        </ul>
	                     </div>
	                  </div>
	                  {/foreach}
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-xs-12 col-sm-5 col-md-4 col-lg-3 label-desc">{l s='Location' mod='selltickets'}</label>
					<div class="col-xs-12 col-sm-7 col-md-8 col-lg-9">&nbsp;</div>
					<div class="form-group row col-lg-12">
						<div class="col-xs-12 col-sm-5 col-md-4 col-lg-3">&nbsp;</div>
						<div class="col-xs-12 col-sm-7 col-md-8 col-lg-9">
							<label class="control-label">{l s='Venue/Place' mod='selltickets'}</label>
			                  {foreach from=$languages item=lang}
			                  <div class="translatable-field row lang-{$lang.id_lang|escape:'htmlall':'UTF-8'}" style="display: {if $selected_lang_iso == $lang.iso_code}block{else}none{/if};">
			                     <div class="col-lg-11">
			                          <input type="text" class="form-control" data-lang="{$lang.id_lang|escape:'htmlall':'UTF-8'}" name="venue[{$lang.id_lang|escape:'htmlall':'UTF-8'}]" placeholder="{l s='e.g. Bar Pdlt, New Stadium, ...' mod='selltickets'}" value="{if !empty($ed_venue[$lang.id_lang])}{$ed_venue[$lang.id_lang]|escape:'htmlall':'UTF-8'}{/if}">
			                     </div>
			                     <div class="col-lg-1">
			                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			                        {$lang.iso_code|escape:'htmlall':'UTF-8'}
			                        <span class="caret"></span>
			                        </button>
			                        <ul class="dropdown-menu">
			                          {foreach from=$languages item=lang_aux}
			                           <li><a href="javascript:hideOtherLanguage({$lang_aux.id_lang|escape:'htmlall':'UTF-8'});">{$lang_aux.name|escape:'htmlall':'UTF-8'}</a></li>
			                          {/foreach}
			                        </ul>
			                     </div>
			                  </div>
			                  {/foreach}
						</div>
					</div>
					<div class="form-group row col-lg-12">
						<div class="col-xs-12 col-sm-5 col-md-4 col-lg-3">&nbsp;</div>
						<div class="col-xs-12 col-sm-7 col-md-8 col-lg-9">
							<label class="control-label">{l s='Address' mod='selltickets'}</label>
							<input type="text" name="location" placeholder="{l s='Street, number. Postal code. City' mod='selltickets'}" value="{if !empty($ed_location)}{$ed_location|escape:'htmlall':'UTF-8'}{/if}"/>
						</div>
					</div>
					<label class="control-label col-xs-12 col-sm-5 col-md-4 col-lg-3 label-desc">{l s='OR' mod='selltickets'}</label>
					<div class="form-group row col-xs-12 col-sm-7 col-md-8 col-lg-9">
						<div class="row col-lg-6">
							<div class="col-lg-12">
								<label class="control-label">{l s='Latitude' mod='selltickets'}</label>
								<input type="text" name="lat" placeholder="{l s='e.g. 41.1498259' mod='selltickets'}" value="{if !empty($ed_lat)}{$ed_lat|escape:'htmlall':'UTF-8'}{/if}"/>
							</div>
						</div>
						<div class="col-lg-6">
							<div class="col-lg-12">
								<label class="control-label">{l s='Longitude' mod='selltickets'}</label>
								<input type="text" name="long" placeholder="{l s='e.g. 1.105532100000005' mod='selltickets'}" value="{if !empty($ed_long)}{$ed_long|escape:'htmlall':'UTF-8'}{/if}"/>
							</div>
						</div>
						<div class="col-lg-12">
							<p class="preference_description clear">{l s='Map will only be available if you add latitude and longitude' mod='selltickets'} {l s='and configure the Google Map API Key on the General configuration block.' mod='selltickets'}</p>
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="col-xs-12 col-sm-5 col-md-4 col-lg-3">&nbsp;</div>
					<div class="col-xs-12 col-sm-7 col-md-8 col-lg-9">
						<input type="checkbox" value="1" name="nominal" id="nominal"{if !empty($ed_nominal)}{if $ed_nominal} checked{/if}{else} checked{/if}> <label for="nominal">{l s='Request personal data (Name + Phone) for each owner of ticket' mod='selltickets'}</label>
					</div>
				</div>
				<div class="form-group">
					<div class="col-xs-12 col-sm-5 col-md-4 col-lg-3">&nbsp;</div>
					<div class="col-xs-12 col-sm-7 col-md-8 col-lg-9">
						<input type="checkbox" value="1" name="seats" id="seats"{if !empty($ed_seats)}{if $ed_seats} checked{else} disabled{/if}{/if}> <label for="seats">{l s='Create seat selection map for clients' mod='selltickets'}</label>
					</div>
				</div>
				<div id="seat_map_selection" class="form-group">
					<div class="col-xs-12 col-sm-5 col-md-4 col-lg-3">&nbsp;</div>
					<div class="control-seat col-xs-12 col-sm-7 col-md-8 col-lg-9"{if !empty($ed_seats)}{if $ed_seats} style="display:block;"{/if}{/if}>
						<div class="col-lg-12">&nbsp;</div>
						<div class="form-group">
							<label class="control-label col-xs-12 col-sm-5 col-md-4 col-lg-3 required">{l s='Load previously created map settings' mod='selltickets'}</label>
							<div class="col-xs-12 col-sm-7 col-md-8 col-lg-9">
								<input type="hidden" id="selected_seatmaps" name="selected_seatmaps" value=""/>
								<select name="id_ticket_seats" id="id_ticket_seats"{if !empty($ed_seats)}{if $ed_seats_op}{if !empty($ed_seat_assoc)} disabled{/if}{/if}{/if}>
									<option value="0">-</option>
									{if $ticket_seats_map}
									{foreach from=$ticket_seats_map item=seatmap}
										<option value="{$seatmap.id_ticket_seats}"{if !empty($ed_seats)}{if in_array($seatmap.id_ticket_seats|escape:'htmlall':'UTF-8', $ed_seat_assoc|escape:'htmlall':'UTF-8')} disabled{/if}{/if}>{l s='Seat map created for:' mod='selltickets'} {$seatmap.parent_ticket_name|escape:'htmlall':'UTF-8'} // {l s='ID Ticket:' mod='selltickets'} {$seatmap.parent_id_ticket|escape:'htmlall':'UTF-8'}</option>
									{/foreach}
									{/if}
								</select>
								<p class="preference_description clear">{l s='Selecting a previously created seat map will generate the configuration but you must select again the seats by dragging the cursor. Keep in mind if the product has different combinations of attributes.' mod='selltickets'}</p>
								<div id="added_seatmap"{if !empty($ed_seats)} style="display:block;"{/if}>
									<p>{l s='Seat maps associated to this ticket:' mod='selltickets'}</p>
									<ul>
										{if !empty($ed_seats)}
										{if $ed_seat_assoc}
										{foreach from=$ed_seat_assoc item=assocseatmap}
										<li class='getseatmap seatmap_{$assocseatmap.id_ticket_seats|escape:'htmlall':'UTF-8'}' onClick='getSeatMap({$assocseatmap.id_ticket_seats|escape:'htmlall':'UTF-8'}, true);'>{l s='Seat map created for:' mod='selltickets'} {$assocseatmap.assocmap.ticket_name|escape:'htmlall':'UTF-8'} // {l s='ID Ticket:' mod='selltickets'} {$assocseatmap.assocmap.id_ticket|escape:'htmlall':'UTF-8'}</li>
										{/foreach}
										{/if}
										{/if}
									</ul>
								</div>
							</div>
						</div>
						<div id="layerconfigmap"{if !empty($ed_seats)} style="display:none;"{/if}>
							<div class="row col-lg-2">
								<div class="col-lg-12">
									<label class="control-label">{l s='Columns' mod='selltickets'}</label>
									<input type="text" name="seat_col" id="seat_col" value="{if !empty($ed_seats)}{if $ed_seats_op}{$ed_seats_op.seat_col|escape:'htmlall':'UTF-8'}{else}0{/if}{else}0{/if}"{if !empty($ed_seats)}{if $ed_seats_op} disabled{/if}{/if}/>
								</div>
							</div>
							<div class="col-lg-2">
								<div class="col-lg-12">
									<label class="control-label">{l s='Rows' mod='selltickets'}</label>
									<input type="text" name="seat_row" id="seat_row" value="{if !empty($ed_seats)}{if $ed_seats_op}{$ed_seats_op.seat_row|escape:'htmlall':'UTF-8'}{else}0{/if}{else}0{/if}"{if !empty($ed_seats)}{if $ed_seats_op} disabled{/if}{/if}/>
								</div>
							</div>
							<div class="col-lg-6">
								<div class="col-lg-12">
									<button type="button" class="btn btn-default" id="createmapselector" onClick="createMapSelect();"{if !empty($ed_seats)}{if $ed_seats_op} disabled{/if}{/if}>{l s='Generate grid' mod='selltickets'}</button>
									<button type="button" class="btn btn-default" id="changenumeration" onClick="viewNumeration();"{if !empty($ed_seats)}{if $ed_seats_op} disabled{/if}{/if}>{l s='Edit numbering' mod='selltickets'}</button>
									<input type="hidden" id="seat_distribution" name="seat_distribution" value="{if !empty($ed_seats)}{if $ed_seats_op}{$ed_seats_op.seat_available|escape:'htmlall':'UTF-8'}{/if}{/if}"/>
									<button type="button" class="btn btn-default" id="assocseatmap" onClick="assocSeatMap();"{if !empty($ed_seats)}{if $ed_seats_op} disabled style="display:none;"{/if}{/if}><strong>{l s='Assign selected map' mod='selltickets'}</strong></button>
								</div>
							</div>
							<div class="col-lg-12">
								<div id="select_ticket_combination">
									<div>{l s='Related products with attribute combinations detected.' mod='selltickets'} <span>{l s='The seats you select will be related to the combination selected here:' mod='selltickets'}</span></div>
									<select name="ticket_combination" id="ticket_combination">
									</select>
								</div>
							    <div id="configseat_selltickets"> 
							    	<div id="sellticketmapseat">
							    		<div class="adviceseats alert alert-info small">
							    			<ul>
							    				<li>{l s='Select number of columns and rows for configure your seat places selector.' mod='selltickets'}</li>
							    				<li>{l s='Only the marked seats will be available for purchasing tickets.' mod='selltickets'}</li>
							    				<li><strong>{l s='To mark the available seats you must drag the cursor through the squares' mod='selltickets'}</strong></li>
							    				<li>{l s='You will can modify the number associated to seats' mod='selltickets'}</li>
							    				<li><strong>{l s='Remember that there must be the same number of seats as stock has the product associated to the ticket.' mod='selltickets'}</strong></li>
							    			</ul>
							    		</div>
								        <ul id="seatselectormap">
								        </ul>    
							    	</div>
							    </div>
							</div>
							<div class="col-lg-12">
								<p class="alert alert-warning clear">{l s='Once you create the ticket you will not be able to modify the created seat map, due to the integrity of possible seats purchased by customers.' mod='selltickets'}</p>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="panel-footer">
				<button type="submit" class="btn btn-primary pull-right layer-selltickets" name="submitTicket"{if !empty($ed_id_ticket)} style="display:block;"{/if}><i class="process-icon-{if !empty($ed_id_ticket)}save{else}plus{/if}"></i> {if !empty($ed_id_ticket)}{l s='Update' mod='selltickets'}{else}{l s='Add' mod='selltickets'}{/if}</button>
				{if !empty($ed_id_ticket)}<input type="hidden" value="{$ed_id_ticket|escape:'htmlall':'UTF-8'}" name="edicio"/><a class="btn btn-default" href="{$url_base|escape:'htmlall':'UTF-8'}"><i class="process-icon-cancel"></i> {l s='Cancel edition' mod='selltickets'}</a>{else}<div class="btn btn-primary col-lg-12" id="butnewticket" onclick="newTicket();"><i class="icon-plus"></i> <strong>{l s='Click here for' mod='selltickets'} {l s='Create new Ticket' mod='selltickets'}</strong></div>{/if}
			</div>
		</div>
	</form>
	<div class="col-xs-12 col-sm-5 col-md-5 col-lg-4">
		<form method="post" action="{$url_base|escape:'quotes':'UTF-8'}" class="form-horizontal form-config col-lg-12 col-sm-12">
			<div class="panel">
				<div class="panel-heading">
					<i class="icon-cog"></i> {l s='General configuration' mod='selltickets'}
				</div>
				<div class="form-group">
					<label class="control-label col-lg-4 required">{l s='Order states to validate ticket' mod='selltickets'}</label>
					<div class="col-lg-8">
						<select name="order_states[]" multiple>
						{foreach from=$order_states item=state}
							<option value="{$state.id_order_state|escape:'htmlall':'UTF-8'}"{foreach from=$order_sel_states item=state_sel}{if $state.id_order_state == $state_sel} selected{/if}{/foreach}>{$state.name|escape:'htmlall':'UTF-8'}</option>
						{/foreach}
						</select>
						<p class="preference_description clear">{l s='Status of order which validates and generates the ticket' mod='selltickets'}</p>
						<hr/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-lg-4">{l s='APP Key' mod='selltickets'}</label>
					<div class="col-lg-8">
						<p id="apikey"><span class="code">{$apikey|escape:'htmlall':'UTF-8'}</span> <br/><small><input type="checkbox" value="1" name="generatekey" id="generatekey"> <label for="generatekey">{l s='check for generate a new key' mod='selltickets'}</label></small></p>
						<p class="preference_description clear">{l s='This is your key to use the APP validator SellTickets on your mobile device' mod='selltickets'}. <strong>{l s='Please keep it in secret, anyone who knows can connect to your store' mod='selltickets'}</strong></p>
						<p>
						<a target="_blank" href='https://play.google.com/store/apps/details?id=com.avellana.selltickets&utm_source=global_co&utm_medium=prtnr&utm_content=Mar2515&utm_campaign=PartBadge&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'><img alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png' style="width:140px;"/></a> &nbsp;&nbsp; <a target="_blank" href='https://itunes.apple.com/us/app/selltickets-app/id1213730898?mt=8'><img alt='Download on the App Store' src="{$base|escape:'htmlall':'UTF-8'}modules/selltickets/views/img/appstore.png" style="width:135px;"/></a><br/>
						<small>{l s='With SellTickets APP you can perform access control, make reading the code displayed at the ticket and check in the database if the ticket is valid or otherwise already been used and therefore invalid.' mod='selltickets'}</small>
						</p><p>&nbsp;</p>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-lg-4">{l s='Google Maps API Key' mod='selltickets'}</label>
					<div class="col-lg-8">
						<input type="text" name="keygmaps" value="{if $key_gmaps}{$key_gmaps|escape:'htmlall':'UTF-8'}{/if}"/>
						<p class="preference_description clear">{l s='If you want to show the map of event in the PDF file, you will need to generate an API Key in Google Maps Platform and paste it on this text field.' mod='selltickets'} <a href="https://developers.google.com/maps/documentation/maps-static/get-api-key" target="_blank">{l s='More info here' mod='selltickets'}</a></p>
						<p>&nbsp;</p>
					</div>
				</div>
				<div class="panel-footer">
					<input type="submit" class="btn btn-default pull-right" value="{l s='Save' mod='selltickets'}" name="submitOrderStatesTicket"/>
				</div>
			</div>
		</form>
	</div>
	<div class="clearfix">&nbsp;</div>
	<script type="text/javascript">
		$(function() {
			$('table.selltickets .filter').keypress(function(e){
				var key = (e.keyCode ? e.keyCode : e.which);
				if (key == 13)
				{
					e.preventDefault();
					formSubmit(e, 'submitFilterButtonselltickets');
				}
			})
			$('#submitFilterButtonselltickets').click(function() {
				$('#submitFilterselltickets').val(1);
			});

		});
	</script>
	<a class="button" style="float:right" href="{$url_base|escape:'quotes':'UTF-8'}{if !$innactive}&innactive=1{/if}" >{if !$innactive}{l s='Show innactive tickets' mod='selltickets'}{else}{l s='Show active tickets' mod='selltickets'}{/if}</a>
	<form method="post" action="{$url_base|escape:'quotes':'UTF-8'}" class="form-horizontal clearfix" id="form-selltickets">
		<input id="submitFilterselltickets" name="submitFilterselltickets" value="0" type="hidden">	
		<div class="panel col-xs-12 col-sm-12 col-md-12 col-lg-12">
			<div class="panel-heading">
				<i class="icon-list"></i> {if $innactive}{l s='Created innactive tickets' mod='selltickets'}{else}{l s='Created active tickets' mod='selltickets'}{/if}
			</div>
			<table cellspacing="0" cellpadding="0" class="table selltickets" width="100%">
				<thead>
					<tr class="nodrag nodrop">
						<th class="text-center fixed-width-xs"></th>
						<th class="text-center fixed-width-xs">{l s='ID'  mod='selltickets'}</th>
						<th>{l s='Name/title'  mod='selltickets'}</th>
						<th class="text-center fixed-width-xs">{l s='Tickets sold'  mod='selltickets'}</th>
						<th>{l s='Date'  mod='selltickets'}</th>
						<th>{l s='Time'  mod='selltickets'}</th>
						<th>{l s='Location'  mod='selltickets'}</th>
						<th width="190" class="text-center">{l s='Actions'  mod='selltickets'}</th>
					</tr>
					<tr class="nodrag nodrop filter row_hover">
						<th class="text-center">
						--
						</th>
						<th class="text-center">
							<input class="filter" name="sellticketsFilter_id_ticket" value="{$filter.id_ticket|escape:'htmlall':'UTF-8'}" type="text">
						</th>
						<th>
							<input class="filter" name="sellticketsFilter_name" value="{$filter.name|escape:'htmlall':'UTF-8'}" type="text">
						</th>
						<th class="text-center">--</th>
						<th>--</th>
						<th>--</th>
						<th>--</th>
						<th class="actions">
							<span class="pull-right">
								<button type="submit" id="submitFilterButtonselltickets" name="submitFilter" class="btn btn-default" data-list-id="selltickets">
									<i class="icon-search"></i> {l s='Search' mod='selltickets'}
								</button>
								{if $filters_has_value}
									<button type="submit" name="submitResetselltickets" class="btn btn-warning">
										<i class="icon-eraser"></i> {l s='Reset' mod='selltickets'}
									</button>
								{/if}
							</span>
						</th>
					</tr>
				</thead>
				<tbody>
					{if $tickets}
					{foreach from=$tickets item=ticket}
					<tr>
						<td class="text-center row-selector"><input name="ticketBox[]" value="{$ticket.id_ticket|escape:'htmlall':'UTF-8'}" class="noborder" type="checkbox"></td>
						<td class="text-center">{$ticket.id_ticket|escape:'htmlall':'UTF-8'}</td>
						<td>{if $ticket.name[$lang_id]}{$ticket.name[$lang_id]|escape:'htmlall':'UTF-8'}{else}{$ticket.product|escape:'htmlall':'UTF-8'}{/if}</td>
						<td class="text-center">{$ticket.total_sold|escape:'htmlall':'UTF-8'}</td>
						<td>{if $ticket.date[$lang_id]}{$ticket.date[$lang_id]|escape:'htmlall':'UTF-8'}{else}-{/if}</td>
						<td>{if $ticket.hour[$lang_id]}{$ticket.hour[$lang_id]|escape:'htmlall':'UTF-8'}{else}-{/if}</td>
						<td>{if $ticket.venue[$lang_id]}{$ticket.venue[$lang_id]|escape:'htmlall':'UTF-8'}{else}-{/if}{if $ticket.location} {$ticket.location|escape:'htmlall':'UTF-8'}{/if}{if $ticket.lat && $ticket.long}<br/><small><a href="https://maps.google.com/maps?q={$ticket.lat|escape:'htmlall':'UTF-8'},{$ticket.long|escape:'htmlall':'UTF-8'}" target="_blank">{l s='View map location' mod='selltickets'}</a></small>{/if}</td>
						<td>
							<a href="{$ticket.prod_link|escape:'htmlall':'UTF-8'}" target="_blank" title="{l s='View assigned Product online' mod='selltickets'}" class="btn btn-default"><i class="icon-search"></i></a>
							<span onclick="openTicketOrders('ticket_{$ticket.id_ticket|escape:'htmlall':'UTF-8'}')" class="btn btn-default" title="{l s='View orders' mod='selltickets'}"><i class="icon-file-text"></i></span> 
							<a href="{$url_base|escape:'quotes':'UTF-8'}&ticket_bankwire={if $ticket.bankwire == 1}0{else}1{/if}_{$ticket.id_ticket|escape:'htmlall':'UTF-8'}" title="{if $ticket.bankwire == 1}{l s='Disable' mod='selltickets'}{else}{l s='Enable' mod='selltickets'}{/if} {l s='bankwire payment' mod='selltickets'}" class="btn btn-default {if $ticket.bankwire == 1}{else}innactive{/if}"><i class="icon-bank"></i></a> 
							<a href="{$url_base|escape:'quotes':'UTF-8'}&edit={$ticket.id_ticket|escape:'htmlall':'UTF-8'}" title="{l s='Edit' mod='selltickets'}" class="btn btn-default"><i class="icon-edit"></i></a> 
							<span onclick="deleteTicket({$ticket.id_ticket|escape:'htmlall':'UTF-8'})" title="{l s='Delete' mod='selltickets'}" class="btn btn-default"><i class="icon-trash"></i></span>
						</td>
					</tr>
					{if $ticket.ord}
					<tr class="ticket_{$ticket.id_ticket|escape:'htmlall':'UTF-8'}" style="display:none">
						<td colspan="8">
							<table border="0" class="list_order_tickets">
								<thead>
									<tr class="nodrag nodrop">
										<th>{l s='Ref. Ticket'  mod='selltickets'}</th>
										<th>{l s='Validated'  mod='selltickets'}</th>
										<th>{l s='Product name'  mod='selltickets'}</th>
										{if $ticket.seats}<th>{l s='Seat'  mod='selltickets'}</th>{/if}
										<th>{l s='ID Order'  mod='selltickets'}</th>
										<th>{l s='Tickets'  mod='selltickets'}</th>
										<th>{l s='Customer'  mod='selltickets'}</th>
										<th>{l s='Phone'  mod='selltickets'}</th>
										<th>{l s='E-mail'  mod='selltickets'}</th>
										<th>{l s='Actions'  mod='selltickets'}</th>
									</tr>
								</thead>
								<tbody>
									{foreach from=$ticket.ord item=ticket_order name=tickord}
									{cycle values='sep1,sep2' assign=ticketbackground_css}
									{if $ticket_order.ok}
										{for $x=1 to $ticket_order.qty}
											<tr>
												<td class="inf_{$ticket_order.cus[$x].id_customer_ticket|escape:'htmlall':'UTF-8'} {$ticketbackground_css|escape:'htmlall':'UTF-8'}">
													<strong>{*$ticket_order.reference|escape:'htmlall':'UTF-8'}{$ticket_order.id_order|escape:'htmlall':'UTF-8'}{$ticket_order.id_product|escape:'htmlall':'UTF-8'}{$ticket_order.id_product_attribute|escape:'htmlall':'UTF-8'}{"%02d"|sprintf:$x*}
													{$ticket_order.cus[$x].reference_ticket|escape:'htmlall':'UTF-8'}
													</strong>
													<input type="hidden" name="customer_info[id_customer_ticket]" value="{$ticket_order.cus[$x].id_customer_ticket|escape:'htmlall':'UTF-8'}"/>
													<input type="hidden" name="customer_info[reference_order]" value="{$ticket_order.reference|escape:'htmlall':'UTF-8'}"/>
												</td>
												<td class="valid_{$ticket_order.cus[$x].id_customer_ticket|escape:'htmlall':'UTF-8'} {$ticketbackground_css|escape:'htmlall':'UTF-8'}"><span class="msg{if $ticket_order.cus[$x].validated == 1} validated{/if}">{if $ticket_order.cus[$x].validated == 1}{l s='Validated' mod='selltickets'}{else}{l s='Not validated' mod='selltickets'}{/if}</span></td>
												<td class="{$ticketbackground_css|escape:'htmlall':'UTF-8'}"><strong>{$ticket_order.name|escape:'htmlall':'UTF-8'}</strong>{if $ticket_order.id_product_attribute != 0}:<br/><small>{$ticket_order.attributes|escape:'htmlall':'UTF-8'}</small>{/if}</td>
												{if $ticket.seats}<td class="{$ticketbackground_css|escape:'htmlall':'UTF-8'}">
												{if !empty($ticket_order.cus[$x].seat)}
												{foreach from=$ticket_order.cus[$x].seat item=seat key=id_tickets_seat name=seatsinfo}
													<strong>{$seat|escape:'htmlall':'UTF-8'}</strong>{*<small>({$ticket_order.cus[$x].nameseatmap[$id_tickets_seat]|escape:'htmlall':'UTF-8'})</small>*}{if !$smarty.foreach.seatsinfo.last}<br/>{/if} 
												{/foreach}
												{/if}
												</td>{/if}
												<td class="{$ticketbackground_css|escape:'htmlall':'UTF-8'}">{$ticket_order.id_order|escape:'htmlall':'UTF-8'}</td>
												<td class="{$ticketbackground_css|escape:'htmlall':'UTF-8'}">{"%d"|sprintf:$x} / {$ticket_order.qty|escape:'htmlall':'UTF-8'}</td>
												<td class="inf_{$ticket_order.cus[$x].id_customer_ticket|escape:'htmlall':'UTF-8'} {$ticketbackground_css|escape:'htmlall':'UTF-8'}">
													<span class="str_edition customer_info_name">{$ticket_order.cus[$x].name|escape:'htmlall':'UTF-8'} {$ticket_order.cus[$x].firstname|escape:'htmlall':'UTF-8'}</span>
													<div class="opt_edition">
														<input type="text" name="customer_info[name]" value="{$ticket_order.cus[$x].name|escape:'htmlall':'UTF-8'}"/>
														<input type="text" name="customer_info[firstname]" value="{$ticket_order.cus[$x].firstname|escape:'htmlall':'UTF-8'}"/>
													</div>
												</td>
												<td class="inf_{$ticket_order.cus[$x].id_customer_ticket|escape:'htmlall':'UTF-8'} {$ticketbackground_css|escape:'htmlall':'UTF-8'}">
													<span class="str_edition customer_info_phone">{$ticket_order.cus[$x].phone|escape:'htmlall':'UTF-8'}</span>
													<div class="opt_edition">
														<input type="text" name="customer_info[phone]" value="{$ticket_order.cus[$x].phone|escape:'htmlall':'UTF-8'}"/>
													</div>
												</td>
												<td class="{$ticketbackground_css|escape:'htmlall':'UTF-8'}">{$ticket_order.email|escape:'htmlall':'UTF-8'}<br/><small>(<a href="{$url_customer|escape:'htmlall':'UTF-8'}&id_customer={$ticket_order.id_customer|escape:'htmlall':'UTF-8'}">{l s='ID Customer:' mod='selltickets'} {$ticket_order.id_customer|escape:'htmlall':'UTF-8'}</a>)</small></td>
												<td class="but_{$ticket_order.cus[$x].id_customer_ticket|escape:'htmlall':'UTF-8'} {$ticketbackground_css|escape:'htmlall':'UTF-8'}">
													<span onclick="saveTicketOrder({$ticket_order.cus[$x].id_customer_ticket|escape:'htmlall':'UTF-8'})" title="{l s='Save Customer Info' mod='selltickets'}" class="btn btn-primary butsaveinfotick"><i class="icon-save"></i></span>
													<span onclick="editTicketOrder({$ticket_order.cus[$x].id_customer_ticket|escape:'htmlall':'UTF-8'})" title="{l s='Edit Customer Info' mod='selltickets'}" class="btn btn-default"><i class="icon-edit"></i></span>
														<a href="{$base|escape:'htmlall':'UTF-8'}modules/selltickets/l/{$ticket_order.qr|escape:'htmlall':'UTF-8'}_{"%d"|sprintf:$x}.png" target="_blank" title="{l s='QR' mod='selltickets'}" class="btn btn-default"><i class="icon-qrcode"></i></a> 
													<a href="{$base|escape:'htmlall':'UTF-8'}modules/selltickets/l/bar/{$ticket_order.qr|escape:'htmlall':'UTF-8'}_{"%d"|sprintf:$x}.png" target="_blank" title="{l s='Barcode' mod='selltickets'}" class="btn btn-default"><i class="icon-barcode"></i></a>
													<span onclick="validateTicketOrder({$ticket_order.cus[$x].id_customer_ticket|escape:'htmlall':'UTF-8'})" title="{l s='Validate Ticket manually' mod='selltickets'}" class="btn btn-default butvalidinfotick{if $ticket_order.cus[$x].validated == 1} innactive{/if}"><i class="icon-check-square-o"></i></span>
													{if $x == 1}
													<a href="{$url_base|escape:'quotes':'UTF-8'}&down_ticket={$ticket_order.id_order|escape:'htmlall':'UTF-8'}-{$ticket_order.id_product|escape:'htmlall':'UTF-8'}-{$ticket_order.id_product_attribute|escape:'htmlall':'UTF-8'}" title="{l s='Download Ticket' mod='selltickets'}" class="btn btn-default"><i class="icon-download"></i></a>
													<span onclick="deleteTicketOrder({$ticket_order.id_order|escape:'htmlall':'UTF-8'},{$ticket_order.id_product|escape:'htmlall':'UTF-8'},{$ticket_order.id_product_attribute|escape:'htmlall':'UTF-8'})" title="{l s='Cancel and delete' mod='selltickets'}" class="btn btn-default"><i class="icon-trash"></i></span>{/if}
													<div class="infostatus">&nbsp;</div>
												</td>
											</tr>
										{/for}
									{/if}
									{/foreach}
									<tr>
										<td colspan="11" class="export_csv"><a class="btn btn-default" href="{$linkobj->getModuleLink('selltickets', 'export', ['export_tickets' => $ticket.id_ticket], true)|escape:'htmlall':'UTF-8'}"><i class="icon-file-excel-o"></i> {l s='Export all to CSV' mod='selltickets'}</a></td>
									</tr>
								</tbody>
							</table>
						</td>
					</tr>
					{/if}
					{/foreach}
					{else}
					<tr>
						<td colspan="8"><p>&nbsp;</p><p class="alert alert-warning">{l s='No tickets created' mod='selltickets'}</p></td>
					</tr>
					{/if}
				</tbody>
			</table>
			<div class="row">
				<div class="col-lg-6">
					<div class="btn-group bulk-actions dropup">
						<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
							{l s='Bulk actions' mod='selltickets'} <span class="caret"></span>
						</button>
						<ul class="dropdown-menu">
							<li>
								<a href="#" onclick="javascript:checkDelBoxes($(this).closest('form').get(0), 'ticketBox[]', true);return false;">
									<i class="icon-check-sign"></i>&nbsp;{l s='Select all' mod='selltickets'}
								</a>
							</li>
							<li>
								<a href="#" onclick="javascript:checkDelBoxes($(this).closest('form').get(0), 'ticketBox[]', false);return false;">
									<i class="icon-check-empty"></i>&nbsp;{l s='Unselect all' mod='selltickets'}
								</a>
							</li>
							<li class="divider"></li>
							<li>
								<a href="#" onclick="sendBulkAction($(this).closest('form').get(0), 'enableTicketsSelect');">
									<i class="icon-power-off text-success"></i>&nbsp;{l s='Enable Ticket/Product' mod='selltickets'}
								</a>
							</li>
							<li>
								<a href="#" onclick="sendBulkAction($(this).closest('form').get(0), 'disableTicketsSelect');">
									<i class="icon-power-off text-danger"></i>&nbsp;{l s='Disable Ticket/Product' mod='selltickets'}
								</a>
							</li>
							<li class="divider"></li>
							<li>
								<a href="#" onclick="sendBulkAction($(this).closest('form').get(0), 'deleteTicketsSelect');">
									<i class="icon-trash"></i>&nbsp;{l s='Delete' mod='selltickets'}
								</a>
							</li>
						</ul>
					</div>
				</div>
				{if $list_total > $pagination[0]}
				<div class="col-lg-6">
					{* Choose number of results per page *}
					<div class="pagination">
						{l s='Display' mod='selltickets'}
						<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
							{$selected_pagination|escape:'htmlall':'UTF-8'}
							<i class="icon-caret-down"></i>
						</button>
						<ul class="dropdown-menu">
						{foreach $pagination AS $value}
							<li>
								<a href="javascript:void(0);" class="pagination-items-page" data-items="{$value|intval|escape:'htmlall':'UTF-8'}" data-list-id="selltickets">{$value|escape:'htmlall':'UTF-8'}</a>
							</li>
						{/foreach}
						</ul>
						/ {$list_total|escape:'htmlall':'UTF-8'} {l s='result(s)' mod='selltickets'}
						<input type="hidden" id="selltickets-pagination-items-page" name="selltickets_pagination" value="{$selected_pagination|intval|escape:'htmlall':'UTF-8'}" />
					</div>
					<script type="text/javascript">
						$('.pagination-items-page').on('click',function(e){
							e.preventDefault();
							$('#'+$(this).data("list-id")+'-pagination-items-page').val($(this).data("items")).closest("form").submit();
						});
					</script>
					<ul class="pagination pull-right">
						<li {if $page <= 1}class="disabled"{/if}>
							<a href="javascript:void(0);" class="pagination-link" data-page="1" data-list-id="selltickets">
								<i class="icon-double-angle-left"></i>
							</a>
						</li>
						<li {if $page <= 1}class="disabled"{/if}>
							<a href="javascript:void(0);" class="pagination-link" data-page="{$page - 1|escape:'htmlall':'UTF-8'}" data-list-id="selltickets">
								<i class="icon-angle-left"></i>
							</a>
						</li>
						{assign p 0}
						{while $p++ < $total_pages}
							{if $p < $page-2}
								<li class="disabled">
									<a href="javascript:void(0);">&hellip;</a>
								</li>
								{assign p $page-3}
							{else if $p > $page+2}
								<li class="disabled">
									<a href="javascript:void(0);">&hellip;</a>
								</li>
								{assign p $total_pages}
							{else}
								<li {if $p == $page}class="active"{/if}>
									<a href="javascript:void(0);" class="pagination-link" data-page="{$p|escape:'htmlall':'UTF-8'}" data-list-id="selltickets">{$p|escape:'htmlall':'UTF-8'}</a>
								</li>
							{/if}
						{/while}
						<li {if $page >= $total_pages}class="disabled"{/if}>
							<a href="javascript:void(0);" class="pagination-link" data-page="{$page + 1|escape:'htmlall':'UTF-8'}" data-list-id="selltickets">
								<i class="icon-angle-right"></i>
							</a>
						</li>
						<li {if $page >= $total_pages}class="disabled"{/if}>
							<a href="javascript:void(0);" class="pagination-link" data-page="{$total_pages|escape:'htmlall':'UTF-8'}" data-list-id="selltickets">
								<i class="icon-double-angle-right"></i>
							</a>
						</li>
					</ul>
					<script type="text/javascript">
						$('.pagination-link').on('click',function(e){
							e.preventDefault();

							if (!$(this).parent().hasClass('disabled'))
								$('#submitFilter'+$(this).data("list-id")).val($(this).data("page")).closest("form").submit();
						});
					</script>
				</div>
				{/if}
			</div>
		</div>
	</form>
	<div class="clearfix">&nbsp;</div>
	<div class="panel col-xs-12 col-sm-12 col-md-12 col-lg-12">
		<div class="panel-heading">
			<i class="icon-question"></i> {l s='Structure of the ticket' mod='selltickets'}
		</div>	
		<div class="btn btn-default" id="explanationbut" onClick="seeExplanation();"><i class="icon-question-circle"></i> {l s='Click here to see the structure of a PDF Ticket' mod='selltickets'}</div>
		<div id="explanation">
			<div class="col-lg-6 text-center">
				<img src="{$base|escape:'htmlall':'UTF-8'}modules/selltickets/views/img/instruccions_new_color.png" style="max-width:100%;">
			</div>
			<div class="col-lg-6">
				<ul class="col-lg-12">
					<li>{l s='Shop name and date of generated ticket' mod='selltickets'}</li>
					<li>{l s='Name/Ticket title' mod='selltickets'}</li>
					<li>{l s='Ref. unique id ticket generated' mod='selltickets'}</li>
					<li>{l s='Number of tickets purchased' mod='selltickets'}</li>
					<li>{l s='Customer property of ticket' mod='selltickets'}</li>
					<li>{l s='Event date' mod='selltickets'}</li>
					<li>{l s='Event time' mod='selltickets'}</li>
					<li>{l s='Barcode, QR and cover image product' mod='selltickets'}</li>
					<li>{l s='Event location' mod='selltickets'}</li>
					<li>{l s='Assigned product description' mod='selltickets'}</li>
					<li>{l s='Details or conditions' mod='selltickets'}</li>
				</ul>
				<div class="legend col-lg-12">
					<div class="color blue"><span>&nbsp;</span> {l s='Description and image of related product (you can change it on "Catalog > Products")' mod='selltickets'}</div>
					<div class="color green"><span>&nbsp;</span> {l s='Ticket information (you can change it on this module)' mod='selltickets'}</div>
					<div class="color yellow"><span>&nbsp;</span> {l s='Generated automatically' mod='selltickets'}</div>
					<div class="color pink"><span>&nbsp;</span> {l s='Information entered by the customer' mod='selltickets'}</div>
					<div class="color orange"><span>&nbsp;</span> {l s='Shop information' mod='selltickets'}</div>
				</div>
			</div>
		</div>
	</div>

	<div class="clearfix">&nbsp;</div>
</fieldset>
<p class="text-center"><img src="{$base|escape:'htmlall':'UTF-8'}modules/selltickets/views/img/ave.jpg" alt=""/><br/>Developed by Avellana Digital</p>

xxxxx1.0, XXX xxxx