summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xincludes/inc_media.php16
-rwxr-xr-xincludes/inc_mp3.php2
-rw-r--r--mp3stream.txt23
3 files changed, 15 insertions, 26 deletions
diff --git a/includes/inc_media.php b/includes/inc_media.php
index d0f94c1..eaed547 100755
--- a/includes/inc_media.php
+++ b/includes/inc_media.php
@@ -46,12 +46,18 @@ foreach ($audioextarray as $num => $audioext)
if ($playlist)
{
print " <li class=\"menu\">\r\n";
- print " <a href=\"index.php?action=playdir&mediapath={$mediapath}&subdir={$subdir}\">\r\n";
+ print " <a class=\"noeffect\" href=\"javascript:sendForm('track_all');\">\r\n";
print " <img src=\"images/pictos/playlist.png\" />\r\n";
print " <span class=\"name\">Play current dir</span>\r\n";
print " <span class=\"arrow\"></span>\r\n";
print " </a>\r\n";
print " </li>\r\n";
+ print "<form name=\"track_all\" id=\"track_all\" method=\"post\" action=\"index.php\">";
+ print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"playdir\"/>";
+ print " <input name=\"mediapath\" type=\"hidden\" id=\"mediapath\" value=\"{$mediapath}\" />";
+ print " <input name=\"subdir\" type=\"hidden\" id=\"subdir\" value=\"{$subdir}\" />";
+ print " <input name=\"play\" type=\"hidden\" id=\"play\" value= />";
+ print "</form>";
}
$dir_handle = @opendir($mediapath .$subdir);
@@ -119,11 +125,17 @@ if ($medianame_array[0])
$audiocnt++;
print "<li class=\"menu\">\r\n";
- print " <a href=\"index.php?action=playdir&mediapath={$mediapath}&subdir={$subdir}&play={$audiocnt}\">\r\n";
+ print " <a class=\"noeffect\" href=\"javascript:sendForm('track_{$audiocnt}');\">\r\n";
print " <img src=\"images/pictos/audio.png\" />\r\n";
print " <span class=\"name\">$value</span><span class=\"arrow\"></span>\r\n";
print " </a>\r\n";
print "</li>\r\n";
+ print "<form name=\"track_{$audiocnt}\" id=\"track_{$audiocnt}\" method=\"post\" action=\"index.php\">";
+ print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"playdir\"/>";
+ print " <input name=\"mediapath\" type=\"hidden\" id=\"mediapath\" value=\"{$mediapath}\" />";
+ print " <input name=\"subdir\" type=\"hidden\" id=\"subdir\" value=\"{$subdir}\" />";
+ print " <input name=\"play\" type=\"hidden\" id=\"play\" value={$audiocnt} />";
+ print "</form>";
}
}
}
diff --git a/includes/inc_mp3.php b/includes/inc_mp3.php
index 9e3cd62..813ca3b 100755
--- a/includes/inc_mp3.php
+++ b/includes/inc_mp3.php
@@ -4,7 +4,7 @@ $play =$_REQUEST['play'];
if ($play == "")
print "<body class=\"ipodlist\">\r\n";
else
- print "<body class=\"ipodlist\" onload=\"javascript:Document.s{$play}.Play()\">\r\n";
+ print "<body class=\"ipodlist\">\r\n";
print "<div id=\"topbar\" class=\"transparent\">\r\n";
print "<div id=\"leftnav\">\r\n";
diff --git a/mp3stream.txt b/mp3stream.txt
deleted file mode 100644
index 00eabc5..0000000
--- a/mp3stream.txt
+++ /dev/null
@@ -1,23 +0,0 @@
-Bouton playlist:
-en tête de la page listant les fichiers media , sous la ligne Current path:
-
-<li class="menu"><a href="index.php?action=playdir&dir=/mnt/media/Music/Albums/113 - Dans L urgence/"><img src="images/pictos/playlist.png" /><span class="name">PLAY ALL</span><span class="arrow"></span></a></li>
-
-
-
-et pour les titres uniques listés:
-
-génère la page playlist avec les morceaux du rep,mais joue directement le morceau demandé ( dans
-
-l'exemple ici le 3eme en partant du haut ( file=3 ) ) :
-
-si param $file existe , alors ajoute dans la balise body:
-
-print "<body class=\"ipodlist\" onload=\"javascript:document.s3.Play()\">\r\n";
-
-
-Les fichiers mp3 listés en mode navigation ( non playlist ):
-
-<li class="menu"><a href="index.php?action=playdir&dir=/mnt/media/Music/Albums/113 - Dans L urgence/&file=3"><img src="images/pictos/audio.png" /><span class="name">01-113-a_lechelle_du_monde-mvp.mp3</span><span class="arrow"></span></a></li>
-
-