Rework LuCI build system
[project/luci.git] / libs / luci-lib-nixio / axTLS / www / lua / test_main.html
1 <html>
2 <head><title>Test Page</title></head>
3
4 <table border>
5   <tr>
6     <th colspan="4"> GET: </td>
7   </tr>
8   <tr>
9     <td>Lua script</td>
10     <td><a href="test_main.lua?field1=ab&field2=cd&field1=ef">module</a></td>
11   </tr>
12   <tr>
13     <td>HTML template</td>
14     <td><a href="test_main.lp?field1=ab&field2=cd&field1=ef">module</a></td>
15   </tr>
16
17   <tr>
18     <th colspan="4"> POST: </td>
19   </tr>
20   <tr>
21     <td colspan="4">
22       <form method="POST" action="">
23         <table>
24           <tr>
25             <td colspan="4">
26               field 1: <input type="text" name="field1"><br>
27               field 2: <input type="text" name="field2"><br>
28               field 3:
29                 <input type="checkbox" name="field3" value="op 1">op 1
30                 <input type="checkbox" name="field3" value="op 2">op 2
31                 <input type="checkbox" name="field3" value="op 3">op 3
32             </td>
33           </tr>
34           <tr>
35             <td>Lua script</td>
36             <td>
37               <a href="javascript:document.forms[0].action='test_main.lua';document.forms[0].submit()">module</a>
38             </td>
39           </tr>
40           <tr>
41             <td>HTML template</td>
42             <td>
43               <a href="javascript:document.forms[0].action='test_main.lp';document.forms[0].submit()">module</a>
44             </td>
45           </tr>
46         </table>
47       </form>
48     </td>
49   </tr>
50
51   <tr>
52     <th colspan="4"> POST (with upload): </td>
53   </tr>
54   <tr>
55     <td colspan="4">
56       <form method="POST" enctype="multipart/form-data" action="">
57         <table>
58           <tr>
59             <td colspan="4">
60               field 1: <input type="text" name="field1"><br>
61               file (binary!): <input type="file" name="file"><br>
62             </td>
63           </tr>
64           <tr>
65             <td>Lua script</td>
66             <td>
67               <a href="javascript:document.forms[1].action='test_main.lua';document.forms[1].submit()">module</a>
68             </td>
69           </tr>
70           <tr>
71             <td>HTML template</td>
72             <td>
73               <a href="javascript:document.forms[1].action='test_main.lp';document.forms[1].submit()">module</a>
74             </td>
75           </tr>
76         </table>
77       </form>
78     </td>
79   </tr>
80   <tr>
81     <th colspan="4"> Cookies: </td>
82   </tr>
83   <tr>
84     <td>Lua script</td>
85     <td><a href="test_cookies.lua">module</a></td>
86   </tr>
87   <tr>
88     <td>HTML template</td>
89     <td><a href="test_cookies.lp">module</a></td>
90   </tr>
91   <tr>
92     <th colspan="4"> Filesystem: </td>
93   </tr>
94   <tr>
95     <td>Lua script</td>
96     <td><a href="test_fs.lua">module</a></td>
97   </tr>
98   <tr>
99     <th colspan="4"> Session: </td>
100   </tr>
101   <tr>
102     <td>Lua script</td>
103     <td><a href="test_session.lua">module</a></td>
104   </tr>
105   <tr>
106     <th colspan="4"> CGI Variables: </td>
107   </tr>
108   <tr>
109     <td>HTML template</td>
110     <td><a href="test_variables.lp">module</a></td>
111   </tr>
112   <tr>
113     <th colspan="4"> Library Overview: </td>
114   </tr>
115   <tr>
116     <td>HTML template</td>
117     <td><a href="overview.lp">module</a></td>
118   </tr>
119   <tr>
120     <th colspan="4"> Concurrency </td>
121   </tr>
122   <tr>
123     <td>Lua script</td>
124     <td><a href="test_conc.lua">module</a></td>
125   </tr>
126 </table>
127 </html>