ADD copyright dans le pied de page + accès aux conditions d'utilisation
[euphorik.git] / index.yaws
index dd82f4a..d73bc2b 100755 (executable)
@@ -4,10 +4,22 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
 <head>
    <title>euphorik.ch</title>
-   
-   <link id="cssPrincipale" rel="stylesheet" href="<erl>
-    out(A) -> {html, "css/1/euphorik.css"}.
-   </erl>" type="text/css" media="screen" ></link>
+   <erl>
+      out(A) -> 
+         CSS = case euphorik_bd:css_from_user_cookie(yaws_api:find_cookie_val("cookie", A)) of
+            undefined -> "css/1/euphorik.css";
+            C -> C
+         end,
+         {ehtml, {link ,
+            [
+               {id, "cssPrincipale" },
+               {rel, "stylesheet"},
+               {href, CSS},
+               {type, "text/css"},
+               {media, "screen"}
+            ], []}
+         }.
+   </erl>
    <link rel="stylesheet" href="css/jquery.lightbox.css" type="text/css" media="screen" ></link>
    <script type="text/javascript" src="js/jquery.js" ></script>
    <script type="text/javascript" src="js/jquery.lightbox.js"></script>
@@ -36,7 +48,7 @@
             </p>
          </form> 
          <div id="page"></div>
-         <div id="footer"><a href="http://yaws.hyber.org"><img src="img/powered-by-yaws.gif" alt="powered by Yaws" /></a></div>
+         <div id="footer"><span class="copyright">copyright 2008 euphorik.ch</span><span class="conditions lien">conditions d'utilisation</span><a href="http://yaws.hyber.org"><img src="img/powered-by-yaws.gif" alt="powered by Yaws" /></a></div>
       </div>
    </body>
 </html>
\ No newline at end of file