]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Replaced job status code by constants
authorDavide Franco <bacula-dev@dflc.ch>
Fri, 27 May 2011 16:50:13 +0000 (18:50 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:12 +0000 (14:49 +0200)
gui/bacula-web/jobs.php

index 9bf9751d8ee4716ed6e94251ca3e0cbbe533877d..196cc30049498fd9cb7f0ce62f97a9d9917e834f 100644 (file)
                
                // Determine icon for job status
                switch( $job['JobStatus'] ) {
-                       case 'R':
+                       case J_RUNNING:
                                $job['Job_icon'] = "running.png";
                        break;
-                       case 'T':
+                       case J_COMPLETED:
                                $job['Job_icon'] = "ok.png";
                        break;
-                       case 'A':
+                       case J_CANCELED:
                                $job['Job_icon'] = "canceled.png";
                        break;
-                       case 'E':
+                       case J_COMPLETED_ERROR:
                                $job['Job_icon'] = "warning.png";
                        break;
-                       case 'f':
+                       case J_FATAL:
                                $job['Job_icon'] = "error.png";
                        break;
-                       case 'F':
-                       case 'S':
-                       case 'M':
-                       case 'm':
-                       case 's':
-                       case 'j':
-                       case 'c':
-                       case 'd':
-                       case 't':
-                       case 'C':
+                       case J_WAITING_CLIENT:
+                       case J_WAITING_SD:
+                       case J_WAITING_MOUNT_MEDIA:
+                       case J_WAITING_NEW_MEDIA:
+                       case J_WAITING_STORAGE_RES:
+                       case J_WAITING_JOB_RES:
+                       case J_WAITING_CLIENT_RES:
+                       case J_WAITING_MAX_JOBS:
+                       case J_WAITING_START_TIME:
+                       case J_NOT_RUNNING:
                                $job['Job_icon'] = "waiting.png";
                        break;
                } // end switch