]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl add tpl file for display_job_group
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 21 Jun 2007 21:01:01 +0000 (21:01 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 21 Jun 2007 21:01:01 +0000 (21:01 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5059 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/lang/es/tpl/display_job_group.tpl [new file with mode: 0644]
gui/bweb/lang/fr/tpl/display_job_group.tpl [new file with mode: 0644]
gui/bweb/tpl/display_job_group.tpl [new file with mode: 0644]

diff --git a/gui/bweb/lang/es/tpl/display_job_group.tpl b/gui/bweb/lang/es/tpl/display_job_group.tpl
new file mode 100644 (file)
index 0000000..14037ec
--- /dev/null
@@ -0,0 +1,84 @@
+ <div class='titlediv'>
+  <h1 class='newstitle'> Group summary (<TMPL_VAR Filter>)</h1>
+ </div>
+ <div class='bodydiv'>
+    <table id='id<TMPL_VAR ID>'></table>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+<TMPL_IF status>
+document.getElementById('status_<TMPL_VAR status>').checked = true;
+</TMPL_IF>
+
+
+
+var header = new Array("Group",
+                      "Nb Jobs",
+                      "Nb Ok",
+                       "Nb Err",
+                      "Nb Files", 
+                      "Size",
+                      "Duration",
+                       "Errors",
+                      "Status");
+
+var data = new Array();
+var age = <TMPL_VAR age>;
+
+<TMPL_LOOP Groups>
+a = document.createElement('A');
+a.href='?action=job;client_group=<TMPL_VAR client_group_name>;age=' + age;
+
+img = document.createElement("IMG");
+
+if ("<TMPL_VAR nbjoberr>") {
+  jobstatus='f';
+
+} else {
+  jobstatus='T';
+}
+
+img.src=bweb_get_job_img(jobstatus, <TMPL_VAR joberrors>);
+img.title=jobstatus[jobstatus]; 
+
+a.appendChild(img);
+
+data.push( new Array(
+"<TMPL_VAR client_group_name>",
+<TMPL_VAR nbjobok> + <TMPL_VAR nbjoberr>, 
+<TMPL_VAR nbjobok>,
+<TMPL_VAR nbjoberr>,         
+"<TMPL_VAR JobFiles>",    
+human_size(<TMPL_VAR JobBytes>),
+"<TMPL_VAR Duration>",
+"<TMPL_VAR Joberrors>",
+a
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name:     "id<TMPL_VAR ID>",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon:  rew_icon,
+ fwd_icon:  fwd_icon,
+// natural_compare: true,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color, 
+ header_color: header_color,
+ page_nav: true,
+ rows_per_page: rows_per_page,
+ disable_sorting: new Array(10),
+ padding: 3
+}
+);
+
+// get newest backup first
+nrsTables['id<TMPL_VAR ID>'].fieldSort(0);
+</script>
diff --git a/gui/bweb/lang/fr/tpl/display_job_group.tpl b/gui/bweb/lang/fr/tpl/display_job_group.tpl
new file mode 100644 (file)
index 0000000..8e1b536
--- /dev/null
@@ -0,0 +1,84 @@
+ <div class='titlediv'>
+  <h1 class='newstitle'> Vue par groupe (<TMPL_VAR Filter>)</h1>
+ </div>
+ <div class='bodydiv'>
+    <table id='id<TMPL_VAR ID>'></table>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+<TMPL_IF status>
+document.getElementById('status_<TMPL_VAR status>').checked = true;
+</TMPL_IF>
+
+
+
+var header = new Array("Groupe",
+                      "Nb Jobs",
+                      "Nb Ok",
+                       "Nb Err",
+                      "Nb Fichiers", 
+                      "Taille",
+                      "Duree",
+                       "Erreurs",
+                      "Statut");
+
+var data = new Array();
+var age = <TMPL_VAR age>;
+
+<TMPL_LOOP Groups>
+a = document.createElement('A');
+a.href='?action=job;client_group=<TMPL_VAR client_group_name>;age=' + age;
+
+img = document.createElement("IMG");
+
+if ("<TMPL_VAR nbjoberr>") {
+  jobstatus='f';
+
+} else {
+  jobstatus='T';
+}
+
+img.src=bweb_get_job_img(jobstatus, <TMPL_VAR joberrors>);
+img.title=jobstatus[jobstatus]; 
+
+a.appendChild(img);
+
+data.push( new Array(
+"<TMPL_VAR client_group_name>",
+<TMPL_VAR nbjobok> + <TMPL_VAR nbjoberr>, 
+<TMPL_VAR nbjobok>,
+<TMPL_VAR nbjoberr>,         
+"<TMPL_VAR JobFiles>",    
+human_size(<TMPL_VAR JobBytes>),
+"<TMPL_VAR Duration>",
+"<TMPL_VAR Joberrors>",
+a
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name:     "id<TMPL_VAR ID>",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon:  rew_icon,
+ fwd_icon:  fwd_icon,
+// natural_compare: true,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color, 
+ header_color: header_color,
+ page_nav: true,
+ rows_per_page: rows_per_page,
+ disable_sorting: new Array(10),
+ padding: 3
+}
+);
+
+// get newest backup first
+nrsTables['id<TMPL_VAR ID>'].fieldSort(0);
+</script>
diff --git a/gui/bweb/tpl/display_job_group.tpl b/gui/bweb/tpl/display_job_group.tpl
new file mode 100644 (file)
index 0000000..14037ec
--- /dev/null
@@ -0,0 +1,84 @@
+ <div class='titlediv'>
+  <h1 class='newstitle'> Group summary (<TMPL_VAR Filter>)</h1>
+ </div>
+ <div class='bodydiv'>
+    <table id='id<TMPL_VAR ID>'></table>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+<TMPL_IF status>
+document.getElementById('status_<TMPL_VAR status>').checked = true;
+</TMPL_IF>
+
+
+
+var header = new Array("Group",
+                      "Nb Jobs",
+                      "Nb Ok",
+                       "Nb Err",
+                      "Nb Files", 
+                      "Size",
+                      "Duration",
+                       "Errors",
+                      "Status");
+
+var data = new Array();
+var age = <TMPL_VAR age>;
+
+<TMPL_LOOP Groups>
+a = document.createElement('A');
+a.href='?action=job;client_group=<TMPL_VAR client_group_name>;age=' + age;
+
+img = document.createElement("IMG");
+
+if ("<TMPL_VAR nbjoberr>") {
+  jobstatus='f';
+
+} else {
+  jobstatus='T';
+}
+
+img.src=bweb_get_job_img(jobstatus, <TMPL_VAR joberrors>);
+img.title=jobstatus[jobstatus]; 
+
+a.appendChild(img);
+
+data.push( new Array(
+"<TMPL_VAR client_group_name>",
+<TMPL_VAR nbjobok> + <TMPL_VAR nbjoberr>, 
+<TMPL_VAR nbjobok>,
+<TMPL_VAR nbjoberr>,         
+"<TMPL_VAR JobFiles>",    
+human_size(<TMPL_VAR JobBytes>),
+"<TMPL_VAR Duration>",
+"<TMPL_VAR Joberrors>",
+a
+ )
+);
+</TMPL_LOOP>
+
+nrsTable.setup(
+{
+ table_name:     "id<TMPL_VAR ID>",
+ table_header: header,
+ table_data: data,
+ up_icon: up_icon,
+ down_icon: down_icon,
+ prev_icon: prev_icon,
+ next_icon: next_icon,
+ rew_icon:  rew_icon,
+ fwd_icon:  fwd_icon,
+// natural_compare: true,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color, 
+ header_color: header_color,
+ page_nav: true,
+ rows_per_page: rows_per_page,
+ disable_sorting: new Array(10),
+ padding: 3
+}
+);
+
+// get newest backup first
+nrsTables['id<TMPL_VAR ID>'].fieldSort(0);
+</script>