CMS  Version 3.9
scheduled_task_form.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("scheduled_task");
3 Fakoli::usingFeature("tab_bar", "auto_form");
4 
5 $menu_item = "Scheduled Tasks";
6 
7 $task_id = checkNumeric($_GET["task_id"]);
8 
9 if (!$task_id) redirect("scheduled_tasks");
10 
12 $form = new AutoForm($task);
13 $form->readonly("component", "task_name", "next_run");
14 
15 if ($method == "POST")
16 {
17  if ($form->save())
18  {
19  redirect("scheduled_tasks");
20  }
21 }
22 
24 
25 $script .= $form->writeScript();
26 
27 $tabs->writeHTML();
28 ?>
29 <div class='tab_border'>
30 <?
31 $form->drawForm();
32 ?>
33 </div>
if($method=="POST") $tabs
static usingFeature()
Uses the specified framework feature(s).
Definition: core.inc:388
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
$method
Pull out a simple reference to the request method.
Definition: core.inc:1573