finishing
This commit is contained in:
parent
d09e657ed5
commit
8c94e9ea01
@ -22,6 +22,8 @@ switch ($action) {
|
|||||||
_alert(Lang::T('You do not have permission to access this page'), 'danger', "dashboard");
|
_alert(Lang::T('You do not have permission to access this page'), 'danger', "dashboard");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$appUrl = APP_URL;
|
||||||
|
|
||||||
$select2_customer = <<<EOT
|
$select2_customer = <<<EOT
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener("DOMContentLoaded", function(event) {
|
document.addEventListener("DOMContentLoaded", function(event) {
|
||||||
@ -30,9 +32,9 @@ document.addEventListener("DOMContentLoaded", function(event) {
|
|||||||
ajax: {
|
ajax: {
|
||||||
url: function(params) {
|
url: function(params) {
|
||||||
if(params.term != undefined){
|
if(params.term != undefined){
|
||||||
return './?_route=autoload/customer_select2&s='+params.term;
|
return '{$appUrl}/?_route=autoload/customer_select2&s='+params.term;
|
||||||
}else{
|
}else{
|
||||||
return './?_route=autoload/customer_select2';
|
return '{$appUrl}/?_route=autoload/customer_select2';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,10 @@ $ui->assign('_system_menu', 'plan');
|
|||||||
$action = $routes['1'];
|
$action = $routes['1'];
|
||||||
$ui->assign('_admin', $admin);
|
$ui->assign('_admin', $admin);
|
||||||
|
|
||||||
|
$appUrl = APP_URL;
|
||||||
|
|
||||||
$select2_customer = <<<EOT
|
$select2_customer = <<<EOT
|
||||||
|
<-- apa ini -->
|
||||||
<script>
|
<script>
|
||||||
document.addEventListener("DOMContentLoaded", function(event) {
|
document.addEventListener("DOMContentLoaded", function(event) {
|
||||||
$('#personSelect').select2({
|
$('#personSelect').select2({
|
||||||
@ -20,9 +23,9 @@ document.addEventListener("DOMContentLoaded", function(event) {
|
|||||||
ajax: {
|
ajax: {
|
||||||
url: function(params) {
|
url: function(params) {
|
||||||
if(params.term != undefined){
|
if(params.term != undefined){
|
||||||
return './?_route=autoload/customer_select2&s='+params.term;
|
return '{$appUrl}/?_route=autoload/customer_select2&s='+params.term;
|
||||||
}else{
|
}else{
|
||||||
return './?_route=autoload/customer_select2';
|
return '{$appUrl}/?_route=autoload/customer_select2';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -30,7 +33,7 @@ document.addEventListener("DOMContentLoaded", function(event) {
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
EOT;
|
EOT;
|
||||||
|
getUrl('docs');
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
case 'sync':
|
case 'sync':
|
||||||
if (!in_array($admin['user_type'], ['SuperAdmin', 'Admin'])) {
|
if (!in_array($admin['user_type'], ['SuperAdmin', 'Admin'])) {
|
||||||
|
@ -23,7 +23,7 @@ switch ($action) {
|
|||||||
$d->value = 'yes';
|
$d->value = 'yes';
|
||||||
$d->save();
|
$d->save();
|
||||||
}
|
}
|
||||||
r2('./docs');
|
r2(getUrl('docs'));
|
||||||
break;
|
break;
|
||||||
case 'devices':
|
case 'devices':
|
||||||
$files = scandir($DEVICE_PATH);
|
$files = scandir($DEVICE_PATH);
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
<br>
|
<br>
|
||||||
<b>[[company_name]]</b> - {Lang::T('Your Company Name')}
|
<b>[[company_name]]</b> - {Lang::T('Your Company Name')}
|
||||||
<br>
|
<br>
|
||||||
<b>[[payment_link]]</b> - <a href="./docs/#Reminder%20with%20payment%20link"
|
<b>[[payment_link]]</b> - <a href="{Text::url('docs')}/#Reminder%20with%20payment%20link"
|
||||||
target="_blank">read documentation</a>.
|
target="_blank">read documentation</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<b>[[package]]</b> - {Lang::T('will be replaced with Package name')}.<br>
|
<b>[[package]]</b> - {Lang::T('will be replaced with Package name')}.<br>
|
||||||
<b>[[price]]</b> - {Lang::T('will be replaced with Package price')}.<br>
|
<b>[[price]]</b> - {Lang::T('will be replaced with Package price')}.<br>
|
||||||
<b>[[bills]]</b> - {Lang::T('additional bills for customers')}.<br>
|
<b>[[bills]]</b> - {Lang::T('additional bills for customers')}.<br>
|
||||||
<b>[[payment_link]]</b> - <a href="./docs/#Reminder%20with%20payment%20link"
|
<b>[[payment_link]]</b> - <a href="{Text::url('docs')}/docs/#Reminder%20with%20payment%20link"
|
||||||
target="_blank">read documentation</a>.
|
target="_blank">read documentation</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -45,7 +45,7 @@
|
|||||||
<b>[[price]]</b> - {Lang::T('will be replaced with Package price')}.<br>
|
<b>[[price]]</b> - {Lang::T('will be replaced with Package price')}.<br>
|
||||||
<b>[[expired_date]]</b> - {Lang::T('will be replaced with Expiration date')}.<br>
|
<b>[[expired_date]]</b> - {Lang::T('will be replaced with Expiration date')}.<br>
|
||||||
<b>[[bills]]</b> - {Lang::T('additional bills for customers')}.<br>
|
<b>[[bills]]</b> - {Lang::T('additional bills for customers')}.<br>
|
||||||
<b>[[payment_link]]</b> - <a href="./docs/#Reminder%20with%20payment%20link"
|
<b>[[payment_link]]</b> - <a href="{Text::url('docs')}/docs/#Reminder%20with%20payment%20link"
|
||||||
target="_blank">read documentation</a>.
|
target="_blank">read documentation</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -64,7 +64,7 @@
|
|||||||
<b>[[price]]</b> - {Lang::T('will be replaced with Package price')}.<br>
|
<b>[[price]]</b> - {Lang::T('will be replaced with Package price')}.<br>
|
||||||
<b>[[expired_date]]</b> - {Lang::T('will be replaced with Expiration date')}.<br>
|
<b>[[expired_date]]</b> - {Lang::T('will be replaced with Expiration date')}.<br>
|
||||||
<b>[[bills]]</b> - {Lang::T('additional bills for customers')}.<br>
|
<b>[[bills]]</b> - {Lang::T('additional bills for customers')}.<br>
|
||||||
<b>[[payment_link]]</b> - <a href="./docs/#Reminder%20with%20payment%20link"
|
<b>[[payment_link]]</b> - <a href="{Text::url('docs')}/docs/#Reminder%20with%20payment%20link"
|
||||||
target="_blank">read documentation</a>.
|
target="_blank">read documentation</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@ -83,7 +83,7 @@
|
|||||||
<b>[[price]]</b> - {Lang::T('will be replaced with Package price')}.<br>
|
<b>[[price]]</b> - {Lang::T('will be replaced with Package price')}.<br>
|
||||||
<b>[[expired_date]]</b> - {Lang::T('will be replaced with Expiration date')}.<br>
|
<b>[[expired_date]]</b> - {Lang::T('will be replaced with Expiration date')}.<br>
|
||||||
<b>[[bills]]</b> - {Lang::T('additional bills for customers')}.<br>
|
<b>[[bills]]</b> - {Lang::T('additional bills for customers')}.<br>
|
||||||
<b>[[payment_link]]</b> - <a href="./docs/#Reminder%20with%20payment%20link"
|
<b>[[payment_link]]</b> - <a href="{Text::url('docs')}/docs/#Reminder%20with%20payment%20link"
|
||||||
target="_blank">read documentation</a>.
|
target="_blank">read documentation</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user