2 # Show a form for setting up scheduled collection
4 require './disk-usage-lib.pl';
5 &foreign_require("cron", "cron-lib.pl");
6 &ui_print_header(undef, $text{'sched_title'}, "");
7 $job = &find_cron_job();
9 print &ui_form_start("save_sched.cgi");
10 print &ui_table_start($text{'sched_header'}, "width=100%", 2);
12 print &ui_table_row($text{'sched_enabled'},
13 &ui_radio("enabled", $job ? 1 : 0,
15 [ 1, $text{'sched_at'} ] ]));
17 print "<tr> <td colspan=2><table border width=100%>\n";
18 $job ||= { 'mins' => 0,
23 &cron::show_times_input($job);
24 print "</table></td> </tr>\n";
26 print &ui_table_end();
27 print &ui_form_end([ [ "save", $text{'save'} ] ]);
29 &ui_print_footer("", $text{'index_return'});