includes/functions.php
changeset 129 0b5244001799
parent 128 01955bf53f96
child 132 0ae1b281a884
equal deleted inserted replaced
128:01955bf53f96 129:0b5244001799
   672         echo '<h3>Pages</h3>';
   672         echo '<h3>Pages</h3>';
   673         echo '<div class="tblholder">';
   673         echo '<div class="tblholder">';
   674         echo '<table border="0" cellspacing="1" cellpadding="4">';
   674         echo '<table border="0" cellspacing="1" cellpadding="4">';
   675         echo '<tr>';
   675         echo '<tr>';
   676         $counter = 0;
   676         $counter = 0;
   677         $ticker = 0;
   677         $ticker = -1;
   678         $switched = true;
   678         $switched = true;
   679       }
   679       }
   680       $counter++;
   680       $counter++;
   681       $ticker++;
   681       $ticker++;
   682       if ( $ticker == 3 )
   682       if ( $ticker == 3 )
   704     if ( !$switched )
   704     if ( !$switched )
   705     {
   705     {
   706       if ( $counter > 0 )
   706       if ( $counter > 0 )
   707       {
   707       {
   708         // Fill-in
   708         // Fill-in
   709         while ( $ticker < 3 )
   709         while ( $ticker < 2 )
   710         {
   710         {
   711           $ticker++;
   711           $ticker++;
   712           echo '<td class="' . $class . '" style="width: 33.3%;"></td>';
   712           echo '<td class="' . $class . '" style="width: 33.3%;"></td>';
   713         }
   713         }
   714       }
   714       }
   726       $switched = true;
   726       $switched = true;
   727     }
   727     }
   728     if ( $counter > 0 )
   728     if ( $counter > 0 )
   729     {
   729     {
   730       // Fill-in
   730       // Fill-in
   731       while ( $ticker < 3 )
   731       while ( $ticker < 2 )
   732       {
   732       {
   733         $ticker++;
   733         $ticker++;
   734         echo '<td class="' . $class . '" style="width: 33.3%;"></td>';
   734         echo '<td class="' . $class . '" style="width: 33.3%;"></td>';
   735       }
   735       }
   736     }
   736     }