HEX
Server: Apache
System: Linux srv13.cpanelhost.cl 3.10.0-962.3.2.lve1.5.38.el7.x86_64 #1 SMP Thu Jun 18 05:28:41 EDT 2020 x86_64
User: cca63905 (4205)
PHP: 7.3.20
Disabled: NONE
Upload Files
File: //proc/self/cwd/nueva/modules/roja45quotationsprofree/views/templates/front/customer-quotes.tpl
{*
* 2016 ROJA45
* All rights reserved.
*
* DISCLAIMER
*
* Changing this file will render any support provided by us null and void.
*
*  @author 			Roja45
*  @copyright  		2016 Roja45
*  @license          /license.txt
*}

{capture name=path}
    <a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}"
       title="{l s='My account' mod='roja45quotationsprofree'}" data-gg="">
        {l s='My account' mod='roja45quotationsprofree'}
    </a>
    <span class="navigation-pipe">
        {$navigationPipe|escape:'htmlall':'UTF-8'}
    </span>
    <span class="navigation_page">
        {l s='My Quotes' mod='roja45quotationsprofree'}
    </span>
{/capture}
{include file="$tpl_dir./errors.tpl"}
<div id="customerquotes_block_account" class="block">
    <div id="customerquotes_block_account_modal" class="invisible">
        <div class="modal-wait-icon">
            <i class="icon-refresh icon-spin animated"></i>
            <h2>{l s='Please Wait..' mod='roja45quotationsprofree'}</h2>
        </div>
    </div>
    {if !$num_address}
        <div id="customerquotes_block_address_warning" class="">
            <p class="alert alert-warning">{l s='Please enter an address before requesting an order: ' mod='roja45quotationsprofree'}<a href="{$link->getPageLink('address', true, NULL,null)|escape:'htmlall':'UTF-8'}">{l s='Click here.' mod='roja45quotationsprofree'}</a></p>
        </div>
    {/if}

    <h4 class="title_block">{l s='My Quotes' mod='roja45quotationsprofree'}</h4>
    {if isset($customerquotes) && ($customerquotes|@count gt 0)}
    <table class="table tableDnD" id="downloadableItemsTable">
        <thead>
        <tr class="nodrag nodrop">
            <th class="fixed-width-lg"><span class="title_box">{l s='Reference' mod='roja45quotationsprofree'}</span>
            </th>
            <th class="fixed-width-lg"><span class="title_box">{l s='Date Added' mod='roja45quotationsprofree'}</span>
            </th>
            <th><span class="title_box">{l s='Last Updated' mod='roja45quotationsprofree'}</span>
            </th>
            <th class="fixed-width-lg">
                <span class="title_box">{l s='Expiration Date' mod='roja45quotationsprofree'}</span>
            </th>
            <th class="fixed-width-lg"><span class="title_box">{l s='Total (exc)' mod='roja45quotationsprofree'}</span></th>
            {if $use_taxes && $show_taxes}
                <th class="fixed-width-lg"><span class="title_box">{l s='Total (inc)' mod='roja45quotationsprofree'}</span></th>
            {/if}
            <th class="fixed-width-xs"></th>
            <th class="fixed-width-xs"></th>
        </tr>
        </thead>
        <tbody id="fileList">
        {foreach $customerquotes as $customerquote}
            <tr class="nodrag nodrop" data-id="{$customerquote->id_roja45_quotation|escape:'htmlall':'UTF-8'}">
                <td class="fixed-width-lg reference">{$customerquote->reference|escape:'htmlall':'UTF-8'}</td>
                <td class="fixed-width-lg added-date">{dateFormat date=$customerquote->received full=false}</td>
                <td class="updated-date">{dateFormat date=$customerquote->last_update full=true}</td>
                <td class="fixed-width-lg expiration-date">{if ($customerquote->expiry_date != '0000-00-00 00:00:00')}{dateFormat date=$customerquote->expiry_date full=false}{/if}</td>
                <td class="fixed-width-lg total">{$customerquote->total_exc_formatted|escape:'htmlall':'UTF-8'}</td>
                {if $use_taxes && $show_taxes}
                    <td class="fixed-width-lg total">{$customerquote->total_inc_formatted}</td>
                {/if}
                <td>
                    <a href="{$link->getModuleLink('roja45quotationsprofree','QuotationsProFront',['action'=>'getQuotationDetails','id_roja45_quotation'=>$customerquote->id_roja45_quotation])|escape:'htmlall':'UTF-8'}"
                       class="btn btn-default viewQuote">
                        <span>{l s='View' mod='roja45quotationsprofree'}</span><i class="icon-eye"></i>
                    </a>
                </td>
                <td>
                    {if $customerquote->quote_sent=="1"}
                    {if $catalog_mode}
                        <a href="{$link->getModuleLink('roja45quotationsprofree','QuotationsProFront',['action'=>'submitRequestOrder','id_roja45_quotation'=>$customerquote->id_roja45_quotation])|escape:'htmlall':'UTF-8'}" class="btn btn-default addToOrder {if !$num_address}disabled{/if}">
                            <span>{l s='Order' mod='roja45quotationsprofree'}</span><i class="icon-shopping-cart"></i>
                        </a>
                    {else}
                    <a href="{$link->getModuleLink('roja45quotationsprofree','QuotationsProFront',['action'=>'submitAddToCart','id_roja45_quotation'=>$customerquote->id_roja45_quotation])|escape:'htmlall':'UTF-8'}" class="btn btn-default addToCart {if !$num_address}disabled{/if}">
                        <span>{l s='Add To Cart' mod='roja45quotationsprofree'}</span><i class="icon-shopping-cart"></i>
                    </a>
                    {/if}
                    {else}
                        <span>{l s='In Progress' mod='roja45quotationsprofree'}</span>
                    {/if}
                </td>
            </tr>
        {/foreach}
        </tbody>
    </table>
    {else}
        <p class="warning">{l s='You have no open quotes.' mod='roja45quotationsprofree'}</p>
    {/if}

    {if isset($historicalquotes) && ($historicalquotes|@count gt 0)}
    <h4>{l s='Quote History' mod='roja45quotationsprofree'}</h4>
    <table class="table tableDnD" id="downloadableItemsTable">
        <thead>
        <tr class="nodrag nodrop">
            <th class="fixed-width-lg"><span class="title_box">{l s='Reference' mod='roja45quotationsprofree'}</span>
            </th>
            <th class="fixed-width-lg"><span class="title_box">{l s='Date Added' mod='roja45quotationsprofree'}</span>
            </th>
            <th class="fixed-width-lg"><span class="title_box">{l s='Last Updated' mod='roja45quotationsprofree'}</span>
            </th>
            <th class="fixed-width-lg">
                <span class="title_box">{l s='Purchased On' mod='roja45quotationsprofree'}</span>
            </th>
            <th class="fixed-width-lg"><span class="title_box">{l s='Total' mod='roja45quotationsprofree'}</span></th>
            <th class="fixed-width-xs">

            </th>
        </tr>
        </thead>
        <tbody id="fileList">
        {foreach $historicalquotes as $historicalquote}
            <tr class="nodrag nodrop" data-id="{$historicalquote->id_roja45_quotation|escape:'htmlall':'UTF-8'}">
                <td class="fixed-width-lg reference">{$historicalquote->reference|escape:'htmlall':'UTF-8'}</td>
                <td class="fixed-width-lg added-date">{dateFormat date=$historicalquote->received full=false}</td>
                <td class="fixed-width-lg updated-date">{dateFormat date=$historicalquote->last_update full=true}</td>
                <td class="fixed-width-lg purchased-date">{dateFormat date=$historicalquote->purchase_date full=false}</td>
                <td class="fixed-width-lg total">{displayPrice price=Tools::ps_round(Tools::convertPrice($historicalquote->getQuotationTotal(), $currency), 2) currency=$currency->id|escape:'htmlall':'UTF-8'}</td>
                <td>
                    <a href="{$link->getModuleLink('roja45quotationsprofree','QuotationsProFront',['action'=>'getQuotationDetails','id_roja45_quotation'=>$historicalquote->id_roja45_quotation])|escape:'htmlall':'UTF-8'}"
                       class="btn btn-default viewQuote">
                        <span>{l s='View' mod='roja45quotationsprofree'}</span><i class="icon-eye"></i>
                    </a>
                </td>
            </tr>
        {/foreach}
        </tbody>
    </table>
    {/if}

    <ul class="footer_links">
        <li class="fleft">
            <a class="btn btn-default button button-small"
               href="{$link->getPageLink('my-account', true)|escape:'htmlall':'UTF-8'}"
               title="{l s='Back to Your Account' mod='roja45quotationsprofree'}">
				<span>
					<i class="icon-chevron-left"></i>{l s='Back to Your Account' mod='roja45quotationsprofree'}
				</span>
            </a>
        </li>
    </ul>
</div>