]> git.sur5r.net Git - bacula/bacula/blob - gui/bacula-web/templates/jobs.tpl
bacula-web: Link to backup job report page in jobs page
[bacula/bacula] / gui / bacula-web / templates / jobs.tpl
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
2   "http://www.w3.org/TR/html4/loose.dtd">
3 <html lang="en">
4 <head>
5 <title>bacula-web</title>
6 <link rel="stylesheet" type="text/css" href="style/default.css">
7 {literal}
8 <script type="text/javascript">
9         function OpenWin(URL,wid,hei) {
10                 window.open(URL,"window1","width="+wid+",height="+hei+",scrollbars=yes,menubar=no,location=no,resizable=no")
11         }
12 </script>
13 {/literal}
14
15 </head>
16 <body>
17 {popup_init src='./external_packages/js/overlib.js'}
18 {include file=header.tpl}
19
20   <div id="nav">
21     <a href="index.php" title="Back to the dashboard">Dashboard</a> > Jobs list
22   </div>
23
24   <div id="main_center">
25   
26   <!-- Last jobs -->  
27   <div class="box">
28         <p class="title">Jobs report</p>
29         <!-- Filter jobs -->
30         <form action="jobs.php" method="post">
31         <table border="0">
32           <tr>
33             <td class="info" width="200">
34                         {$total_jobs} jobs found
35                 </td>
36                 <td class="info" colspan="5" style="text-align: right;">
37                         Jobs / Page
38                         <select name="jobs_per_page">
39                           {foreach from=$jobs_per_page item=nb_jobs}
40                             <option value="{$nb_jobs}" {if $smarty.post.jobs_per_page == $nb_jobs}Selected{/if} >{$nb_jobs}
41                           {/foreach}
42                         </select>
43                 </td>
44                 <td class="info" width="200">
45                         Job Status
46                         <select name="status">
47                                 {foreach from=$job_status item=status_label}
48                                   <option value="{$status_label}" {if $smarty.post.status == $status_label}Selected{/if} >{$status_label}
49                                 {/foreach}
50                         </select>
51                 </td>
52                 <td class="info" width="120">
53                         <input type="submit" value="Update" />
54                 </td>
55           </tr>
56           <tr>
57                 <td colspan="8">&nbsp;</td>
58           </tr>
59         </table>
60         </form>
61         
62         <table border="0">
63           <tr>
64                 <td class="tbl_header">Status</td>
65                 <td class="tbl_header">Job ID</td>
66                 <td class="tbl_header">BackupJob</td>
67                 <td class="tbl_header">Start Time</td>
68                 <td class="tbl_header">End Time</td>
69                 <td class="tbl_header">Elapsed time</td>
70                 <td class="tbl_header">Level</td>
71                 <td class="tbl_header">Bytes</td>
72                 <td class="tbl_header">Files</td>
73                 <td class="tbl_header">Pool</td>
74           </tr>
75         <!-- <div class="listbox"> -->
76           {foreach from=$last_jobs item=job}
77           <tr>
78                 <td width="50" class="{$job.Job_classe}">
79                         <img width="20" src="style/images/{$job.Job_icon}" alt="" title="{$job.JobStatusLong}" />
80                 </td>
81                 <td class="{$job.Job_classe}">{$job.JobId}</td>
82                 <td class="{$job.Job_classe}">
83                         <a href="backupjob-report.php?backupjob_name={$job.Job_name}">{$job.Job_name}</a>
84                 </td>
85                 <td class="{$job.Job_classe}">{$job.StartTime}</td>
86                 <td class="{$job.Job_classe}">{$job.EndTime}</td>
87                 <td class="{$job.Job_classe}">{$job.elapsed_time}</td>
88                 <td class="{$job.Job_classe}">{$job.Level}</td>
89                 <td class="{$job.Job_classe}">{$job.JobBytes}</td>
90                 <td class="{$job.Job_classe}">{$job.JobFiles}</td>
91                 <td class="{$job.Job_classe}">{$job.Pool_name}</td>
92           </tr>
93           {/foreach}
94         </table>
95         <!-- </div> --> <!-- end div class=listbox -->
96   </div>
97
98 </div>
99
100 {include file="footer.tpl"}