summaryrefslogtreecommitdiffhomepage
path: root/libs/luci-lib-nixio/axTLS/www/lua/test_main.html
blob: a50dd639ca73cc900abe792d23e217d1f220726c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<html>
<head><title>Test Page</title></head>

<table border>
  <tr>
    <th colspan="4"> GET: </td>
  </tr>
  <tr>
    <td>Lua script</td>
    <td><a href="test_main.lua?field1=ab&field2=cd&field1=ef">module</a></td>
  </tr>
  <tr>
    <td>HTML template</td>
    <td><a href="test_main.lp?field1=ab&field2=cd&field1=ef">module</a></td>
  </tr>

  <tr>
    <th colspan="4"> POST: </td>
  </tr>
  <tr>
    <td colspan="4">
      <form method="POST" action="">
        <table>
          <tr>
            <td colspan="4">
              field 1: <input type="text" name="field1"><br>
              field 2: <input type="text" name="field2"><br>
              field 3:
                <input type="checkbox" name="field3" value="op 1">op 1
                <input type="checkbox" name="field3" value="op 2">op 2
                <input type="checkbox" name="field3" value="op 3">op 3
            </td>
          </tr>
          <tr>
            <td>Lua script</td>
            <td>
              <a href="javascript:document.forms[0].action='test_main.lua';document.forms[0].submit()">module</a>
            </td>
          </tr>
          <tr>
            <td>HTML template</td>
            <td>
              <a href="javascript:document.forms[0].action='test_main.lp';document.forms[0].submit()">module</a>
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>

  <tr>
    <th colspan="4"> POST (with upload): </td>
  </tr>
  <tr>
    <td colspan="4">
      <form method="POST" enctype="multipart/form-data" action="">
        <table>
          <tr>
            <td colspan="4">
              field 1: <input type="text" name="field1"><br>
              file (binary!): <input type="file" name="file"><br>
            </td>
          </tr>
          <tr>
            <td>Lua script</td>
            <td>
              <a href="javascript:document.forms[1].action='test_main.lua';document.forms[1].submit()">module</a>
            </td>
          </tr>
          <tr>
            <td>HTML template</td>
            <td>
              <a href="javascript:document.forms[1].action='test_main.lp';document.forms[1].submit()">module</a>
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
  <tr>
    <th colspan="4"> Cookies: </td>
  </tr>
  <tr>
    <td>Lua script</td>
    <td><a href="test_cookies.lua">module</a></td>
  </tr>
  <tr>
    <td>HTML template</td>
    <td><a href="test_cookies.lp">module</a></td>
  </tr>
  <tr>
    <th colspan="4"> Filesystem: </td>
  </tr>
  <tr>
    <td>Lua script</td>
    <td><a href="test_fs.lua">module</a></td>
  </tr>
  <tr>
    <th colspan="4"> Session: </td>
  </tr>
  <tr>
    <td>Lua script</td>
    <td><a href="test_session.lua">module</a></td>
  </tr>
  <tr>
    <th colspan="4"> CGI Variables: </td>
  </tr>
  <tr>
    <td>HTML template</td>
    <td><a href="test_variables.lp">module</a></td>
  </tr>
  <tr>
    <th colspan="4"> Library Overview: </td>
  </tr>
  <tr>
    <td>HTML template</td>
    <td><a href="overview.lp">module</a></td>
  </tr>
  <tr>
    <th colspan="4"> Concurrency </td>
  </tr>
  <tr>
    <td>Lua script</td>
    <td><a href="test_conc.lua">module</a></td>
  </tr>
</table>
</html>