No changes

This commit is contained in:
Frank Harris 2025-09-11 13:29:15 -04:00
parent 8680a02b13
commit b6b398f5bf
17374 changed files with 2475441 additions and 0 deletions

View file

@ -0,0 +1,4 @@
.main .img-circle {
width: 2.1rem;
height: 2.1rem;
}

View file

@ -0,0 +1,57 @@
$(document).ready(function()
{
var d = new Date();
$('.main').addClass('simple-billing');
$('.main > style').remove();
$('.main > h4').each(function()
{
$(this).replaceWith('<div class="callout callout-info">'+$(this).text()+'</div>');
});
$('input[name="remove"]').addClass('btn-danger');
$('.main table').removeAttr('style');
$('.main [href^="?m=user_admin"]').each(function()
{
var thisUserProfileLink = $(this).attr('href');
var thisUserId = new URLSearchParams(thisUserProfileLink).get('user_id');
var setThisUserAvatar = 'themes/AdminLTE/dist/img/default-avatar.png';
$(this).parent('td').prepend('<img src="'+setThisUserAvatar+'" class="img-circle elevation-2 mr-2" alt="User Image">');
var thisUserImage = $(this).parent('td').find('img');
if(thisUserId)
{
if(!localStorage.getItem('avatar_' + thisUserId))
{
// set loading avatar
$(thisUserImage).attr('src', 'themes/AdminLTE/dist/img/spinner.gif?'+ d.getTime()).removeClass('elevation-2');
// load avatar from db
$.ajax({
cache: false,
async: true,
type: 'GET',
url: 'themes/AdminLTE/dist/php/settings.php?m=user&p=getavatar&userid=' + thisUserId,
success: function(avatar)
{
// set avatar cache
localStorage.setItem('avatar_' + thisUserId, avatar);
// set user avatar
$(thisUserImage).attr('src', avatar + "?" + d.getTime()).addClass('elevation-2');
}
});
}else
{
// set user avatar variable
setThisUserAvatar = localStorage.getItem('avatar_' + thisUserId);
}
}
$(thisUserImage).attr('src', setThisUserAvatar + "?" + d.getTime());
});
});

View file

@ -0,0 +1,5 @@
select[name="service_id"] {
display: inline-block;
width: auto;
margin-right: 0.25rem;
}

View file

@ -0,0 +1,5 @@
$(document).ready(function()
{
$('.main').addClass('services');
$('.main input[value="'+langConsts['OGP_LANG_remove_service']+'"]').removeClass('btn-primary').addClass('btn-danger');
});

View file

@ -0,0 +1,38 @@
.main [href="?m=simple-billing&p=cart"] > img {
display: none;
}
.main [href="?m=simple-billing&p=cart"] .fa {
margin-right: 5px;
}
.shop-item:hover {
cursor: pointer;
}
.widget-user .widget-user-image {
position: absolute;
top: 25% !important;
margin-left: auto !important;
margin-right: auto !important;
left: 0 !important;
right: 0 !important;
text-align: center !important;
}
.widget-user .widget-user-image > img {
width: 200px !important;
-webkit-transition: all 0.4s;
transition: all 0.4s;
}
.shop-item:hover .widget-user-image img {
width: 210px !important;
}
.widget-user .widget-user-username {
line-height: 0.9;
}
.main > div:not(.shop-items) > div {
text-align: center;
}

View file

@ -0,0 +1,68 @@
$(document).ready(function()
{
$('.main [href="?m=simple-billing&p=cart"]').addClass('btn btn-sm btn-primary').prepend('<i class="fa fa-shopping-cart" aria-hidden="true"></i>');
$('.main > table').addClass('mb-2');
$('.main').append('<div class="shop-items d-flex flex-wrap"></div>');
if($('form[action^="?m=simple-billing&p=add_to_cart"]').length==0)
{
$('.main > div:not(.shop-items) > div').each(function()
{
if($(this).find('[type="image"]').length > 0)
{
var serviceImage = $(this).find('[type="image"]');
}else
{
var serviceImage = $(this).find('img');
}
var serviceId = $(this).find('[name="service_id"]').val();
var serviceTitle = $(this).find('center').first().text();
var serviceCost = $(this).find('center').last().find('em').html();
var serviceImageSrc = $(serviceImage).attr('src');
var serviceImageAlt = $(serviceImage).attr('alt');
var serviceImageVal = $(serviceImage).val();
var newItem = '\
<div class="col-xl-3 col-lg-4 col-md-6 col-sm-6 col-12">\
<form action="" method="POST">\
<input name="service_id" type="hidden" value="'+serviceId+'" class="form-control">\
<div class="card card-widget widget-user shadow shop-item">\
<div class="widget-user-header bg-secondary">\
<h3 class="widget-user-username">'+serviceTitle+'</h3>\
</div>\
<div class="widget-user-image">\
<img class="elevation-2" src="'+serviceImageSrc+'" alt="'+serviceImageAlt+'">\
</div>\
<div class="card-footer">\
<div class="d-flex justify-content-around flex-row flex-wrap">\
<div class="description-block d-inline-block mx-2">\
<h5 class="description-header">'+langConsts['OGP_LANG_starting_on']+'</h5>\
<span class="description-text">'+serviceCost.split(' ')[2]+'</span>\
</div>\
<div class="description-block d-inline-block mx-2">\
<h5 class="description-header">'+serviceCost.split('(')[1].split(')')[0].split(' ')[0]+'</h5>\
<span class="description-text">'+serviceCost.split('(')[1].split(')')[0].split(' ')[1]+'</span>\
</div>\
</div>\
</div>\
</div>\
</form>\
</div>\
';
$('.main .shop-items').append(newItem);
});
$('.main > div:not(.shop-items)').remove();
}
});
$(window).load(function()
{
$('.shop-items form').click(function()
{
$(this).submit();
});
});

