Upload files to "ui/ui"

Signed-off-by: nestict <icttechnest@gmail.com>
This commit is contained in:
nestict 2025-05-24 12:24:03 +02:00
parent b2eb51fff8
commit 5242f5a262
5 changed files with 838 additions and 0 deletions

View File

@ -0,0 +1,86 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>{Lang::T('Login')} - {$_c['CompanyName']}</title>
<link rel="shortcut icon" href="ui/ui/images/logo.png" type="image/x-icon" />
<link rel="stylesheet" href="ui/ui/styles/bootstrap.min.css">
<link rel="stylesheet" href="ui/ui/styles/modern-AdminLTE.min.css">
</head>
<body>
<div class="container">
<div class="hidden-xs" style="height:150px"></div>
<div class="form-head mb20">
<h1 class="site-logo h2 mb5 mt5 text-center text-uppercase text-bold"
style="text-shadow: 2px 2px 4px #757575;">{$_c['CompanyName']}</h1>
<hr>
</div>
{if isset($notify)}
<div class="alert alert-{if $notify_t == 's'}success{else}danger{/if}">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">×</span>
</button>
<div>{$notify}</div>
</div>
{/if}
<div class="row">
<div class="col-sm-8">
<div class="panel panel-info">
<div class="panel-heading">{Lang::T('Announcement')}</div>
<div class="panel-body">
{include file="$_path/../pages/Announcement.html"}
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-primary">
<div class="panel-heading">{Lang::T('Login / Activate Voucher')}</div>
<div class="panel-body">
<form action="{$_url}login/activation" method="post">
<div class="form-group">
<label>{if $_c['country_code_phone']!= ''}{Lang::T('Phone Number')}{else}{Lang::T('Username')}{/if}</label>
<div class="input-group">
{if $_c['country_code_phone']!= ''}
<span class="input-group-addon" id="basic-addon1"><i
class="glyphicon glyphicon-phone-alt"></i></span>
{else}
<span class="input-group-addon" id="basic-addon1"><i
class="glyphicon glyphicon-user"></i></span>
{/if}
<input type="text" class="form-control" name="username" required
placeholder="{if $_c['country_code_phone']!= ''}{$_c['country_code_phone']} {Lang::T('Phone Number')}{else}{Lang::T('Username')}{/if}">
</div>
</div>
<div class="form-group">
<label>{Lang::T('Enter voucher code here')}</label>
<input type="text" class="form-control" name="voucher" required autocomplete="off"
placeholder="{Lang::T('Code Voucher')}">
</div>
<div class="btn-group btn-group-justified mb15">
<div class="btn-group">
<button type="submit"
class="btn btn-primary">{Lang::T('Login / Activate Voucher')}</button>
</div>
</div>
<br>
<center>
<a href="./pages/Privacy_Policy.html" target="_blank">Privacy</a>
&bull;
<a href="./pages/Terms_of_Conditions.html" target="_blank">ToC</a>
</center>
</form>
</div>
</div>
</div>
</div>
</div>
<script src="ui/ui/scripts/vendors.js"></script>
</body>
</html>

View File

