]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_job.tpl
Renamed cleanup goto target into bail_out which is the prefered name from the develop...
[bacula/bacula] / gui / bweb / tpl / display_job.tpl
1  <div class='titlediv'>
2   <h1 class='newstitle'> __Last Jobs__ (<TMPL_VAR Filter>)</h1>
3  </div>
4  <div class='bodydiv'>
5     <table id='id<TMPL_VAR ID>'></table>
6  </div>
7
8 <script type="text/javascript" language="JavaScript">
9 <TMPL_IF status>
10 document.getElementById('status_<TMPL_VAR status>').checked = true;
11 </TMPL_IF>
12
13
14
15 var header = new Array("JobId",
16                        "__Client__",
17                        "__Job Name__", 
18                        "__FileSet__",
19 //                     "__Pool__",
20                        "__Level__",
21                        "__StartTime__",
22                        "__Duration__",
23                        "__JobFiles__",
24                        "__JobBytes__", 
25                        "__Errors__",
26                        "__Status__");
27
28 var data = new Array();
29
30 <TMPL_LOOP Jobs>
31 a = document.createElement('A');
32 a.href='?action=job_zoom;jobid=<TMPL_VAR JobId>';
33
34 img = document.createElement("IMG");
35 img.src=bweb_get_job_img("<TMPL_VAR JobStatus>", 
36                          <TMPL_VAR joberrors>,
37                          "<TMPL_VAR jobtype>");
38 img.title=jobstatus['<TMPL_VAR JobStatus>']; 
39
40 a.appendChild(img);
41
42 data.push( new Array(
43 "<TMPL_VAR JobId>",
44 "<TMPL_VAR Client>",     
45 "<TMPL_VAR JobName>",    
46 "<TMPL_VAR FileSet>",    
47 //"<TMPL_VAR Pool>",
48 "<TMPL_VAR Level>",      
49 "<TMPL_VAR StartTime>",
50 "<TMPL_VAR Duration>",
51 "<TMPL_VAR JobFiles>",   
52 human_size(<TMPL_VAR JobBytes>),
53 "<TMPL_VAR joberrors>",   
54 a
55  )
56 );
57 </TMPL_LOOP>
58
59 nrsTable.setup(
60 {
61  table_name:     "id<TMPL_VAR ID>",
62  table_header: header,
63  table_data: data,
64  up_icon: up_icon,
65  down_icon: down_icon,
66  prev_icon: prev_icon,
67  next_icon: next_icon,
68  rew_icon:  rew_icon,
69  fwd_icon:  fwd_icon,
70 // natural_compare: true,
71  even_cell_color: even_cell_color,
72  odd_cell_color: odd_cell_color, 
73  header_color: header_color,
74  page_nav: true,
75  rows_per_page: rows_per_page,
76  disable_sorting: new Array(10),
77  padding: 3
78 }
79 );
80
81 // get newest backup first
82 nrsTables['id<TMPL_VAR ID>'].fieldSort(0);
83 </script>