diff options
Diffstat (limited to 'template/default/timer_new.html')
-rw-r--r-- | template/default/timer_new.html | 180 |
1 files changed, 180 insertions, 0 deletions
diff --git a/template/default/timer_new.html b/template/default/timer_new.html new file mode 100644 index 0000000..4686f44 --- /dev/null +++ b/template/default/timer_new.html @@ -0,0 +1,180 @@ +<html> + +<head> + <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> + <title><?% msg.c_progname %?> - <tmpl_if newtimer><?%msg.tn_new_timer %?><tmpl_else><?% msg.tn_edit_timer %?></tmpl_if></title> + <script type="text/javascript" language="JavaScript1.2" src="library.js"></script> + <script type="text/javascript" language="JavaScript1.2"> + <!-- + function cTimer(idx) { + var Timer = ""; + var dor = document.form.dor.value; + var StartDay = dor.indexOf('@') > 0 ? dor.substring(dor.indexOf('@')) : ""; + Days = new Array("M", "D", "M", "D", "F", "S", "S"); + for(var i = 0; i <= 6; i++) { + Status = eval("document.form.D" + i + ".checked"); + if(Status == true) { + Timer = Timer + Days[i]; + } else { + Timer = Timer + "-"; + } + document.form.dor.value = Timer + StartDay; + } + } + + function eCheckbox(complTimer) { + if(complTimer.length == 7 || complTimer.length == 18) { + for(var i = 0; i <= 6; i++) { + if(complTimer.substring(i, i + 1) != "-") { + eval("document.form.D" + i + ".click();"); + } + } + } + } + //--> + </script> + <link href="style.css" rel="stylesheet" media="screen"> +</head> + +<body onload='eCheckbox("<tmpl_var dor>")' bgcolor="#f0f0f0" leftmargin="3" marginheight="20" marginwidth="3" topmargin="20"> + <form action="<tmpl_var url>" method="get" name="form"> + <table width="100%" border="0" cellspacing="0" cellpadding="0" height="39"> + <tr> + <td valign="middle" width="500" background="bilder/nav_button_back.gif"> + <p class="einzug_ohnetop"><b><tmpl_if newtimer><?% msg.tn_new_timer %?><tmpl_else><?% msg.tn_edit_timer %?></tmpl_if></b></p> + </td> + <td background="bilder/nav_button_back_mitte.gif"> </td> + <td width="35" background="bilder/nav_button_back_mitte.gif"> + <tmpl_if name="help_url"><a href="javascript:open_help('<tmpl_var help_url>');"> + <img src="bilder/help.gif" border="0" align="right" valign="top" alt="help" title="<?% msg.c_help %?>"></a> + </tmpl_if> + </td> + <td width="15" background="bilder/nav_button_back_end.gif"> </td> + </tr> + </table> + <br> + <div align="left"> + <table width="100%" border="0" cellspacing="0" cellpadding="0"> + <tr height="30"> + <td width="30" height="30"><img src="bilder/uebersicht_oben_links.gif" alt="" width="30" height="30" border="0"></td> + <td height="30" background="bilder/uebersicht_oben.gif"> </td> + <td height="30" background="bilder/uebersicht_oben.gif"> </td> + <td width="30" height="30"><img src="bilder/uebersicht_oben_rechts.gif" alt="" width="30" height="30" border="0"></td> + </tr> + <tr height="25"> + <td width="30" height="25" background="bilder/uebersicht_links.gif"></td> + <td width="20%" height="25" background="bilder/uebersicht_mitte.gif"><?% msg.tn_timer_active %?></td> + <td height="25" background="bilder/uebersicht_mitte.gif"> + <input type="radio" name="active" value="1" <tmpl_if active>checked</tmpl_if>><?% msg.c_yes %?> + <input type="radio" name="active" value="0" <tmpl_unless active>checked</tmpl_unless>><?% msg.c_no %?> + </td> + <td width="30" height="25" background="bilder/uebersicht_rechts.gif"></td> + </tr> + <tr height="25"> + <td width="30" height="25" background="bilder/uebersicht_links_dark.gif"></td> + <td width="20%" height="25" background="bilder/uebersicht_mitte_dark.gif"><?% msg.tn_autotimer_checking %?></td> + <td height="25" background="bilder/uebersicht_mitte_dark.gif"> + <tmpl_if expr="event_id > 1"> + <input type="radio" name="event_id" value="<tmpl_var event_id>" checked><?% msg.tn_transmission_id %?> + </tmpl_if> + <input type="radio" name="event_id" value="1" <tmpl_if expr="event_id == 1">checked</tmpl_if>><?% msg.c_time %?> + <input type="radio" name="event_id" value="0" <tmpl_if expr="event_id == 0">checked</tmpl_if>><?% msg.c_off %?> + </td> + <td width="30" height="25" background="bilder/uebersicht_rechts_dark.gif"></td> + </tr> + <tr height="25"> + <td width="30" height="25" background="bilder/uebersicht_links.gif"></td> + <td width="20%" height="25" background="bilder/uebersicht_mitte.gif"><?% msg.c_channel %?></td> + <td height="25" background="bilder/uebersicht_mitte.gif"> + <select name="channel" size="1"> +<tmpl_loop name="channels"> + <option value="<tmpl_var vdr_id>" <tmpl_if current>selected</tmpl_if>><tmpl_var name="name"></option> +</tmpl_loop> + </select> + </td> + <td width="30" height="25" background="bilder/uebersicht_rechts.gif"></td> + </tr> + <tr height="25"> + <td valign="top" width="30" height="25" background="bilder/uebersicht_links_dark.gif"></td> + <td valign="top" width="20%" height="25" background="bilder/uebersicht_mitte_dark.gif"><?% msg.tn_day_of_rec %?></td> + <td height="25" background="bilder/uebersicht_mitte_dark.gif"> + <input type="text" name="dor" value="<tmpl_var dor>" size="20"> + <br> + <input onclick="cTimer(1)" type="checkbox" name="D0" value="1"><?% msg.c_monday %?> + <input onclick="cTimer(2)" type="checkbox" name="D1" value="1"><?% msg.c_tuesday %?> + <input onclick="cTimer(3)" type="checkbox" name="D2" value="radioValue"><?% msg.c_wednesday %?> + <input onclick="cTimer(4)" type="checkbox" name="D3" value="radioValue"><?% msg.c_thursday %?> + <input onclick="cTimer(5)" type="checkbox" name="D4" value="radioValue"><?% msg.c_friday %?> + <input onclick="cTimer(6)" type="checkbox" name="D5" value="radioValue"><?% msg.c_saturday %?> + <input onclick="cTimer(7)" type="checkbox" name="D6" value="radioValue"><?% msg.c_sunday %?> + </td> + <td width="30" height="25" background="bilder/uebersicht_rechts_dark.gif"></td> + </tr> + <tr height="25"> + <td width="30" height="25" background="bilder/uebersicht_links.gif"></td> + <td width="20%" height="25" background="bilder/uebersicht_mitte.gif"><?% msg.tn_time_start %?></td> + <td height="25" background="bilder/uebersicht_mitte.gif"> + <input type="text" name="starth" value="<tmpl_var starth>" size="2" maxlength="2"> + <b> : </b> + <input type="text" name="startm" value="<tmpl_var startm>" size="2" maxlength="2"> + <?% msg.c_clock %?> + </td> + <td width="30" height="25" background="bilder/uebersicht_rechts.gif"></td> + </tr> + <tr height="25"> + <td width="30" height="25" background="bilder/uebersicht_links_dark.gif"></td> + <td width="20%" height="25" background="bilder/uebersicht_mitte_dark.gif"><?% msg.tn_time_stop %?></td> + <td height="25" background="bilder/uebersicht_mitte_dark.gif"> + <input type="text" name="stoph" value="<tmpl_var stoph>" size="2" maxlength="2"> + <b> : </b> + <input type="text" name="stopm" value="<tmpl_var stopm>" size="2" maxlength="2"> + <?% msg.c_clock %?> + </td> + <td width="30" height="25" background="bilder/uebersicht_rechts_dark.gif"></td> + </tr> + <tr height="25"> + <td width="30" height="25" background="bilder/uebersicht_links.gif"></td> + <td width="20%" height="25" background="bilder/uebersicht_mitte.gif"><?% msg.c_priority %?></td> + <td height="25" background="bilder/uebersicht_mitte.gif"><input type="text" name="prio" value="<tmpl_var prio>" size="2" maxlength="2"></td> + <td width="30" height="25" background="bilder/uebersicht_rechts.gif"></td> + </tr> + <tr height="25"> + <td width="30" height="25" background="bilder/uebersicht_links_dark.gif"></td> + <td width="20%" height="25" background="bilder/uebersicht_mitte_dark.gif"><?% msg.c_lifetime %?></td> + <td height="25" background="bilder/uebersicht_mitte_dark.gif"><input type="text" name="lft" value="<tmpl_var lft>" size="2" maxlength="2"></td> + <td width="30" height="25" background="bilder/uebersicht_rechts_dark.gif"></td> + </tr> + <tr height="25"> + <td width="30" height="25" background="bilder/uebersicht_links.gif"></td> + <td width="20%" height="25" background="bilder/uebersicht_mitte.gif"><?% msg.tn_rec_title %?></td> + <td height="25" background="bilder/uebersicht_mitte.gif"><input type="text" name="title" value="<tmpl_var title>" size="80"></td> + <td width="30" height="25" background="bilder/uebersicht_rechts.gif"></td> + </tr> + <tr> + <td valign="top" width="30" background="bilder/uebersicht_links_dark.gif"></td> + <td valign="top" width="20%" background="bilder/uebersicht_mitte_dark.gif"><?% msg.c_summary %?></td> + <td background="bilder/uebersicht_mitte_dark.gif"><textarea name="summary" rows="6" cols="80"><tmpl_var summary></textarea></td> + <td width="30" background="bilder/uebersicht_rechts_dark.gif"></td> + </tr> + <tr height="30"> + <td width="30" height="30"><img src="bilder/uebersicht_unten_links.gif" alt="" width="30" height="30" border="0"></td> + <td colspan="2" height="30" background="bilder/uebersicht_unten.gif"></td> + <td width="30" height="30"><img src="bilder/uebersicht_unten_rechts.gif" alt="" width="30" height="30" border="0"></td> + </tr> + </table> + </div> + <br> + <div align="left"> + <input type="submit" name="save" value="<?% msg.c_save %?>"> + <input type="submit" name="exit" value="<?% msg.c_cancel %?>"></div> + <input type="hidden" name="aktion" value="timer_add"> + <tmpl_if referer> + <input type="hidden" name="referer" value="<tmpl_var referer>"> + </tmpl_if> + <tmpl_if timer_id> + <input type="hidden" name="timer_id" value="<tmpl_var timer_id>"> + </tmpl_if> + </form> +</body> + +</html> |