[geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.662,1.663

Oliver ospiess at qs1489.pair.com
Mon Oct 29 09:42:33 EDT 2007


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

Modified Files:
	lib-common.php 
Log Message:
writing checbox-lists as <li>-lists

Index: lib-common.php
===================================================================
RCS file: /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v
retrieving revision 1.662
retrieving revision 1.663
diff -C2 -d -r1.662 -r1.663
*** lib-common.php	10 Oct 2007 01:58:14 -0000	1.662
--- lib-common.php	29 Oct 2007 13:42:31 -0000	1.663
***************
*** 1711,1716 ****
      global $_TABLES, $_COM_VERBOSE;
  
-     $retval = '';
- 
      $sql = "SELECT $selection FROM $table";
  
--- 1711,1714 ----
***************
*** 1741,1745 ****
          $S = array();
      }
! 
      for( $i = 0; $i < $nrows; $i++ )
      {
--- 1739,1743 ----
          $S = array();
      }
!     $retval = '<ul class="checkboxes-list">' . LB;
      for( $i = 0; $i < $nrows; $i++ )
      {
***************
*** 1754,1758 ****
          if( $access )
          {
!             $retval .= '<input type="checkbox" name="' . $table . '[]" value="' . $A[0] . '"';
  
              $sizeS = sizeof( $S );
--- 1752,1756 ----
          if( $access )
          {
!             $retval .= '<li><input type="checkbox" name="' . $table . '[]" value="' . $A[0] . '"';
  
              $sizeS = sizeof( $S );
***************
*** 1768,1779 ****
              if(( $table == $_TABLES['blocks'] ) && isset( $A[2] ) && ( $A[2] == 'gldefault' ))
              {
!                 $retval .= '><b>' . stripslashes( $A[1] ) . '</b><br>' . LB;
              }
              else
              {
!                 $retval .= '>' . stripslashes( $A[1] ) . '<br>' . LB;
              }
          }
      }
  
      return $retval;
--- 1766,1778 ----
              if(( $table == $_TABLES['blocks'] ) && isset( $A[2] ) && ( $A[2] == 'gldefault' ))
              {
!                 $retval .= '><span class="gldefault">' . stripslashes( $A[1] ) . '</span></li>' . LB;
              }
              else
              {
!                 $retval .= '><span>' . stripslashes( $A[1] ) . '</span></li>' . LB;
              }
          }
      }
+     $retval .= '</ul>' . LB;
  
      return $retval;




More information about the geeklog-cvs mailing list