summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rwxr-xr-xincludes/inc_media.php16
-rwxr-xr-xincludes/inc_mp3.php2
2 files changed, 15 insertions, 3 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";