fix javascript
This commit is contained in:
parent
5feeb2625e
commit
fbe541ef9c
@ -1024,5 +1024,6 @@
|
|||||||
"Don_t_forget_to_deactivate_all_active_package_too": "Don't forget to deactivate all active package too",
|
"Don_t_forget_to_deactivate_all_active_package_too": "Don't forget to deactivate all active package too",
|
||||||
"Continue_the_Customer_Data_change_process_": "Continue the Customer Data change process?",
|
"Continue_the_Customer_Data_change_process_": "Continue the Customer Data change process?",
|
||||||
"Oops__The_page_you_are_looking_for_was_not_found": "Oops! The page you are looking for was not found",
|
"Oops__The_page_you_are_looking_for_was_not_found": "Oops! The page you are looking for was not found",
|
||||||
"Back_to_Dashboard": "Back to Dashboard"
|
"Back_to_Dashboard": "Back to Dashboard",
|
||||||
|
"Continue_the_VPN_creation_process_": "Continue the VPN creation process?"
|
||||||
}
|
}
|
@ -13,7 +13,7 @@
|
|||||||
<script src="{$app_url}/ui/ui/scripts/plugins/select2.min.js"></script>
|
<script src="{$app_url}/ui/ui/scripts/plugins/select2.min.js"></script>
|
||||||
<script src="{$app_url}/ui/ui/scripts/pace.min.js"></script>
|
<script src="{$app_url}/ui/ui/scripts/pace.min.js"></script>
|
||||||
<script src="{$app_url}/ui/ui/summernote/summernote.min.js"></script>
|
<script src="{$app_url}/ui/ui/summernote/summernote.min.js"></script>
|
||||||
<script src="{$app_url}/ui/ui/scripts/custom.js"></script>
|
<script src="{$app_url}/ui/ui/scripts/custom.js?2025.2.5"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.getElementById('openSearch').addEventListener('click', function () {
|
document.getElementById('openSearch').addEventListener('click', function () {
|
||||||
|
@ -7,8 +7,11 @@
|
|||||||
<title>{$_title} - {$_c['CompanyName']}</title>
|
<title>{$_title} - {$_c['CompanyName']}</title>
|
||||||
<link rel="shortcut icon" href="{$app_url}/ui/ui/images/logo.png" type="image/x-icon" />
|
<link rel="shortcut icon" href="{$app_url}/ui/ui/images/logo.png" type="image/x-icon" />
|
||||||
|
|
||||||
<link rel="stylesheet" href="{$app_url}/ui/ui/styles/bootstrap.min.css">
|
<script>
|
||||||
|
var appUrl = '{$app_url}';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="{$app_url}/ui/ui/styles/bootstrap.min.css">
|
||||||
<link rel="stylesheet" href="{$app_url}/ui/ui/fonts/ionicons/css/ionicons.min.css">
|
<link rel="stylesheet" href="{$app_url}/ui/ui/fonts/ionicons/css/ionicons.min.css">
|
||||||
<link rel="stylesheet" href="{$app_url}/ui/ui/fonts/font-awesome/css/font-awesome.min.css">
|
<link rel="stylesheet" href="{$app_url}/ui/ui/fonts/font-awesome/css/font-awesome.min.css">
|
||||||
<link rel="stylesheet" href="{$app_url}/ui/ui/styles/modern-AdminLTE.min.css">
|
<link rel="stylesheet" href="{$app_url}/ui/ui/styles/modern-AdminLTE.min.css">
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{include file="sections/header.tpl"}
|
{include file="sections/header.tpl"}
|
||||||
|
|
||||||
|
|
||||||
<form id="site-search" method="post" action="{Text::url('')}map/customer/">
|
<form id="site-search" method="post" action="{Text::url('map/customer/')}">
|
||||||
<input type="hidden" name="_route" value="map/customer">
|
<input type="hidden" name="_route" value="map/customer">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-addon">
|
<div class="input-group-addon">
|
||||||
|
@ -184,7 +184,7 @@
|
|||||||
document.getElementById("routers").required = false;
|
document.getElementById("routers").required = false;
|
||||||
document.getElementById("routers").disabled = true;
|
document.getElementById("routers").disabled = true;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "?_route=autoload/pool",
|
url: "{/literal}{Text::url('autoload/pool')}{literal}",
|
||||||
data: "routers=radius",
|
data: "routers=radius",
|
||||||
cache: false,
|
cache: false,
|
||||||
success: function(msg) {
|
success: function(msg) {
|
||||||
|
@ -162,27 +162,4 @@
|
|||||||
prePaid()
|
prePaid()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
{if $_c['radius_enable']}
|
|
||||||
{literal}
|
|
||||||
<script>
|
|
||||||
function isRadius(cek) {
|
|
||||||
if (cek.checked) {
|
|
||||||
document.getElementById("routers").required = false;
|
|
||||||
document.getElementById("routers").disabled = true;
|
|
||||||
$.ajax({
|
|
||||||
url: "?_route=autoload/pool",
|
|
||||||
data: "routers=radius",
|
|
||||||
cache: false,
|
|
||||||
success: function(msg) {
|
|
||||||
$("#pool_name").html(msg);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
document.getElementById("routers").required = true;
|
|
||||||
document.getElementById("routers").disabled = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
{/literal}
|
|
||||||
{/if}
|
|
||||||
{include file="sections/footer.tpl"}
|
{include file="sections/footer.tpl"}
|
||||||
|
@ -325,7 +325,7 @@
|
|||||||
<script>
|
<script>
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "?_route=autoload_user/isLogin/{$_bill['id']}",
|
url: "{Text::url('autoload_user/isLogin/')}{$_bill['id']}",
|
||||||
cache: false,
|
cache: false,
|
||||||
success: function(msg) {
|
success: function(msg) {
|
||||||
$("#login_status_{$_bill['id']}").html(msg);
|
$("#login_status_{$_bill['id']}").html(msg);
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
<script src="{$app_url}/ui/ui/scripts/adminlte.min.js"></script>
|
<script src="{$app_url}/ui/ui/scripts/adminlte.min.js"></script>
|
||||||
|
|
||||||
<script src="{$app_url}/ui/ui/scripts/plugins/select2.min.js"></script>
|
<script src="{$app_url}/ui/ui/scripts/plugins/select2.min.js"></script>
|
||||||
<script src="{$app_url}/ui/ui/scripts/custom.js?v=2"></script>
|
<script src="{$app_url}/ui/ui/scripts/custom.js?2025.2.5"></script>
|
||||||
|
|
||||||
{if isset($xfooter)}
|
{if isset($xfooter)}
|
||||||
{$xfooter}
|
{$xfooter}
|
||||||
|
@ -7,6 +7,10 @@
|
|||||||
<title>{$_title} - {$_c['CompanyName']}</title>
|
<title>{$_title} - {$_c['CompanyName']}</title>
|
||||||
<link rel="shortcut icon" href="{$app_url}/ui/ui/images/logo.png" type="image/x-icon" />
|
<link rel="shortcut icon" href="{$app_url}/ui/ui/images/logo.png" type="image/x-icon" />
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var appUrl = '{$app_url}';
|
||||||
|
</script>
|
||||||
|
|
||||||
<link rel="stylesheet" href="{$app_url}/ui/ui/styles/bootstrap.min.css">
|
<link rel="stylesheet" href="{$app_url}/ui/ui/styles/bootstrap.min.css">
|
||||||
<link rel="stylesheet" href="{$app_url}/ui/ui/styles/modern-AdminLTE.min.css">
|
<link rel="stylesheet" href="{$app_url}/ui/ui/styles/modern-AdminLTE.min.css">
|
||||||
<link rel="stylesheet" href="{$app_url}/ui/ui/styles/sweetalert2.min.css" />
|
<link rel="stylesheet" href="{$app_url}/ui/ui/styles/sweetalert2.min.css" />
|
||||||
|
@ -5,10 +5,13 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>{$_title} - {$_c['CompanyName']}</title>
|
<title>{$_title} - {$_c['CompanyName']}</title>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
var appUrl = '{$app_url}';
|
||||||
|
</script>
|
||||||
|
|
||||||
<link rel="shortcut icon" href="{$app_url}/ui/ui/images/logo.png" type="image/x-icon" />
|
<link rel="shortcut icon" href="{$app_url}/ui/ui/images/logo.png" type="image/x-icon" />
|
||||||
|
|
||||||
<link rel="stylesheet" href="{$app_url}/ui/ui/styles/bootstrap.min.css">
|
<link rel="stylesheet" href="{$app_url}/ui/ui/styles/bootstrap.min.css">
|
||||||
|
|
||||||
<link rel="stylesheet" href="{$app_url}/ui/ui/fonts/ionicons/css/ionicons.min.css">
|
<link rel="stylesheet" href="{$app_url}/ui/ui/fonts/ionicons/css/ionicons.min.css">
|
||||||
<link rel="stylesheet" href="{$app_url}/ui/ui/fonts/font-awesome/css/font-awesome.min.css">
|
<link rel="stylesheet" href="{$app_url}/ui/ui/fonts/font-awesome/css/font-awesome.min.css">
|
||||||
<link rel="stylesheet" href="{$app_url}/ui/ui/styles/modern-AdminLTE.min.css">
|
<link rel="stylesheet" href="{$app_url}/ui/ui/styles/modern-AdminLTE.min.css">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// radio checked - hotspot plan
|
// radio checked - hotspot plan
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('input[type=radio]').change(function(){
|
$('input[type=radio]').change(function () {
|
||||||
|
|
||||||
if ($('#Time_Limit').is(':checked')) {
|
if ($('#Time_Limit').is(':checked')) {
|
||||||
$('#DataLimit').hide();
|
$('#DataLimit').hide();
|
||||||
@ -39,7 +39,7 @@ $("#Hotspot").prop("checked", true).change();
|
|||||||
|
|
||||||
function checkIP(f, id) {
|
function checkIP(f, id) {
|
||||||
if (f.value.length > 6) {
|
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)
|
$("#warning_ip").html(data)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -47,7 +47,7 @@ function checkIP(f, id) {
|
|||||||
|
|
||||||
function checkUsername(f, id) {
|
function checkUsername(f, id) {
|
||||||
if (f.value.length > 1) {
|
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)
|
$("#warning_username").html(data)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -55,14 +55,14 @@ function checkUsername(f, id) {
|
|||||||
|
|
||||||
//auto load pool - pppoe plan
|
//auto load pool - pppoe plan
|
||||||
var htmlobjek;
|
var htmlobjek;
|
||||||
$(document).ready(function(){
|
$(document).ready(function () {
|
||||||
$("#routers").change(function(){
|
$("#routers").change(function () {
|
||||||
var routers = $("#routers").val();
|
var routers = $("#routers").val();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "?_route=autoload/pool",
|
url: appUrl + "/?_route=autoload/pool",
|
||||||
data: "routers="+routers,
|
data: "routers=" + routers,
|
||||||
cache: false,
|
cache: false,
|
||||||
success: function(msg){
|
success: function (msg) {
|
||||||
$("#pool_name").html(msg);
|
$("#pool_name").html(msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -70,27 +70,27 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
//auto load plans data - recharge user
|
//auto load plans data - recharge user
|
||||||
$(function() {
|
$(function () {
|
||||||
$('input[type=radio]').change(function(){
|
$('input[type=radio]').change(function () {
|
||||||
if ($('#Hot').is(':checked')) {
|
if ($('#Hot').is(':checked')) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
dataType: "html",
|
dataType: "html",
|
||||||
url: "?_route=autoload/server",
|
url: appUrl + "/?_route=autoload/server",
|
||||||
success: function(msg){
|
success: function (msg) {
|
||||||
$("#server").html(msg);
|
$("#server").html(msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#server").change(getAjaxAlamat);
|
$("#server").change(getAjaxAlamat);
|
||||||
function getAjaxAlamat(){
|
function getAjaxAlamat() {
|
||||||
var server = $("#server").val();
|
var server = $("#server").val();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
dataType: "html",
|
dataType: "html",
|
||||||
url: "?_route=autoload/plan",
|
url: appUrl + "/?_route=autoload/plan",
|
||||||
data: "jenis=Hotspot&server="+server,
|
data: "jenis=Hotspot&server=" + server,
|
||||||
success: function(msg){
|
success: function (msg) {
|
||||||
$("#plan").html(msg);
|
$("#plan").html(msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -100,19 +100,19 @@ $(function() {
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
dataType: "html",
|
dataType: "html",
|
||||||
url: "?_route=autoload/server",
|
url: appUrl + "/?_route=autoload/server",
|
||||||
success: function(msg){
|
success: function (msg) {
|
||||||
$("#server").html(msg);
|
$("#server").html(msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("#server").change(function(){
|
$("#server").change(function () {
|
||||||
var server = $("#server").val();
|
var server = $("#server").val();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
dataType: "html",
|
dataType: "html",
|
||||||
url: "?_route=autoload/plan",
|
url: appUrl + "/?_route=autoload/plan",
|
||||||
data: "jenis=PPPOE&server="+server,
|
data: "jenis=PPPOE&server=" + server,
|
||||||
success: function(msg){
|
success: function (msg) {
|
||||||
$("#plan").html(msg);
|
$("#plan").html(msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -121,19 +121,19 @@ $(function() {
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
dataType: "html",
|
dataType: "html",
|
||||||
url: "?_route=autoload/server",
|
url: appUrl + "/?_route=autoload/server",
|
||||||
success: function(msg){
|
success: function (msg) {
|
||||||
$("#server").html(msg);
|
$("#server").html(msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("#server").change(function(){
|
$("#server").change(function () {
|
||||||
var server = $("#server").val();
|
var server = $("#server").val();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
dataType: "html",
|
dataType: "html",
|
||||||
url: "?_route=autoload/plan",
|
url: appUrl + "/?_route=autoload/plan",
|
||||||
data: "jenis=VPN&server="+server,
|
data: "jenis=VPN&server=" + server,
|
||||||
success: function(msg){
|
success: function (msg) {
|
||||||
$("#plan").html(msg);
|
$("#plan").html(msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -150,7 +150,7 @@ function showPrivacy() {
|
|||||||
'show': true,
|
'show': true,
|
||||||
'backdrop': false,
|
'backdrop': false,
|
||||||
});
|
});
|
||||||
$.get('pages/Privacy_Policy.html?' + (new Date()), function(data) {
|
$.get('pages/Privacy_Policy.html?' + (new Date()), function (data) {
|
||||||
$('#HTMLModal_konten').html(data);
|
$('#HTMLModal_konten').html(data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -162,7 +162,7 @@ function showTaC() {
|
|||||||
'show': true,
|
'show': true,
|
||||||
'backdrop': false,
|
'backdrop': false,
|
||||||
});
|
});
|
||||||
$.get('pages/Terms_and_Conditions.html?' + (new Date()), function(data) {
|
$.get('pages/Terms_and_Conditions.html?' + (new Date()), function (data) {
|
||||||
$('#HTMLModal_konten').html(data);
|
$('#HTMLModal_konten').html(data);
|
||||||
$('#HTMLModal').modal('handleUpdate')
|
$('#HTMLModal').modal('handleUpdate')
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user