From 70ba8cabed83634661581e5506eeb215f89cbc67 Mon Sep 17 00:00:00 2001 From: Paolo Date: Wed, 22 Mar 2017 14:16:08 +0100 Subject: [PATCH] - system/Users: better GUI - added new css and js to templates/header --- application/views/system/users.php | 148 ++++++++++++------ application/views/templates/header.php | 18 ++- application/views/widgets/usersfilters.php | 172 +++++++++++---------- 3 files changed, 204 insertions(+), 134 deletions(-) diff --git a/application/views/system/users.php b/application/views/system/users.php index 701787e57..e93177081 100644 --- a/application/views/system/users.php +++ b/application/views/system/users.php @@ -1,4 +1,4 @@ -load->view("templates/header", array("title" => "MessageReply", "jquery" => true, "tinymce" => true)); ?> +load->view("templates/header", array("title" => "Users manager", "jquery" => true, "tablesort" => true, "jquery_checkboxes" => true, "jquery_custom" => true)); ?>
@@ -17,56 +17,67 @@ ?>
- + +
+
- -
-
-
- -
- Assign to: -
-
- -     - -
-
- -     - -
+ + + + + + + + + + + + + + + + +
+ Assign to: +
+ +   + +
+ +   + +
@@ -78,13 +89,13 @@ if ($users != null) { ?> - +
- - - + + + @@ -205,6 +216,43 @@ } }); } + + $(".tablesorter").each(function(i, v) { + $("#"+v.id).tablesorter( + { + widgets: ["zebra"], + sortList: [[3,0],[4,0]], + headers: {0: { sorter: false}} + }); + + $("#toggle_"+v.id).on('click', function(e) { + $("#"+v.id).checkboxes('toggle'); + e.preventDefault(); + if ($("input.chkbox:checked").size() > 0) + $("#mailSendButton").html('Mail an markierte Personen senden'); + else + $("#mailSendButton").html('Mail an alle senden'); + }); + + $("#uncheck_"+v.id).on('click', function(e) { + $("#"+v.id).checkboxes('uncheck'); + e.preventDefault(); + if ($("input.chkbox:checked").size() > 0) + $("#mailSendButton").html('Mail an markierte Personen senden'); + else + $("#mailSendButton").html('Mail an alle senden'); + }); + + $("#"+v.id).checkboxes('range', true); + }); + + $('.chkbox').change(function() + { + if ($("input.chkbox:checked").size() > 0) + $("#mailSendButton").html('Mail an markierte Personen senden'); + else + $("#mailSendButton").html('Mail an alle senden'); + }); }); function studiengangSelected(value) diff --git a/application/views/templates/header.php b/application/views/templates/header.php index 8aa4ea8dd..97d280585 100644 --- a/application/views/templates/header.php +++ b/application/views/templates/header.php @@ -1,8 +1,10 @@ @@ -25,9 +27,19 @@ if ($tablesort) + + + + + + + + + +
 Prestudent IDPerson IDVornamePrestudent IDPerson IDVorname Nachname Geschlecht Studiengang