From 92539715a3b8a963f52c6046c6030e3d233f08fd Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Sun, 14 Jan 2007 03:01:38 +0000 Subject: Updated header lines. Moved channel selection into menu line, when schedule is active. --- css/styles.css | 6 +++++- images/Makefile | 2 +- images/bg_line.png | Bin 0 -> 94 bytes pages/menu.ecpp | 25 ++++++++++++++++++------- pages/pageelems.ecpp | 2 +- pages/remote.ecpp | 1 - pages/schedule.ecpp | 17 +++-------------- pages/timers.ecpp | 1 - 8 files changed, 28 insertions(+), 26 deletions(-) create mode 100644 images/bg_line.png diff --git a/css/styles.css b/css/styles.css index bcf485e..a47f8a4 100644 --- a/css/styles.css +++ b/css/styles.css @@ -90,6 +90,10 @@ div.menu a:hover { text-decoration: underline; } +div.menu form { + display: inline; +} + div.inhalt { padding: 10px; } @@ -292,7 +296,7 @@ table.schedule tr td.head { table.schedule tr td { vertical-align: top; padding: 3px 7px 3px 3px; - background: url(http://cerebellum/~michi/bg_line.png) bottom repeat-x; + background: url(bg_line.png) bottom repeat-x; } table.schedule tr td.day { diff --git a/images/Makefile b/images/Makefile index 450cb35..1f1545f 100644 --- a/images/Makefile +++ b/images/Makefile @@ -19,7 +19,7 @@ OBJS = logo.o record.o active.o inactive.o button_blue.o \ transparent.o edit.o del.o play.o \ bg_header_h.o bg_header_l.o bg_header_r.o \ bg_box_h.o bg_box_l.o bg_box_r.o \ - movie.o menu_line_bg.o + movie.o menu_line_bg.o bg_line.o ### Default rules: diff --git a/images/bg_line.png b/images/bg_line.png new file mode 100644 index 0000000..96ea2b6 Binary files /dev/null and b/images/bg_line.png differ diff --git a/pages/menu.ecpp b/pages/menu.ecpp index 2989e99..87978f5 100644 --- a/pages/menu.ecpp +++ b/pages/menu.ecpp @@ -4,20 +4,24 @@ <%args> active; +component; <%request scope="page"> std::string set_active; +std::string set_component; <{ set_active = active; + if (!component.empty()) + set_component = component; }> <%def setactive> @@ -25,4 +29,11 @@ std::string set_active; current; <%cpp> if (current== set_active) { class="active"<%cpp> } - \ No newline at end of file + + +<%def component> +<%args> +current; + +<%cpp> if ((current== set_active) && (!set_component.empty())) { <& (set_component) &><%cpp> } + diff --git a/pages/pageelems.ecpp b/pages/pageelems.ecpp index 6261e34..07f0a1d 100644 --- a/pages/pageelems.ecpp +++ b/pages/pageelems.ecpp @@ -42,7 +42,7 @@ component; tChannelID channelid; tEventID eventid; - border="0"/> + border="0"/> <%cpp> diff --git a/pages/remote.ecpp b/pages/remote.ecpp index dabad65..798a759 100644 --- a/pages/remote.ecpp +++ b/pages/remote.ecpp @@ -111,7 +111,6 @@ using namespace vdrlive;
- <& pageelems.header_box content=(pageTitle) &>

<$ tr("Interval:") $> diff --git a/pages/schedule.ecpp b/pages/schedule.ecpp index 579be9a..f524c7f 100644 --- a/pages/schedule.ecpp +++ b/pages/schedule.ecpp @@ -45,13 +45,12 @@ using namespace vdrlive; VDR Live - <$ pageTitle $> - + <& pageelems.logo &> - <& menu active=("schedule")> + <& menu active=("schedule") component=("schedule.channel_selection")>
-<&pageelems.header_box component=("schedule.channel_selection") &> <{ bool active_line = false; @@ -105,15 +104,5 @@ using namespace vdrlive; <%include>page_exit.eh <%def channel_selection> -
- - - - -
Name() ?> -
- <& channels_widget name=("channel") selected=(Channel ? *Channel->GetChannelID().ToString() : "") - onchange=("document.forms.channels.submit()") &> -
-
+
<& channels_widget name=("channel") selected=(Channel ? *Channel->GetChannelID().ToString() : "") onchange=("document.forms.channels.submit()") &>
diff --git a/pages/timers.ecpp b/pages/timers.ecpp index 422b2ea..84d8371 100644 --- a/pages/timers.ecpp +++ b/pages/timers.ecpp @@ -23,7 +23,6 @@ using namespace vdrlive; <& pageelems.logo &> <& menu active=("timers") &>
- <& pageelems.header_box content=(pageTitle) &> % if (timers.size() == 0) { Keiner Timer definiert % } else { -- cgit v1.2.3