force sync from /var/www/html/panel: 2025-09-08T20:36:30Z
This commit is contained in:
commit
4f717c9ee8
18119 changed files with 2566034 additions and 0 deletions
26
ControlPanel/themes/MasterControlProgram/modules/administration/main.css
Executable file
26
ControlPanel/themes/MasterControlProgram/modules/administration/main.css
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
.admin-buttons {
|
||||
display: inline-block;
|
||||
width: 160px;
|
||||
height: 110px;
|
||||
text-align: center;
|
||||
border-radius: 4px;
|
||||
padding: 5px;
|
||||
margin: 0px 5px 5px 0px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.admin-buttons div {
|
||||
line-height: 16px;
|
||||
max-height: 32px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.admin-buttons:before {
|
||||
font-size: 48px;
|
||||
}
|
||||
.admin-buttons img,
|
||||
.admin-buttons br
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
.admin-buttons:hover {
|
||||
background-position: 0 -90px !important;
|
||||
}
|
||||
50
ControlPanel/themes/MasterControlProgram/modules/administration/main.js
Executable file
50
ControlPanel/themes/MasterControlProgram/modules/administration/main.js
Executable file
|
|
@ -0,0 +1,50 @@
|
|||
$(document).ready(function(){
|
||||
/* *** Administration Button - Removing all TD/TR *** */
|
||||
$('.row > .main').prepend('<table class="administration-table table table-sm"><tbody><tr><td><div class="flex-container"></div></td></tr></table>');
|
||||
$('.row > .main').prepend('<h2>'+$('.main h2:nth-of-type(1)').html()+'</h2>');
|
||||
$('.row > .main .administration-table:nth-of-type(2) td:not(.administration-buttons-hmargin)').each(function() {
|
||||
$('.flex-container').append($(this).html());
|
||||
});
|
||||
$('.row > .main h2:nth-of-type(2)').remove();
|
||||
$('.row > .main .administration-table:nth-of-type(2)').remove();
|
||||
|
||||
$('.row > .main .administration-table [href^="?m=administration&p=iframe&external_link="]').addClass('btn-primary').addClass('admin-buttons');
|
||||
$('.row > .main .administration-table [href^="?m=administration&p=iframe&external_link="]').wrapInner('<div></div>');
|
||||
|
||||
$('.row > .main button[name="restore"]').removeClass('btn-primary').addClass('btn-danger');
|
||||
|
||||
/* *** Buttons Order adding TR's *** */
|
||||
var td = $('.row > .main > table:last-of-type td');
|
||||
var width = $(window).width();
|
||||
|
||||
if(width >= 1025){
|
||||
var cutter = 5;
|
||||
}else if(width <= 1024 && width >= 769){
|
||||
var cutter = 4;
|
||||
}else if(width <= 768 && width >= 481){
|
||||
var cutter = 3;
|
||||
}else if(width <= 480 && width >= 321){
|
||||
var cutter = 2;
|
||||
}else if(width <= 320){
|
||||
var cutter = 1;
|
||||
}
|
||||
|
||||
td.each(function(i){
|
||||
$(this).removeAttr('colspan');
|
||||
if (i % cutter == 0) {
|
||||
td.slice(i, i+cutter).wrapAll('<tr/>')
|
||||
}
|
||||
}).parent('tr').unwrap();
|
||||
$('.row > .main > table:last-of-type tr').each(function(){
|
||||
if($.trim($(this).html())=='') { $(this).remove(); }
|
||||
});
|
||||
var td_cnt = $('.row > .main > table:last-of-type tr:last-of-type td').length;
|
||||
var col_diff = cutter - td_cnt + 1;
|
||||
$('.row > .main > table:last-of-type tr:last-of-type td:last-of-type').attr('colspan', col_diff);
|
||||
|
||||
$('.row > .main > table:last-of-type form').remove();
|
||||
$('.row > .main > table:last-of-type').wrap('<form method="POST" \>');
|
||||
|
||||
|
||||
$('.row > .main .remove-button').replaceWith('<button type="submit" class="btn btn-xs btn-danger" class="remove-button" onclick="this.form.submit();"><i class="fa fa-trash" aria-hidden="true"></i></button>');
|
||||
});
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
$(document).ready(function() {
|
||||
$('table').addClass('table').addClass('table-sm').addClass('table-striped').removeAttr('style');
|
||||
var inputs = $('input, textarea, select').not(':input[type=button], :input[type=submit], :input[type=reset], :input[type=radio], :input[type=checkbox], :input[type=image]');
|
||||
$(inputs).addClass('form-control').removeAttr('style');
|
||||
|
||||
$('[name="remove_log"]').replaceWith('<button type="submit" class="btn btn-xs btn-danger" name="remove_log" onclick="this.form.submit();"><i class="fa fa-trash" aria-hidden="true"></i></button>');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue