]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_job.tpl
bacula-web: Replaced Get_human_file_size() function by Utils::Get_Human_Size
[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                        "__Comment__",
19                        "__FileSet__",
20 //                     "__Pool__",
21                        "__Level__",
22                        "__StartTime__",
23                        "__Duration__",
24                        "__JobFiles__",
25                        "__JobBytes__",
26                        "__Errors__",
27                        "__Status__");
28
29 var data = new Array();
30
31 <TMPL_LOOP Jobs>
32 a = document.createElement('A');
33 a.href='?action=job_zoom;jobid=<TMPL_VAR JobId>';
34
35 img = document.createElement("IMG");
36 img.src=bweb_get_job_img("<TMPL_VAR JobStatus>", 
37                          <TMPL_VAR joberrors>,
38                          "<TMPL_VAR jobtype>");
39 img.title=jobstatus['<TMPL_VAR JobStatus>']; 
40
41 a.appendChild(img);
42
43 data.push( new Array(
44 "<TMPL_VAR JobId>",
45 "<TMPL_VAR Client>",     
46 "<TMPL_VAR JobName>",
47 "<TMPL_VAR Comment>",
48 "<TMPL_VAR FileSet>",    
49 //"<TMPL_VAR Pool>",
50 "<TMPL_VAR Level>",      
51 "<TMPL_VAR StartTime>",
52 human_duration("<TMPL_VAR Duration>"),
53 "<TMPL_VAR JobFiles>",   
54 human_size(<TMPL_VAR JobBytes>),
55 "<TMPL_VAR joberrors>",   
56 a
57  )
58 );
59 </TMPL_LOOP>
60
61 nrsTable.setup(
62 {
63  table_name:     "id<TMPL_VAR ID>",
64  table_header: header,
65  table_data: data,
66  up_icon: up_icon,
67  down_icon: down_icon,
68  prev_icon: prev_icon,
69  next_icon: next_icon,
70  rew_icon:  rew_icon,
71  fwd_icon:  fwd_icon,
72 // natural_compare: true,
73  even_cell_color: even_cell_color,
74  odd_cell_color: odd_cell_color, 
75  header_color: header_color,
76  page_nav: true,
77  rows_per_page: rows_per_page,
78  disable_sorting: new Array(10),
79  padding: 3
80 }
81 );
82
83 // get newest backup first
84 nrsTables['id<TMPL_VAR ID>'].fieldSort(0);
85 </script>