/[cvs]/nfo/php/libs/org.netfrag.app/YAA/JobDetails.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.app/YAA/JobDetails.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by joko, Sat Feb 22 16:19:08 2003 UTC revision 1.2 by joko, Tue May 13 15:10:32 2003 UTC
# Line 4  Line 4 
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
# Line 35  class YAA_JobDetails extends InfoTable { Line 38  class YAA_JobDetails extends InfoTable {
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    
# Line 47  class YAA_JobDetails extends InfoTable { Line 51  class YAA_JobDetails extends InfoTable {
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    
# Line 61  class YAA_JobDetails extends InfoTable { Line 67  class YAA_JobDetails extends InfoTable {
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
# Line 78  class YAA_JobDetails extends InfoTable { Line 84  class YAA_JobDetails extends InfoTable {
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:&nbsp;&nbsp;&nbsp;"), html_br(), $actions ), container($status, html_br(), $box) );            //$jobtable->add_row( $description, container( html_b("actions:&nbsp;&nbsp;&nbsp;"), 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( "&nbsp;", 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  /*  /*

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed