]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_job_zoom.tpl
ebl Add volume/pool usage
[bacula/bacula] / gui / bweb / tpl / display_job_zoom.tpl
1  <div class='titlediv'>
2   <h1 class='newstitle'>Information about job</h1>
3  </div>
4  <div class="bodydiv">
5  <table id='id0'></table>
6  <table><td>
7  <form action='?'>
8   <input type='hidden' name='jobid' value='<TMPL_VAR jobid>'>
9   <button class='formulaire' name='action' value='delete' title='delete this job'>   Delete<br/>
10      <img src='/bweb/purge.png'>
11   </button>
12  </form>
13  </td><td>
14  <form action='?'>
15   <TMPL_LOOP volumes>
16    <input type='hidden' name='media' value='<TMPL_VAR VolumeName>'>
17   </TMPL_LOOP>   
18   <button class='formulaire' name='action' value='media' title='view media'>
19      View media<br/>
20      <img src='/bweb/zoom.png'>
21   </button>
22  </form>
23  </td>
24  <td>
25  <form action='?'>
26   <input type='hidden' name='client' value='<TMPL_VAR Client>'>
27   <button class='formulaire' name='action' value='job' title='view <TMPL_VAR Client> jobs'>
28      View jobs<br/>
29      <img src='/bweb/zoom.png'>
30   </button>
31  </form>
32  </td>
33  </table>
34 </div>
35
36 <script language='JavaScript'>
37 var header = new Array("JobId",
38                        "Client",
39                        "Job Name", 
40                        "FileSet",
41                        "Level",
42                        "StartTime", 
43                        "Duration",
44                        "JobFiles",
45                        "JobBytes",
46                        "Pool",
47                        "Volume Name",
48                        "Status");
49
50 var data = new Array();
51
52 img = document.createElement("IMG");
53 img.src="/bweb/<TMPL_VAR JobStatus>.png";
54 img.title=jobstatus['<TMPL_VAR JobStatus>']; 
55
56 data.push( new Array(
57 "<TMPL_VAR JobId>",
58 "<TMPL_VAR Client>",     
59 "<TMPL_VAR JobName>",    
60 "<TMPL_VAR FileSet>",    
61 "<TMPL_VAR Level>",      
62 "<TMPL_VAR StartTime>",
63 "<TMPL_VAR duration>",
64 "<TMPL_VAR JobFiles>",   
65 "<TMPL_VAR JobBytes>",
66 "<TMPL_VAR poolname>",
67 "<TMPL_LOOP volumes><TMPL_VAR VolumeName>\n</TMPL_LOOP>",   
68 img
69  )
70 );
71
72 nrsTable.setup(
73 {
74  table_name:     "id0",
75  table_header: header,
76  table_data: data,
77  up_icon: up_icon,
78  down_icon: down_icon,
79  prev_icon: prev_icon,
80  next_icon: next_icon,
81  rew_icon:  rew_icon,
82  fwd_icon:  fwd_icon,
83 // natural_compare: true,
84  even_cell_color: even_cell_color,
85  odd_cell_color: odd_cell_color, 
86  header_color: header_color,
87  page_nav: true,
88  rows_per_page: rows_per_page,
89 // disable_sorting: new Array(6)
90  padding: 3
91 }
92 );
93
94 </script>