From: Jamie C. <jca...@we...> - 2002-08-30 01:15:02
|
That wouldn't really look good though, because to be consistent the months would have to be split into 2 columns, the second of which would be only 2 rows high. Also, it would make the page even wider that it already is, which would be a problem on small screens. - Jamie Ferdinand Gassauer wrote: > Hi! > > IMHO a better design would be > - 6 columns for minuts 0-9,10-19 ..... > - 2 columns for the hours 0-11,12-23 > - 3 columns for the days 1-10, 11-20, 21-31 > > I played around with cron-lib.pl > > > ------------------------------------------------------------------------ > > --- cron-lib.pl.dist Thu Aug 29 18:40:14 2002 > +++ cron-lib.pl Thu Aug 29 18:48:51 2002 > @@ -386,8 +386,14 @@ > printf "<input type=radio name=all_$arr value=0 %s> $text{'edit_selected'}<br>\n", > $job->{$arr} ne "*" ? "checked" : ""; > print "<table> <tr>\n"; > - for($j=0; $j<@$arr; $j+=12) { > - $jj = $j+11; > + > + > + local $jn = 10; > + if ( $arr eq "hours" ) { $jn = 12; } > + if ( $arr eq "months" ) { $jn = 12; } > + local $jnn = $jn - 1; > + for($j=0; $j<@$arr; $j+= $jn) { > + $jj = $j+$jnn; > if ($jj >= @$arr) { $jj = @$arr - 1; } > @sec = @$arr[$j .. $jj]; > printf "<td valign=top><select multiple size=%d name=$arr>\n", > |