Revert "Revert "and added files""
[bcm963xx.git] / userapps / broadcom / cfm / html / ipsec.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3
4 <head>
5
6   <link rel="stylesheet" href="stylemain.css" type="text/css">
7   <link rel="stylesheet" href="colors.css" type="text/css">
8   <meta http-equiv="Pragma" content="no-cache">
9   <title> IPSec Tunnel Mode Connections</title>
10  
11   <script language="javascript" src="util.js"></script>
12   <script language="javascript">
13 <!-- hide  
14
15 function addClick() {
16    var loc = 'ipsec.cmd?action=add';
17    var code = 'location = "' + loc + '"';
18    eval(code);
19 }
20
21 function editClick(index) {
22    var loc = 'ipsec.cmd?action=edit&index=' + index;
23    var code = 'location = "' + loc + '"';
24    eval(code);
25 }
26
27 function removeClick(index) {
28    var loc = 'ipsec.cmd?action=delete&index=' + index;
29    var code = 'location = "' + loc + '"'; 
30    eval(code);
31 }
32
33 function enClick(index, item) {
34    var cv;
35    if (item.checked) {
36           cv = "1";
37    }
38    else {
39       cv = "0";
40    }
41    item.checked = !item.checked;
42    var loc = 'ipsec.cmd?action=enchange&index=' + index +'&en=' + cv;
43    var code = 'location = "' + loc + '"'; 
44    eval(code);  
45 }
46
47 // done hiding -->
48 </script>
49   
50 </head>
51
52 <body>
53 <blockquote>
54 <form>
55   <b>IPSec Tunnel Mode Connections</b><br><br>
56   Add, edit or remove IPSec tunnel mode connections from this page.
57   <br><br>
58   <center>
59   <table border="1" cellpadding="4" cellspacing="0">
60     <tr>
61       <td class="hd">Enable</td>
62       <td class="hd">Connection Name</td>
63       <td class="hd">Remote Gateway</td>     
64       <td class="hd">Local Addresses</td>
65       <td class="hd">Remote Addresses</td>
66       <td class="hd"> &nbsp </td>
67     </tr>
68     <%ejGetStr(ipsecTable)%>
69     </table>
70     <br>
71   <input value="Add New Connection" type="button" onclick="addClick();"> &nbsp
72   </center>
73 </form>
74 </blockquote>
75 </body>
76
77 </html>