web/index.php
changeset 8 3e62fc730d8c
parent 7 a6496f95e0fc
child 13 8769a8877aeb
equal deleted inserted replaced
7:a6496f95e0fc 8:3e62fc730d8c
    12 
    12 
    13 <body>
    13 <body>
    14   
    14   
    15   <div id="outer_div">
    15   <div id="outer_div">
    16   <img src="../crea/imgs/edition_2011.png" style="position: absolute; z-index: 3; margin-left: 12px;"></img>
    16   <img src="../crea/imgs/edition_2011.png" style="position: absolute; z-index: 3; margin-left: 12px;"></img>
    17       <div id="banner">      
    17   <div id="banner">      
    18       <a href=""><img src="../crea/imgs/enmi_logo.png"></img></a>
    18   <a href=""><img src="../crea/imgs/enmi_logo.png"></img></a>
    19       <div style="clear: both;"></div>
    19   <ul class="menu">
       
    20     <li class="menuUnderline"><a href="" class="menuText">Accueil</a></li>
       
    21     <li class="menuUnderline"><a class="menuText">A propos</a></li>
       
    22   </ul>
       
    23   <div style="clear: both;"></div>
    20   </div>
    24   </div>
    21 
    25 
    22   <div id="inner_div">
    26   <div id="inner_div">
    23       <div id="intro_title">
    27       <div id="intro_title">
    24         Séminaire préparatoire "Economie et technologies de la confiance"
    28         Séminaire préparatoire "Economie et technologies de la confiance"
    30         /* thank you php docs */
    34         /* thank you php docs */
    31         foreach ($lines as $line_num => $line) {
    35         foreach ($lines as $line_num => $line) {
    32           if ($line[0] == "#")
    36           if ($line[0] == "#")
    33             continue;
    37             continue;
    34           
    38           
    35           list($title, $stream_id, $thumbnail, $date) = explode(";", $line);
    39           list($title, $author, $stream_id, $thumbnail, $date) = explode(";", $line);
    36           if (strlen($title) >= 37) {            
    40           if (strlen($title) >= 37) {            
    37             $title = substr($title, 0, 35) . "...";            
    41             $title = substr($title, 0, 35) . "...";            
    38           }
    42           }
    39           
    43           
    40           echo "<div class='thumb'>" .
    44           echo "<div class='thumb'>" .
    41                "<a href='player.php?stream=$stream_id'><img class='thumbnail' src=$thumbnail alt='thumbnail'></img></a>" .
    45                "<a href='player.php?stream=$stream_id'><img class='thumbnail' src=$thumbnail alt='thumbnail'></img></a>" .
    42                "<div class='title'>$title</div>" .
    46                "<div class='title'>$title</div>" .
       
    47                "<div class='author'>par $author</div>" .
    43                "<div class='date'>$date</div>" .
    48                "<div class='date'>$date</div>" .
    44                "</div>";
    49                "</div>";
    45         }
    50         }
    46       ?>      
    51       ?>      
    47       <div style="clear: both;"></div>
    52       <div style="clear: both;"></div>