]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_job_zoom.tpl
ebl fix
[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='bweb.pl?'>
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  onclick="return confirm('Do you want to delete this job from the catalog ?');"
12    src='/bweb/purge.png'> Delete
13   </label>
14  </form>
15  </td><td>
16  <form action='bweb.pl?'>
17   <TMPL_LOOP volumes>
18    <input type='hidden' name='media' value='<TMPL_VAR VolumeName>'>
19   </TMPL_LOOP>   
20   <label>
21   <input type="image" name='action' value='media' title='view media' 
22    src='/bweb/zoom.png'>View media
23   </label>
24  </form>
25  </td>
26  <td>
27  <form action='bweb.pl?'>
28   <input type='hidden' name='client' value='<TMPL_VAR Client>'>
29   <label>
30   <input type="image" name='action' value='job' title='view <TMPL_VAR Client> jobs' src='/bweb/zoom.png'>View jobs
31   </label>
32  </form>
33  </td>
34  <td>
35  <form action='bweb.pl?'>
36   <input type='hidden' name='age' value='2678400'>
37   <input type='hidden' name='client' value='<TMPL_VAR Client>'>
38   <input type='hidden' name='jobname' value='<TMPL_VAR jobname>'>
39   <label>
40   <input type="image" name='action' value='graph' title='view trends'
41    src='/bweb/chart.png'> View stats
42   </label>
43  </form>
44  </td>
45  <td>
46  <form action='bweb.pl?'>
47   <input type='hidden' name='fileset' value='<TMPL_VAR FileSet>'>
48   <label>
49   <input type="image" name='action' value='fileset_view' title='view fileset'
50    src='/bweb/zoom.png'> View FileSet
51   </label>
52  </form>
53  </td>
54 <!-- Remove this to activate bfileview -->
55  <td>
56  <form action='bfileview.pl?'>
57   <input type='hidden' name='jobid' value='<TMPL_VAR jobid>'>
58   <input type='hidden' name='where' value='/'>
59   <label>
60   <input type="image" name='action' value='bfileview' title='view file usage'
61    src='/bweb/colorscm.png' onclick='if (<TMPL_VAR JobFiles> > 50000) { return confirm("It could take long time, do you want to continue ?")} else { return 1; }'> View file usage
62   </label>
63  </form>
64  </td>
65 <!-- -->
66  </table>
67 </div>
68
69 <script type="text/javascript" language='JavaScript'>
70 var header = new Array("JobId",
71                        "Client",
72                        "Job Name", 
73                        "FileSet",
74                        "Level",
75                        "StartTime", 
76                        "Duration",
77                        "JobFiles",
78                        "JobBytes",
79                        "Errors",
80                        "Pool",
81                        "Volume Name",
82                        "Status");
83
84 var data = new Array();
85
86 img = document.createElement("IMG");
87 img.src=bweb_get_job_img("<TMPL_VAR JobStatus>", <TMPL_VAR joberrors>);
88 img.title=jobstatus['<TMPL_VAR JobStatus>']; 
89
90 data.push( new Array(
91 "<TMPL_VAR JobId>",
92 "<TMPL_VAR Client>",     
93 "<TMPL_VAR JobName>",    
94 "<TMPL_VAR FileSet>",    
95 "<TMPL_VAR Level>",      
96 "<TMPL_VAR StartTime>",
97 "<TMPL_VAR duration>",
98 "<TMPL_VAR JobFiles>",   
99 human_size(<TMPL_VAR JobBytes>),
100 "<TMPL_VAR joberrors>",
101 "<TMPL_VAR poolname>",
102 "<TMPL_LOOP volumes><TMPL_VAR VolumeName>\n</TMPL_LOOP>",   
103 img
104  )
105 );
106
107 nrsTable.setup(
108 {
109  table_name:     "id0",
110  table_header: header,
111  table_data: data,
112  up_icon: up_icon,
113  down_icon: down_icon,
114  prev_icon: prev_icon,
115  next_icon: next_icon,
116  rew_icon:  rew_icon,
117  fwd_icon:  fwd_icon,
118 // natural_compare: true,
119  even_cell_color: even_cell_color,
120  odd_cell_color: odd_cell_color, 
121  header_color: header_color,
122  page_nav: true,
123  rows_per_page: rows_per_page,
124 // disable_sorting: new Array(6)
125  padding: 3
126 }
127 );
128
129 </script>