diff --git a/var/mongoose/cgi-bin/browse.jim b/var/mongoose/cgi-bin/browse.jim index 30b9c9c..c9b79dd 100755 --- a/var/mongoose/cgi-bin/browse.jim +++ b/var/mongoose/cgi-bin/browse.jim @@ -315,15 +315,17 @@ puts {
+ } puts "$dir" -# Breadcrumb path puts " -
+
" + +# Breadcrumb path set stub "" foreach part [split $dir /] { if {$stub eq "/"} { set name $part } else { set name "/$part" } @@ -406,6 +408,17 @@ puts "" puts "
" +puts { +
+ +File Clipboard + +
+ Loading... +
+
+} + puts "
" puts { diff --git a/var/mongoose/cgi-bin/browse/browse.js b/var/mongoose/cgi-bin/browse/browse.js index ff54321..6c85a26 100755 --- a/var/mongoose/cgi-bin/browse/browse.js +++ b/var/mongoose/cgi-bin/browse/browse.js @@ -457,6 +457,9 @@ var dmenuclick = function(action, el, pos) $.getJSON('/cgi-bin/browse/newdir.jim?dir=' + encodeURIComponent(dir), new_folder_callback); + // Load clipboard + $('#clipboard').load('/cgi-bin/browse/clipboard.jim'); + // Uncheck everything $('input.fs:checked').attr('checked', false); diff --git a/var/mongoose/cgi-bin/browse/clipboard.jim b/var/mongoose/cgi-bin/browse/clipboard.jim new file mode 100755 index 0000000..799dab2 --- /dev/null +++ b/var/mongoose/cgi-bin/browse/clipboard.jim @@ -0,0 +1,31 @@ +#!/mod/bin/jimsh + +package require cgi +source /mod/var/mongoose/lib/setup +require clipboard.class + +puts "Content-Type: text/html" +puts "" + +cgi_input +#cgi_dump + +set cb [[clipboard new {path "/tmp/webif-browse.cb"}] load] + +set action [cgi_get act list] + +switch $action { + list { + if {![$cb size]} { + puts "Clipboard is empty" + exit + } + } + add { + } + del { + } + clear { + } +} + diff --git a/var/mongoose/cgi-bin/browse/style.css b/var/mongoose/cgi-bin/browse/style.css new file mode 100644 index 0000000..1df1101 --- /dev/null +++ b/var/mongoose/cgi-bin/browse/style.css @@ -0,0 +1,7 @@ + +div.brow +{ + float: left; + clear: left; +} + diff --git a/var/mongoose/cgi-bin/db.jim b/var/mongoose/cgi-bin/db.jim index b0a429b..8cd819c 100755 --- a/var/mongoose/cgi-bin/db.jim +++ b/var/mongoose/cgi-bin/db.jim @@ -13,6 +13,10 @@ set databases { /var/lib/humaxtv/rsv.db /var/lib/humaxtv/setup.db /var/lib/humaxtv/channel.db + /var/lib/humaxtv/default_channel.db + /var/lib/humaxtv/default_setup.db + /var/lib/humaxtv/rsv_fail.db + /var/lib/humaxtv/tempsetup.db /mnt/hd2/dms_cds.db } diff --git a/var/mongoose/html/css/style.css b/var/mongoose/html/css/style.css index 9194208..9d3f222 100644 --- a/var/mongoose/html/css/style.css +++ b/var/mongoose/html/css/style.css @@ -13,6 +13,19 @@ html>body font-size: small; } +.left, .cleft +{ + float: left; +} +.cleft +{ + clear: left; +} +fieldset.left, fieldset.cleft +{ + display: inline; +} + div.container { position: relative; diff --git a/var/mongoose/html/img/left.png b/var/mongoose/html/img/left.png new file mode 100644 index 0000000..c17771e Binary files /dev/null and b/var/mongoose/html/img/left.png differ diff --git a/var/mongoose/html/img/right.png b/var/mongoose/html/img/right.png new file mode 100644 index 0000000..e25928f Binary files /dev/null and b/var/mongoose/html/img/right.png differ diff --git a/var/mongoose/html/index.shtml b/var/mongoose/html/index.shtml index 8dca352..82acde0 100644 --- a/var/mongoose/html/index.shtml +++ b/var/mongoose/html/index.shtml @@ -111,6 +111,12 @@ $(document).ready(function() {