[Jaws-commits] r10790 - in branches/0.8/html/gadgets/Users: . resources

afz at jaws-project.com afz at jaws-project.com
Tue Nov 24 06:00:55 UTC 2009


Author: afz
Date: 2009-11-24 06:00:55 +0000 (Tue, 24 Nov 2009)
New Revision: 10790

Modified:
   branches/0.8/html/gadgets/Users/AdminHTML.php
   branches/0.8/html/gadgets/Users/resources/style.css
   branches/0.8/html/gadgets/Users/resources/style.rtl.css
Log:
fix some issue in Users gadget

Modified: branches/0.8/html/gadgets/Users/AdminHTML.php
===================================================================
--- branches/0.8/html/gadgets/Users/AdminHTML.php	2009-11-17 12:16:38 UTC (rev 10789)
+++ branches/0.8/html/gadgets/Users/AdminHTML.php	2009-11-24 06:00:55 UTC (rev 10790)
@@ -185,13 +185,12 @@
         $comboUsers->SetSize(20);
         $comboUsers->SetStyle('width: 200px; height: 350px;');
         $comboUsers->AddEvent(ON_CHANGE, 'javascript: editUser(this.value);');
-        //Which users should we fetch first-time?
-        $typeOfUsers = $GLOBALS['app']->Session->IsSuperAdmin() ? 0 : 1;
-        $onlyAdmins = false;
 
+        //Which users should we fetch first-time?
+        $typeOfUsers = $GLOBALS['app']->Session->IsSuperAdmin() ? false : 1;
         require_once JAWS_PATH . 'include/Jaws/User.php';
-        $userModel = new Jaws_User();
-        $users = $userModel->GetUsers();
+        $useModel = new Jaws_User();
+        $users = $useModel->GetUsers(false, $typeOfUsers);
         foreach($users as $user) {
             $comboUsers->AddOption($user['dname'], $user['id']);
         }

Modified: branches/0.8/html/gadgets/Users/resources/style.css
===================================================================
--- branches/0.8/html/gadgets/Users/resources/style.css	2009-11-17 12:16:38 UTC (rev 10789)
+++ branches/0.8/html/gadgets/Users/resources/style.css	2009-11-24 06:00:55 UTC (rev 10790)
@@ -127,4 +127,4 @@
 
 #personal_dob {width: 148px;}
 #personal_dob input {width: 40px;}
-#personal_dob span {display: inline; padding-left: 5px;}
+#personal_dob span {display: inline; padding-right: 5px;}

Modified: branches/0.8/html/gadgets/Users/resources/style.rtl.css
===================================================================
--- branches/0.8/html/gadgets/Users/resources/style.rtl.css	2009-11-17 12:16:38 UTC (rev 10789)
+++ branches/0.8/html/gadgets/Users/resources/style.rtl.css	2009-11-24 06:00:55 UTC (rev 10790)
@@ -76,6 +76,10 @@
     background: buttonface;
 }
 
+#users_filter {
+    text-align: right;
+}
+
 #group_users_title{
     text-align: right;
 }
@@ -122,3 +126,15 @@
     text-align: right;
     width: 100%;
 }
+
+#tbl_pinfo td {
+    text-align: right;
+}
+
+#tbl_pinfo td #fname, #tbl_pinfo td #lname, #tbl_pinfo td #url {
+    width: 220px;
+}
+
+#personal_dob {width: 148px;}
+#personal_dob input {width: 40px;}
+#personal_dob span {display: inline; padding-left: 5px;}



More information about the Jaws-commits mailing list