commit
f154322f99
@ -99,9 +99,6 @@ if (isset($_GET['recharge']) && !empty($_GET['recharge'])) {
|
|||||||
if(!$plan['enabled']){
|
if(!$plan['enabled']){
|
||||||
r2(U . "home", 'e', 'Plan is not exists');
|
r2(U . "home", 'e', 'Plan is not exists');
|
||||||
}
|
}
|
||||||
if($plan['allow_purchase'] != 'yes'){
|
|
||||||
r2(U . "home", 'e', 'Cannot recharge this plan');
|
|
||||||
}
|
|
||||||
if ($user['balance'] > $plan['price']) {
|
if ($user['balance'] > $plan['price']) {
|
||||||
r2(U . "order/pay/$router[id]/$bill[plan_id]", 'e', 'Order Plan');
|
r2(U . "order/pay/$router[id]/$bill[plan_id]", 'e', 'Order Plan');
|
||||||
} else {
|
} else {
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
if (el.addEventListener) { // all browsers except IE before version 9
|
if (el.addEventListener) { // all browsers except IE before version 9
|
||||||
el.addEventListener("click", function() {
|
el.addEventListener("click", function() {
|
||||||
$(this).html(
|
$(this).html(
|
||||||
`<span class="glyphicon glyphicon-refresh" role="status" aria-hidden="true"></span>`
|
`<span class="loading"></span>`
|
||||||
);
|
);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
$(this).prop("disabled", true);
|
$(this).prop("disabled", true);
|
||||||
@ -37,7 +37,7 @@
|
|||||||
if (el.attachEvent) { // IE before version 9
|
if (el.attachEvent) { // IE before version 9
|
||||||
el.attachEvent("click", function() {
|
el.attachEvent("click", function() {
|
||||||
$(this).html(
|
$(this).html(
|
||||||
`<span class="glyphicon glyphicon-refresh" role="status" aria-hidden="true"></span>`
|
`<span class="loading"></span>`
|
||||||
);
|
);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
$(this).prop("disabled", true);
|
$(this).prop("disabled", true);
|
||||||
|
@ -57,8 +57,36 @@
|
|||||||
max-height: 1em;
|
max-height: 1em;
|
||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
|
|
||||||
|
|
||||||
|
.loading {
|
||||||
|
pointer-events: none;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loading::after {
|
||||||
|
content: "";
|
||||||
|
display: inline-block;
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin-left: 10px;
|
||||||
|
border: 2px solid #fff;
|
||||||
|
border-top-color: transparent;
|
||||||
|
border-radius: 50%;
|
||||||
|
animation: spin 0.8s infinite linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
0% {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
{if isset($xheader)}
|
{if isset($xheader)}
|
||||||
{$xheader}
|
{$xheader}
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -85,7 +85,7 @@
|
|||||||
if (el.addEventListener) { // all browsers except IE before version 9
|
if (el.addEventListener) { // all browsers except IE before version 9
|
||||||
el.addEventListener("click", function() {
|
el.addEventListener("click", function() {
|
||||||
$(this).html(
|
$(this).html(
|
||||||
`<span class="glyphicon glyphicon-refresh" role="status" aria-hidden="true"></span>`
|
`<span class="loading"></span>`
|
||||||
);
|
);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
$(this).prop("disabled", true);
|
$(this).prop("disabled", true);
|
||||||
@ -95,7 +95,7 @@
|
|||||||
if (el.attachEvent) { // IE before version 9
|
if (el.attachEvent) { // IE before version 9
|
||||||
el.attachEvent("click", function() {
|
el.attachEvent("click", function() {
|
||||||
$(this).html(
|
$(this).html(
|
||||||
`<span class="glyphicon glyphicon-refresh" role="status" aria-hidden="true"></span>`
|
`<span class="loading"></span>`
|
||||||
);
|
);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
$(this).prop("disabled", true);
|
$(this).prop("disabled", true);
|
||||||
|
@ -37,6 +37,35 @@
|
|||||||
margin-top: 100px;
|
margin-top: 100px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.loading {
|
||||||
|
pointer-events: none;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loading::after {
|
||||||
|
content: "";
|
||||||
|
display: inline-block;
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin-left: 10px;
|
||||||
|
border: 2px solid #fff;
|
||||||
|
border-top-color: transparent;
|
||||||
|
border-radius: 50%;
|
||||||
|
animation: spin 0.8s infinite linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
0% {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
{if isset($xheader)}
|
{if isset($xheader)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user