4 |
## $Id$ |
## $Id$ |
5 |
## ------------------------------------------------------------------------- |
## ------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.2 2003/05/13 15:10:32 joko |
8 |
|
## fixed deprecated stuff |
9 |
|
## |
10 |
## Revision 1.1 2003/02/22 16:19:08 joko |
## Revision 1.1 2003/02/22 16:19:08 joko |
11 |
## YAA - Yet Another Admin |
## YAA - Yet Another Admin |
12 |
## + initial commit |
## + initial commit |
38 |
} |
} |
39 |
|
|
40 |
function run($jobname) { |
function run($jobname) { |
41 |
|
//print "runTask: $jobname<br/>"; |
42 |
$this->backend->runTask($jobname); |
$this->backend->runTask($jobname); |
43 |
} |
} |
44 |
|
|
51 |
|
|
52 |
|
|
53 |
// get status and prepare data |
// get status and prepare data |
54 |
|
//print "FETCH!<br/>"; |
55 |
$taskinfo = $this->backend->getTaskInfo($taskname); |
$taskinfo = $this->backend->getTaskInfo($taskname); |
56 |
|
#exit; |
57 |
|
|
58 |
//print Dumper($taskinfo); |
//print Dumper($taskinfo); |
59 |
|
|
67 |
//$description = $out[description]; |
//$description = $out[description]; |
68 |
//} |
//} |
69 |
|
|
70 |
if ($taskinfo[jobstatus][running]) { |
if ($taskinfo[status][running]) { |
71 |
$status_text = "[running]"; |
$status_text = "[running]"; |
72 |
$status_symbol = "<img src=\"img/cube.gif\" width=\"80\" />"; |
$status_symbol = "<img src=\"img/cube.gif\" width=\"80\" />"; |
73 |
} else { |
} else { |
74 |
$status_text = "[not running]"; |
$status_text = "[not running]"; |
75 |
$status_symbol = "xxx"; |
$status_symbol = "<img src=\"img/widgets/tree/minustop.gif\" width=\"80\" /> <br/>FIXME: Build an icon for symbolizing this."; |
76 |
} |
} |
77 |
|
|
78 |
// actions |
// actions |
84 |
); |
); |
85 |
*/ |
*/ |
86 |
$controlbox = new VerticalCSSNavTable('Actions:'); |
$controlbox = new VerticalCSSNavTable('Actions:'); |
87 |
$controlbox->add( httpQuery( array( action => 'status', job => $taskname )), 'status' ); |
$controlbox->add( url::query( array( ap => "pcontrol", action => 'status', job => $taskname )), 'status' ); |
88 |
$controlbox->add( httpQuery( array( action => 'run', job => $taskname )), 'run' ); |
$controlbox->add( url::query( array( ap => "pcontrol", action => 'run', job => $taskname )), 'run' ); |
89 |
|
|
90 |
// build box |
// build box |
91 |
//$box .= "<br/><br/>"; |
//$box .= "<br/><br/>"; |
92 |
//$jobtable->add_row( $description, container( html_b("actions: "), html_br(), $actions ), container($status, html_br(), $box) ); |
//$jobtable->add_row( $description, container( html_b("actions: "), html_br(), $actions ), container($status, html_br(), $box) ); |
93 |
$this->add_row( $controlbox, container($out[description], html_br(), $out[steps]) ); |
$this->add_row( $controlbox, container($out[description], html_br(), $out[steps]) ); |
94 |
$this->add_row( " ", container($status_text, html_br(), $status_symbol) ); |
$this->add_row( html_b("STATUS"), container($status_text, html_br(), $status_symbol) ); |
95 |
//$jobtable->add_row(Dumper($taskinfo[jobstatus]), "-"); |
//$jobtable->add_row(Dumper($taskinfo[status]), "-"); |
96 |
|
|
97 |
|
|
98 |
/* |
/* |