View file

@ -0,0 +1,30 @@
.main [href="?m=simple-billing&p=cart"] > img {
display: none;
}
.main [href="?m=simple-billing&p=cart"] .fa {
margin-right: 5px;
}
.widget-user .widget-user-image {
position: absolute;
top: 25% !important;
margin-left: auto !important;
margin-right: auto !important;
left: 0 !important;
right: 0 !important;
text-align: center !important;
}
.widget-user .widget-user-image > img {
width: 200px !important;
-webkit-transition: all 0.4s;
transition: all 0.4s;
}
.shop-item:hover .widget-user-image img {
width: 210px !important;
}
.widget-user .widget-user-username {
line-height: 0.9;
}

View file

@ -0,0 +1,71 @@
$(document).ready(function()
{
/* *** Invalid Image replacement *** */
$('.main img, .main input[type="image"]').error(function()
{
$(this).unbind("error").attr("src", "themes/AdminLTE/dist/img/image_not_found.png").attr("style", "max-width:250px;").removeAttr('height');
});
$('.main > p:first-of-type').css("background-color", "").css("color", "");
$('p > [href="?m=register&p=form"], p > [href="index.php"]').addClass('btn').addClass('btn-xs').addClass('btn-primary');
});
$(window).load(function()
{
$('.main [href="?m=simple-billing&p=cart"]').addClass('btn btn-sm btn-primary').prepend('<i class="fa fa-shopping-cart" aria-hidden="true"></i>');
$('.main > table').addClass('mb-2');
$('.main .card-body').append('<div class="shop-items row d-flex flex-wrap"></div>');
$('.main .card-body > div > div').each(function()
{
if($(this).find('[type="image"]').length > 0)
{
var serviceImage = $(this).find('[type="image"]');
}else
{
var serviceImage = $(this).find('img');
}
var serviceId = $(this).find('[name="service_id"]').val();
var serviceTitle = $(this).find('center').first().text();
var serviceCost = $(this).find('center').last().find('em').html();
var serviceImageSrc = $(serviceImage).attr('src');
var serviceImageAlt = $(serviceImage).attr('alt');
var serviceImageVal = $(serviceImage).val();
var newItem = '\
<div class="col-xl-4 col-lg-6 col-md-6 col-sm-6 col-12">\
<div class="card card-widget widget-user shadow shop-item">\
<div class="widget-user-header bg-secondary">\
<h3 class="widget-user-username">'+serviceTitle+'</h3>\
</div>\
<div class="widget-user-image">\
<img class="elevation-2" src="'+serviceImageSrc+'" alt="'+serviceImageAlt+'">\
</div>\
<div class="card-footer">\
<div class="d-flex justify-content-around flex-row flex-wrap">\
<div class="description-block d-inline-block mx-2">\
<h5 class="description-header">'+langConsts['OGP_LANG_starting_on']+'</h5>\
<span class="description-text">'+serviceCost.split(' ')[2]+'</span>\
</div>\
<div class="description-block d-inline-block mx-2">\
<h5 class="description-header">'+serviceCost.split('(')[1].split(')')[0].split(' ')[0]+'</h5>\
<span class="description-text">'+serviceCost.split('(')[1].split(')')[0].split(' ')[1]+'</span>\
</div>\
</div>\
</div>\
</div>\
</div>\
';
$('.main .card-body .shop-items').append(newItem);
});
$('.main .card-body > div:not(.shop-items)').remove();
$('.shop-item form').click(function()
{
$(this).submit();
});
});

View file

@ -0,0 +1,4 @@
$(document).ready(function() {
$('.main > style:nth-child(2)').remove();
});