@ -0,0 +1,47 @@
{include file="sections/user-header.tpl"}
<!-- user-orderPlan -->
<div class="row">
<div class="col-xl-12 col-xxl-12">
<div class="col-xl-12">
<div class="card coin-card">
<div class="card-body d-sm-flex d-block align-items-center">
<span class="coin-icon">
<svg width="38" height="41" viewBox="0 0 38 41" fill="none" xmlns="http://www.w3.org/2000/svg">
<g><path d="M14.0413 32.5832C15.7416 32.5934 17.4269 32.2659 18.9997 31.6199C20.5708 32.2714 22.2572 32.5991 23.958 32.5832C29.1218 32.5832 33.1663 29.8278 33.1663 26.3088V20.441C33.1663 16.922 29.1218 14.1666 23.958 14.1666C23.7186 14.1666 23.4834 14.1779 23.2497 14.1906V7.55498C23.2497 4.10823 19.2051 1.41656 14.0413 1.41656C8.87759 1.41656 4.83301 4.10823 4.83301 7.55498V26.4448C4.83301 29.8916 8.87759 32.5832 14.0413 32.5832ZM30.333 26.3088C30.333 27.9366 27.715 29.7499 23.958 29.7499C20.201 29.7499 17.583 27.9366 17.583 26.3088V24.9984C19.5015 26.1652 21.7131 26.7604 23.958 26.714C26.203 26.7604 28.4145 26.1652 30.333 24.9984V26.3088ZM23.958 16.9999C27.715 16.9999 30.333 18.8132 30.333 20.441C30.333 22.0687 27.715 23.8807 23.958 23.8807C20.201 23.8807 17.583 22.0673 17.583 20.441C17.583 18.8147 20.201 16.9999 23.958 16.9999ZM14.0413 4.2499C17.7983 4.2499 20.4163 5.9924 20.4163 7.55498C20.4163 9.11757 17.7983 10.8615 14.0413 10.8615C10.2843 10.8615 7.66634 9.11898 7.66634 7.55498C7.66634 5.99098 10.2843 4.2499 14.0413 4.2499ZM7.66634 12.0161C9.59282 13.1601 11.8012 13.7417 14.0413 13.6948C16.2814 13.7417 18.4899 13.1601 20.4163 12.0161V14.6341C18.8724 15.0232 17.4565 15.8078 16.308 16.9107C15.5631 17.0718 14.8034 17.1545 14.0413 17.1572C10.2843 17.1572 7.66634 15.4146 7.66634 13.8521V12.0161ZM7.66634 18.3132C9.59323 19.4561 11.8015 20.0371 14.0413 19.9905C14.2935 19.9905 14.5372 19.9593 14.7851 19.9466C14.764 20.1106 14.7522 20.2756 14.7497 20.441V23.3947C14.5117 23.4089 14.2822 23.4542 14.0413 23.4542C10.2843 23.4542 7.66634 21.7117 7.66634 20.1477V18.3132ZM7.66634 24.6088C9.59282 25.7529 11.8012 26.3344 14.0413 26.2876C14.2793 26.2876 14.5131 26.2692 14.7497 26.2578V26.3088C14.7699 27.5148 15.2334 28.6711 16.0516 29.5572C15.3887 29.6824 14.7159 29.7469 14.0413 29.7499C10.2843 29.7499 7.66634 28.0074 7.66634 26.4448V24.6088Z" fill="#fff"></path></g>
</svg>
</span>
<div>
<h3 class="text-white">Top Up your balance </h3>
<p>You can top up your account balance by choosing a plan below. The balance will ensure continuous internet connection as long as your balance is sufficient.</p>
</div>
</div>
</div>
</div>
</div>
{if $_c['enable_balance'] == 'yes'}
{foreach $plans_balance as $plan}
<div class="col-xl-2 col-xxl-4">
<div class="card">
<div class="card-header border-0 pb-0">
<div>
<h4 class="card-title mb-2">{$plan['name_plan']}</h4>
</div>
</div>
<div class="card-body">
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Price')}</span>
<span class="fs-18"><span class="text-black pe-2">{Lang::moneyFormat($plan['price'])}
</div>
</div>
<div class="card-footer border-0 pt-0">
<a href="{$_url}order/gateway/0/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy Balance')}?')"
class="btn btn-sm btn-block btn-primary">Top Up Now</a>
</div>
</div>
</div>
{/foreach}
{/if}
</div>
</div>
{include file="sections/user-footer.tpl"}

126
ui/ui/user-orderHistory.tpl Normal file
View File

