git-svn-id: file:///root/webif/svn/humax/pkg/src/webif@171 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2011-06-09 21:16:30 +00:00
parent 64aac2f52d
commit 8f3971cf76
192 changed files with 8283 additions and 38 deletions

View File

@ -65,7 +65,7 @@ if {[$record get series_crid] != ""} {
<tr>
<th nowrap>Series CRID</th><td>
<a href=/cgi-bin/epg_search.jim?scrid=[$record get series_crid]>
<img border=0
<img border=0 height=14
src=/images/421_1_00_CH_Title_2R_Arrow.png>
[$record get channel_crid][$record get series_crid]
</a>
@ -79,7 +79,7 @@ if {[$record get rec_crid] != ""} {
if {$rec != ""} {
puts "<tr><th>Recommends</th><td>
<a href=/cgi-bin/epg_search.jim?crid=[$rec get event_crid]>
<img border=0
<img border=0 height=14
src=/images/421_1_00_CH_Title_2R_Arrow.png>
[$rec get name]
([$rec get channel_crid][$rec get event_crid])
@ -91,10 +91,16 @@ if {[$record get rec_crid] != ""} {
puts "
<tr>
<td colspan=2 valign=top>
[$record channel_icon]
[join [$record icon_set] "&nbsp;"]
</td>
</tr>
</table>
<a class=footnote href=/cgi-bin/epg_dump.jim?service=[$record get service_id]&event=[$record get event_id]&raw=1>
<img border=0 src=/images/532_1_00_Find_Path_Arrow.png>
Show raw EPG info
</a>
"
epg cleanup

View File

@ -111,7 +111,7 @@ puts {
<table class=borders id=results style="clear: both;margin: 0.5em 0 0 0">
<tr>
<th>Date</th>
<th colspan=2>Channel</th>
<th colspan=3>Channel</th>
<th>Programme</th>
<th>Synopsis</th>
</tr>
@ -134,6 +134,7 @@ foreach record [lsort -command rsort $records] {
[clock format [$record get start] -format "%a %d %b %Y"]<br>
[clock format [$record get start] -format "%H:%M %Z"]</td>"
puts "<td>[$record get channel_num]</td>"
puts "<td>[$record channel_icon 50]</td>"
puts "<td nowrap>
<a href=/cgi-bin/epg_service.jim?service=[$record get service_id]>
[$record get channel_name]

View File

@ -28,10 +28,18 @@ catch { set service [dict get $_cgi service] }
set records [epg fetch dump -service $service]
set channel_num [[lindex $records 0] get channel_num]
set channel_name [[lindex $records 0] get channel_name]
set tr [lindex $records 0]
set channel_num [$tr get channel_num]
set channel_name [$tr get channel_name]
puts "<h3>Channel: $channel_num - $channel_name</h3>"
puts "
<div style=\"margin: 0 1em 1em 1em\">
[$tr channel_icon 0 {vertical-align:middle}]
<span style=\"vertical-align: middle\">
$channel_num - $channel_name
</span>
</div>
"
puts {
<table class=borders>

View File

@ -0,0 +1,81 @@
#!/mod/bin/jimsh
package require cgi
puts "Content-Type: text/html"
puts ""
cgi_input
#cgi_dump
# Set variables
if {[catch {set fd [open "/var/lib/humaxtv/hostname" r]}]} {
set hostname "humax"
} else {
set hostname [string trim [read $fd]]
close $fd
}
# Handle updates
if {[dict exists $_cgi hostname]} {
set nhostname [string trim [dict get $_cgi hostname]]
if {$nhostname eq $hostname} {
puts "Hostname is already '$hostname'."
} elseif [string is alnum -strict $hostname] {
set fd [open "/var/lib/humaxtv/hostname" w]
puts $fd $nhostname
close $fd
exec hostname -F /var/lib/humaxtv/hostname
puts "Hostname successfully updated, reboot recommended."
} else {
puts "Invalid hostname."
}
exit
}
source /mod/var/mongoose/html/lib/header.jim
puts {<script type="text/javascript" src="/js/jquery.form.js"></script>}
puts {
<script type=text/javascript>
$(document).ready(function () {
$(":submit").button();
$('form').each(function(i, el) {
var id = $(this).attr('id');
var output = '#' + id + '_output'
$(this).ajaxForm({
target: output,
success: function() {
$(output).css('font-style', 'italic');
$(output).show('slow');
$(output).delay(2000).fadeOut('slow');
}
});
});
});
</script>
}
puts "
<h1>Settings</h1>
<form id=hostname method=get action=$env(REQUEST_URI)>
<table class=keyval>
<tr>
<th>Hostname</th>
<td><input name=hostname value=\"$hostname\"
length=20 maxlength=50>
<input id=hostname_submit value=\"change\" type=submit>
<div id=hostname_output></div>
</td>
</tr>
</table>
</form>
<br>
More coming soon...
<br>
<br>
"
source /mod/var/mongoose/html/lib/footer.jim

View File

@ -168,6 +168,12 @@ pre
}
*/
.blood
{
color: #ff4000;
background: transparent;
}
.footnote
{
color: #ff4000;

View File

@ -0,0 +1 @@
freeview/BBC-RED-BUTTON_logo.jpg

View File

@ -0,0 +1 @@
freeview/4-MUSIC_logo.jpg

View File

@ -0,0 +1 @@
freeview/5-USA_logo.jpg

View File

@ -0,0 +1 @@
freeview/Five_logo.jpg

View File

@ -0,0 +1 @@
freeview/Absolute_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-RADIO-6-music_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-RADIO-A_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-FOUR_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-HD_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-NEWS_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-one_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-1-HD_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-PARLIAMENT_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-Radio-1Xtra_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-RADIO-5-live_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-RADIO-5-live-sports_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-Radio-1_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-Radio-2_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-RADIO-3_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-Radio-4-Extra_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-RADIO-4_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-three_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-two_logo.jpg

View File

@ -0,0 +1 @@
freeview/BBC-WORLD-SERVICE_logo.jpg

View File

@ -0,0 +1 @@
freeview/Big-Deal_logo.jpg

View File

@ -0,0 +1 @@
freeview/cbbc_logo.jpg

View File

@ -0,0 +1 @@
freeview/CBeebies_logo.jpg

View File

@ -0,0 +1 @@
freeview/Citv_logo.jpg

View File

@ -0,0 +1 @@
freeview/community-channel_logo.jpg

View File

@ -0,0 +1 @@
freeview/Capital-Radio_logo.jpg

View File

@ -0,0 +1 @@
freeview/Challenge-TV_logo.jpg

View File

@ -0,0 +1 @@
freeview/4HD_logo.jpg

View File

@ -0,0 +1 @@
freeview/channel-4-1_logo.jpg

View File

@ -0,0 +1 @@
freeview/channel-4_logo.jpg

View File

@ -0,0 +1 @@
freeview/five_logo.jpg

View File

@ -0,0 +1 @@
freeview/S4C-Clirlun_logo.jpg

View File

@ -0,0 +1 @@
freeview/Create-and-Craft_logo.jpg

View File

@ -0,0 +1 @@
freeview/Dave-Ja-Vu_logo.jpg

View File

@ -0,0 +1 @@
freeview/Dave_logo.jpg

View File

@ -0,0 +1 @@
freeview/Daystar_logo.jpg

View File

@ -0,0 +1 @@
freeview/E4-1_logo.jpg

View File

@ -0,0 +1 @@
freeview/E4_logo.jpg

View File

@ -0,0 +1 @@
cam/espn.jpg

View File

@ -0,0 +1 @@
freeview/FILM-4_logo.jpg

View File

@ -0,0 +1 @@
freeview/logo_tn_gems.gif

View File

@ -0,0 +1 @@
Gems TV.gif

View File

@ -0,0 +1 @@
freeview/heart-Radio_logo.jpg

View File

@ -0,0 +1 @@
cam/home_uktv.jpg

View File

@ -0,0 +1 @@
freeview/ITV1-1_logo.jpg

View File

@ -0,0 +1 @@
freeview/ITV1-HD_logo.jpg

View File

@ -0,0 +1 @@
freeview/itv-1_logo.jpg

View File

@ -0,0 +1 @@
freeview/itv-2-1_logo.jpg

View File

@ -0,0 +1 @@
freeview/itv-2_logo.jpg

View File

@ -0,0 +1 @@
freeview/itv-3_logo.jpg

View File

@ -0,0 +1 @@
freeview/itv-4_logo.jpg

View File

@ -0,0 +1 @@
freeview/ideal-WORLD_logo.jpg

View File

@ -0,0 +1 @@
freeview/KERRAND!-Radio_logo.jpg

View File

@ -0,0 +1 @@
freeview/KISS-Radio_logo.jpg

View File

@ -0,0 +1 @@
freeview/magic-Radio_logo.jpg

View File

@ -0,0 +1 @@
freeview/MORE-4_logo.jpg

View File

@ -0,0 +1 @@
freeview/Pick-TV_logo.jpg

View File

@ -0,0 +1 @@
freeview/Pick-TV_logo.jpg

View File

@ -0,0 +1 @@
freeview/Premier-CHRISTIAN-RADIO_logo.jpg

View File

@ -0,0 +1 @@
freeview/Q-Radio_logo.jpg

View File

@ -0,0 +1 @@
freeview/Quest_logo.jpg

View File

@ -0,0 +1 @@
freeview/QVC-Beauty_logo.jpg

View File

@ -0,0 +1 @@
freeview/QVC_logo.jpg

View File

@ -0,0 +1 @@
cam/rocks_and_co.jpg

View File

@ -0,0 +1 @@
freeview/Russia-Today_logo.jpg

View File

@ -0,0 +1 @@
freeview/S4-C_logo.jpg

View File

@ -0,0 +1 @@
freeview/smooth-RADIO_logo.jpg

View File

@ -0,0 +1 @@
freeview/SKY-NEWS_logo.jpg

View File

@ -0,0 +1 @@
cam/harmonyOne_88X150_SkySportsOne.jpg

View File

@ -0,0 +1 @@
cam/harmonyOne_88X150_SkySportsTwo.jpg

View File

@ -0,0 +1 @@
freeview/skytext_logo.jpg

View File

@ -0,0 +1 @@
freeview/smash!-Radio_logo.jpg

View File

@ -0,0 +1 @@
freeview/Teletext-holidays_logo.jpg

View File

@ -0,0 +1 @@
freeview/logo_tn_tvx.jpg

View File

@ -0,0 +1 @@
freeview/the-hits_logo.jpg

View File

@ -0,0 +1 @@
freeview/U105.8_logo.jpg

View File

@ -0,0 +1 @@
freeview/VIVA_logo.jpg

View File

@ -0,0 +1 @@
freeview/Yesterday_logo.jpg

View File

@ -0,0 +1 @@
freeview/bid-tv_logo.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Some files were not shown because too many files have changed in this diff Show More