]> git.sur5r.net Git - bacula/bacula/blob - gui/bweb/tpl/scheduled_job.tpl
ebl Replace <input type='image'> with button
[bacula/bacula] / gui / bweb / tpl / scheduled_job.tpl
1 <br/>
2  <div class='titlediv'>
3   <h1 class='newstitle'> <TMPL_IF title><TMPL_VAR title><TMPL_ELSE>Next Jobs </TMPL_IF></h1>
4  </div>
5  <div class='bodydiv'>
6     <form action='<TMPL_VAR cginame>?' method='GET'>
7      <table id='id<TMPL_VAR ID>'></table>
8      <button type="submit" class="bp" name='action' title='Run now' value='run_job_mod'>
9        <img src='/bweb/R.png' alt=''>  Run now </button>
10       <button type="submit" class="bp" name='action' title='Disable' value='disable_job'>
11        <img src='/bweb/inflag0.png' alt=''> Disable </button>
12     </form>
13  </div>
14
15 <script type="text/javascript" language="JavaScript">
16
17 var header = new Array("Scheduled",
18                        "Level",
19                        "Type",
20                        "Priority", 
21                        "Name",
22                        "Volume",
23                        "Select");
24
25 var data = new Array();
26 var chkbox;
27
28 <TMPL_LOOP list>
29 chkbox = document.createElement('INPUT');
30 chkbox.type  = 'radio';
31 chkbox.name = 'job';
32 chkbox.value = '<TMPL_VAR name>';
33
34 data.push( new Array(
35 "<TMPL_VAR date>",    
36 "<TMPL_VAR level>",
37 "<TMPL_VAR type>",     
38 "<TMPL_VAR priority>",    
39 "<TMPL_VAR name>",      
40 "<TMPL_VAR volume>",
41 chkbox
42  )
43 );
44 </TMPL_LOOP>
45
46 nrsTable.setup(
47 {
48  table_name:     "id<TMPL_VAR ID>",
49  table_header: header,
50  table_data: data,
51  up_icon: up_icon,
52  down_icon: down_icon,
53  prev_icon: prev_icon,
54  next_icon: next_icon,
55  rew_icon:  rew_icon,
56  fwd_icon:  fwd_icon,
57 // natural_compare: true,
58  even_cell_color: even_cell_color,
59  odd_cell_color: odd_cell_color, 
60  header_color: header_color,
61  page_nav: true,
62  rows_per_page: rows_per_page,
63 // disable_sorting: new Array(6),
64  padding: 3
65 }
66 );
67 </script>