@ -0,0 +1,126 @@
{include file="sections/user-header.tpl"}
<!-- user-orderHistory -->
<div class="row">
<!-- <div class="col-xl-6 col-xxl-12">
<div class="row">
<div class="col-sm-6">
<div class="card">
<div class="card-body">
<h4 class="card-title mt-2">Orders</h4>
<div class="d-flex align-items-center mt-3 mb-2">
<h2 class="fs-38 mb-0 me-3">456</h2>
</div>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="card">
<div class="card-body">
<h4 class="card-title mt-2">Activated Vouchers</h4>
<div class="d-flex align-items-center mt-3 mb-2">
<h2 class="fs-38 mb-0 me-3">1467</h2>
</div>
</div>
</div>
</div>
</div>
</div> -->
<div class="col-xl-12 col-xxl-12">
<div class="card">
<div class="card-header d-block d-sm-flex border-0">
<div class="me-3">
<h4 class="card-title mb-2">My Reports</h4>
</div>
<div class="card-tabs mt-3 mt-sm-0">
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
<a class="nav-link active" data-bs-toggle="tab" href="#orders" role="tab">Orders</a>
</li>
<li class="nav-item">
<a class="nav-link" data-bs-toggle="tab" href="#activation" role="tab">Activations</a>
</li>
</ul>
</div>
</div>
<div class="card-body tab-content p-0">
<div class="tab-pane active show fade" id="orders" role="tabpanel">
<div class="table-responsive">
<table class="table table-responsive-md card-table transactions-table">
<thead>
<tr>
<th><h6 class="fs-16 font-w500 mb-0">{Lang::T('Plan Name')}</h6></th>
<th><h6 class="fs-16 font-w500 mb-0">{Lang::T('Gateway')}</h6></th>
<th><h6 class="fs-16 font-w500 mb-0">{Lang::T('Routers')}</h6></th>
<th><h6 class="fs-16 font-w500 mb-0"><{Lang::T('Type')}</h6></th>
<th><h6 class="fs-16 font-w500 mb-0">{Lang::T('Plan Price')}</h6></th>
<th><h6 class="fs-16 font-w500 mb-0">{Lang::T('Created On')}</h6></th>
<th><h6 class="fs-16 font-w500 mb-0">{Lang::T('Expires On')}</h6></th>
<th><h6 class="fs-16 font-w500 mb-0">{Lang::T('Date Done')}</h6></th>
<th><h6 class="fs-16 font-w500 mb-0">{Lang::T('Method')}</h6></th>
</tr>
</thead>
<tbody>
{foreach $d as $ds}
<tr>
<td><span class="fs-14"><a href="{$_url}order/view/{$ds['id']}">{$ds['plan_name']}</a></span></td>
<td><span class="fs-14">{$ds['gateway']}</span></td>
<td><span class="fs-14">{$ds['routers']}</span></td>
<td><span class="fs-14">{$ds['payment_channel']}</span></td>
<td><span class="fs-14">{Lang::moneyFormat($ds['price'])}</span></td>
<td class="text-primary"><span class="fs-14">{date("{$_c['date_format']} H:i",
strtotime($ds['created_date']))}</span></td>
<td class="text-danger"><span class="fs-14">{date("{$_c['date_format']} H:i",
strtotime($ds['expired_date']))}</span></td>
<td class="text-success"><span class="fs-14">{if $ds['status']!=1}{date("{$_c['date_format']} H:i",
strtotime($ds['paid_date']))}{/if}</span></td>
<td><span class="fs-14">{if $ds['status']==1}{Lang::T('UNPAID')}
{elseif $ds['status']==2}{Lang::T('PAID')}
{elseif $ds['status']==3}{$_L['FAILED']}
{elseif $ds['status']==4}{Lang::T('CANCELED')}
{elseif $ds['status']==5}{Lang::T('UNKNOWN')}
{/if}</span></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
{include file="pagination.tpl"}
</div>
<div class="tab-pane" id="activation" role="tabpanel">
<div class="table-responsive">
<table class="table table-responsive-md card-table transactions-table">
<thead>
<tr>
<th><h6 class="fs-16 font-w500 mb-0">{Lang::T('Invoice')}</h6></th>
<th><h6 class="fs-16 font-w500 mb-0">{Lang::T('Plan Name')}</h6></th>
<th><h6 class="fs-16 font-w500 mb-0">{Lang::T('Plan Price')}</h6></th>
<th><h6 class="fs-16 font-w500 mb-0">{Lang::T('Type')}</h6></th>
<th><h6 class="fs-16 font-w500 mb-0">{Lang::T('Created On')}</h6></th>
<th><h6 class="fs-16 font-w500 mb-0">{Lang::T('Expires On')}</h6></th>
<th><h6 class="fs-16 font-w500 mb-0">{Lang::T('Method')}</h6></th>
</tr>
</thead>
<tbody>
<tr>
{foreach $d as $ds}
<tr onclick="window.location.href = '{$_url}voucher/invoice/{$ds['id']}'" style="cursor: pointer;">
<td><span class="fs-14">{$ds['invoice']}</span></td>
<td><span class="fs-14">{$ds['plan_name']}</span></td>
<td><span class="fs-14">{Lang::moneyFormat($ds['price'])}</span></td>
<td><span class="fs-14">{$ds['type']}</span></td>
<td><span class="fs-14">{Lang::dateAndTimeFormat($ds['recharged_on'],$ds['recharged_time'])}</span></td>
<td><span class="fs-14">{Lang::dateAndTimeFormat($ds['expiration'],$ds['time'])}</span></td>
<td><span class="fs-14">{$ds['method']}</span></td>
</tr>
{/foreach}
</tr>
</tbody>
</table>
</div>
{include file="pagination.tpl"}
</div>
</div>
</div>
</div>
</div>
{include file="sections/user-footer.tpl"}

430
ui/ui/user-orderPlan.tpl Normal file
View File

