/[projects]/misc/horsensspejder-web/moedeprotokol.php
ViewVC logotype

Diff of /misc/horsensspejder-web/moedeprotokol.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2134 by torben, Sat Mar 15 12:29:02 2014 UTC revision 2135 by torben, Wed Mar 26 11:09:40 2014 UTC
# Line 27  $( function() { Line 27  $( function() {
27    
28  <h3>M&oslash;deprotokol for <?php echo $enhednavn;?></h3>  <h3>M&oslash;deprotokol for <?php echo $enhednavn;?></h3>
29    
 <table border='1' cellpadding='3'>  
30  <?php  <?php
31    
32  $sql = "  $sql = "
# Line 38  ORDER BY dato DESC Line 37  ORDER BY dato DESC
37  ";  ";
38    
39  $rows = query( $sql );  $rows = query( $sql );
40    $count = sizeof($rows);
41  for ($i=0; $i<sizeof($rows); $i++) {  if ($count > 0) {
42      if ( ($i%6) == 0) {          echo "<table border='1' cellpadding='3'>";
43          if ($i>0)          for ($i=0; $i<$count; $i++) {
44              echo "</tr>\n";          if ( ($i%6) == 0) {
45          echo "<tr>";                  if ($i>0)
46      }                  echo "</tr>\n";
47                    echo "<tr>";
48            }
49                    
50      $row = $rows[$i];              $row = $rows[$i];
51            
52      echo "<td><a class='datovalg' href='#' id='{$row->id}'> {$row->dato} </a></td> \n";          echo "<td><a class='datovalg' href='#' id='{$row->id}'> {$row->dato} </a></td> \n";
53            }
54            echo "</tr> \n";
55            echo "</table> \n";
56  }  }
57    
58  ?>  ?>
 </tr>  
 </table>  
59    
60  <br>  <br>
61    

Legend:
Removed from v.2134  
changed lines
  Added in v.2135

  ViewVC Help
Powered by ViewVC 1.1.20