]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_client_job.tpl
ebl release file on sf
[bacula/bacula] / gui / bweb / tpl / display_client_job.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'> Last jobs for <TMPL_VAR clientname> (<TMPL_VAR Filter>)
4   </h1>
5  </div>
6  <div class='bodydiv'>
7
8    <table id='id<TMPL_VAR ID>'></table>
9
10 <a href="bgraph.pl?client=<TMPL_VAR clientname>;action=job_size;status=T">
11     <img src="/bweb/chart.png" alt="backup size" title="backup size evolution"/>
12     </a>
13 <a href="bgraph.pl?client=<TMPL_VAR clientname>;action=job_duration;status=T">
14     <img src="/bweb/chart.png" alt="backup duration" title="backup time evolution"/>
15     </a>
16 <a href="bgraph.pl?client=<TMPL_VAR clientname>;action=job_rate;status=T">
17     <img src="/bweb/chart.png" alt="backup rate" title="backup rate evolution"/>
18     </a>                                
19  </div>
20
21
22 <script type="text/javascript" language="JavaScript">
23 var header = new Array("JobId", "Job Name", "File Set", "Level", "Start Time", 
24                   "Job Files", "Job Bytes", "Errors");
25
26 var data = new Array();
27
28 <TMPL_LOOP Jobs>
29 data.push( new Array(
30 "<TMPL_VAR JobId>",
31 "<TMPL_VAR JobName>",    
32 "<TMPL_VAR FileSet>",
33 "<TMPL_VAR Level>",
34 "<TMPL_VAR StartTime>",
35 "<TMPL_VAR JobFiles>",   
36 human_size(<TMPL_VAR JobBytes>),
37 "<TMPL_VAR JobErrors>"   
38  )
39 );
40 </TMPL_LOOP>
41
42 nrsTable.setup(
43 {
44  table_name:     "id<TMPL_VAR ID>",
45  table_header: header,
46  table_data: data,
47  up_icon: up_icon,
48  down_icon: down_icon,
49  prev_icon: prev_icon,
50  next_icon: next_icon,
51  rew_icon:  rew_icon,
52  fwd_icon:  fwd_icon,
53 // natural_compare: true,
54  even_cell_color: even_cell_color,
55  odd_cell_color: odd_cell_color, 
56  header_color: header_color,
57  page_nav: true,
58  rows_per_page: rows_per_page,
59  disable_sorting: new Array(5,6)
60 }
61 );
62
63 // get newest job first
64 nrsTables['id<TMPL_VAR ID>'].fieldSort(0);
65 </script>