Author: jfthomps
Date: Fri May 12 14:03:57 2017
New Revision: 1794980

URL: http://svn.apache.org/viewvc?rev=1794980&view=rev
Log:
VCL-1042 - add max reservation times to user lookup information

privileges.php: modified userLookup: added section to display Initial, Extend, 
and Total times for the user

Modified:
    vcl/trunk/web/.ht-inc/privileges.php

Modified: vcl/trunk/web/.ht-inc/privileges.php
URL: 
http://svn.apache.org/viewvc/vcl/trunk/web/.ht-inc/privileges.php?rev=1794980&r1=1794979&r2=1794980&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/privileges.php (original)
+++ vcl/trunk/web/.ht-inc/privileges.php Fri May 12 14:03:57 2017
@@ -1616,6 +1616,19 @@ function userLookup() {
                        print "      No additional user group permissions\n";
                print "    </TD>\n";
                print "  </TR>\n";
+
+               $times = getUserMaxTimes($userdata['id']);
+               $times['initial'] = getReservationLength($times['initial']);
+               $times['extend'] = getReservationLength($times['extend']);
+               $times['total'] = getReservationLength($times['total']);
+               print "  <TR>\n";
+               print "    <TH align=right style=\"vertical-align: top\">User 
Max Times:</TH>\n";
+               print "    <TD>\n";
+               print "      Initial: {$times['initial']}<br>\n";
+               print "      Extend: {$times['extend']}<br>\n";
+               print "      Total: {$times['total']}<br>\n";
+               print "  </TR>\n";
+
                print "  <TR>\n";
                print "    <TH align=right style=\"vertical-align: 
top\">Privileges (found somewhere in the tree):</TH>\n";
                print "    <TD>\n";


Reply via email to