diff --git a/public/languages/en/general.php b/public/languages/en/general.php index 1b005ff..1ddad96 100644 --- a/public/languages/en/general.php +++ b/public/languages/en/general.php @@ -1,4 +1,7 @@ "First", + "paginate_last" => "Last", + "paginate_next" => "Next", + "paginate_previous" => "Previous" +]; diff --git a/public/userarea/assets/js/app.js b/public/userarea/assets/js/app.js index 0b30ded..60f9784 100644 --- a/public/userarea/assets/js/app.js +++ b/public/userarea/assets/js/app.js @@ -1,202 +1,206 @@ $("html").attr("class", "semi-dark color-header headercolor2"); $(function () { - "use strict"; - new PerfectScrollbar(".app-container"), - new PerfectScrollbar(".header-message-list"), - new PerfectScrollbar(".header-notifications-list"), - $(".mobile-search-icon").on("click", function () { - $(".search-bar").addClass("full-search-bar"); - }), - $(".search-close").on("click", function () { - $(".search-bar").removeClass("full-search-bar"); - }), - $(".mobile-toggle-menu").on("click", function () { - $(".wrapper").addClass("toggled"); - }), - $(".dark-mode").on("click", function () { - if ($(".dark-mode-icon i").attr("class") == "bx bx-sun") { - $(".dark-mode-icon i").attr("class", "bx bx-moon"); - $("html").attr("class", "light-theme"); - } else { - $(".dark-mode-icon i").attr("class", "bx bx-sun"); - $("html").attr("class", "dark-theme"); - } - }), - $(".toggle-icon").click(function () { - $(".wrapper").hasClass("toggled") - ? ($(".wrapper").removeClass("toggled"), - $(".sidebar-wrapper").unbind("hover")) - : ($(".wrapper").addClass("toggled"), - $(".sidebar-wrapper").hover( - function () { - $(".wrapper").addClass("sidebar-hovered"); - }, - function () { - $(".wrapper").removeClass("sidebar-hovered"); + "use strict"; + new PerfectScrollbar(".app-container"), + new PerfectScrollbar(".header-message-list"), + new PerfectScrollbar(".header-notifications-list"), + $(".mobile-search-icon").on("click", function () { + $(".search-bar").addClass("full-search-bar"); + }), + $(".search-close").on("click", function () { + $(".search-bar").removeClass("full-search-bar"); + }), + $(".mobile-toggle-menu").on("click", function () { + $(".wrapper").addClass("toggled"); + }), + $(".dark-mode").on("click", function () { + if ($(".dark-mode-icon i").attr("class") == "bx bx-sun") { + $(".dark-mode-icon i").attr("class", "bx bx-moon"); + $("html").attr("class", "light-theme"); + } else { + $(".dark-mode-icon i").attr("class", "bx bx-sun"); + $("html").attr("class", "dark-theme"); } - )); - }), - $(document).ready(function () { - $(window).on("scroll", function () { - $(this).scrollTop() > 300 - ? $(".back-to-top").fadeIn() - : $(".back-to-top").fadeOut(); - }), - $(".back-to-top").on("click", function () { - return ( - $("html, body").animate( - { - scrollTop: 0, - }, - 600 - ), - !1 - ); + }), + $(".toggle-icon").click(function () { + $(".wrapper").hasClass("toggled") + ? ($(".wrapper").removeClass("toggled"), + $(".sidebar-wrapper").unbind("hover")) + : ($(".wrapper").addClass("toggled"), + $(".sidebar-wrapper").hover( + function () { + $(".wrapper").addClass("sidebar-hovered"); + }, + function () { + $(".wrapper").removeClass("sidebar-hovered"); + }, + )); + }), + $(document).ready(function () { + $(window).on("scroll", function () { + $(this).scrollTop() > 300 + ? $(".back-to-top").fadeIn() + : $(".back-to-top").fadeOut(); + }), + $(".back-to-top").on("click", function () { + return ( + $("html, body").animate( + { + scrollTop: 0, + }, + 600, + ), + !1 + ); + }); + }), + $(function () { + for ( + var e = window.location, + o = $(".metismenu li a") + .filter(function () { + return this.href == e; + }) + .addClass("") + .parent() + .addClass("mm-active"); + o.is("li"); + + ) + o = o + .parent("") + .addClass("mm-show") + .parent("") + .addClass("mm-active"); + }), + $(function () { + $("#menu").metisMenu(); + }), + $(".chat-toggle-btn").on("click", function () { + $(".chat-wrapper").toggleClass("chat-toggled"); + }), + $(".chat-toggle-btn-mobile").on("click", function () { + $(".chat-wrapper").removeClass("chat-toggled"); + }), + $(".email-toggle-btn").on("click", function () { + $(".email-wrapper").toggleClass("email-toggled"); + }), + $(".email-toggle-btn-mobile").on("click", function () { + $(".email-wrapper").removeClass("email-toggled"); + }), + $(".compose-mail-btn").on("click", function () { + $(".compose-mail-popup").show(); + }), + $(".compose-mail-close").on("click", function () { + $(".compose-mail-popup").hide(); + }), + $(".switcher-btn").on("click", function () { + $(".switcher-wrapper").toggleClass("switcher-toggled"); + }), + $(".close-switcher").on("click", function () { + $(".switcher-wrapper").removeClass("switcher-toggled"); + }), + $("#lightmode").on("click", function () { + $("html").attr("class", "light-theme"); + }), + $("#darkmode").on("click", function () { + $("html").attr("class", "dark-theme"); + }), + $("#semidark").on("click", function () { + $("html").attr("class", "semi-dark"); + }), + $("#minimaltheme").on("click", function () { + $("html").attr("class", "minimal-theme"); + }), + $("#headercolor1").on("click", function () { + $("html").addClass("color-header headercolor1"), + $("html").removeClass( + "headercolor2 headercolor3 headercolor4 headercolor5 headercolor6 headercolor7 headercolor8", + ); + }), + $("#headercolor2").on("click", function () { + $("html").addClass("color-header headercolor2"), + $("html").removeClass( + "headercolor1 headercolor3 headercolor4 headercolor5 headercolor6 headercolor7 headercolor8", + ); + }), + $("#headercolor3").on("click", function () { + $("html").addClass("color-header headercolor3"), + $("html").removeClass( + "headercolor1 headercolor2 headercolor4 headercolor5 headercolor6 headercolor7 headercolor8", + ); + }), + $("#headercolor4").on("click", function () { + $("html").addClass("color-header headercolor4"), + $("html").removeClass( + "headercolor1 headercolor2 headercolor3 headercolor5 headercolor6 headercolor7 headercolor8", + ); + }), + $("#headercolor5").on("click", function () { + $("html").addClass("color-header headercolor5"), + $("html").removeClass( + "headercolor1 headercolor2 headercolor4 headercolor3 headercolor6 headercolor7 headercolor8", + ); + }), + $("#headercolor6").on("click", function () { + $("html").addClass("color-header headercolor6"), + $("html").removeClass( + "headercolor1 headercolor2 headercolor4 headercolor5 headercolor3 headercolor7 headercolor8", + ); + }), + $("#headercolor7").on("click", function () { + $("html").addClass("color-header headercolor7"), + $("html").removeClass( + "headercolor1 headercolor2 headercolor4 headercolor5 headercolor6 headercolor3 headercolor8", + ); + }), + $("#headercolor8").on("click", function () { + $("html").addClass("color-header headercolor8"), + $("html").removeClass( + "headercolor1 headercolor2 headercolor4 headercolor5 headercolor6 headercolor7 headercolor3", + ); }); - }), - $(function () { - for ( - var e = window.location, - o = $(".metismenu li a") - .filter(function () { - return this.href == e; - }) - .addClass("") - .parent() - .addClass("mm-active"); - o.is("li"); - ) - o = o.parent("").addClass("mm-show").parent("").addClass("mm-active"); - }), - $(function () { - $("#menu").metisMenu(); - }), - $(".chat-toggle-btn").on("click", function () { - $(".chat-wrapper").toggleClass("chat-toggled"); - }), - $(".chat-toggle-btn-mobile").on("click", function () { - $(".chat-wrapper").removeClass("chat-toggled"); - }), - $(".email-toggle-btn").on("click", function () { - $(".email-wrapper").toggleClass("email-toggled"); - }), - $(".email-toggle-btn-mobile").on("click", function () { - $(".email-wrapper").removeClass("email-toggled"); - }), - $(".compose-mail-btn").on("click", function () { - $(".compose-mail-popup").show(); - }), - $(".compose-mail-close").on("click", function () { - $(".compose-mail-popup").hide(); - }), - $(".switcher-btn").on("click", function () { - $(".switcher-wrapper").toggleClass("switcher-toggled"); - }), - $(".close-switcher").on("click", function () { - $(".switcher-wrapper").removeClass("switcher-toggled"); - }), - $("#lightmode").on("click", function () { - $("html").attr("class", "light-theme"); - }), - $("#darkmode").on("click", function () { - $("html").attr("class", "dark-theme"); - }), - $("#semidark").on("click", function () { - $("html").attr("class", "semi-dark"); - }), - $("#minimaltheme").on("click", function () { - $("html").attr("class", "minimal-theme"); - }), - $("#headercolor1").on("click", function () { - $("html").addClass("color-header headercolor1"), - $("html").removeClass( - "headercolor2 headercolor3 headercolor4 headercolor5 headercolor6 headercolor7 headercolor8" - ); - }), - $("#headercolor2").on("click", function () { - $("html").addClass("color-header headercolor2"), - $("html").removeClass( - "headercolor1 headercolor3 headercolor4 headercolor5 headercolor6 headercolor7 headercolor8" - ); - }), - $("#headercolor3").on("click", function () { - $("html").addClass("color-header headercolor3"), - $("html").removeClass( - "headercolor1 headercolor2 headercolor4 headercolor5 headercolor6 headercolor7 headercolor8" - ); - }), - $("#headercolor4").on("click", function () { - $("html").addClass("color-header headercolor4"), - $("html").removeClass( - "headercolor1 headercolor2 headercolor3 headercolor5 headercolor6 headercolor7 headercolor8" - ); - }), - $("#headercolor5").on("click", function () { - $("html").addClass("color-header headercolor5"), - $("html").removeClass( - "headercolor1 headercolor2 headercolor4 headercolor3 headercolor6 headercolor7 headercolor8" - ); - }), - $("#headercolor6").on("click", function () { - $("html").addClass("color-header headercolor6"), - $("html").removeClass( - "headercolor1 headercolor2 headercolor4 headercolor5 headercolor3 headercolor7 headercolor8" - ); - }), - $("#headercolor7").on("click", function () { - $("html").addClass("color-header headercolor7"), - $("html").removeClass( - "headercolor1 headercolor2 headercolor4 headercolor5 headercolor6 headercolor3 headercolor8" - ); - }), - $("#headercolor8").on("click", function () { - $("html").addClass("color-header headercolor8"), - $("html").removeClass( - "headercolor1 headercolor2 headercolor4 headercolor5 headercolor6 headercolor7 headercolor3" - ); - }); + // sidebar colors + $("#sidebarcolor1").click(theme1); + $("#sidebarcolor2").click(theme2); + $("#sidebarcolor3").click(theme3); + $("#sidebarcolor4").click(theme4); + $("#sidebarcolor5").click(theme5); + $("#sidebarcolor6").click(theme6); + $("#sidebarcolor7").click(theme7); + $("#sidebarcolor8").click(theme8); - // sidebar colors - $("#sidebarcolor1").click(theme1); - $("#sidebarcolor2").click(theme2); - $("#sidebarcolor3").click(theme3); - $("#sidebarcolor4").click(theme4); - $("#sidebarcolor5").click(theme5); - $("#sidebarcolor6").click(theme6); - $("#sidebarcolor7").click(theme7); - $("#sidebarcolor8").click(theme8); + function theme1() { + $("html").attr("class", "color-sidebar sidebarcolor1"); + } - function theme1() { - $("html").attr("class", "color-sidebar sidebarcolor1"); - } + function theme2() { + $("html").attr("class", "color-sidebar sidebarcolor2"); + } - function theme2() { - $("html").attr("class", "color-sidebar sidebarcolor2"); - } + function theme3() { + $("html").attr("class", "color-sidebar sidebarcolor3"); + } - function theme3() { - $("html").attr("class", "color-sidebar sidebarcolor3"); - } + function theme4() { + $("html").attr("class", "color-sidebar sidebarcolor4"); + } - function theme4() { - $("html").attr("class", "color-sidebar sidebarcolor4"); - } + function theme5() { + $("html").attr("class", "color-sidebar sidebarcolor5"); + } - function theme5() { - $("html").attr("class", "color-sidebar sidebarcolor5"); - } + function theme6() { + $("html").attr("class", "color-sidebar sidebarcolor6"); + } - function theme6() { - $("html").attr("class", "color-sidebar sidebarcolor6"); - } + function theme7() { + $("html").attr("class", "color-sidebar sidebarcolor7"); + } - function theme7() { - $("html").attr("class", "color-sidebar sidebarcolor7"); - } - - function theme8() { - $("html").attr("class", "color-sidebar sidebarcolor8"); - } + function theme8() { + $("html").attr("class", "color-sidebar sidebarcolor8"); + } }); diff --git a/public/userarea/delete_template_xls.php b/public/userarea/delete_template_xls.php index b145d68..13cbe68 100644 --- a/public/userarea/delete_template_xls.php +++ b/public/userarea/delete_template_xls.php @@ -45,5 +45,5 @@ try { } // Reindirizza con un messaggio -header("Location: xlstemplates_grid.php?status=$status&message=" . urlencode($message)); +header("Location: templates_dashboard.php?status=$status&message=" . urlencode($message)); exit; diff --git a/public/userarea/edit_template_xls.php b/public/userarea/edit_template_xls.php index 4572b17..eb5bdb3 100644 --- a/public/userarea/edit_template_xls.php +++ b/public/userarea/edit_template_xls.php @@ -1,6 +1,4 @@ -execute([$id]); $template = $stmt->fetch(PDO::FETCH_ASSOC); if (!$template) { - header("Location: xlstemplates_grid.php?status=error&message=" . urlencode("Template not found")); + header("Location: template_dashboard.php?status=error&message=" . urlencode("Template not found")); exit; } ?> - - + - - - - Edit XLS Template - + + + + + - + Edit Template <?= htmlspecialchars($titlewebsite, ENT_QUOTES, 'UTF-8'); ?> - - -
-
-
- - - - -
+ +
+ + + + - -
-
-
- - -
-
-
-

Edit XLS Template

-
- -
-
- -
- - -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- - - Cancel -
+ + +
+
+
+
+
+
+
+
+

Total Orders

+

4805

+

+2.5% from last week

+
+
+
+
+
+
+
+
+
+
+

Total Revenue

+

$84,245

+

+5.4% from last week

+
+
+
+
+
+
+
+
+
+
+
+
+

Bounce Rate

+

34.6%

+

-4.5% from last week

+
+
+
+
+
+
+
+
+
+
+
+
+

Total Customers

+

8.4K

+

+8.4% from last week

+
+
+
+
+
+
+
+
+ + + +
+
+
+
+
Edit Template:
+
- +
+
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + + Cancel +
+
+
+
- + + +
+ + + +
+ + + + + + + + + + - - - \ No newline at end of file diff --git a/public/userarea/include/navbar.php b/public/userarea/include/navbar.php index 2770c83..766c1ec 100644 --- a/public/userarea/include/navbar.php +++ b/public/userarea/include/navbar.php @@ -4,7 +4,7 @@ logo icon
-

Rocker

+

@@ -30,13 +30,14 @@
- +
@@ -59,6 +60,8 @@ +
  • Template +
  • \ No newline at end of file diff --git a/public/userarea/include/topbar.php b/public/userarea/include/topbar.php index eb987ae..23f9b94 100644 --- a/public/userarea/include/topbar.php +++ b/public/userarea/include/topbar.php @@ -44,225 +44,6 @@ @@ -394,189 +175,9 @@
    diff --git a/public/userarea/insert_template_xls.php b/public/userarea/insert_template_xls.php index bed5675..9d0db66 100644 --- a/public/userarea/insert_template_xls.php +++ b/public/userarea/insert_template_xls.php @@ -1,93 +1,163 @@ - + - - - - Edmate Learning Dashboard - New XLS Template - + + + + + - + Insert XLS Template <?= htmlspecialchars($titlewebsite, ENT_QUOTES, 'UTF-8'); ?> - - -
    -
    -
    - - -
    - - - - -
    + +
    + + + + - -
    -
    -
    - - -
    -
    -
    -

    Insert New XLS Template

    -
    - -
    -
    - -
    -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    -
    - - Cancel -
    + + +
    +
    +
    +
    +
    +
    +
    +
    +

    Total Orders

    +

    4805

    +

    +2.5% from last week

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    Total Revenue

    +

    $84,245

    +

    +5.4% from last week

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    Bounce Rate

    +

    34.6%

    +

    -4.5% from last week

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    Total Customers

    +

    8.4K

    +

    +8.4% from last week

    +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    +
    +
    +
    Insert New XLS Template
    +
    - +
    +
    +
    +
    + + +
    +
    + + +
    + +
    + + +
    + +
    + + +
    + +
    + + +
    +
    + + Cancel +
    +
    +
    +
    - + + +
    + + + +
    + + + + + + + + + + - - - \ No newline at end of file diff --git a/public/userarea/jsinclude.php b/public/userarea/jsinclude.php index 8201e1b..529a21d 100644 --- a/public/userarea/jsinclude.php +++ b/public/userarea/jsinclude.php @@ -7,8 +7,8 @@ - - + - + Mapping XLS Template <?= htmlspecialchars($titlewebsite, ENT_QUOTES, 'UTF-8'); ?> - -
    -
    -
    - - - - -
    + +
    + + + + + + +
    +
    -
    -
    -
    -
    -
    -
    -

    Associate Columns - Template:

    + + + +
    +
    +
    +
    +
    Associate Columns - Template:

    Header Row: | Start Column:

    - -
    - - -
    +
    +
    +
    + +
    + + +
    - -
    -
    -
    XLS Column
    -
      -
      -
      - -
      -
      -
      Table Column
      -
        -
        + +
        +
        +
        XLS Column
        +
          +
          + +
          +
          +
          Table Column
          +
            +
            +
            - -
            -
            Current Associations
            -
              -
              + +
              +
              Current Associations
              +
                +
                - -
                - -
                + +
                +
                +
                - + + +
                + + + +
                + + + + + + + + + + -