]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/running_job.tpl
ebl Add volume/pool usage
[bacula/bacula] / gui / bweb / tpl / running_job.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'> Running Jobs </h1>
4  </div>
5  <div class='bodydiv'>
6    <form action='?' method='GET'>
7    <table id='id<TMPL_VAR NAME=ID>'></table>
8    <br/>
9 <button type='submit' name='action' value='cancel_job'
10         class='formulaire'
11         title='Cancel job'><img src='/bweb/cancel.png'>
12 </button>
13 <button type='submit' name='action' value='dsp_cur_job' 
14         class='formulaire'
15         title='View job'><img src='/bweb/zoom.png'>
16 </button>
17    </form>
18
19  </div>
20
21 <script language="JavaScript">
22 var header = new Array("JobId",
23                        "Client",
24                        "Job Name", 
25                        "Level",
26                        "Start Time", 
27                        "Duration", 
28 //                       "Job Files",
29 //                       "Job Bytes", 
30                        "Status",
31                        "Select"
32         );
33
34 var data = new Array();
35 var chkbox;
36 var img;
37
38 <TMPL_LOOP NAME=Jobs>
39 a = document.createElement('A');
40 a.href='?action=dsp_cur_job;jobid=<TMPL_VAR JobId>';
41
42 img = document.createElement("IMG");
43 img.src = '/bweb/<TMPL_VAR NAME=JobStatus>.png';
44 img.title = jobstatus['<TMPL_VAR NAME=JobStatus>'];
45
46 a.appendChild(img);
47
48 chkbox = document.createElement('INPUT');
49 chkbox.type  = 'radio';
50 chkbox.name = 'jobid';
51 chkbox.value = '<TMPL_VAR NAME=jobid>';
52
53 data.push( new Array(
54 "<TMPL_VAR NAME=JobId>",
55 "<TMPL_VAR NAME=ClientName>",     
56 "<TMPL_VAR NAME=JobName>",    
57 joblevel['<TMPL_VAR NAME=Level>'],      
58 "<TMPL_VAR NAME=StartTime>",
59 "<TMPL_VAR NAME=duration>",
60 //"<TMPL_VAR NAME=JobFiles>",   
61 //"<TMPL_VAR NAME=JobBytes>",
62 a,
63 chkbox
64  )
65 );
66 </TMPL_LOOP>
67
68 nrsTable.setup(
69 {
70  table_name:     "id<TMPL_VAR NAME=ID>",
71  table_header: header,
72  table_data: data,
73  up_icon: up_icon,
74  down_icon: down_icon,
75  prev_icon: prev_icon,
76  next_icon: next_icon,
77  rew_icon:  rew_icon,
78  fwd_icon:  fwd_icon,
79 // natural_compare: true,
80  even_cell_color: even_cell_color,
81  odd_cell_color: odd_cell_color, 
82  header_color: header_color,
83  page_nav: true,
84  rows_per_page: rows_per_page,
85 // disable_sorting: new Array(6)
86  padding: 3
87 }
88 );
89
90 // get newest backup first
91 nrsTables['id<TMPL_VAR NAME=ID>'].fieldSort(0);
92
93 bweb_add_refresh();
94
95 </script>