]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/bweb/tpl/display_job.tpl
d89b77abdc98cf8727e649855bedfd259da5c60a
[bacula/bacula] / gui / bweb / 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>", <TMPL_VAR joberrors>);
36 img.title=jobstatus['<TMPL_VAR JobStatus>']; 
37
38 a.appendChild(img);
39
40 data.push( new Array(
41 "<TMPL_VAR JobId>",
42 "<TMPL_VAR Client>",     
43 "<TMPL_VAR JobName>",    
44 "<TMPL_VAR FileSet>",    
45 //"<TMPL_VAR Pool>",
46 "<TMPL_VAR Level>",      
47 "<TMPL_VAR StartTime>",
48 "<TMPL_VAR Duration>",
49 "<TMPL_VAR JobFiles>",   
50 human_size(<TMPL_VAR JobBytes>),
51 "<TMPL_VAR joberrors>",   
52 a
53  )
54 );
55 </TMPL_LOOP>
56
57 nrsTable.setup(
58 {
59  table_name:     "id<TMPL_VAR ID>",
60  table_header: header,
61  table_data: data,
62  up_icon: up_icon,
63  down_icon: down_icon,
64  prev_icon: prev_icon,
65  next_icon: next_icon,
66  rew_icon:  rew_icon,
67  fwd_icon:  fwd_icon,
68 // natural_compare: true,
69  even_cell_color: even_cell_color,
70  odd_cell_color: odd_cell_color, 
71  header_color: header_color,
72  page_nav: true,
73  rows_per_page: rows_per_page,
74  disable_sorting: new Array(10),
75  padding: 3
76 }
77 );
78
79 // get newest backup first
80 nrsTables['id<TMPL_VAR ID>'].fieldSort(0);
81 </script>