]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl second cup of client groups
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 31 May 2007 10:33:49 +0000 (10:33 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 31 May 2007 10:33:49 +0000 (10:33 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4950 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/lang/es/tpl/display_groups.tpl [new file with mode: 0644]
gui/bweb/lang/es/tpl/groups_add.tpl [new file with mode: 0644]
gui/bweb/lang/es/tpl/groups_edit.tpl [new file with mode: 0644]
gui/bweb/tpl/display_groups.tpl [new file with mode: 0644]
gui/bweb/tpl/groups_add.tpl [new file with mode: 0644]
gui/bweb/tpl/groups_edit.tpl [new file with mode: 0644]

diff --git a/gui/bweb/lang/es/tpl/display_groups.tpl b/gui/bweb/lang/es/tpl/display_groups.tpl
new file mode 100644 (file)
index 0000000..b9ab74e
--- /dev/null
@@ -0,0 +1,63 @@
+<br/>
+ <div class='titlediv'>
+  <h1 class='newstitle'>Groups</h1>
+ </div>
+ <div class="bodydiv">
+   <form action='?' method='get'>
+    <table id='id<TMPL_VAR ID>'></table>
+    <input type="image" name='action' value='groups_add' title='Add' src='/bweb/add.png'>&nbsp;
+    <input type="image" name='action' value='groups_del' 
+     onclick="return confirm('Do you want to delete this group ?');" 
+     title='Supprimer' src='/bweb/remove.png'>&nbsp;
+    <input type="image" name='action' value='groups_edit' title='Modify' src='/bweb/edit.png'>&nbsp;
+
+    <input type="image" name='action' value='groups' title='View'
+     src='/bweb/zoom.png'>
+   </form>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+
+var header = new Array("Name","Selection");
+
+var data = new Array();
+var chkbox;
+
+<TMPL_LOOP groups>
+
+chkbox = document.createElement('INPUT');
+chkbox.type  = 'radio';
+chkbox.name  = 'client_group';
+chkbox.value = '<TMPL_VAR client_group>';
+
+data.push( new Array(
+"<TMPL_VAR client_group>",
+chkbox
+ )
+);
+</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: false,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color, 
+ header_color: header_color,
+ page_nav: true,
+ padding: 3,
+// disable_sorting: new Array(5,6),
+ rows_per_page: rows_per_page
+}
+);
+</script>
+
+
diff --git a/gui/bweb/lang/es/tpl/groups_add.tpl b/gui/bweb/lang/es/tpl/groups_add.tpl
new file mode 100644 (file)
index 0000000..f19ab68
--- /dev/null
@@ -0,0 +1,16 @@
+<div class='titlediv'>
+  <h1 class='newstitle'> Add a group </h1>
+</div>
+<div class='bodydiv'>
+   <form action="?" method='get'>
+    <table>
+     <tr><td>Group :</td>
+         <td> 
+          <input class="formulaire" type='text' value='' size='32' name='client_group'> 
+         </td>
+     </tr>
+    </table>
+    <input type="image" name='action' value='groups_add' title="Save"
+      src='/bweb/save.png'>
+   </form>
+</div>
diff --git a/gui/bweb/lang/es/tpl/groups_edit.tpl b/gui/bweb/lang/es/tpl/groups_edit.tpl
new file mode 100644 (file)
index 0000000..88a2612
--- /dev/null
@@ -0,0 +1,33 @@
+
+<div class='titlediv'>
+  <h1 class='newstitle'> Group : <TMPL_VAR client_group></h1>
+</div>
+<div class='bodydiv'>
+   <form action="?" method='get'>
+    <input type='hidden' name='client_group' value=<TMPL_VAR client_group>>
+    <table>
+     <tr><td>Group :</td>
+         <td> 
+          <input class="formulaire" type='text' value=<TMPL_VAR client_group> size='15' name='newgroup'> 
+         </td>
+     </tr>
+     <tr><td>Clients :</td> 
+         <td>
+            <select name='client' size='15' class='formulaire' multiple>
+            <TMPL_LOOP db_clients>
+            <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
+            </TMPL_LOOP>
+            </select>
+         </td>
+     </tr>
+    </table>
+    <input type="image" name='action' value='groups_save'
+     src='/bweb/save.png'>
+   </form>
+</div>
+
+<script type="text/javascript" language="JavaScript">
+  <TMPL_LOOP client_group_member>
+     document.getElementById('client_<TMPL_VAR name>').selected = true;
+  </TMPL_LOOP>
+</script>
diff --git a/gui/bweb/tpl/display_groups.tpl b/gui/bweb/tpl/display_groups.tpl
new file mode 100644 (file)
index 0000000..b9ab74e
--- /dev/null
@@ -0,0 +1,63 @@
+<br/>
+ <div class='titlediv'>
+  <h1 class='newstitle'>Groups</h1>
+ </div>
+ <div class="bodydiv">
+   <form action='?' method='get'>
+    <table id='id<TMPL_VAR ID>'></table>
+    <input type="image" name='action' value='groups_add' title='Add' src='/bweb/add.png'>&nbsp;
+    <input type="image" name='action' value='groups_del' 
+     onclick="return confirm('Do you want to delete this group ?');" 
+     title='Supprimer' src='/bweb/remove.png'>&nbsp;
+    <input type="image" name='action' value='groups_edit' title='Modify' src='/bweb/edit.png'>&nbsp;
+
+    <input type="image" name='action' value='groups' title='View'
+     src='/bweb/zoom.png'>
+   </form>
+ </div>
+
+<script type="text/javascript" language="JavaScript">
+
+var header = new Array("Name","Selection");
+
+var data = new Array();
+var chkbox;
+
+<TMPL_LOOP groups>
+
+chkbox = document.createElement('INPUT');
+chkbox.type  = 'radio';
+chkbox.name  = 'client_group';
+chkbox.value = '<TMPL_VAR client_group>';
+
+data.push( new Array(
+"<TMPL_VAR client_group>",
+chkbox
+ )
+);
+</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: false,
+ even_cell_color: even_cell_color,
+ odd_cell_color: odd_cell_color, 
+ header_color: header_color,
+ page_nav: true,
+ padding: 3,
+// disable_sorting: new Array(5,6),
+ rows_per_page: rows_per_page
+}
+);
+</script>
+
+
diff --git a/gui/bweb/tpl/groups_add.tpl b/gui/bweb/tpl/groups_add.tpl
new file mode 100644 (file)
index 0000000..f19ab68
--- /dev/null
@@ -0,0 +1,16 @@
+<div class='titlediv'>
+  <h1 class='newstitle'> Add a group </h1>
+</div>
+<div class='bodydiv'>
+   <form action="?" method='get'>
+    <table>
+     <tr><td>Group :</td>
+         <td> 
+          <input class="formulaire" type='text' value='' size='32' name='client_group'> 
+         </td>
+     </tr>
+    </table>
+    <input type="image" name='action' value='groups_add' title="Save"
+      src='/bweb/save.png'>
+   </form>
+</div>
diff --git a/gui/bweb/tpl/groups_edit.tpl b/gui/bweb/tpl/groups_edit.tpl
new file mode 100644 (file)
index 0000000..88a2612
--- /dev/null
@@ -0,0 +1,33 @@
+
+<div class='titlediv'>
+  <h1 class='newstitle'> Group : <TMPL_VAR client_group></h1>
+</div>
+<div class='bodydiv'>
+   <form action="?" method='get'>
+    <input type='hidden' name='client_group' value=<TMPL_VAR client_group>>
+    <table>
+     <tr><td>Group :</td>
+         <td> 
+          <input class="formulaire" type='text' value=<TMPL_VAR client_group> size='15' name='newgroup'> 
+         </td>
+     </tr>
+     <tr><td>Clients :</td> 
+         <td>
+            <select name='client' size='15' class='formulaire' multiple>
+            <TMPL_LOOP db_clients>
+            <option id='client_<TMPL_VAR clientname>'><TMPL_VAR clientname></option>
+            </TMPL_LOOP>
+            </select>
+         </td>
+     </tr>
+    </table>
+    <input type="image" name='action' value='groups_save'
+     src='/bweb/save.png'>
+   </form>
+</div>
+
+<script type="text/javascript" language="JavaScript">
+  <TMPL_LOOP client_group_member>
+     document.getElementById('client_<TMPL_VAR name>').selected = true;
+  </TMPL_LOOP>
+</script>