]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/display_job_zoom.tpl
ebl - change default config file format, use Data::Dumper now
[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  <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   <button class='formulaire' name='action' value='graph' title='view trends'>
39      View stats<br/>
40      <img src='/bweb/chart.png'>
41   </button>
42  </form>
43  </td>
44  </table>
45 </div>
46
47 <script 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>