From 5adb09efcfc2ee046bbe0583b3d3184f806545c8 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Mon, 7 Oct 2024 15:04:44 +0700 Subject: [PATCH] show customer is online or not and Rearange Customer View --- CHANGELOG.md | 6 + ui/ui/customers-view.tpl | 273 ++++++++++++++++++++------------------- version.json | 2 +- 3 files changed, 149 insertions(+), 132 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 27896602..f37c8b17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ # CHANGELOG +## 2024.10.7 + +- Show Customer is Online or not +- Change Invoice Theme for printing +- Rearange Customer View + ## 2024.9.23 - Discount Price diff --git a/ui/ui/customers-view.tpl b/ui/ui/customers-view.tpl index 7dd0ca0e..61c9d83d 100644 --- a/ui/ui/customers-view.tpl +++ b/ui/ui/customers-view.tpl @@ -100,7 +100,8 @@
  • {Lang::T('Coordinates')} {Lang::T('Get Directions')} + href="https://www.google.com/maps/dir//{$d['coordinates']}/" + target="_blank">{Lang::T('Get Directions')}
  • @@ -119,141 +120,151 @@ - {foreach $packages as $package} -
    -
    -

    {$package['type']} - {$package['namebp']}

    -
      -
    • - {Lang::T('Active')} {if - $package['status']=='on'}yes{else}no - {/if} -
    • -
    • - {Lang::T('Type')} - {if $package['prepaid'] eq yes}Prepaid{else}Postpaid{/if} -
    • -
    • - {Lang::T('Bandwidth')} - {$package['name_bw']} -
    • -
    • - {Lang::T('Created On')} {Lang::dateAndTimeFormat($package['recharged_on'],$package['recharged_time'])} -
    • -
    • - {Lang::T('Expires On')} {Lang::dateAndTimeFormat($package['expiration'], - $package['time'])} -
    • -
    • - {$package['routers']} {$package['method']} -
    • -
    -
    - - +
    +
    + +
    + + {if Lang::arrayCount($activation)} + + + + + + + + + + + + + + {foreach $activation as $ds} + + + + + + + + + + + {/foreach} + + {/if} + {if Lang::arrayCount($order)} + + + + + + + + + + + + + + + {foreach $order as $ds} + + + + + + + + + + + + {/foreach} + + {/if} +
    {Lang::T('Invoice')}{Lang::T('Username')}{Lang::T('Plan Name')}{Lang::T('Plan Price')}{Lang::T('Type')}{Lang::T('Created On')}{Lang::T('Expires On')}{Lang::T('Method')}
    {$ds['invoice']}{$ds['username']}{$ds['plan_name']}{Lang::moneyFormat($ds['price'])}{$ds['type']} + {Lang::dateAndTimeFormat($ds['recharged_on'],$ds['recharged_time'])} + {Lang::dateAndTimeFormat($ds['expiration'],$ds['time'])}{$ds['method']}
    {Lang::T('Plan Name')}{Lang::T('Gateway')}{Lang::T('Routers')}{Lang::T('Type')}{Lang::T('Plan Price')}{Lang::T('Created On')}{Lang::T('Expires On')}{Lang::T('Date Done')}{Lang::T('Method')}
    {$ds['plan_name']}{$ds['gateway']}{$ds['routers']}{$ds['payment_channel']}{Lang::moneyFormat($ds['price'])}{Lang::dateTimeFormat($ds['created_date'])}{Lang::dateTimeFormat($ds['expired_date'])}{if $ds['status']!=1}{Lang::dateTimeFormat($ds['paid_date'])}{/if} + {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}
    +
    + {include file="pagination.tpl"} +
    +
    + {foreach $packages as $package} +
    +
    +
    +

    {$package['type']} - {$package['namebp']} +

    +
      +
    • + {Lang::T('Active')} {if + $package['status']=='on'}yes{else}no + {/if} +
    • +
    • + {Lang::T('Type')} + {if $package['prepaid'] eq yes}Prepaid{else}Postpaid{/if} +
    • +
    • + {Lang::T('Bandwidth')} + {$package['name_bw']} +
    • +
    • + {Lang::T('Created On')} {Lang::dateAndTimeFormat($package['recharged_on'],$package['recharged_time'])} +
    • +
    • + {Lang::T('Expires On')} {Lang::dateAndTimeFormat($package['expiration'], + $package['time'])} +
    • +
    • + {$package['routers']} {$package['method']} +
    • +
    +
    -
    - {/foreach} -
    -
    - -
    - - {if Lang::arrayCount($activation)} - - - - - - - - - - - - - - {foreach $activation as $ds} - - - - - - - - - - - {/foreach} - - {/if} - {if Lang::arrayCount($order)} - - - - - - - - - - - - - - - {foreach $order as $ds} - - - - - - - - - - - - {/foreach} - - {/if} -
    {Lang::T('Invoice')}{Lang::T('Username')}{Lang::T('Plan Name')}{Lang::T('Plan Price')}{Lang::T('Type')}{Lang::T('Created On')}{Lang::T('Expires On')}{Lang::T('Method')}
    {$ds['invoice']}{$ds['username']}{$ds['plan_name']}{Lang::moneyFormat($ds['price'])}{$ds['type']}{Lang::dateAndTimeFormat($ds['recharged_on'],$ds['recharged_time'])} - {Lang::dateAndTimeFormat($ds['expiration'],$ds['time'])}{$ds['method']}
    {Lang::T('Plan Name')}{Lang::T('Gateway')}{Lang::T('Routers')}{Lang::T('Type')}{Lang::T('Plan Price')}{Lang::T('Created On')}{Lang::T('Expires On')}{Lang::T('Date Done')}{Lang::T('Method')}
    {$ds['plan_name']}{$ds['gateway']}{$ds['routers']}{$ds['payment_channel']}{Lang::moneyFormat($ds['price'])}{Lang::dateTimeFormat($ds['created_date'])}{Lang::dateTimeFormat($ds['expired_date'])}{if $ds['status']!=1}{Lang::dateTimeFormat($ds['paid_date'])}{/if}{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}
    -
    - {include file="pagination.tpl"} +
    +
    + diff --git a/version.json b/version.json index 217c3e99..33f2616c 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "2024.9.25" + "version": "2024.10.7" } \ No newline at end of file