diff --git a/ui/ui/admin/pppoe/add.tpl b/ui/ui/admin/pppoe/add.tpl
index d59bce25..7e6ed299 100644
--- a/ui/ui/admin/pppoe/add.tpl
+++ b/ui/ui/admin/pppoe/add.tpl
@@ -184,7 +184,7 @@
document.getElementById("routers").required = false;
document.getElementById("routers").disabled = true;
$.ajax({
- url: "?_route=autoload/pool",
+ url: "{/literal}{Text::url('autoload/pool')}{literal}",
data: "routers=radius",
cache: false,
success: function(msg) {
diff --git a/ui/ui/admin/vpn/add.tpl b/ui/ui/admin/vpn/add.tpl
index 6eb019ca..d31877df 100644
--- a/ui/ui/admin/vpn/add.tpl
+++ b/ui/ui/admin/vpn/add.tpl
@@ -162,27 +162,4 @@
prePaid()
})
-{if $_c['radius_enable']}
- {literal}
-
- {/literal}
-{/if}
{include file="sections/footer.tpl"}
diff --git a/ui/ui/customer/dashboard.tpl b/ui/ui/customer/dashboard.tpl
index b9cc75af..6cf5aa89 100644
--- a/ui/ui/customer/dashboard.tpl
+++ b/ui/ui/customer/dashboard.tpl
@@ -325,7 +325,7 @@
-
+
{if isset($xfooter)}
{$xfooter}
diff --git a/ui/ui/customer/header-public.tpl b/ui/ui/customer/header-public.tpl
index 4aca520d..07117c41 100644
--- a/ui/ui/customer/header-public.tpl
+++ b/ui/ui/customer/header-public.tpl
@@ -7,6 +7,10 @@
{$_title} - {$_c['CompanyName']}
+
+
diff --git a/ui/ui/customer/header.tpl b/ui/ui/customer/header.tpl
index e43f55db..0a049872 100644
--- a/ui/ui/customer/header.tpl
+++ b/ui/ui/customer/header.tpl
@@ -5,10 +5,13 @@
{$_title} - {$_c['CompanyName']}
+
+
+
-
-
diff --git a/ui/ui/scripts/custom.js b/ui/ui/scripts/custom.js
index 1813ed12..599fa87b 100644
--- a/ui/ui/scripts/custom.js
+++ b/ui/ui/scripts/custom.js
@@ -1,45 +1,45 @@
// radio checked - hotspot plan
$(document).ready(function () {
- $('input[type=radio]').change(function(){
+ $('input[type=radio]').change(function () {
- if ($('#Time_Limit').is(':checked')) {
- $('#DataLimit').hide();
- $('#TimeLimit').show();
- }
- if ($('#Data_Limit').is(':checked')) {
- $('#TimeLimit').hide();
- $('#DataLimit').show();
- }
- if ($('#Both_Limit').is(':checked')) {
- $('#TimeLimit').show();
- $('#DataLimit').show();
- }
+ if ($('#Time_Limit').is(':checked')) {
+ $('#DataLimit').hide();
+ $('#TimeLimit').show();
+ }
+ if ($('#Data_Limit').is(':checked')) {
+ $('#TimeLimit').hide();
+ $('#DataLimit').show();
+ }
+ if ($('#Both_Limit').is(':checked')) {
+ $('#TimeLimit').show();
+ $('#DataLimit').show();
+ }
- if ($('#Unlimited').is(':checked')) {
- $('#Type').hide();
- $('#TimeLimit').hide();
- $('#DataLimit').hide();
- } else {
- $('#Type').show();
- }
+ if ($('#Unlimited').is(':checked')) {
+ $('#Type').hide();
+ $('#TimeLimit').hide();
+ $('#DataLimit').hide();
+ } else {
+ $('#Type').show();
+ }
- if ($('#Hotspot').is(':checked')) {
- $('#p').hide();
- $('#h').show();
- }
- if ($('#PPPOE').is(':checked')) {
- $('#p').show();
- $('#h').hide();
- }
+ if ($('#Hotspot').is(':checked')) {
+ $('#p').hide();
+ $('#h').show();
+ }
+ if ($('#PPPOE').is(':checked')) {
+ $('#p').show();
+ $('#h').hide();
+ }
- });
+ });
});
$("#Hotspot").prop("checked", true).change();
function checkIP(f, id) {
if (f.value.length > 6) {
- $.get('./?_route=autoload/pppoe_ip_used&ip=' + f.value + '&id=' + id, function(data) {
+ $.get(appUrl + '/?_route=autoload/pppoe_ip_used&ip=' + f.value + '&id=' + id, function (data) {
$("#warning_ip").html(data)
});
}
@@ -47,7 +47,7 @@ function checkIP(f, id) {
function checkUsername(f, id) {
if (f.value.length > 1) {
- $.get('./?_route=autoload/pppoe_username_used&u=' + f.value + '&id=' + id, function(data) {
+ $.get(appUrl + '/?_route=autoload/pppoe_username_used&u=' + f.value + '&id=' + id, function (data) {
$("#warning_username").html(data)
});
}
@@ -55,115 +55,115 @@ function checkUsername(f, id) {
//auto load pool - pppoe plan
var htmlobjek;
-$(document).ready(function(){
- $("#routers").change(function(){
- var routers = $("#routers").val();
- $.ajax({
- url: "?_route=autoload/pool",
- data: "routers="+routers,
- cache: false,
- success: function(msg){
- $("#pool_name").html(msg);
- }
- });
- });
+$(document).ready(function () {
+ $("#routers").change(function () {
+ var routers = $("#routers").val();
+ $.ajax({
+ url: appUrl + "/?_route=autoload/pool",
+ data: "routers=" + routers,
+ cache: false,
+ success: function (msg) {
+ $("#pool_name").html(msg);
+ }
+ });
+ });
});
//auto load plans data - recharge user
-$(function() {
- $('input[type=radio]').change(function(){
+$(function () {
+ $('input[type=radio]').change(function () {
if ($('#Hot').is(':checked')) {
+ $.ajax({
+ type: "POST",
+ dataType: "html",
+ url: appUrl + "/?_route=autoload/server",
+ success: function (msg) {
+ $("#server").html(msg);
+ }
+ });
+
+ $("#server").change(getAjaxAlamat);
+ function getAjaxAlamat() {
+ var server = $("#server").val();
$.ajax({
type: "POST",
dataType: "html",
- url: "?_route=autoload/server",
- success: function(msg){
- $("#server").html(msg);
+ url: appUrl + "/?_route=autoload/plan",
+ data: "jenis=Hotspot&server=" + server,
+ success: function (msg) {
+ $("#plan").html(msg);
}
});
-
- $("#server").change(getAjaxAlamat);
- function getAjaxAlamat(){
- var server = $("#server").val();
- $.ajax({
- type: "POST",
- dataType: "html",
- url: "?_route=autoload/plan",
- data: "jenis=Hotspot&server="+server,
- success: function(msg){
- $("#plan").html(msg);
- }
- });
- };
+ };
} else if ($('#POE').is(':checked')) {
+ $.ajax({
+ type: "POST",
+ dataType: "html",
+ url: appUrl + "/?_route=autoload/server",
+ success: function (msg) {
+ $("#server").html(msg);
+ }
+ });
+ $("#server").change(function () {
+ var server = $("#server").val();
$.ajax({
type: "POST",
dataType: "html",
- url: "?_route=autoload/server",
- success: function(msg){
- $("#server").html(msg);
+ url: appUrl + "/?_route=autoload/plan",
+ data: "jenis=PPPOE&server=" + server,
+ success: function (msg) {
+ $("#plan").html(msg);
}
});
- $("#server").change(function(){
- var server = $("#server").val();
- $.ajax({
- type: "POST",
- dataType: "html",
- url: "?_route=autoload/plan",
- data: "jenis=PPPOE&server="+server,
- success: function(msg){
- $("#plan").html(msg);
- }
- });
- });
+ });
} else {
+ $.ajax({
+ type: "POST",
+ dataType: "html",
+ url: appUrl + "/?_route=autoload/server",
+ success: function (msg) {
+ $("#server").html(msg);
+ }
+ });
+ $("#server").change(function () {
+ var server = $("#server").val();
$.ajax({
type: "POST",
dataType: "html",
- url: "?_route=autoload/server",
- success: function(msg){
- $("#server").html(msg);
+ url: appUrl + "/?_route=autoload/plan",
+ data: "jenis=VPN&server=" + server,
+ success: function (msg) {
+ $("#plan").html(msg);
}
});
- $("#server").change(function(){
- var server = $("#server").val();
- $.ajax({
- type: "POST",
- dataType: "html",
- url: "?_route=autoload/plan",
- data: "jenis=VPN&server="+server,
- success: function(msg){
- $("#plan").html(msg);
- }
- });
- });
+ });
}
- });
+ });
});
function showPrivacy() {
- $('#HTMLModal_title').html('Privacy Policy');
- $('#HTMLModal_konten').html('
');
- $('#HTMLModal').modal({
- 'show': true,
- 'backdrop': false,
- });
- $.get('pages/Privacy_Policy.html?' + (new Date()), function(data) {
- $('#HTMLModal_konten').html(data);
- });
+ $('#HTMLModal_title').html('Privacy Policy');
+ $('#HTMLModal_konten').html('
');
+ $('#HTMLModal').modal({
+ 'show': true,
+ 'backdrop': false,
+ });
+ $.get('pages/Privacy_Policy.html?' + (new Date()), function (data) {
+ $('#HTMLModal_konten').html(data);
+ });
}
function showTaC() {
- $('#HTMLModal_title').html('Terms and Conditions');
- $('#HTMLModal_konten').html('
');
- $('#HTMLModal').modal({
- 'show': true,
- 'backdrop': false,
- });
- $.get('pages/Terms_and_Conditions.html?' + (new Date()), function(data) {
- $('#HTMLModal_konten').html(data);
- $('#HTMLModal').modal('handleUpdate')
- });
+ $('#HTMLModal_title').html('Terms and Conditions');
+ $('#HTMLModal_konten').html('
');
+ $('#HTMLModal').modal({
+ 'show': true,
+ 'backdrop': false,
+ });
+ $.get('pages/Terms_and_Conditions.html?' + (new Date()), function (data) {
+ $('#HTMLModal_konten').html(data);
+ $('#HTMLModal').modal('handleUpdate')
+ });
}
\ No newline at end of file