From 5b06701fdc664b685b06eb98323588fbbf47e088 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Sun, 21 Jun 2015 20:30:20 +0300 Subject: [PATCH] Sort_by feature --- web/templates/admin/list_backup.html | 5 +- web/templates/admin/list_backup_detail.html | 18 ++--- .../admin/list_backup_exclusions.html | 4 +- web/templates/admin/list_cron.html | 16 +++-- web/templates/admin/list_db.html | 30 ++++++--- web/templates/admin/list_dns.html | 60 ++++++++++++----- web/templates/admin/list_dns_rec.html | 4 +- web/templates/admin/list_firewall.html | 21 ++++-- .../admin/list_firewall_banlist.html | 12 ++-- web/templates/admin/list_ip.html | 31 +++++---- web/templates/admin/list_log.html | 4 +- web/templates/admin/list_mail.html | 19 ++++-- web/templates/admin/list_mail_acc.html | 21 +++--- web/templates/admin/list_packages.html | 16 +++-- web/templates/admin/list_rrd.html | 4 +- web/templates/admin/list_search.html | 9 +-- web/templates/admin/list_services.html | 14 +--- web/templates/admin/list_stats.html | 9 ++- web/templates/admin/list_updates.html | 11 ++- web/templates/admin/list_user.html | 19 ++++-- web/templates/admin/list_web.html | 24 ++++--- web/templates/footer.html | 67 +++++++++++++++---- web/templates/header.html | 1 + web/templates/user/list_cron.html | 16 +++-- web/templates/user/list_db.html | 52 +++++++------- web/templates/user/list_dns.html | 22 ++++-- web/templates/user/list_dns_rec.html | 8 +-- web/templates/user/list_mail.html | 19 ++++-- web/templates/user/list_mail_acc.html | 20 ++++-- web/templates/user/list_search.html | 9 +-- web/templates/user/list_stats.html | 10 +-- web/templates/user/list_user.html | 17 +++-- web/templates/user/list_web.html | 18 +++-- 33 files changed, 398 insertions(+), 212 deletions(-) diff --git a/web/templates/admin/list_backup.html b/web/templates/admin/list_backup.html index 13a6e9ed8..81182e8c7 100644 --- a/web/templates/admin/list_backup.html +++ b/web/templates/admin/list_backup.html @@ -44,7 +44,7 @@ -
+
$value) { ++$i; @@ -142,7 +142,7 @@
-
+ @@ -154,6 +154,7 @@
+
-
- - +
-
-
-
+ @@ -144,7 +140,7 @@
-
+ @@ -192,7 +188,7 @@
-
+ @@ -239,7 +235,7 @@
-
+ @@ -287,7 +283,7 @@
-
+ @@ -335,7 +331,7 @@
-
+ diff --git a/web/templates/admin/list_backup_exclusions.html b/web/templates/admin/list_backup_exclusions.html index fd01287c9..1c4f599cf 100644 --- a/web/templates/admin/list_backup_exclusions.html +++ b/web/templates/admin/list_backup_exclusions.html @@ -41,7 +41,7 @@ -
+
$value) { ?> @@ -101,7 +101,7 @@
-
+ diff --git a/web/templates/admin/list_cron.html b/web/templates/admin/list_cron.html index 5ca43c9c9..5cce22495 100644 --- a/web/templates/admin/list_cron.html +++ b/web/templates/admin/list_cron.html @@ -1,6 +1,10 @@
+
@@ -26,7 +30,7 @@
- : + :
@@ -59,7 +63,7 @@ -
+
$value) { ++$i; @@ -75,7 +79,7 @@ ?> -
+
@@ -117,6 +121,9 @@
+
+ +
@@ -140,7 +147,7 @@
-
+ @@ -151,6 +158,7 @@
+
- +
@@ -18,20 +24,20 @@ $db_admin_link = "http://".$http_host."/phpmyadmin/"; if (!empty($_SESSION['DB_PMA_URL'])) - $db_admin_link = $_SESSION['DB_PMA_URL']; + $db_myadmin_link = $_SESSION['DB_PMA_URL']; } if ($data[$key]['TYPE'] == 'pgsql'){ $pgsql = 1; $db_admin_link = "http://".$http_host."/phppgadmin/"; if (!empty($_SESSION['DB_PGA_URL'])) - $db_admin_link = $_SESSION['DB_PGA_URL']; + $db_pgadmin_link = $_SESSION['DB_PGA_URL']; } } if($mysql){ - echo ''; + echo ''; } if($pgsql){ - echo ''; + echo ''; } ?> @@ -209,7 +218,7 @@ -
+ @@ -220,6 +229,7 @@
+
phpMyAdminphpMyAdminphpPgAdminphpPgAdmin - : + : @@ -78,7 +84,7 @@ -
+
$value) { @@ -102,7 +108,7 @@ ?> -
+
@@ -142,6 +148,9 @@
+
+ +
@@ -170,7 +179,7 @@
:
- +
+
@@ -16,7 +23,7 @@
- : + : @@ -46,7 +53,7 @@ -
+
$value) { ++$i; @@ -61,7 +68,7 @@ } ?> -
+
@@ -103,24 +110,27 @@
+
+ +
+
-
+
⇢ ".$data[$key]['SRC']."    "; if($data[$key]['RECORDS']) echo '/ '.$data[$key]['RECORDS'].'';?>
-
- .', $data[$key]['IP'])?> -
+
- - + + + + + +
-
-
-
+
+
.', $data[$key]['IP'])?>
@@ -139,18 +149,37 @@
-
-
:
+
+
+
+
+
+
:
+
@@ -158,7 +187,7 @@
-
+ @@ -170,6 +199,7 @@
+
+
@@ -113,7 +113,7 @@
-
+ diff --git a/web/templates/admin/list_firewall.html b/web/templates/admin/list_firewall.html index 579d0ef31..51d73f816 100644 --- a/web/templates/admin/list_firewall.html +++ b/web/templates/admin/list_firewall.html @@ -1,7 +1,13 @@
- +
@@ -21,6 +27,9 @@ +
+ : + @@ -47,7 +56,7 @@ -
+
$value) { ++$i; @@ -62,8 +71,7 @@ } ?> - -
+
@@ -101,6 +109,9 @@
+
+ +
@@ -116,7 +127,7 @@
-
+ diff --git a/web/templates/admin/list_firewall_banlist.html b/web/templates/admin/list_firewall_banlist.html index eb900151a..fa3a488da 100644 --- a/web/templates/admin/list_firewall_banlist.html +++ b/web/templates/admin/list_firewall_banlist.html @@ -13,14 +13,14 @@
- +
- @@ -42,7 +42,7 @@ -
+
$value) { ++$i; @@ -52,7 +52,7 @@
- +
@@ -61,7 +61,7 @@ -
+ diff --git a/web/templates/admin/list_ip.html b/web/templates/admin/list_ip.html index 44af79aa0..b7e041d85 100644 --- a/web/templates/admin/list_ip.html +++ b/web/templates/admin/list_ip.html @@ -1,7 +1,14 @@
- +
@@ -17,7 +24,7 @@
- : + : @@ -46,16 +53,13 @@ -
+
$value) { ++$i; ?> - - - -
+
@@ -86,6 +90,9 @@
+
+ +
@@ -110,7 +117,7 @@
-
:
+
:
@@ -118,7 +125,7 @@
-
:
+
:
@@ -137,7 +144,7 @@
-
:
+
:
@@ -145,7 +152,7 @@
-
:
+
:
@@ -164,7 +171,7 @@
-
+ diff --git a/web/templates/admin/list_log.html b/web/templates/admin/list_log.html index d0673da39..cc9011e28 100644 --- a/web/templates/admin/list_log.html +++ b/web/templates/admin/list_log.html @@ -24,7 +24,7 @@ -
+
$value) { ++$i; @@ -66,7 +66,7 @@
-
+ diff --git a/web/templates/admin/list_mail.html b/web/templates/admin/list_mail.html index 94bb2c41b..18226cfc9 100644 --- a/web/templates/admin/list_mail.html +++ b/web/templates/admin/list_mail.html @@ -1,7 +1,12 @@
- +
@@ -25,7 +30,7 @@
- : + : @@ -57,7 +62,7 @@ -
+
-
+
@@ -124,6 +129,9 @@
+
+ +
@@ -203,7 +211,7 @@
-
+ @@ -214,6 +222,7 @@
+
+
@@ -24,7 +29,7 @@ -
- : + : @@ -56,15 +61,11 @@ -
+
-
- - - $value) { ++$i; @@ -80,7 +81,7 @@ ?> -
+
@@ -121,6 +122,9 @@
+
+ +
@@ -184,7 +188,7 @@
-
+ @@ -195,6 +199,7 @@
+
- +
@@ -17,7 +20,7 @@ - +
- : + : @@ -45,14 +48,14 @@ -
+
$value) { ++$i; ?> -
+
@@ -84,6 +87,9 @@
+
+ +
@@ -254,7 +260,7 @@
-
+ diff --git a/web/templates/admin/list_rrd.html b/web/templates/admin/list_rrd.html index 81cf86377..756193fb8 100644 --- a/web/templates/admin/list_rrd.html +++ b/web/templates/admin/list_rrd.html @@ -52,7 +52,7 @@
-
+
-
+ diff --git a/web/templates/admin/list_search.html b/web/templates/admin/list_search.html index 08e170447..ab48babee 100644 --- a/web/templates/admin/list_search.html +++ b/web/templates/admin/list_search.html @@ -16,9 +16,9 @@
- : -
@@ -235,7 +235,7 @@
-
+ @@ -246,6 +246,7 @@
+
-
- - - - +
@@ -111,12 +107,6 @@
-
- - - - - @@ -198,7 +188,7 @@
-
+ diff --git a/web/templates/admin/list_stats.html b/web/templates/admin/list_stats.html index f0ee1d238..c5a8ad23b 100644 --- a/web/templates/admin/list_stats.html +++ b/web/templates/admin/list_stats.html @@ -49,14 +49,14 @@ -
+
$value) { ++$i; ?> -
+
@@ -74,6 +74,9 @@
+
+ +
@@ -242,7 +245,7 @@
-
+ diff --git a/web/templates/admin/list_updates.html b/web/templates/admin/list_updates.html index f86fbc402..54bf28aad 100644 --- a/web/templates/admin/list_updates.html +++ b/web/templates/admin/list_updates.html @@ -5,9 +5,9 @@
'.__('disable autoupdate').''; + echo ''.__('disable autoupdate').''; } else { - echo ''.__('enable autoupdate').''; + echo ''.__('enable autoupdate').''; } ?> - : -
@@ -50,7 +47,7 @@ -
+
$value) { ++$i; @@ -137,7 +134,7 @@
-
+ diff --git a/web/templates/admin/list_user.html b/web/templates/admin/list_user.html index 3d849a240..0dfee157a 100644 --- a/web/templates/admin/list_user.html +++ b/web/templates/admin/list_user.html @@ -7,6 +7,12 @@ echo ''; } ?> +
@@ -22,7 +28,7 @@
- : + : @@ -59,7 +65,7 @@ -
+
$value) { ++$i; @@ -74,7 +80,7 @@ } ?> -
+
@@ -143,6 +149,11 @@
+ +
+ +
+
@@ -327,7 +338,7 @@
-
+ diff --git a/web/templates/admin/list_web.html b/web/templates/admin/list_web.html index 93fbba0bb..b55609a96 100644 --- a/web/templates/admin/list_web.html +++ b/web/templates/admin/list_web.html @@ -2,9 +2,11 @@
@@ -21,7 +23,7 @@
- : + : @@ -55,7 +57,7 @@ -
+
$value) { ++$i; @@ -112,9 +114,7 @@ } ?> - - -
+
@@ -155,10 +155,13 @@
-
+
+
+ +
@@ -276,7 +279,7 @@
-
+ @@ -287,6 +290,7 @@
+
= parseInt($(b).attr(V.sort_par)) ? V.sort_direction : V.sort_direction * -1; + else + return $(a).attr(V.sort_par) <= $(b).attr(V.sort_par) ? V.sort_direction : V.sort_direction * -1; + }).appendTo(".l-center.units"); + }); + + + + // STARS + + $('.l-unit .l-icon-star').click(function(){ + var l_unit = $(this).parents('.l-unit'); + + if(l_unit.hasClass('l-unit--starred')){ + // removing star + $.removeCookie(l_unit.attr('uniq-id')); + l_unit.removeClass('l-unit--starred'); + } + else{ + $.cookie(l_unit.attr('uniq-id'), 1, {expires: 3650}); + l_unit.addClass('l-unit--starred'); + } + }); + + /*jQuery('.ch-toggle').bind('change', function(evt) { evt.stopImmediatePropagation(); diff --git a/web/templates/header.html b/web/templates/header.html index 1c51d27e8..16b73ffd1 100644 --- a/web/templates/header.html +++ b/web/templates/header.html @@ -5,6 +5,7 @@ Vesta - <?="$TAB"?> + diff --git a/web/templates/user/list_cron.html b/web/templates/user/list_cron.html index 6f7fd9dcb..6683ff19b 100644 --- a/web/templates/user/list_cron.html +++ b/web/templates/user/list_cron.html @@ -1,6 +1,10 @@
+
@@ -26,7 +30,7 @@
- : + : @@ -59,7 +63,7 @@ -
+
$value) { ++$i; @@ -75,7 +79,7 @@ ?> -
+
@@ -117,6 +121,9 @@
+
+ +
@@ -140,7 +147,7 @@
-
+ @@ -151,6 +158,7 @@
+
- +
- phpMyAdmin'; + echo ''; } if($pgsql){ - echo ''; + echo ''; } - ?> -
phpMyAdminphpPgAdminphpPgAdmin - : + : @@ -79,7 +84,7 @@ -
+
$value) { @@ -103,7 +108,7 @@ ?> -
+
@@ -113,11 +118,10 @@
@@ -145,7 +147,10 @@
-
+
+
+ +
@@ -172,15 +177,15 @@
-
:
+
:
- +
-
:
+
:
@@ -191,7 +196,7 @@
-
:
+
:
@@ -199,7 +204,7 @@
-
:
+
:
@@ -213,7 +218,7 @@
-
+ @@ -223,7 +228,8 @@
-
+
+
+ +
@@ -16,7 +24,7 @@
- : + : @@ -46,7 +54,7 @@ -
+
$value) { ++$i; @@ -61,7 +69,7 @@ } ?> -
+
@@ -103,6 +111,9 @@
+
+ +
@@ -143,7 +154,7 @@
-
:
+
:
@@ -158,7 +169,7 @@
-
+ @@ -170,6 +181,7 @@
+
+
-
- - $value) { ++$i; @@ -113,7 +110,7 @@
-
+ @@ -124,7 +121,6 @@
-
- +
@@ -25,7 +30,7 @@
- : + : @@ -57,7 +62,7 @@ -
+
-
+
@@ -124,6 +129,9 @@
+
+ +
@@ -203,7 +211,7 @@
-
+ @@ -214,6 +222,7 @@
+
+
@@ -24,7 +29,7 @@ - +
- : + : @@ -56,14 +61,11 @@ -
+
-
- - $value) { @@ -80,7 +82,7 @@ ?> -
+
@@ -120,6 +122,9 @@
+
+ +
@@ -183,7 +188,7 @@
-
+ @@ -194,6 +199,7 @@
+
- : -
@@ -235,7 +235,7 @@
-
+ @@ -246,6 +246,7 @@
+
-
+
$value) { ++$i; ?> -
+
@@ -74,6 +74,9 @@
+
+ +
@@ -242,7 +245,7 @@
-
+ @@ -253,7 +256,6 @@
-
'; } ?> +
@@ -22,7 +28,7 @@
- : + :
@@ -59,7 +65,7 @@ -
+
$value) { ++$i; @@ -74,7 +80,7 @@ } ?> -
+
@@ -143,6 +149,9 @@
+
+ +
@@ -328,7 +337,7 @@
-
+ diff --git a/web/templates/user/list_web.html b/web/templates/user/list_web.html index 5501a742e..791389e62 100644 --- a/web/templates/user/list_web.html +++ b/web/templates/user/list_web.html @@ -2,9 +2,11 @@
@@ -21,7 +23,7 @@
- : + : @@ -116,7 +118,7 @@ -
+
@@ -162,6 +164,9 @@
+
+ +
@@ -279,7 +284,7 @@
-
+ @@ -290,6 +295,7 @@
+