MOD Avancement dans la recherche de film
[pompage.git] / xsl / yopyop.xsl
index 5c1a1fd..d77bbbd 100644 (file)
@@ -3,12 +3,12 @@
  <xsl:template match="filmographie">
   <html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
    <head>
-    <title>yopYop</title>\r
+    <title>DivX</title>\r
     <link rel="stylesheet" href="../css/yopyop.css" type="text/css" />\r
     <script type="text/javascript" src="../js/yopyop.js" ></script>
    </head>
    <body>
-    <h1>DivX</h1>
+    <h1>DivX</h1><form><input type="text" onkeyup="doRecherche()" id="recherche" /></form>
     <table id="liste">
      <tr>
       <th class="titre">Titre</th>
@@ -21,8 +21,8 @@
      <xsl:for-each select="film">
       <xsl:sort select="annee" order="descending" />\r
       <xsl:sort select="titre" />
-      <tr>
-       <td onclick="detailFilm('{@id}')" class="titre"><xsl:value-of select="titre"/></td>
+      <tr id="ligne{@id}">
+       <td onclick="detailFilm('{@id}')" class="titre" id="titre{@id}"><xsl:value-of select="titre"/></td>
        <td class="annee"><xsl:value-of select="annee"/></td>\r
        <td class="duree"><xsl:value-of select="duree"/> min</td>\r
        <td class="lien"><a href="{url}">GO</a></td>\r
@@ -30,7 +30,7 @@
       </tr>\r
       <tr>\r
        <td colspan="5" class="detail">\r
-        <table class="detail" id="{@id}">\r
+        <table class="detail" id="detail{@id}">\r
          <tr><td class="titreDetail">Genre<xsl:if test="count(genres/genre) > 1">s</xsl:if></td><td><xsl:for-each select="genres/genre"><xsl:value-of select="."/><xsl:if test="not(position() = last())">, </xsl:if></xsl:for-each></td></tr>\r
          <tr><td class="titreDetail">Réalisateur<xsl:if test="count(realisateurs/realisateur) > 1">s</xsl:if></td><td><xsl:for-each select="realisateurs/realisateur"><xsl:value-of select="."/><xsl:if test="not(position() = last())">, </xsl:if></xsl:for-each></td></tr>\r
          <tr><td class="titreDetail">Acteur<xsl:if test="count(acteurs/acteur) > 1">s</xsl:if></td><td><xsl:for-each select="acteurs/acteur"><xsl:value-of select="."/><xsl:if test="not(position() = last())">, </xsl:if></xsl:for-each></td></tr>\r