Ignore:
Timestamp:
12/02/05 11:12:44 (8 years ago)
Author:
sam
Message:
  • better stats page layout, with users first
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trollforge/lastmeasure/stats/index.php

    r168 r178  
    3939        <tr style="background-color: <?php echo ($l % 2) ? '#cef' : '#ecf'; ?>"> 
    4040          <td> 
    41             <?php echo date('Y-m-d\&\n\b\s\p\;H:i:s', $date); ?> 
     41            <?php tooltip("d$l", date('H:i:s', $date), date('D, d M Y H:i:s', $date), false); ?> 
    4242          </td> 
    4343          <td> 
     
    6464          <td> 
    6565            <?php $referer = base64_decode($referer); 
    66             if(strlen($referer) > 45) { 
    67               tooltip("r$l", cut($referer, 40), htmlspecialchars($referer), true); 
     66            if(strlen($referer) > 35) { 
     67              tooltip("r$l", cut($referer, 30), htmlspecialchars($referer), true); 
    6868            } else { 
    6969              echo '<a href="'.htmlspecialchars($referer).'">'.htmlspecialchars($referer).'</a>'; 
     
    136136      } 
    137137      .jstip { 
     138         float: left; 
     139         clear: both; 
    138140         visibility: hidden; 
    139          border: solid black 2px; 
     141         border: solid black 1px; 
    140142         padding: 2px; 
    141143         position: absolute; 
    142144         z-index: 100; 
    143145         background-color: #ffeecc; 
    144          /*font: 10px sans-serif;*/ 
     146         font-size: 0.8em; 
    145147      } 
    146148      .error { 
     
    230232  </span> GNAA Last Measure Statistics </h1>  
    231233 
     234  <div style="float: left;"> 
     235    <table style="border: solid black 1px; margin: 5px;"> 
     236      <tr style="background-color: #8af;"> 
     237        <td>User</td> 
     238        <td>Count</td> 
     239      </tr> 
     240      <?php print_table($_SERVER['DOCUMENT_ROOT'].'/db/user.db', 30); ?> 
     241    </table> 
     242  </div> 
     243 
    232244  <table style="border: solid black 1px; margin: 5px;"> 
    233245    <tr style="background-color: #8af;"> 
     
    242254  </table> 
    243255 
    244   <div style="float: left;"> 
    245     <table style="border: solid black 1px; margin: 5px;"> 
    246       <tr style="background-color: #8af;"> 
    247         <td>User</td> 
    248         <td>Count</td> 
    249       </tr> 
    250       <?php print_table($_SERVER['DOCUMENT_ROOT'].'/db/user.db', 30); ?> 
    251     </table> 
    252   </div> 
    253  
    254256  <table style="border: solid black 1px; margin: 5px;"> 
    255257    <tr style="background-color: #8af;"> 
Note: See TracChangeset for help on using the changeset viewer.