Roxen.git
/
server
/
etc
/
modules
/
Variable.pmod
/
Schedule.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/etc/modules/Variable.pmod/Schedule.pike:1:
// $Id$
-
#if constant(
roxen
)
+
#if constant(
roxenp
)
inherit /*Variable*/.Variable; //! This class implements a scheduler widget with three main states, //! never index, index every n:th hour or index every n:th x-day at y //! o'clock. In the "index every n:th hour" case the range is 1 to 23. //! In the "index every n:th x-day at y o'clock" the n-range is //! 1 to 9, the units are day and all the weekdays. The time range for //! y is all hours in a day. // Locale macros
Roxen.git/server/etc/modules/Variable.pmod/Schedule.pike:315:
{ m = next_or_same_time( next_or_same_day( m, vals[VALS_DAY]-1, vals[VALS_HOUR], vals[VALS_MINUTE] ), vals[VALS_HOUR], vals[VALS_MINUTE], 6*24*3600 ); } } return mktime(m); }
-
#if constant(
roxen
)
+
#if constant(
roxenp
)
private string checked( int pos, int alt ) { if(alt==query()[pos]) return " checked='checked'"; return ""; } string render_form( RequestID id, void|mapping additional_args ) {