@ -0,0 +1,430 @@
{include file="sections/user-header.tpl"}
<!-- user-orderPlan -->
<div class="row">
<div class="col-xl-12 col-xxl-12">
<div class="col-xl-12">
<div class="card coin-card">
<div class="card-body d-sm-flex d-block align-items-center">
<span class="coin-icon">
<svg width="38" height="41" viewcard="0 0 38 41" fill="none" xmlns="http://www.w3.org/2000/svg">
<g><path d="M14.0413 32.5832C15.7416 32.5934 17.4269 32.2659 18.9997 31.6199C20.5708 32.2714 22.2572 32.5991 23.958 32.5832C29.1218 32.5832 33.1663 29.8278 33.1663 26.3088V20.441C33.1663 16.922 29.1218 14.1666 23.958 14.1666C23.7186 14.1666 23.4834 14.1779 23.2497 14.1906V7.55498C23.2497 4.10823 19.2051 1.41656 14.0413 1.41656C8.87759 1.41656 4.83301 4.10823 4.83301 7.55498V26.4448C4.83301 29.8916 8.87759 32.5832 14.0413 32.5832ZM30.333 26.3088C30.333 27.9366 27.715 29.7499 23.958 29.7499C20.201 29.7499 17.583 27.9366 17.583 26.3088V24.9984C19.5015 26.1652 21.7131 26.7604 23.958 26.714C26.203 26.7604 28.4145 26.1652 30.333 24.9984V26.3088ZM23.958 16.9999C27.715 16.9999 30.333 18.8132 30.333 20.441C30.333 22.0687 27.715 23.8807 23.958 23.8807C20.201 23.8807 17.583 22.0673 17.583 20.441C17.583 18.8147 20.201 16.9999 23.958 16.9999ZM14.0413 4.2499C17.7983 4.2499 20.4163 5.9924 20.4163 7.55498C20.4163 9.11757 17.7983 10.8615 14.0413 10.8615C10.2843 10.8615 7.66634 9.11898 7.66634 7.55498C7.66634 5.99098 10.2843 4.2499 14.0413 4.2499ZM7.66634 12.0161C9.59282 13.1601 11.8012 13.7417 14.0413 13.6948C16.2814 13.7417 18.4899 13.1601 20.4163 12.0161V14.6341C18.8724 15.0232 17.4565 15.8078 16.308 16.9107C15.5631 17.0718 14.8034 17.1545 14.0413 17.1572C10.2843 17.1572 7.66634 15.4146 7.66634 13.8521V12.0161ZM7.66634 18.3132C9.59323 19.4561 11.8015 20.0371 14.0413 19.9905C14.2935 19.9905 14.5372 19.9593 14.7851 19.9466C14.764 20.1106 14.7522 20.2756 14.7497 20.441V23.3947C14.5117 23.4089 14.2822 23.4542 14.0413 23.4542C10.2843 23.4542 7.66634 21.7117 7.66634 20.1477V18.3132ZM7.66634 24.6088C9.59282 25.7529 11.8012 26.3344 14.0413 26.2876C14.2793 26.2876 14.5131 26.2692 14.7497 26.2578V26.3088C14.7699 27.5148 15.2334 28.6711 16.0516 29.5572C15.3887 29.6824 14.7159 29.7469 14.0413 29.7499C10.2843 29.7499 7.66634 28.0074 7.66634 26.4448V24.6088Z" fill="#fff"></path></g>
</svg>
</span>
<div>
<h3 class="text-white">Buy or Upgrade Your Package</h3>
<p>You can buy a package or chose a different package if you wish to upgrade to another package.</p>
</div>
</div>
</div>
</div>
</div>
{if $_c['radius_enable']}
{if $_user['service_type'] == 'PPPoE'}
{if Lang::arrayCount($radius_pppoe)>0}
<ol class="breadcrumb">
<li>{if $_c['radius_plan']==''}Radius Plan{else}{$_c['radius_plan']}{/if}</li>
<li>{if $_c['pppoe_plan']==''}PPPOE Plan{else}{$_c['pppoe_plan']}{/if}</li>
</ol>
<div class="row">
{foreach $radius_pppoe as $plan}
<div class="col-xl-3 col-xxl-4">
<div class="card card-primary">
<div class="card-header border-0 pb-0">
<div>
<h4 class="card-header mb-2">{$plan['name_plan']}</h4>
</div>
</div>
<div class="card-body">
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Type')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['type']}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Price')}</span>
<span class="fs-18"><span class="text-black pe-2">{Lang::moneyFormat($plan['price'])}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Validity')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['validity']} {$plan['validity_unit']}
</div>
</div>
<div class="card-footer">
<div class="btn-group btn-group-justified" role="group" aria-label="...">
<a href="{$_url}order/gateway/radius/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this? your active package will be overwrite')}')"
class="btn btn-outline-primary btn-block btn-lg">Buy</a>
{if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/pay/radius/{$plan['id']}"
onclick="return confirm('{Lang::T('Pay this with Balance? your active package will be overwrite')}')"
class="btn btn-outline-primary btn-block btn-lg">{Lang::T('Pay With Balance')}</a>
{/if}
</div>
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/send/radius/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this for friend account?')}')"
class="btn btn-outline-primary btn-block btn-lg">{Lang::T('Buy for friend')}</a>
{/if}
</div>
</div>
</div>
{/foreach}
</div>
{/if}
{elseif $_user['service_type'] == 'Hotspot'}
{if Lang::arrayCount($radius_hotspot)>0}
<ol class="breadcrumb">
<li>{if $_c['radius_plan']==''}Radius Plan{else}{$_c['radius_plan']}{/if}</li>
<li>{if $_c['hotspot_plan']==''}Hotspot Plan{else}{$_c['hotspot_plan']}{/if}</li>
</ol>
<div class="row">
{foreach $radius_hotspot as $plan}
<div class="col-xl-3 col-xxl-4">
<div class="card card-primary">
<div class="card-header border-0 pb-0">
<div>
<h4 class="card-header mb-2">{$plan['name_plan']}</h4>
</div>
</div>
<div class="card-body">
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Type')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['type']}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Price')}</span>
<span class="fs-18"><span class="text-black pe-2">{Lang::moneyFormat($plan['price'])}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Validity')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['validity']} {$plan['validity_unit']}
</div>
</div>
<div class="card-footer">
<div class="btn-group btn-group-justified" role="group" aria-label="...">
<a href="{$_url}order/gateway/radius/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this? your active package will be overwrite')}')"
class="btn btn-outline-primary btn-block btn-lg">Buy</a>
{if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/pay/radius/{$plan['id']}"
onclick="return confirm('{Lang::T('Pay this with Balance? your active package will be overwrite')}')"
class="btn btn-outline-primary btn-block btn-lg">{Lang::T('Pay With Balance')}</a>
{/if}
</div>
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/send/radius/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this for friend account?')}')"
class="btn btn-outline-primary btn-block btn-lg">{Lang::T('Buy for friend')}</a>
{/if}
</div>
</div>
</div>
{/foreach}
</div>
{/if}
{elseif $_user['service_type'] == 'Others' || $_user['service_type'] == '' && (Lang::arrayCount($radius_pppoe)>0 || Lang::arrayCount($radius_hotspot)>0)}
<ol class="breadcrumb">
<li>{if $_c['radius_plan']==''}Radius Plan{else}{$_c['radius_plan']}{/if}</li>
<li>{if $_c['pppoe_plan']==''}PPPOE Plan{else}{$_c['pppoe_plan']}{/if}</li>
</ol>
{if Lang::arrayCount($radius_pppoe)>0}
<div class="row">
{foreach $radius_pppoe as $plan}
<div class="col-xl-3 col-xxl-4">
<div class="card card-primary">
<div class="card-header border-0 pb-0">{$plan['name_plan']}
</div>
<div class="card-body">
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Type')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['type']}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Price')}</span>
<span class="fs-18"><span class="text-black pe-2">{Lang::moneyFormat($plan['price'])}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Validity')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['validity']} {$plan['validity_unit']}
</div>
</div>
<div class="card-footer">
<div class="btn-group btn-group-justified" role="group" aria-label="...">
<a href="{$_url}order/gateway/pppoe/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this? your active package will be overwritten')}')"
class="btn btn-outline-primary btn-block btn-lg">Buy</a>
{if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/pay/pppoe/{$plan['id']}"
onclick="return confirm('{Lang::T('Pay this with Balance? your active package will be overwritten')}')"
class="btn btn-outline-primary btn-block btn-lg">{Lang::T('Pay With Balance')}</a>
{/if}
</div>
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/send/pppoe/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this for friend account?')}')"
class="btn btn-outline-primary btn-block btn-lg">{Lang::T('Buy for friend')}</a>
{/if}
</div>
</div>
</div>
{/foreach}
</div>
{/if}
{if Lang::arrayCount($radius_hotspot)>0}
<ol class="breadcrumb">
<li>{if $_c['radius_plan']==''}Radius Plan{else}{$_c['radius_plan']}{/if}</li>
<li>{if $_c['hotspot_plan']==''}Hotspot Plan{else}{$_c['hotspot_plan']}{/if}</li>
</ol>
<div class="row">
{foreach $radius_hotspot as $plan}
<div class="col-xl-3 col-xxl-4">
<div class="card card-primary">
<div class="card-header border-0 pb-0">
<div>
<h4 class="card-title mb-2">{$plan['name_plan']}</h4>
</div>
</div>
<div class="card-body">
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Type')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['type']}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Price')}</span>
<span class="fs-18"><span class="text-black pe-2">{Lang::moneyFormat($plan['price'])}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Validity')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['validity']} {$plan['validity_unit']}
</div>
</div>
<div class="card-footer">
<div class="btn-group btn-group-justified" role="group" aria-label="...">
<a href="{$_url}order/gateway/hotspot/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this? your active package will be overwritten')}')"
class="btn btn-outline-primary btn-block btn-lg">Buy</a>
{if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/pay/hotspot/{$plan['id']}"
onclick="return confirm('{Lang::T('Pay this with Balance? your active package will be overwritten')}')"
class="btn btn-outline-primary btn-block btn-lg">{Lang::T('Pay With Balance')}</a>
{/if}
</div>
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/send/hotspot/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this for friend account?')}')"
class="btn btn-outline-primary btn-block btn-lg">{Lang::T('Buy for friend')}</a>
{/if}
</div>
</div>
</div>
{/foreach}
</div>
{/if}
{/if}
{/if}
{foreach $routers as $router}
{if Validator::isRouterHasPlan($plans_hotspot, $router['name']) || Validator::isRouterHasPlan($plans_pppoe, $router['name'])}
<div class="col-xl-12 col-xxl-12">
<div class="card card-solid card-primary bg-gray">
<div class="card-header card-title text-bold">{$router['name']} - {if $router['description'] != ''}{$router['description']} {/if}</div>
{if $_user['service_type'] == 'Hotspot' && Validator::countRouterPlan($plans_hotspot, $router['name'])>0}
<div class="card-header">{if $_c['hotspot_plan']==''}Hotspot Plan{else}{$_c['hotspot_plan']}{/if}
</div>
<div class="card-body row">
{foreach $plans_hotspot as $plan}
{if $router['name'] eq $plan['routers']}
<div class="col-xl-3 col-xxl-4">
<div class="card card-primary">
<div class="card-header border-0 pb-0">
<div>
<h4 class="card-title mb-2">{$plan['name_plan']}</h4>
</div>
</div>
<div class="card-body">
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Type')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['type']}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Price')}</span>
<span class="fs-18"><span class="text-black pe-2">{Lang::moneyFormat($plan['price'])}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Validity')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['validity']} {$plan['validity_unit']}
</div>
</div>
<div class="card-footer">
<div class="btn-group btn-group-justified" role="group" aria-label="...">
<a href="{$_url}order/gateway/{$router['id']}/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this? your active package will be overwrite')}')"
class="btn btn-outline-primary d-block btn-lg">Buy</a>
{if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/pay/{$router['id']}/{$plan['id']}"
onclick="return confirm('{Lang::T('Pay this with Balance? your active package will be overwrite')}')"
class="btn btn-outline-primary btn-block btn-lg">{Lang::T('Pay With Balance')}</a>
{/if}
</div>
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/send/{$router['id']}/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this for friend account?')}')"
class="btn btn-outline-primary d-block btn-lg">{Lang::T('Buy for friend')}</a>
{/if}
</div>
</div>
</div>
{/if}
{/foreach}
</div>
{/if}
{if $_user['service_type'] == 'PPPoE' && Validator::countRouterPlan($plans_pppoe,$router['name'])>0}
<div class="card-header text-white">{if $_c['pppoe_plan']==''}PPPOE Plan{else}{$_c['pppoe_plan']}{/if}</div>
<div class="card-body row">
{foreach $plans_pppoe as $plan}
{if $router['name'] eq $plan['routers']}
<div class="col-xl-3 col-xxl-4">
<div class="card card- card-primary">
<div class="card-header border-0 pb-0">
<div>
<h4 class="card-title mb-2">{$plan['name_plan']}</h4>
</div>
</div>
<div class="card-body">
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Type')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['type']}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Price')}</span>
<span class="fs-18"><span class="text-black pe-2">{Lang::moneyFormat($plan['price'])}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Validity')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['validity']} {$plan['validity_unit']}
</div>
</div>
<div class="card-footer">
<div class="btn-group btn-group-justified" role="group" aria-label="...">
<a href="{$_url}order/gateway/{$router['id']}/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this? your active package will be overwrite')}')"
class="btn btn-outline-primary btn-block btn-lg">Buy</a>
{if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/pay/{$router['id']}/{$plan['id']}"
onclick="return confirm('{Lang::T('Pay this with Balance? your active package will be overwrite')}')"
class="btn btn-outline-primary btn-block btn-lg">{Lang::T('Pay With Balance')}</a>
{/if}
</div>
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/send/{$router['id']}/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this for friend account?')}')"
class="btn btn-outline-primary btn-block btn-lg">{Lang::T('Buy for friend')}</a>
{/if}
</div>
</div>
</div>
{/if}
{/foreach}
</div>
{/if}
{if $_user['service_type'] == 'Others' || $_user['service_type'] == '' && (Validator::countRouterPlan($plans_hotspot, $router['name'])>0 || Validator::countRouterPlan($plans_pppoe, $router['name'])>0)}
<div class="card-header text-white">{if $_c['hotspot_plan']==''}Hotspot Plan{else}{$_c['hotspot_plan']}{/if}
</div>
<div class="card-body row">
{foreach $plans_hotspot as $plan}
{if $router['name'] eq $plan['routers']}
<div class="col-xl-3 col-xxl-4">
<div class="card card-primary">
<div class="card-title border-0 pb-0">
<div>
<h4 class="card-title mb-2">{$plan['name_plan']}</h4>
</div>
</div>
<div class="card-body">
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Type')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['type']}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Price')}</span>
<span class="fs-18"><span class="text-black pe-2">{Lang::moneyFormat($plan['price'])}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Validity')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['validity']} {$plan['validity_unit']}
</div>
</div>
<div class="card-footer">
<div class="btn-group btn-group-justified" role="group" aria-label="...">
<a href="{$_url}order/gateway/{$router['id']}/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this? your active package will be overwrite')}')"
class="btn btn-outline-primary btn-block btn-lg">Buy</a>
{if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/pay/{$router['id']}/{$plan['id']}"
onclick="return confirm('{Lang::T('Pay this with Balance? your active package will be overwrite')}')"
class="btn btn-outline-primary btn-block btn-lg">{Lang::T('Pay With Balance')}</a>
{/if}
</div>
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/send/{$router['id']}/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this for friend account?')}')"
class="btn btn-outline-primary btn-block btn-lg">{Lang::T('Buy for friend')}</a>
{/if}
</div>
</div>
</div>
{/if}
{/foreach}
</div>
<div class="card-header text-white">{if $_c['pppoe_plan']==''}PPPOE Plan{else}{$_c['pppoe_plan']}{/if}</div>
<div class="card-body row">
{foreach $plans_pppoe as $plan}
{if $router['name'] eq $plan['routers']}
<div class="col-xl-3 col-xxl-4">
<div class="card card- card-primary">
<div class="card-header border-0 pb-0">
<div>
<h4 class="card-title mb-2">{$plan['name_plan']}</h4>
</div>
</div>
<div class="card-body">
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Type')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['type']}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Price')}</span>
<span class="fs-18"><span class="text-black pe-2">{Lang::moneyFormat($plan['price'])}
</div>
<div class="d-flex align-items-end mt-2 pb-3 justify-content-between">
<span>{Lang::T('Validity')}</span>
<span class="fs-18"><span class="text-black pe-2">{$plan['validity']} {$plan['validity_unit']}
</div>
</div>
<div class="card-footer">
<div class="btn-group btn-group-justified" role="group" aria-label="...">
<a href="{$_url}order/gateway/{$router['id']}/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this? your active package will be overwrite')}')"
class="btn btn-outline-primary btn-block btn-lg">Buy</a>
{if $_c['enable_balance'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/pay/{$router['id']}/{$plan['id']}"
onclick="return confirm('{Lang::T('Pay this with Balance? your active package will be overwrite')}')"
class="btn btn-outline-primary btn-block btn-lg">{Lang::T('Pay With Balance')}</a>
{/if}
</div>
{if $_c['enable_balance'] == 'yes' && $_c['allow_balance_transfer'] == 'yes' && $_user['balance']>=$plan['price']}
<a href="{$_url}order/send/{$router['id']}/{$plan['id']}"
onclick="return confirm('{Lang::T('Buy this for friend account?')}')"
class="btn btn-outline-primary btn-block btn-lg">{Lang::T('Buy for friend')}</a>
{/if}
</div>
</div>
</div>
{/if}
{/foreach}
</div>
{/if}
</div>
</div>
{/if}
{/foreach}
</div>
{include file="sections/user-footer.tpl"}

149
ui/ui/user-orderView.tpl Normal file
View File

@ -0,0 +1,149 @@
{include file="sections/user-header.tpl"}
<!-- user-orderView -->
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-6">
<div
class="card mb20 {if $trx['status']==1}card-warning{elseif $trx['status']==2}card-success{elseif $trx['status']==3}card-danger{elseif $trx['status']==4}card-danger{else}card-primary{/if} card-hovered">
<div class="card-footer">Transaction #{$trx['id']}</div>
{if !in_array($trx['routers'],['balance','radius'])}
<div class="card-body">
<div class="card card-primary card-hovered">
<div class="card-header">{$router['name']}</div>
<div class="card-body">
{$router['description']}
</div>
</div>
</div>
{/if}
<div class="table-responsive">
{if $trx['pg_url_payment']=='balance'}
<table class="table table-bordered table-striped table-bordered">
<tbody>
<tr>
<td>{Lang::T('Type')}</td>
<td>{$trx['plan_name']}</td>
</tr>
<tr>
<td>{Lang::T('Paid Date')}</td>
<td>{date($_c['date_format'], strtotime($trx['paid_date']))}
{date('H:i', strtotime($trx['paid_date']))} </td>
</tr>
<tr>
{if $trx['plan_name'] == 'Receive Balance'}
<td>{Lang::T('From')}</td>
{else}
<td>{Lang::T('To')}</td>
{/if}
<td>{$trx['gateway']}</td>
</tr>
<tr>
<td>{Lang::T('Total')}</td>
<td>{Lang::moneyFormat($trx['price'])}</td>
</tr>
{if $invoice['note']}
<tr>
<td>{Lang::T('Notes')}</td>
<td>
{nl2br($invoice['note'])}
</td>
</tr>
{/if}
</tbody>
</table>
{else}
<table class="table table-bordered table-striped table-bordered">
<tbody>
<tr>
<td>{Lang::T('Status')}</td>
<td>{if $trx['status']==1}{Lang::T('UNPAID')}{elseif $trx['status']==2}{Lang::T('PAID')}{elseif $trx['status']==3}{Lang::T('FAILED')}{elseif $trx['status']==4}{Lang::T('CANCELED')}{else}{Lang::T('UNKNOWN')}{/if}
</td>
</tr>
<tr>
<td>{Lang::T('expired')}</td>
<td>{date($_c['date_format'], strtotime($trx['expired_date']))}
{date('H:i', strtotime($trx['expired_date']))} </td>
</tr>
{if $trx['status']==2}
<tr>
<td>{Lang::T('Paid Date')}</td>
<td>{date($_c['date_format'], strtotime($trx['paid_date']))}
{date('H:i', strtotime($trx['paid_date']))} </td>
</tr>
{/if}
<tr>
<td>{Lang::T('Plan Name')}</td>
<td>{$plan['name_plan']}</td>
</tr>
{if $add_cost>0}
{foreach $bills as $k => $v}
<tr>
<td>{$k}</td>
<td>{Lang::moneyFormat($v)}</td>
</tr>
{/foreach}
<tr>
<td>{Lang::T('Additional Cost')}</td>
<td>{Lang::moneyFormat($add_cost)}</td>
</tr>
{/if}
<tr>
<td>{Lang::T('Plan Price')}{if $add_cost>0}<small> +
{Lang::T('Additional Cost')}{/if}</small></td>
<td
style="font-size: large; font-weight:bolder; font-family: 'Courier New', Courier, monospace; ">
{Lang::moneyFormat($trx['price'])}</td>
</tr>
<tr>
<td>{Lang::T('Type')}</td>
<td>{$plan['type']}</td>
</tr>
{if $plan['type']!='Balance'}
{if $plan['type'] eq 'Hotspot'}
<tr>
<td>{Lang::T('Plan_Type')}</td>
<td>{Lang::T($plan['typebp'])}</td>
</tr>
{if $plan['typebp'] eq 'Limited'}
{if $plan['limit_type'] eq 'Time_Limit' or $plan['limit_type'] eq 'Both_Limit'}
<tr>
<td>{Lang::T('Time_Limit')}</td>
<td>{$ds['time_limit']} {$ds['time_unit']}</td>
</tr>
{/if}
{if $plan['limit_type'] eq 'Data_Limit' or $plan['limit_type'] eq 'Both_Limit'}
<tr>
<td>{Lang::T('Data_Limit')}</td>
<td>{$ds['data_limit']} {$ds['data_unit']}</td>
</tr>
{/if}
{/if}
{/if}
<tr>
<td>{Lang::T('Plan Validity')}</td>
<td>{$plan['validity']} {$plan['validity_unit']}</td>
</tr>
<tr>
<td>{Lang::T('Bandwidth Plans')}</td>
<td>{$bandw['name_bw']}<br>{$bandw['rate_down']}{$bandw['rate_down_unit']}/{$bandw['rate_up']}{$bandw['rate_up_unit']}
</td>
</tr>
{/if}
</tbody>
</table>
{/if}
</div>
{if $trx['status']==1}
<div class="card-footer ">
<div class="btn-group btn-group-justified">
<a href="{$_url}order/view/{$trx['id']}/check"
class="btn btn-info bt-block">{Lang::T('Check for Payment')}</a>
<a href="{$_url}order/view/{$trx['id']}/cancel" class="btn btn-danger bt-block"
onclick="return confirm('{Lang::T('Cancel it?')}')">{Lang::T('Cancel')}</a>
</div>
</div>
{/if}
</div>
</div>
</div>
{include file="sections/user-footer.tpl"}