2022-09-06 10:31:22 +07:00
|
|
|
{include file="sections/header.tpl"}
|
2024-10-15 13:29:48 +01:00
|
|
|
<style>
|
|
|
|
.panel-title {
|
|
|
|
font-weight: bolder;
|
|
|
|
font-size: large;
|
|
|
|
}
|
|
|
|
</style>
|
2022-09-06 10:31:22 +07:00
|
|
|
|
2023-08-30 09:55:39 +07:00
|
|
|
<form class="form-horizontal" method="post" role="form" action="{$_url}settings/app-post" enctype="multipart/form-data">
|
2024-10-11 16:11:03 +01:00
|
|
|
<input type="hidden" name="csrf_token" value="{$csrf_token}">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel" id="accordion" role="tablist" aria-multiselectable="true">
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="panel-heading" role="tab" id="General">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h3 class="panel-title">
|
2024-10-16 11:35:24 +07:00
|
|
|
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseGeneral"
|
|
|
|
aria-expanded="true" aria-controls="collapseGeneral">
|
2024-10-15 13:29:48 +01:00
|
|
|
{Lang::T('General')}
|
|
|
|
</a>
|
|
|
|
</h3>
|
|
|
|
</div>
|
2024-10-16 11:35:24 +07:00
|
|
|
<div id="collapseGeneral" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Application Name / Company
|
|
|
|
Name')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" required class="form-control" id="CompanyName" name="CompanyName"
|
|
|
|
value="{$_c['CompanyName']}">
|
2023-08-09 10:50:02 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<span class="help-block col-md-4">{Lang::T('This Name will be shown on the
|
|
|
|
Title')}</span>
|
2023-08-09 10:50:02 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Company Logo')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="file" class="form-control" id="logo" name="logo" accept="image/*">
|
|
|
|
<span class="help-block">{Lang::T('For PDF Reports | Best size 1078 x 200 |
|
|
|
|
uploaded image
|
|
|
|
will be
|
|
|
|
autosize')}</span>
|
|
|
|
</div>
|
|
|
|
<span class="help-block col-md-4">
|
|
|
|
<a href="./{$logo}" target="_blank"><img src="./{$logo}" height="48" alt="logo for PDF"></a>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Company Footer')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" required class="form-control" id="CompanyFooter" name="CompanyFooter"
|
|
|
|
value="{$_c['CompanyFooter']}">
|
2022-09-06 10:31:22 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<span class="help-block col-md-4">{Lang::T('Will show below user pages')}</span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Address')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<textarea class="form-control" id="address" name="address"
|
|
|
|
rows="3">{Lang::htmlspecialchars($_c['address'])}</textarea>
|
2022-09-06 10:31:22 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<span class="help-block col-md-4">{Lang::T('You can use html tag')}</span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Phone Number')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" class="form-control" id="phone" name="phone" value="{$_c['phone']}">
|
2024-02-19 16:28:55 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Invoice Footer')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<textarea class="form-control" id="note" name="note"
|
|
|
|
rows="3">{Lang::htmlspecialchars($_c['note'])}</textarea>
|
|
|
|
<span class="help-block">{Lang::T('You can use html tag')}</span>
|
2024-05-17 09:52:20 +01:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label"><i class="glyphicon glyphicon-print"></i>
|
|
|
|
{Lang::T('Print Max Char')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="number" required class="form-control" id="printer_cols" placeholder="37"
|
|
|
|
name="printer_cols" value="{$_c['printer_cols']}">
|
2024-06-20 14:57:19 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<span class="help-block col-md-4">{Lang::T('For invoice print using Thermal
|
|
|
|
Printer')}</span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Theme')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="theme" id="theme" class="form-control">
|
|
|
|
<option value="default" {if $_c['theme'] eq 'default' }selected="selected" {/if}>
|
|
|
|
{Lang::T('Default')}
|
|
|
|
</option>
|
|
|
|
{foreach $themes as $theme}
|
2024-10-16 11:40:52 +07:00
|
|
|
<option value="{$theme}" {if $_c['theme'] eq $theme}selected="selected" {/if}>
|
|
|
|
{Lang::ucWords($theme)}</option>
|
2024-10-15 13:29:48 +01:00
|
|
|
{/foreach}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4"><a href="https://github.com/hotspotbilling/phpnuxbill/wiki/Themes"
|
|
|
|
target="_blank">{Lang::T('Theme Info')}</a></p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Recharge Using')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" name="payment_usings" class="form-control" value="{$_c['payment_usings']}"
|
|
|
|
placeholder="{Lang::T('Cash')}, {Lang::T('Bank Transfer')}">
|
2023-10-18 17:23:47 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<p class="help-block col-md-4">
|
|
|
|
{Lang::T('This used for admin to select payment in recharge, using comma for
|
|
|
|
every new
|
|
|
|
options')}
|
|
|
|
</p>
|
2023-10-18 17:23:47 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Income reset date')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="number" required class="form-control" id="reset_day" placeholder="20" min="1"
|
|
|
|
max="28" step="1" name="reset_day" value="{$_c['reset_day']}">
|
2024-02-07 12:02:39 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<span class="help-block col-md-4">{Lang::T('Income will reset every this
|
|
|
|
day')}</span>
|
2024-02-07 12:02:39 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel">
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="panel-heading" role="tab" id="HideDashboardContent">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h4 class="panel-title">
|
2024-10-16 11:40:52 +07:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
|
|
|
href="#collapseHideDashboardContent" aria-expanded="false"
|
|
|
|
aria-controls="collapseHideDashboardContent">
|
2024-10-15 13:29:48 +01:00
|
|
|
{Lang::T('Hide Dashboard Content')}
|
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2024-10-16 11:35:24 +07:00
|
|
|
<div id="collapseHideDashboardContent" class="panel-collapse collapse" role="tabpanel">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-3 control-label"><input type="checkbox" name="hide_mrc" value="yes" {if
|
|
|
|
$_c['hide_mrc'] eq 'yes' }checked{/if}>
|
|
|
|
{Lang::T('Monthly Registered Customers')}</label>
|
|
|
|
<label class="col-md-2 control-label"><input type="checkbox" name="hide_tms" value="yes" {if
|
|
|
|
$_c['hide_tms'] eq 'yes' }checked{/if}> {Lang::T('Total Monthly Sales')}</label>
|
|
|
|
<label class="col-md-2 control-label"><input type="checkbox" name="hide_aui" value="yes" {if
|
|
|
|
$_c['hide_aui'] eq 'yes' }checked{/if}> {Lang::T('All Users Insights')}</label>
|
|
|
|
<label class="col-md-2 control-label"><input type="checkbox" name="hide_al" value="yes" {if
|
|
|
|
$_c['hide_al'] eq 'yes' }checked{/if}> {Lang::T('Activity Log')}</label>
|
|
|
|
<label class="col-md-2 control-label"><input type="checkbox" name="hide_uet" value="yes" {if
|
|
|
|
$_c['hide_uet'] eq 'yes' }checked{/if}> {Lang::T('User Expired, Today')}</label>
|
|
|
|
<label class="col-md-2 control-label"><input type="checkbox" name="hide_vs" value="yes" {if
|
|
|
|
$_c['hide_vs'] eq 'yes' }checked{/if}> Vouchers Stock</label>
|
|
|
|
<label class="col-md-2 control-label"><input type="checkbox" name="hide_pg" value="yes" {if
|
|
|
|
$_c['hide_pg'] eq 'yes' }checked{/if}> Payment Gateway</label>
|
|
|
|
</div>
|
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-10-16 13:40:54 +07:00
|
|
|
<div class="panel">
|
|
|
|
<div class="panel-heading" role="tab" id="Registration">
|
|
|
|
<h4 class="panel-title">
|
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
|
|
|
href="#collapseRegistration" aria-expanded="false" aria-controls="collapseRegistration">
|
|
|
|
{Lang::T('Registration')}
|
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
|
|
|
<div id="collapseRegistration" class="panel-collapse collapse" role="tabpanel">
|
|
|
|
<div class="panel-body">
|
2024-10-17 09:35:26 +07:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Allow Registration')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="disable_registration" id="disable_registration" class="form-control">
|
|
|
|
<option value="no" {if $_c['disable_registration']=='no' }selected="selected" {/if}>
|
|
|
|
{Lang::T('Yes')}
|
|
|
|
</option>
|
|
|
|
{if $_c['disable_voucher'] != 'yes'}
|
|
|
|
<option value="yes" {if $_c['disable_registration']=='yes' }selected="selected" {/if}>
|
|
|
|
{Lang::T('Voucher Only')}
|
|
|
|
</option>
|
|
|
|
{/if}
|
|
|
|
<option value="noreg" {if $_c['disable_registration']=='noreg' }selected="selected" {/if}>
|
|
|
|
{Lang::T('No Registration')}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">
|
|
|
|
{Lang::T('Customer just Login with Phone number and Voucher Code, Voucher will be password')}
|
|
|
|
</p>
|
|
|
|
</div>
|
2024-10-16 13:40:54 +07:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Registration Username')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="registration_username" id="voucher_format" class="form-control">
|
|
|
|
<option value="username" {if $_c['registration_username']=='username' }selected="selected"
|
|
|
|
{/if}>Username
|
|
|
|
</option>
|
|
|
|
<option value="email" {if $_c['registration_username']=='email' }selected="selected" {/if}>
|
|
|
|
Email
|
|
|
|
</option>
|
|
|
|
<option value="phone" {if $_c['registration_username']=='phone' }selected="selected" {/if}>
|
|
|
|
Phone Number
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('SMS OTP Registration')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="sms_otp_registration" id="sms_otp_registration" class="form-control">
|
|
|
|
<option value="no">
|
|
|
|
{Lang::T('No')}
|
|
|
|
</option>
|
|
|
|
<option value="yes" {if $_c['sms_otp_registration']=='yes' }selected="selected" {/if}>
|
|
|
|
{Lang::T('Yes')}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">
|
|
|
|
{Lang::T('Customer Registration need to validate using OTP')}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('OTP Method')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="phone_otp_type" id="phone_otp_type" class="form-control">
|
|
|
|
<option value="sms" {if $_c['phone_otp_type']=='sms' }selected="selected" {/if}>
|
|
|
|
{Lang::T('By SMS')}
|
|
|
|
<option value="whatsapp" {if $_c['phone_otp_type']=='whatsapp' }selected="selected" {/if}>
|
|
|
|
{Lang::T('by WhatsApp')}
|
|
|
|
<option value="both" {if $_c['phone_otp_type']=='both' }selected="selected" {/if}>
|
|
|
|
{Lang::T('By WhatsApp and SMS')}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">{Lang::T('The method which OTP will be sent to user')}<br>
|
2024-10-17 09:35:26 +07:00
|
|
|
{Lang::T('For Registration and Update Phone Number')}</p>
|
2024-10-16 13:40:54 +07:00
|
|
|
</div>
|
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel">
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="panel-heading" role="tab" id="Voucher">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h4 class="panel-title">
|
2024-10-16 11:40:52 +07:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
|
|
|
href="#collapseVoucher" aria-expanded="false" aria-controls="collapseVoucher">
|
2023-10-18 17:23:47 +07:00
|
|
|
Voucher
|
2024-10-15 13:29:48 +01:00
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2024-10-16 11:35:24 +07:00
|
|
|
<div id="collapseVoucher" class="panel-collapse collapse" role="tabpanel">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Disable Voucher')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="disable_voucher" id="disable_voucher" class="form-control">
|
|
|
|
<option value="no" {if $_c['disable_voucher']=='no' }selected="selected" {/if}>
|
|
|
|
{Lang::T('No')}
|
|
|
|
</option>
|
|
|
|
<option value="yes" {if $_c['disable_voucher']=='yes' }selected="selected" {/if}>
|
|
|
|
{Lang::T('Yes')}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">{Lang::T('Voucher activation menu will be hidden')}</p>
|
2023-10-18 17:23:47 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Voucher Format')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="voucher_format" id="voucher_format" class="form-control">
|
|
|
|
<option value="up" {if $_c['voucher_format']=='up' }selected="selected" {/if}>UPPERCASE
|
|
|
|
</option>
|
|
|
|
<option value="low" {if $_c['voucher_format']=='low' }selected="selected" {/if}>
|
|
|
|
lowercase
|
|
|
|
</option>
|
|
|
|
<option value="rand" {if $_c['voucher_format']=='rand' }selected="selected" {/if}>
|
|
|
|
RaNdoM
|
|
|
|
</option>
|
|
|
|
<option value="numbers" {if $_c['voucher_format']=='numbers' }selected="selected" {/if}>
|
|
|
|
Numbers
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">UPPERCASE lowercase RaNdoM</p>
|
|
|
|
</div>
|
|
|
|
{if $_c['disable_voucher'] != 'yes'}
|
2024-10-16 11:40:52 +07:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Redirect URL after Activation')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" class="form-control" id="voucher_redirect" name="voucher_redirect"
|
|
|
|
placeholder="https://192.168.88.1/status" value="{$_c['voucher_redirect']}">
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">
|
|
|
|
{Lang::T('After Customer activate voucher or login, customer will be redirected to this
|
2024-10-15 13:29:48 +01:00
|
|
|
url')}
|
2024-10-16 11:40:52 +07:00
|
|
|
</p>
|
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
{/if}
|
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel">
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="panel-heading" role="tab" id="FreeRadius">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h4 class="panel-title">
|
2024-10-16 11:40:52 +07:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
|
|
|
href="#collapseFreeRadius" aria-expanded="false" aria-controls="collapseFreeRadius">
|
2023-10-18 17:23:47 +07:00
|
|
|
FreeRadius
|
2024-10-15 13:29:48 +01:00
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2024-10-16 11:35:24 +07:00
|
|
|
<div id="collapseFreeRadius" class="panel-collapse collapse" role="tabpanel">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Enable Radius')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="radius_enable" id="radius_enable" class="form-control text-muted">
|
|
|
|
<option value="0">{Lang::T('No')}</option>
|
|
|
|
<option value="1" {if $_c['radius_enable']}selected="selected" {/if}>{Lang::T('Yes')}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4"><a
|
|
|
|
href="https://github.com/hotspotbilling/phpnuxbill/wiki/FreeRadius"
|
|
|
|
target="_blank">{Lang::T('Radius Instructions')}</a></p>
|
|
|
|
</div>
|
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel">
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="panel-heading" role="tab" id="ExtendPostpaidExpiration">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h4 class="panel-title">
|
2024-10-16 11:40:52 +07:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
|
|
|
href="#collapseExtendPostpaidExpiration" aria-expanded="false"
|
|
|
|
aria-controls="collapseExtendPostpaidExpiration">
|
2024-10-15 13:29:48 +01:00
|
|
|
{Lang::T('Extend Postpaid Expiration')}
|
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2024-10-16 11:35:24 +07:00
|
|
|
<div id="collapseExtendPostpaidExpiration" class="panel-collapse collapse" role="tabpanel">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Allow Extend')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="extend_expired" id="extend_expired" class="form-control text-muted">
|
|
|
|
<option value="0">{Lang::T('No')}</option>
|
|
|
|
<option value="1" {if $_c['extend_expired']==1}selected="selected" {/if}>
|
|
|
|
{Lang::T('Yes')}</option>
|
|
|
|
</select>
|
2023-07-18 16:30:12 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<p class="help-block col-md-4">{Lang::T('Customer can request to extend expirations')}</p>
|
2022-09-06 10:31:22 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Extend Days')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" class="form-control" name="extend_days" placeholder="3"
|
|
|
|
value="{$_c['extend_days']}">
|
2024-04-15 14:09:02 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Confirmation Message')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<textarea type="text" rows="4" class="form-control" name="extend_confirmation"
|
|
|
|
placeholder="{Lang::T('i agree to extends and will paid full after this')}">{$_c['extend_confirmation']}</textarea>
|
2024-04-15 14:09:02 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel">
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="panel-heading" role="tab" id="CustomerBalanceSystem">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h4 class="panel-title">
|
2024-10-16 11:40:52 +07:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
|
|
|
href="#collapseCustomerBalanceSystem" aria-expanded="false"
|
|
|
|
aria-controls="collapseCustomerBalanceSystem">
|
2024-08-28 22:08:33 +07:00
|
|
|
{Lang::T('Customer Balance System')}
|
2024-10-15 13:29:48 +01:00
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2024-10-16 11:35:24 +07:00
|
|
|
<div id="collapseCustomerBalanceSystem" class="panel-collapse collapse" role="tabpanel">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Enable System')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="enable_balance" id="enable_balance" class="form-control">
|
|
|
|
<option value="no" {if $_c['enable_balance']=='no' }selected="selected" {/if}>
|
|
|
|
{Lang::T('No')}
|
|
|
|
</option>
|
|
|
|
<option value="yes" {if $_c['enable_balance']=='yes' }selected="selected" {/if}>
|
|
|
|
{Lang::T('Yes')}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">{Lang::T('Customer can deposit money to buy voucher')}</p>
|
2023-08-09 10:50:02 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Allow Transfer')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="allow_balance_transfer" id="allow_balance_transfer" class="form-control">
|
|
|
|
<option value="no" {if $_c['allow_balance_transfer']=='no' }selected="selected" {/if}>
|
|
|
|
{Lang::T('No')}</option>
|
|
|
|
<option value="yes" {if $_c['allow_balance_transfer']=='yes' }selected="selected" {/if}>
|
|
|
|
{Lang::T('Yes')}</option>
|
|
|
|
</select>
|
2023-08-09 10:50:02 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<p class="help-block col-md-4">{Lang::T('Allow balance transfer between customers')}</p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Minimum Balance Transfer')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="number" class="form-control" id="minimum_transfer" name="minimum_transfer"
|
|
|
|
value="{$_c['minimum_transfer']}">
|
2023-08-24 11:52:43 +07:00
|
|
|
</div>
|
2023-08-09 10:50:02 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel">
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="panel-heading" role="tab" id="TelegramNotification">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h4 class="panel-title">
|
2024-10-16 11:40:52 +07:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
|
|
|
href="#collapseTelegramNotification" aria-expanded="false"
|
|
|
|
aria-controls="collapseTelegramNotification">
|
2024-10-15 13:29:48 +01:00
|
|
|
{Lang::T('Telegram Notification')}
|
2023-08-09 10:50:02 +07:00
|
|
|
<div class="btn-group pull-right">
|
2024-01-24 14:02:58 +07:00
|
|
|
<a class="btn btn-success btn-xs" style="color: black;" href="javascript:testTg()">Test TG</a>
|
2022-09-06 10:31:22 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2024-10-16 11:35:24 +07:00
|
|
|
<div id="collapseTelegramNotification" class="panel-collapse collapse" role="tabpanel">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Telegram Bot Token')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="password" class="form-control" id="telegram_bot" name="telegram_bot"
|
|
|
|
onmouseleave="this.type = 'password'" onmouseenter="this.type = 'text'"
|
|
|
|
value="{$_c['telegram_bot']}" placeholder="123456:asdasgdkuasghddlashdashldhalskdklasd">
|
2022-09-06 10:31:22 +07:00
|
|
|
</div>
|
2023-08-09 10:50:02 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Telegram User/Channel/Group ID')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" class="form-control" id="telegram_target_id" name="telegram_target_id"
|
|
|
|
value="{$_c['telegram_target_id']}" placeholder="12345678">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<small id="emailHelp" class="form-text text-muted">
|
|
|
|
{Lang::T('You will get Payment and Error notification')}
|
|
|
|
</small>
|
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel">
|
2024-10-16 11:40:52 +07:00
|
|
|
<div class="panel-heading" role="tab" id="SMSNotification">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h4 class="panel-title">
|
2024-10-16 11:40:52 +07:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
|
|
|
href="#collapseSMSNotification" aria-expanded="false" aria-controls="collapseSMSNotification">
|
|
|
|
{Lang::T('SMS Notification')}
|
2023-08-09 10:50:02 +07:00
|
|
|
<div class="btn-group pull-right">
|
2024-10-15 13:29:48 +01:00
|
|
|
<a class="btn btn-success btn-xs" style="color: black;" href="javascript:testSms()">
|
|
|
|
{Lang::T('Test SMS')}
|
|
|
|
</a>
|
2023-08-09 10:50:02 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2024-10-16 11:40:52 +07:00
|
|
|
<div id="collapseSMSNotification" class="panel-collapse collapse" role="tabpanel">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('SMS Server URL')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" class="form-control" id="sms_url" name="sms_url" value="{$_c['sms_url']}"
|
|
|
|
placeholder="https://domain/?param_number=[number]¶m_text=[text]&secret=">
|
2023-12-11 14:12:12 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<p class="help-block col-md-4">{Lang::T('Must include')} <b>[text]</b> & <b>[number]</b>,
|
|
|
|
{Lang::T('it will be replaced.')}
|
|
|
|
</p>
|
2023-08-09 10:50:02 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Or use Mikrotik SMS')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select class="form-control" onchange="document.getElementById('sms_url').value = this.value">
|
|
|
|
<option value="">{Lang::T('Select Router')}</option>
|
|
|
|
{foreach $r as $rs}
|
2024-10-16 11:40:52 +07:00
|
|
|
<option value="{$rs['name']}" {if $rs['name']==$_c['sms_url']}selected{/if}>
|
|
|
|
{$rs['name']}</option>
|
2024-10-15 13:29:48 +01:00
|
|
|
{/foreach}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">{Lang::T('Must include')} <b>[text]</b> & <b>[number]</b>,
|
|
|
|
{Lang::T('it will be replaced.')}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<small id="emailHelp" class="form-text text-muted">{Lang::T('You can use')} WhatsApp
|
|
|
|
{Lang::T('in here too.')} <a href="https://wa.nux.my.id/login" target="_blank">{Lang::T('Free
|
|
|
|
Server')}</a></small>
|
|
|
|
|
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel">
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="panel-heading" role="tab" id="WhatsappNotification">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h4 class="panel-title">
|
2024-10-16 11:40:52 +07:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
|
|
|
href="#collapseWhatsappNotification" aria-expanded="false"
|
|
|
|
aria-controls="collapseWhatsappNotification">
|
2024-10-15 13:29:48 +01:00
|
|
|
{Lang::T('Whatsapp Notification')}
|
2023-08-09 10:50:02 +07:00
|
|
|
<div class="btn-group pull-right">
|
2024-01-24 14:02:58 +07:00
|
|
|
<a class="btn btn-success btn-xs" style="color: black;" href="javascript:testWa()">Test WA</a>
|
2022-09-06 10:31:22 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2024-10-16 11:35:24 +07:00
|
|
|
<div id="collapseWhatsappNotification" class="panel-collapse collapse" role="tabpanel">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('WhatsApp Server URL')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" class="form-control" id="wa_url" name="wa_url" value="{$_c['wa_url']}"
|
|
|
|
placeholder="https://domain/?param_number=[number]¶m_text=[text]&secret=">
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">{Lang::T('Must include')} <b>[text]</b> & <b>[number]</b>,
|
|
|
|
{Lang::T('it will be replaced.')}
|
|
|
|
</div>
|
|
|
|
<small id="emailHelp" class="form-text text-muted">{Lang::T('You can use')} WhatsApp
|
|
|
|
{Lang::T('in here too.')} <a href="https://wa.nux.my.id/login" target="_blank">{Lang::T('Free
|
|
|
|
Server')}</a></small>
|
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel">
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="panel-heading" role="tab" id="EmailNotification">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h4 class="panel-title">
|
2024-10-16 11:40:52 +07:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
|
|
|
href="#collapseEmailNotification" aria-expanded="false" aria-controls="collapseEmailNotification">
|
2024-10-15 13:29:48 +01:00
|
|
|
{Lang::T('Email Notification')}
|
2024-03-27 14:32:55 +07:00
|
|
|
<div class="btn-group pull-right">
|
2024-09-25 15:00:13 +07:00
|
|
|
<a class="btn btn-success btn-xs" style="color: black;" href="javascript:testEmail()">Test
|
|
|
|
Email</a>
|
2024-03-27 14:32:55 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2024-10-16 11:35:24 +07:00
|
|
|
<div id="collapseEmailNotification" class="panel-collapse collapse" role="tabpanel">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">SMTP Host : Port</label>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<input type="text" class="form-control" id="smtp_host" name="smtp_host"
|
|
|
|
value="{$_c['smtp_host']}" placeholder="smtp.host.tld">
|
2024-03-27 14:32:55 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="col-md-2">
|
|
|
|
<input type="number" class="form-control" id="smtp_port" name="smtp_port"
|
|
|
|
value="{$_c['smtp_port']}" placeholder="465 587 port">
|
2024-03-27 14:32:55 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<p class="help-block col-md-4">{Lang::T('Empty this to use internal mail() PHP')}</p>
|
2024-03-27 14:32:55 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('SMTP Username')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" class="form-control" id="smtp_user" name="smtp_user"
|
|
|
|
value="{$_c['smtp_user']}" placeholder="user@host.tld">
|
2023-08-09 10:50:02 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('SMTP Password')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="password" class="form-control" id="smtp_pass" name="smtp_pass"
|
|
|
|
value="{$_c['smtp_pass']}" onmouseleave="this.type = 'password'"
|
|
|
|
onmouseenter="this.type = 'text'">
|
2022-09-07 15:07:40 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('SMTP Security')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="smtp_ssltls" id="smtp_ssltls" class="form-control">
|
|
|
|
<option value="" {if $_c['smtp_ssltls']=='' }selected="selected" {/if}>Not Secure
|
|
|
|
</option>
|
|
|
|
<option value="ssl" {if $_c['smtp_ssltls']=='ssl' }selected="selected" {/if}>SSL
|
|
|
|
</option>
|
|
|
|
<option value="tls" {if $_c['smtp_ssltls']=='tls' }selected="selected" {/if}>TLS
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">UPPERCASE lowercase RaNdoM</p>
|
2023-08-09 10:50:02 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">Mail {Lang::T('From')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" class="form-control" id="mail_from" name="mail_from"
|
|
|
|
value="{$_c['mail_from']}" placeholder="noreply@host.tld">
|
2022-09-06 10:31:22 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Mail Reply To')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" class="form-control" id="mail_reply_to" name="mail_reply_to"
|
|
|
|
value="{$_c['mail_reply_to']}" placeholder="support@host.tld">
|
2023-08-16 08:30:05 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<p class="help-block col-md-4">
|
|
|
|
{Lang::T('Customer will reply email to this address, empty if you want to use From
|
|
|
|
Address')}
|
|
|
|
</p>
|
2023-08-16 08:30:05 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
|
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel">
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="panel-heading" role="tab" id="UserNotification">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h4 class="panel-title">
|
2024-10-16 11:40:52 +07:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
|
|
|
href="#collapseUserNotification" aria-expanded="false" aria-controls="collapseUserNotification">
|
2024-10-15 13:29:48 +01:00
|
|
|
{Lang::T('User Notification')}
|
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2024-10-16 11:35:24 +07:00
|
|
|
<div id="collapseUserNotification" class="panel-collapse collapse" role="tabpanel">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Expired Notification')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="user_notification_expired" id="user_notification_expired" class="form-control">
|
|
|
|
<option value="none">{Lang::T('None')}</option>
|
|
|
|
<option value="wa" {if $_c['user_notification_expired']=='wa' }selected="selected" {/if}>
|
|
|
|
{Lang::T('By WhatsApp')}</option>
|
|
|
|
<option value="sms" {if $_c['user_notification_expired']=='sms' }selected="selected" {/if}>
|
|
|
|
{Lang::T('By SMS')}</option>
|
|
|
|
<option value="email" {if $_c['user_notification_expired']=='email' }selected="selected"
|
|
|
|
{/if}>{Lang::T('By Email')}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">{Lang::T('User will get notification when package expired')}</p>
|
2023-08-16 08:30:05 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Payment Notification')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="user_notification_payment" id="user_notification_payment" class="form-control">
|
|
|
|
<option value="none">{Lang::T('None')}</option>
|
|
|
|
<option value="wa" {if $_c['user_notification_payment']=='wa' }selected="selected" {/if}>
|
|
|
|
{Lang::T('By WhatsApp')}</option>
|
|
|
|
<option value="sms" {if $_c['user_notification_payment']=='sms' }selected="selected" {/if}>
|
|
|
|
{Lang::T('By SMS')}</option>
|
|
|
|
<option value="email" {if $_c['user_notification_payment']=='email' }selected="selected"
|
|
|
|
{/if}>{Lang::T('By Email')}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">
|
|
|
|
{Lang::T('User will get invoice notification when buy package or package refilled')}</p>
|
2023-09-13 10:00:26 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Reminder Notification')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="user_notification_reminder" id="user_notification_reminder" class="form-control">
|
|
|
|
<option value="none">{Lang::T('None')}</option>
|
|
|
|
<option value="wa" {if $_c['user_notification_reminder']=='wa' }selected="selected" {/if}>
|
|
|
|
{Lang::T('By WhatsApp')}</option>
|
|
|
|
<option value="sms" {if $_c['user_notification_reminder']=='sms' }selected="selected" {/if}>
|
|
|
|
{Lang::T('By SMS')}</option>
|
|
|
|
<option value="sms" {if $_c['user_notification_reminder']=='email' }selected="selected"
|
|
|
|
{/if}>{Lang::T('By Email')}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel">
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="panel-heading" role="tab" id="TawkToChatWidget">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h4 class="panel-title">
|
2024-10-16 11:40:52 +07:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
|
|
|
href="#collapseTawkToChatWidget" aria-expanded="false" aria-controls="collapseTawkToChatWidget">
|
2024-10-15 13:29:48 +01:00
|
|
|
{Lang::T('Tawk.to Chat Widget')}
|
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2024-10-16 11:35:24 +07:00
|
|
|
<div id="collapseTawkToChatWidget" class="panel-collapse collapse" role="tabpanel">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">https://tawk.to/chat/</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" class="form-control" id="tawkto" name="tawkto" value="{$_c['tawkto']}"
|
|
|
|
placeholder="62f1ca7037898912e961f5/1ga07df">
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">{Lang::T('From Direct Chat Link.')}</p>
|
|
|
|
</div>
|
|
|
|
<label class="col-md-2"></label>
|
|
|
|
<p class="col-md-6 help-block">/ip hotspot walled-garden<br>
|
|
|
|
add dst-host=tawk.to<br>
|
|
|
|
add dst-host=*.tawk.to</p>
|
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel">
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="panel-heading" role="tab" id="APIKey">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h4 class="panel-title">
|
2024-10-16 11:40:52 +07:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
|
|
|
href="#collapseAPIKey" aria-expanded="false" aria-controls="collapseAPIKey">
|
2024-10-15 13:29:48 +01:00
|
|
|
API Key
|
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2024-10-16 11:35:24 +07:00
|
|
|
<div id="collapseAPIKey" class="panel-collapse collapse" role="tabpanel">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Access Token')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="password" class="form-control" id="api_key" name="api_key" value="{$_c['api_key']}"
|
|
|
|
placeholder="{Lang::T('Empty this to randomly created API key')}"
|
|
|
|
onmouseleave="this.type = 'password'" onmouseenter="this.type = 'text'">
|
2023-09-13 10:00:26 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<p class="col-md-4 help-block">{Lang::T('This Token will act as SuperAdmin/Admin')}</p>
|
|
|
|
</div>
|
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel">
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="panel-heading" role="tab" id="Proxy">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h4 class="panel-title">
|
2024-10-16 11:35:24 +07:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseProxy"
|
|
|
|
aria-expanded="false" aria-controls="collapseProxy">
|
2024-10-15 13:29:48 +01:00
|
|
|
{Lang::T('Proxy')}
|
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2024-10-16 11:35:24 +07:00
|
|
|
<div id="collapseProxy" class="panel-collapse collapse" role="tabpanel">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Proxy Server')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" class="form-control" id="http_proxy" name="http_proxy"
|
|
|
|
value="{$_c['http_proxy']}" placeholder="127.0.0.1:3128">
|
2023-09-13 10:00:26 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Proxy Server Login')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="password" class="form-control" id="http_proxyauth" name="http_proxyauth"
|
|
|
|
autocomplete="off" value="{$_c['http_proxyauth']}" placeholder="username:password"
|
|
|
|
onmouseleave="this.type = 'password'" onmouseenter="this.type = 'text'">
|
2024-04-12 19:42:12 +01:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
</div>
|
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel">
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="panel-heading" role="tab" id="TaxSystem">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h4 class="panel-title">
|
2024-10-16 11:40:52 +07:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
|
|
|
href="#collapseTaxSystem" aria-expanded="false" aria-controls="collapseTaxSystem">
|
2024-04-12 19:42:12 +01:00
|
|
|
{Lang::T('Tax System')}
|
2024-10-15 13:29:48 +01:00
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2024-10-16 11:35:24 +07:00
|
|
|
<div id="collapseTaxSystem" class="panel-collapse collapse" role="tabpanel">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Enable Tax System')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="enable_tax" id="enable_tax" class="form-control">
|
|
|
|
<option value="no" {if $_c['enable_tax']=='no' }selected="selected" {/if}>
|
|
|
|
{Lang::T('No')}
|
|
|
|
</option>
|
|
|
|
<option value="yes" {if $_c['enable_tax']=='yes' }selected="selected" {/if}>
|
|
|
|
{Lang::T('Yes')}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">{Lang::T('Tax will be calculated in Internet Plan Price')}</p>
|
2024-04-12 19:42:12 +01:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Tax Rate')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<select name="tax_rate" id="tax_rate" class="form-control">
|
|
|
|
<option value="0.5" {if $_c['tax_rate']=='0.5' }selected="selected" {/if}>
|
|
|
|
0.5
|
|
|
|
</option>
|
|
|
|
<option value="1" {if $_c['tax_rate']=='1' }selected="selected" {/if}>
|
|
|
|
1
|
|
|
|
</option>
|
|
|
|
<option value="1.5" {if $_c['tax_rate']=='1.5' }selected="selected" {/if}>
|
|
|
|
1.5
|
|
|
|
</option>
|
|
|
|
<option value="2" {if $_c['tax_rate']=='2' }selected="selected" {/if}>
|
|
|
|
2
|
|
|
|
</option>
|
|
|
|
<option value="5" {if $_c['tax_rate']=='5' }selected="selected" {/if}>
|
|
|
|
5
|
|
|
|
</option>
|
|
|
|
<option value="10" {if $_c['tax_rate']=='10' }selected="selected" {/if}>
|
|
|
|
10
|
|
|
|
</option>
|
|
|
|
<!-- Custom tax rate option -->
|
|
|
|
<option value="custom" {if $_c['tax_rate']=='custom' }selected="selected" {/if}>
|
|
|
|
{Lang::T('Custome')}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">{Lang::T('Tax Rates by percentage')}</p>
|
|
|
|
</div>
|
|
|
|
<!-- Custom tax rate input field (initially hidden) -->
|
|
|
|
<div class="form-group" id="customTaxRate" style="display: none;">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Custome Tax Rate')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="text" value="{$_c['custom_tax_rate']}" class="form-control" name="custom_tax_rate"
|
|
|
|
id="custom_tax_rate" placeholder="{Lang::T('Enter Custome Tax Rate')}">
|
|
|
|
</div>
|
|
|
|
<p class="help-block col-md-4">{Lang::T('Enter the custom tax rate (e.g., 3.75 for 3.75%)')}</p>
|
2024-05-17 14:47:12 +01:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
|
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel">
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="panel-heading" role="tab" id="GithubAuthentication">
|
2024-10-15 13:29:48 +01:00
|
|
|
<h4 class="panel-title">
|
2024-10-16 11:40:52 +07:00
|
|
|
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion"
|
|
|
|
href="#collapseAuthentication" aria-expanded="false" aria-controls="collapseAuthentication">
|
2024-08-15 15:54:52 +07:00
|
|
|
Github {Lang::T('Authentication')}
|
2024-10-15 13:29:48 +01:00
|
|
|
</a>
|
|
|
|
</h4>
|
|
|
|
</div>
|
2024-10-16 11:35:24 +07:00
|
|
|
<div id="collapseAuthentication" class="panel-collapse collapse" role="tabpanel">
|
2024-10-15 13:29:48 +01:00
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Github Username')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon">https://github.com/</span>
|
|
|
|
<input type="text" class="form-control" id="github_username" name="github_username"
|
|
|
|
value="{$_c['github_username']}" placeholder="ibnux">
|
2024-01-18 15:41:24 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-md-2 control-label">{Lang::T('Github Token')}</label>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<input type="password" class="form-control" id="github_token" name="github_token"
|
|
|
|
value="{$_c['github_token']}" placeholder="ghp_........"
|
|
|
|
onmouseleave="this.type = 'password'" onmouseenter="this.type = 'text'">
|
2024-01-18 15:41:24 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<span class="help-block col-md-4"><a href="https://github.com/settings/tokens/new"
|
|
|
|
target="_blank">{Lang::T('Create GitHub personal access token')} (classic)</a>,
|
|
|
|
{Lang::T('only need repo
|
|
|
|
scope')}</span>
|
2024-07-25 10:59:23 +07:00
|
|
|
</div>
|
2023-07-18 16:30:12 +07:00
|
|
|
<div class="form-group">
|
2024-10-15 13:29:48 +01:00
|
|
|
<label class="control-label col-md-offset-2 col-md-8" style="text-align: left;">{Lang::T('This
|
|
|
|
will allow
|
|
|
|
you to download plugin from private/paid repository')}</label>
|
2023-07-18 16:30:12 +07:00
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
<button class="btn btn-success btn-block" type="submit">
|
|
|
|
{Lang::T('Save Changes')}
|
|
|
|
</button>
|
2023-08-09 10:50:02 +07:00
|
|
|
</div>
|
2022-09-06 10:31:22 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2024-07-27 00:56:48 +01:00
|
|
|
|
2024-10-16 11:35:24 +07:00
|
|
|
<div class="well well-sm">
|
2024-10-16 11:40:52 +07:00
|
|
|
<legend>{Lang::T('Settings For Mikrotik')}</legend>
|
|
|
|
<pre>/ip hotspot walled-garden
|
2024-10-15 13:29:48 +01:00
|
|
|
add dst-host={$_domain}
|
|
|
|
add dst-host=*.{$_domain}</pre>
|
|
|
|
|
2024-10-16 11:40:52 +07:00
|
|
|
<legend>{Lang::T('Settings For Cron Expired')}</legend>
|
|
|
|
<pre>
|
2024-10-15 13:29:48 +01:00
|
|
|
# {Lang::T('Expired Cronjob Every 5 Minutes')}
|
|
|
|
*/5 * * * * cd {$dir} && {$php} cron.php
|
2024-10-16 11:35:24 +07:00
|
|
|
</pre>
|
2024-10-16 11:40:52 +07:00
|
|
|
{Lang::T('Choose one, above or below')}
|
|
|
|
<pre>
|
2024-10-15 13:29:48 +01:00
|
|
|
# {Lang::T('Expired Cronjob Every 1 Hour')}
|
|
|
|
0 * * * * cd {$dir} && {$php} cron.php
|
2024-10-16 11:35:24 +07:00
|
|
|
</pre>
|
|
|
|
|
2024-10-16 11:40:52 +07:00
|
|
|
<legend>{Lang::T('Settings For Cron Reminder')}</legend>
|
|
|
|
<pre>
|
2024-10-15 13:29:48 +01:00
|
|
|
# {Lang::T('Reminder Cronjob Every 7 AM')}
|
|
|
|
0 7 * * * cd {$dir} && {$php} cron_reminder.php
|
2024-10-16 11:35:24 +07:00
|
|
|
</pre>
|
|
|
|
</div>
|
2024-10-15 13:29:48 +01:00
|
|
|
|
2024-07-27 00:56:48 +01:00
|
|
|
|
|
|
|
|
2024-01-24 14:02:58 +07:00
|
|
|
<script>
|
|
|
|
function testWa() {
|
|
|
|
var target = prompt("Phone number\nSave First before Test", "");
|
|
|
|
if (target != null) {
|
2024-02-21 00:15:36 +01:00
|
|
|
window.location.href = '{$_url}settings/app&testWa=' + target;
|
2024-01-24 14:02:58 +07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function testSms() {
|
|
|
|
var target = prompt("Phone number\nSave First before Test", "");
|
|
|
|
if (target != null) {
|
2024-02-21 00:15:36 +01:00
|
|
|
window.location.href = '{$_url}settings/app&testSms=' + target;
|
2024-01-24 14:02:58 +07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-27 14:32:55 +07:00
|
|
|
|
|
|
|
function testEmail() {
|
|
|
|
var target = prompt("Email\nSave First before Test", "");
|
|
|
|
if (target != null) {
|
|
|
|
window.location.href = '{$_url}settings/app&testEmail=' + target;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-24 14:02:58 +07:00
|
|
|
function testTg() {
|
|
|
|
window.location.href = '{$_url}settings/app&testTg=test';
|
|
|
|
}
|
|
|
|
</script>
|
2024-04-12 19:42:12 +01:00
|
|
|
|
|
|
|
<script>
|
2024-10-16 11:40:52 +07:00
|
|
|
document.addEventListener("DOMContentLoaded", function() {
|
2024-04-12 19:42:12 +01:00
|
|
|
// Function to toggle visibility of custom tax rate input field
|
|
|
|
function toggleCustomTaxRate() {
|
|
|
|
var taxRateSelect = document.getElementById("tax_rate");
|
|
|
|
var customTaxRateInput = document.getElementById("customTaxRate");
|
|
|
|
|
|
|
|
if (taxRateSelect.value === "custom") {
|
|
|
|
customTaxRateInput.style.display = "block";
|
|
|
|
} else {
|
|
|
|
customTaxRateInput.style.display = "none";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Call the function when the page loads
|
|
|
|
toggleCustomTaxRate();
|
|
|
|
|
|
|
|
// Call the function whenever the tax rate dropdown value changes
|
|
|
|
document.getElementById("tax_rate").addEventListener("change", toggleCustomTaxRate);
|
|
|
|
});
|
|
|
|
</script>
|
2024-09-25 15:00:13 +07:00
|
|
|
{include file="sections/footer.tpl"}
|