~ubuntu-branches/ubuntu/saucy/vdr-plugin-live/saucy-proposed

« back to all changes in this revision

Viewing changes to pages/edit_searchtimer.ecpp

  • Committer: Package Import Robot
  • Author(s): Tobias Grimm
  • Date: 2012-01-15 10:22:53 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120115102253-hixwx4gbcpyhtt2m
Tags: 0.2.0+git20120114-1
* New Upstream Snapshot (commit d2a85a6) (Closes: #654879)
* Dropped 02_timers_colon patch - fixed upstream
* Dropped 04_tntnet-2.0.patch - fixed upstream
* Dropped 01_ipv6.patch - fixed upstream
* Dropped 03_live-0.2.0-fix-INCLUDES.patch - fixed upstream
* Build-depend on libpcre3-dev
* Updated debian/copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
#include "epgsearch.h"
11
11
#include "setup.h"
12
12
#include "i18n.h"
 
13
#include "users.h"
13
14
 
14
15
using namespace std;
15
16
using namespace vdrlive;
67
68
        int allowedrepeats = 0;
68
69
        int repeatswithindays = 0;
69
70
        bool comparetitle = false;
70
 
        bool comparesubtitle = false;
 
71
        int comparesubtitle = 0;
71
72
        bool comparesummary = false;
72
73
        unsigned avoidrepeatscatselected[];
73
74
        int priority = 0;
99
100
}>
100
101
<%cpp>
101
102
 
 
103
        if (!cUser::CurrentUserHasRightTo(UR_EDITSTIMERS))
 
104
                throw HtmlError( tr("Sorry, no permission. Please contact your administrator!") );
 
105
 
102
106
#define SELECTIF(x) reply.out() << ( (x) ? "selected=\"selected\"" : "" );
103
107
#define CHECKIF(x) reply.out() << ( (x) ? "checked=\"checked\"" : "" );
104
108
 
174
178
                searchtimer.SetUseAsSearchTimer(useassearchtimer);
175
179
                if (useassearchtimer == 2)
176
180
                {
 
181
                        // TRANSLATORS: only adjust the ordering and separators, don't translate the m's, d's and y's
177
182
                        searchtimer.SetUseAsSearchTimerFrom(useassearchtimerfrom, tr("mm/dd/yyyy"));
 
183
                        // TRANSLATORS: only adjust the ordering and separators, don't translate the m's, d's and y's
178
184
                        searchtimer.SetUseAsSearchTimerTil(useassearchtimerto, tr("mm/dd/yyyy"));
179
185
                }
180
186
                searchtimer.SetSearchTimerAction(searchtimeraction);
806
812
 
807
813
                                                                                                                <tr>
808
814
                                                                                                                        <td class="label"><div class="withmargin"><$ tr("Compare subtitle" ) $>:</div></td>
809
 
                                                                                                                        <td><input type="checkbox" name="comparesubtitle" value="1" <{ CHECKIF(comparesubtitle) }>/>
 
815
                                                                                                                        <td><select name="comparesubtitle" size="1" id="comparesubtitle">
 
816
                                                                                <option value="0" <{ SELECTIF(comparesubtitle == 0) }> ><$ trVDR("no") $></option>
 
817
                                                                                <option value="1" <{ SELECTIF(comparesubtitle == 1) }> ><$ trVDR("yes") $></option>
 
818
                                                                                <option value="2" <{ SELECTIF(comparesubtitle == 2) }> ><$ tr("if present") $></option></select>
810
819
                                                                                                                </tr>
811
820
 
812
821
                                                                                                                <tr>