]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_job_zoom.tpl
- Add client/media search box (with regexp)
[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   <label>
10   <input type="image" name='action' value='delete' title='delete this job'
11    src='/bweb/purge.png'> Delete
12   </label>
13  </form>
14  </td><td>
15  <form action='?'>
16   <TMPL_LOOP volumes>
17    <input type='hidden' name='media' value='<TMPL_VAR VolumeName>'>
18   </TMPL_LOOP>   
19   <label>
20   <input type="image" name='action' value='media' title='view media' 
21    src='/bweb/zoom.png'>View media
22   </label>
23  </form>
24  </td>
25  <td>
26  <form action='?'>
27   <input type='hidden' name='client' value='<TMPL_VAR Client>'>
28   <label>
29   <input type="image" name='action' value='job' title='view <TMPL_VAR Client> jobs' src='/bweb/zoom.png'>View jobs
30   </label>
31  </form>
32  </td>
33  <td>
34  <form action='?'>
35   <input type='hidden' name='age' value='2678400'>
36   <input type='hidden' name='client' value='<TMPL_VAR Client>'>
37   <input type='hidden' name='jobname' value='<TMPL_VAR jobname>'>
38   <label>
39   <input type="image" name='action' value='graph' title='view trends'
40    src='/bweb/chart.png'> View stats
41   </label>
42  </form>
43  </td>
44  </table>
45 </div>
46
47 <script type="text/javascript" language='JavaScript'>
48 var header = new Array("JobId",
49                        "Client",
50                        "Job Name", 
51                        "FileSet",
52                        "Level",
53                        "StartTime", 
54                        "Duration",
55                        "JobFiles",
56                        "JobBytes",
57                        "Pool",
58                        "Volume Name",
59                        "Status");
60
61 var data = new Array();
62
63 img = document.createElement("IMG");
64 img.src="/bweb/<TMPL_VAR JobStatus>.png";
65 img.title=jobstatus['<TMPL_VAR JobStatus>']; 
66
67 data.push( new Array(
68 "<TMPL_VAR JobId>",
69 "<TMPL_VAR Client>",     
70 "<TMPL_VAR JobName>",    
71 "<TMPL_VAR FileSet>",    
72 "<TMPL_VAR Level>",      
73 "<TMPL_VAR StartTime>",
74 "<TMPL_VAR duration>",
75 "<TMPL_VAR JobFiles>",   
76 "<TMPL_VAR JobBytes>",
77 "<TMPL_VAR poolname>",
78 "<TMPL_LOOP volumes><TMPL_VAR VolumeName>\n</TMPL_LOOP>",   
79 img
80  )
81 );
82
83 nrsTable.setup(
84 {
85  table_name:     "id0",
86  table_header: header,
87  table_data: data,
88  up_icon: up_icon,
89  down_icon: down_icon,
90  prev_icon: prev_icon,
91  next_icon: next_icon,
92  rew_icon:  rew_icon,
93  fwd_icon:  fwd_icon,
94 // natural_compare: true,
95  even_cell_color: even_cell_color,
96  odd_cell_color: odd_cell_color, 
97  header_color: header_color,
98  page_nav: true,
99  rows_per_page: rows_per_page,
100 // disable_sorting: new Array(6)
101  padding: 3
102 }
103 );
104
105 </script>