]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/running_job.tpl
Renamed cleanup goto target into bail_out which is the prefered name from the develop...
[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 ID>'></table>
8    <br/>
9 <label>
10 <button type="submit" class="bp" name='action' value='dsp_cur_job' 
11  title='__View job__'> <img src='/bweb/zoom.png' alt=''>__View__</button>
12 <button type="submit" class="bp" type='submit' name='action' value='cancel_job'
13  onclick="return confirm('__Do you want to cancel the selected job?__')"
14  title='__Cancel job__'> <img src='/bweb/cancel.png' alt=''>__Cancel__</button>
15    </form>
16
17  </div>
18
19 <script type="text/javascript" language="JavaScript">
20 var header = new Array("JobId",
21                        "__Client__",
22                        "__Job Name__", 
23                        "__Level__",
24                        "__Start Time__", 
25                        "__Duration__", 
26 //                       "__Job Files__",
27 //                       "__Job Bytes__", 
28                        "__Status__",
29                        "__Select__"
30         );
31
32 var data = new Array();
33 var chkbox;
34 var img;
35
36 <TMPL_LOOP Jobs>
37 a = document.createElement('A');
38 a.href='?action=dsp_cur_job;jobid=<TMPL_VAR JobId>';
39
40 img = document.createElement("IMG");
41 img.src = '/bweb/<TMPL_VAR JobStatus>.png';
42 img.title = jobstatus['<TMPL_VAR JobStatus>'];
43
44 a.appendChild(img);
45
46 chkbox = document.createElement('INPUT');
47 chkbox.type  = 'radio';
48 chkbox.name = 'jobid';
49 chkbox.value = '<TMPL_VAR jobid>';
50
51 data.push( new Array(
52 "<TMPL_VAR JobId>",
53 "<TMPL_VAR ClientName>",     
54 "<TMPL_VAR JobName>",    
55 joblevel['<TMPL_VAR Level>'],      
56 "<TMPL_VAR StartTime>",
57 "<TMPL_VAR duration>",
58 //"<TMPL_VAR JobFiles>",   
59 //"<TMPL_VAR JobBytes>",
60 a,
61 chkbox
62  )
63 );
64 </TMPL_LOOP>
65
66 nrsTable.setup(
67 {
68  table_name:     "id<TMPL_VAR ID>",
69  table_header: header,
70  table_data: data,
71  up_icon: up_icon,
72  down_icon: down_icon,
73  prev_icon: prev_icon,
74  next_icon: next_icon,
75  rew_icon:  rew_icon,
76  fwd_icon:  fwd_icon,
77 // natural_compare: true,
78  even_cell_color: even_cell_color,
79  odd_cell_color: odd_cell_color, 
80  header_color: header_color,
81  page_nav: true,
82  rows_per_page: rows_per_page,
83 // disable_sorting: new Array(6)
84  padding: 3
85 }
86 );
87
88 // get newest backup first
89 nrsTables['id<TMPL_VAR ID>'].fieldSort(0);
90
91 bweb_add_refresh();
92
93 </script>