summaryrefslogtreecommitdiff
path: root/includes/inc_home.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-02-25 19:22:16 +0100
committerTheTroll <trolldev@gmail.com>2010-02-25 19:22:16 +0100
commit627da0570e79865643ae3c23c0f5244ac46d5d68 (patch)
treeda526f76a8176a0f182f275f5834bccc7c8a0e59 /includes/inc_home.php
parentc57e43d3caa214c0067ed1ec452fc5cd94c67121 (diff)
downloadistreamdev-627da0570e79865643ae3c23c0f5244ac46d5d68.tar.gz
istreamdev-627da0570e79865643ae3c23c0f5244ac46d5d68.tar.bz2
Added a source type and now show the media browsing respect to the type
Diffstat (limited to 'includes/inc_home.php')
-rwxr-xr-xincludes/inc_home.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/includes/inc_home.php b/includes/inc_home.php
index 9515860..d907b87 100755
--- a/includes/inc_home.php
+++ b/includes/inc_home.php
@@ -27,17 +27,27 @@ if ($vdrenabled)
// Media menus
print " <span class=\"graytitle\">MEDIA</span>\r\n";
print " <ul class=\"pageitem\">\r\n";
-foreach($mediasources as $sname => $spath)
+foreach($mediasources as $source)
{
+ $stype = $source[0];
+ $sname = $source[1];
+ $spath = $source[2];
+
print " <li class=\"menu\">\r\n";
print " <a class=\"noeffect\" href=\"javascript:sendForm('media {$sname} {$spath}');\">\r\n";
- print " <img src=\"images/pictos/media.png\" />\r\n";
+ if ($stype == 1)
+ print " <img src=\"images/pictos/video.png\" />\r\n";
+ else
+ print " <img src=\"images/pictos/audio.png\" />\r\n";
print " <span class=\"name\">{$sname}</span>\r\n";
print " <span class=\"arrow\"></span>\r\n";
print " </a>\r\n";
print " </li>\r\n";
print " <form name=\"media\" id=\"media {$sname} {$spath}\" method=\"post\" action=\"index.php\">\r\n";
- print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"media\" />\r\n";
+ if ($stype == 1)
+ print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"video\" />\r\n";
+ else
+ print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"audio\" />\r\n";
print " <input name=\"mediapath\" type=\"hidden\" id=\"mediapath\" value=\"{$spath}\" />\r\n";
print " <input name=\"subdir\" type=\"hidden\" id=\"subdir\" value=\"/\" />\r\n";
print " </form>\r\n";