- Created restricted.tpl for displaying restricted access messages with customizable background options. - Added index.php files in hook and main template directories to prevent direct access and ensure proper redirection. - Implemented info.tpl to provide module information and support links, enhancing user experience with promotional content. - Included necessary CSS styles for the new templates to ensure proper layout and responsiveness.
179 lines
8.1 KiB
Smarty
179 lines
8.1 KiB
Smarty
{*
|
||
* PrivateShop
|
||
*
|
||
* Do not edit or add to this file.
|
||
* You are not authorized to modify, copy or redistribute this file.
|
||
* Permissions are reserved by FME Modules.
|
||
*
|
||
* @author FME Modules
|
||
* @copyright 2021 FME Modules All right reserved
|
||
* @license FME Modules
|
||
* @category FMM Modules
|
||
* @package PrivateShop
|
||
*}
|
||
|
||
<div class="bootstrap">
|
||
<div class="alert alert-warning">
|
||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||
<ul class="list-unstyled">
|
||
<li>{l s='Please note that the email notification will be only sent to user if you activate the customer account from below Activate button.' mod='privateshoplite'}</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<div class="panel col-lg-12">
|
||
<div class="panel-heading">
|
||
<i class="icon-search"></i> {l s='Filter' mod='privateshoplite'}
|
||
</div>
|
||
<div class="row">
|
||
<div class="col-lg-12 form-group">
|
||
<div class="col-lg-2">
|
||
<label class="col-lg-5 control-label">{l s='Show:' mod='privateshoplite'}</label>
|
||
<select class="filter col-lg-7" name="n">
|
||
<option value="10"{if $search_result.n == 0 || $search_result.n <= 10} selected="selected"{/if}>10</option>
|
||
<option value="25"{if $search_result.n == 25} selected="selected"{/if}>25</option>
|
||
<option value="50"{if $search_result.n == 50} selected="selected"{/if}>50</option>
|
||
<option value="100"{if $search_result.n == 100} selected="selected"{/if}>100</option>
|
||
<option value="300"{if $search_result.n == 300} selected="selected"{/if}>300</option>
|
||
<option value="500"{if $search_result.n == 500} selected="selected"{/if}>500</option>
|
||
<option value="1000"{if $search_result.n == 1000} selected="selected"{/if}>1000</option>
|
||
</select>
|
||
</div>
|
||
<div class="col-lg-4">
|
||
<label class="col-lg-4 control-label">{l s='Position:' mod='privateshoplite'}</label>
|
||
<select class="filter col-lg-8" name="filter_select_pos">
|
||
<option value="0"{if $search_result.pos == 0} selected="selected"{/if}>{l s='By ID Asc' mod='privateshoplite'}</option>
|
||
<option value="1"{if $search_result.pos > 0} selected="selected"{/if}>{l s='By ID Desc' mod='privateshoplite'}</option>
|
||
</select>
|
||
</div>
|
||
<div class="col-lg-4">
|
||
<label class="col-lg-4 control-label">{l s='Active:' mod='privateshoplite'}</label>
|
||
<select class="filter col-lg-8" name="filter_select_state">
|
||
<option value="0"{if $search_result.state == 0} selected="selected"{/if}>{l s='--' mod='privateshoplite'}</option>
|
||
<option value="1"{if $search_result.state == 1} selected="selected"{/if}>{l s='Yes' mod='privateshoplite'}</option>
|
||
<option value="2"{if $search_result.state == 2} selected="selected"{/if}>{l s='No' mod='privateshoplite'}</option>
|
||
</select>
|
||
</div>
|
||
<div class="col-lg-2 pull-right">
|
||
<button type="submit" name="search" class="btn btn-default pull-right"><i class="icon-search"></i> {l s='Search' mod='privateshoplite'}</button>
|
||
</div>
|
||
</div>
|
||
<div class="col-lg-12 form-group" style=" margin-bottom: 5px;">
|
||
<div class="col-lg-10">
|
||
<label class="col-lg-4 control-label">{l s='By Name:' mod='privateshoplite'}</label>
|
||
<div class="col-lg-8">
|
||
<input type="text" name="search_by_name" value="{if isset($search_result.name) && !empty($search_result.name)}{$search_result.name|escape:'htmlall':'UTF-8'}{/if}" />
|
||
</div>
|
||
</div>
|
||
<div class="col-lg-2 pull-right">
|
||
<button type="submit" name="searchReset" class="btn btn-warning pull-right"><i class="icon-eraser"></i> {l s='Reset' mod='privateshoplite'}</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="table-responsive">
|
||
<table class="table table-filter-templates" style="width:100%;">
|
||
<thead>
|
||
<tr>
|
||
<th class="center"><span class="title_box"><strong>{l s='ID' mod='privateshoplite'}</strong></span></th>
|
||
<th class="center"><span class="title_box"><strong>{l s='Title' mod='privateshoplite'}</strong></span></th>
|
||
<th><span class="title_box"><strong>{l s='Name' mod='privateshoplite'}</strong></span></th>
|
||
<th><span class="title_box"><strong>{l s='Email' mod='privateshoplite'}</strong></span></th>
|
||
<th class="center"><span class="title_box"><strong>{l s='Status' mod='privateshoplite'}</strong></span></th>
|
||
<th class="center"><span class="title_box"><strong>{l s='Newsletter' mod='privateshoplite'}</strong></span></th>
|
||
<th class="center"><span class="title_box"><strong>{l s='Signup Date' mod='privateshoplite'}</strong></span></th>
|
||
<th class="center"><span class="title_box"><strong>{l s='Last Visit' mod='privateshoplite'}</strong></span></th>
|
||
<th class="center"><span class="title_box text-right"><strong>{l s='Action' mod='privateshoplite'}</strong></span></th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{if isset($customers) AND $customers}
|
||
{foreach from=$customers item=customer}
|
||
<tr>
|
||
<td class="center" style="padding:10px;width:50px;">{$customer.id_customer|escape:'htmlall':'UTF-8'}</td>
|
||
<td class="center" style="padding:10px;width:50px;">{$customer.title|escape:'htmlall':'UTF-8'}</td>
|
||
<td {if $version >= 1.6}style="width:100%"{/if}>{$customer.customer|escape:'htmlall':'UTF-8'}</td>
|
||
<td>{$customer.email|escape:'htmlall':'UTF-8'}</td>
|
||
<td class="center">
|
||
{if $customer.active == 1}
|
||
<label class="t list-action-enable action-enabled" for="active_on">
|
||
<i class="icon-check"></i>
|
||
{if $version < 1.6}
|
||
<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />
|
||
{/if}
|
||
</label>
|
||
{else}
|
||
<label class="t list-action-enable action-disabled" for="active_off">
|
||
<i class="icon-remove"></i>
|
||
{if $version < 1.6}
|
||
<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />
|
||
{/if}
|
||
</label>
|
||
{/if}
|
||
</td>
|
||
<td class="center">
|
||
{if $customer.newsletter == 1}
|
||
<label class="t list-action-enable action-enabled" for="active_on">
|
||
<i class="icon-check"></i>
|
||
{if $version < 1.6}
|
||
<img src="../img/admin/enabled.gif" alt="Enabled" title="Enabled" />
|
||
{/if}
|
||
</label>
|
||
{else}
|
||
<label class="t list-action-enable action-disabled" for="active_off">
|
||
<i class="icon-remove"></i>
|
||
{if $version < 1.6}
|
||
<img src="../img/admin/disabled.gif" alt="Disabled" title="Disabled" />
|
||
{/if}
|
||
</label>
|
||
{/if}
|
||
</td>
|
||
<td class="center">{$customer.date_add|escape:'htmlall':'UTF-8'}</td>
|
||
<td class="center">{$customer.connect|escape:'htmlall':'UTF-8'}</td>
|
||
<td class="text-right">
|
||
<div class="btn-group-action">
|
||
<div class="btn-group pull-right">
|
||
{if $customer.active <= 0}
|
||
<a onclick="document.location='{$activate_index|escape:'htmlall':'UTF-8'}&id_customer={$customer.id_customer|escape:'htmlall':'UTF-8'}'" class="btn btn-default" title="{l s='Activate' mod='privateshoplite'}" href="javascript:void(0);">
|
||
{if $version >= 1.6}
|
||
<i class="icon-search-plus"></i> {l s='Activate' mod='privateshoplite'}
|
||
{else}
|
||
<img src="../img/admin/details.gif"/>
|
||
{/if}
|
||
</a>
|
||
{else}
|
||
<a href="{$link->getAdminLink('AdminCustomers', true,[], ['id_customer' => $customer.id_customer|escape:'htmlall':'UTF-8', 'viewcustomer' => 1])}"
|
||
class="edit btn btn-default"
|
||
title="{l s='View' mod='privateshoplite'}">
|
||
{if $version >= 1.6}
|
||
<i class="icon-search-plus"></i> {l s='View' mod='privateshoplite'}
|
||
{else}
|
||
<img src="../img/admin/details.gif"/>
|
||
{/if}
|
||
</a>
|
||
{/if}
|
||
{if $version >= 1.6}
|
||
<button data-toggle="dropdown" class="btn btn-default dropdown-toggle">
|
||
<i class="icon-caret-down"></i>
|
||
</button>
|
||
{/if}
|
||
<ul class="dropdown-menu">
|
||
<li>
|
||
<a onclick="document.location='{$cIndex|escape:'htmlall':'UTF-8'}&id_customer={$customer.id_customer|escape:'htmlall':'UTF-8'}&deletecustomer&token={$ctoken|escape:'htmlall':'UTF-8'}'" class="delete" title="{l s='Delete' mod='privateshoplite'}" href="javascript:void(0);">
|
||
{if $version >= 1.6}
|
||
<i class="icon-trash"></i> {l s='Delete' mod='privateshoplite'}
|
||
{else}
|
||
<img src="../img/admin/delete.gif"/>
|
||
{/if}
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
{/foreach}
|
||
{/if}
|
||
</tbody>
|
||
</table>
|
||
</div>
|