diff --git a/var/mongoose/cgi-bin/epg/service.jim b/var/mongoose/cgi-bin/epg/service.jim
index 396efc8..05195cc 100755
--- a/var/mongoose/cgi-bin/epg/service.jim
+++ b/var/mongoose/cgi-bin/epg/service.jim
@@ -53,7 +53,7 @@ puts {
set i 0
foreach record $records {
altrow
- $record get_channel_info
+ #$record get_channel_info
set ended [$record ended]
if {[$record showing]} {
puts "
| "
diff --git a/var/mongoose/cgi-bin/status.jim b/var/mongoose/cgi-bin/status.jim
index 5c08be1..639f746 100755
--- a/var/mongoose/cgi-bin/status.jim
+++ b/var/mongoose/cgi-bin/status.jim
@@ -80,8 +80,12 @@ if {[llength $data]} {
incr seen($name)
if {$runmode eq "cgi"} {
- lappend output "
- $mode $name"
+ lappend output [concat \
+ "\n" \
+ " \n" \
+ " $mode $name\n" \
+ "\n" \
+ ]
} else {
lappend output "$mode $name"
}
@@ -115,10 +119,13 @@ if {![system instandby] && $play < 1} {
}
if {$runmode eq "cgi"} {
- lappend output "[epg channelicon $name 30 \
- {vertical-align: middle; padding: 0 4px 0 2px}]
-
- Watching $lcn: $name $prog"
+ lappend output [concat \
+ "\n" \
+ " [epg channelicon $name 30 \
+ {vertical-align: middle; padding: 0 4px 0 2px}]\n" \
+ " Watching $lcn: $name $prog\n" \
+ "\n" \
+ ]
} else {
lappend output "Watching $lcn: $name $prog"
}
@@ -127,9 +134,13 @@ if {![system instandby] && $play < 1} {
if {[system instandby]} {
if {$runmode eq "cgi"} {
- lappend output "
- System is in standby."
+ lappend output [concat \
+ "\n"
+ " \n" \
+ " System is in standby.\n" \
+ "" \
+ ]
} else {
lappend output "System is in standby."
}
@@ -137,7 +148,7 @@ if {[system instandby]} {
if {[llength $output]} {
if {$runmode eq "cgi"} {
- puts [join $output "
"]
+ puts [join $output "\n
\n"]
} else {
puts [join $output "\n"]
}
diff --git a/var/mongoose/html/m/channel.jim b/var/mongoose/html/m/channel.jim
new file mode 100755
index 0000000..d189cc5
--- /dev/null
+++ b/var/mongoose/html/m/channel.jim
@@ -0,0 +1,60 @@
+#!/mod/bin/jimsh
+
+package require cgi
+source /mod/webif/lib/setup
+require epg.class
+
+cgi_input
+
+set sid [cgi_get sid 0]
+
+mheader
+
+set records [epg dbfetch dump -service $sid -after [clock seconds]]
+set tr [lindex $records 0]
+$tr get_channel_info
+
+set day 0
+puts "
+
+ [$tr channel_icon 40]
+
+ [$tr get channel_num] - [$tr get channel_name]
+
+
+"
+
+mfooter
+
diff --git a/var/mongoose/html/m/index.html b/var/mongoose/html/m/index.html
new file mode 100644
index 0000000..480bdea
--- /dev/null
+++ b/var/mongoose/html/m/index.html
@@ -0,0 +1,3 @@
+
+
+
diff --git a/var/mongoose/html/m/index.jim b/var/mongoose/html/m/index.jim
new file mode 100755
index 0000000..f940802
--- /dev/null
+++ b/var/mongoose/html/m/index.jim
@@ -0,0 +1,38 @@
+#!/mod/bin/jimsh
+
+source /mod/webif/lib/setup
+require settings.class plugin
+
+mheader
+
+puts ""
+
+proc tb {icon txt link {height 80} {width 0}} {
+ if {$width > 0} {
+ set width " width=$width"
+ } else {
+ set width ""
+ }
+ puts -nonewline "-
+
+
$txt
+ "
+}
+
+if {[file exists "/mod/bin/ir"]} {
+ tb "/img/remote.png" "Remote" "/plugin/ir/m/index.jim\" rel=\"external"
+}
+tb "/images/323_1_10_Menu_Video.png" "Browse" "#"
+tb "/images/321_1_00_Menu_CHList.png" "Schedule" "#"
+tb "/images/328_1_26_Menu_TV_Guide.png" "Now/Next" "nownext.jim"
+tb "/img/spanner.png" "Services" "#"
+tb "/img/packages.png" "Packages" "#"
+tb "/images/326_1_00_Menu_Settings.png" "Settings" \
+ "/cgi-bin/settings.jim\" rel=\"external"
+tb "/img/diagnostics.png" "Diag" "#"
+#eval_plugins toolbar
+
+puts "
"
+
+mfooter
+
diff --git a/var/mongoose/html/m/lib/footer.jim b/var/mongoose/html/m/lib/footer.jim
new file mode 100755
index 0000000..dc463ab
--- /dev/null
+++ b/var/mongoose/html/m/lib/footer.jim
@@ -0,0 +1,20 @@
+#!/mod/bin/jimsh
+
+puts {
+
+
+
+}
+
+if {![catch {
+ set rendertime [expr [expr [clock milliseconds] - $renderstart] / 1000.0]
+ }]} {
+ puts ""
+}
+
+puts {
+
+