web/index.php
changeset 7 a6496f95e0fc
parent 5 216bf65ed757
child 8 3e62fc730d8c
--- a/web/index.php	Fri Dec 16 10:44:06 2011 +0100
+++ b/web/index.php	Fri Dec 16 11:46:21 2011 +0100
@@ -15,7 +15,7 @@
   <div id="outer_div">
   <img src="../crea/imgs/edition_2011.png" style="position: absolute; z-index: 3; margin-left: 12px;"></img>
       <div id="banner">      
-      <img src="../crea/imgs/enmi_logo.png" style="margin-left: 51px; float: left;"></img>
+      <a href=""><img src="../crea/imgs/enmi_logo.png"></img></a>
       <div style="clear: both;"></div>
   </div>
 
@@ -33,9 +33,14 @@
             continue;
           
           list($title, $stream_id, $thumbnail, $date) = explode(";", $line);
+          if (strlen($title) >= 37) {            
+            $title = substr($title, 0, 35) . "...";            
+          }
+          
           echo "<div class='thumb'>" .
-               "<img class='thumbnail' src=$thumbnail alt='thumbnail'></img>" .
-               "<a href='player.php?stream=$stream_id'>$title</a><br>$date" .
+               "<a href='player.php?stream=$stream_id'><img class='thumbnail' src=$thumbnail alt='thumbnail'></img></a>" .
+               "<div class='title'>$title</div>" .
+               "<div class='date'>$date</div>" .
                "</div>";
         }
       ?>