[geeklog-cvs] Geeklog-1.x/public_html/admin group.php,1.95,1.96

Oliver ospiess at qs1489.pair.com
Fri Aug 31 00:08:10 EDT 2007


Update of /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/public_html/admin
In directory qs1489.pair.com:/tmp/cvs-serv4529

Modified Files:
	group.php 
Log Message:
fix group show all

Index: group.php
===================================================================
RCS file: /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/public_html/admin/group.php,v
retrieving revision 1.95
retrieving revision 1.96
diff -C2 -d -r1.95 -r1.96
*** group.php	29 Aug 2007 09:33:54 -0000	1.95
--- group.php	31 Aug 2007 04:08:07 -0000	1.96
***************
*** 743,752 ****
      // over-ride the option using the posted form when the URL contains the variable as well
      $show_all_groups = false;
      if (isset($_POST['q'])) {   // Form has been posted - test actual option in this form
          if ($_POST['chk_showall'] == 1) {
              $show_all_groups = true;
          }
!     } else if (isset ($_GET['showall']) && ($_GET['showall'] == 1)) {
          $show_all_groups = true;
      }
  
--- 743,755 ----
      // over-ride the option using the posted form when the URL contains the variable as well
      $show_all_groups = false;
+     $checked ='';
      if (isset($_POST['q'])) {   // Form has been posted - test actual option in this form
          if ($_POST['chk_showall'] == 1) {
              $show_all_groups = true;
+             $checked = 'checked';
          }
!     } else if (isset ($_GET['chk_showall']) && ($_GET['chk_showall'] == 1)) {
          $show_all_groups = true;
+         $checked = 'checked';
      }
  
***************
*** 766,770 ****
              'default_filter' => $grpFilter);
      } else {
!         $filter .= '<label for="chk_showall"><input id="chk_showall" type="checkbox" name="chk_showall" value="1">';
          $query_arr = array(
              'table' => 'groups',
--- 769,773 ----
              'default_filter' => $grpFilter);
      } else {
!         $filter .= "<label for=\"chk_showall\"><input id=\"chk_showall\" type=\"checkbox\" name=\"chk_showall\" value=\"1\"$checked>";
          $query_arr = array(
              'table' => 'groups',




More information about the geeklog-cvs mailing list