| 1 | <html> |
| 2 | <head> |
| 3 | <title>Html2Wml Test Page</title> |
| 4 | |
| 5 | <style type="text/css"> |
| 6 | BODY { background-color: #FFFFFF } |
| 7 | BODY, TD, TH, P { font-family: arial, helvetica, sans-serif } |
| 8 | P { width: 15cm } |
| 9 | </style> |
| 10 | </head> |
| 11 | |
| 12 | <body> |
| 13 | |
| 14 | <h1>Html2Wml Test Page</h1> |
| 15 | |
| 16 | <p>This page illustrates how to call Html2Wml from an HTML form. |
| 17 | It also shows that most of the options of Html2Wml can be used in |
| 18 | CGI mode. </p> |
| 19 | |
| 20 | <p>If you uncheck the "Debug" option, the result will be sent as |
| 21 | a real WML deck, which is not viewable with standard web browsers. </p> |
| 22 | |
| 23 | <form action="/cgi-bin/html2wml.cgi" method="GET"> |
| 24 | <table> <tr> <td style="background-color: #DDDDDD"> |
| 25 | <table> |
| 26 | <tr> <th colspan="3" style="background-color: #BBBBBB">Html2Wml Options</th> </tr> |
| 27 | <tr> |
| 28 | <td colspan="3"> Url: <input name="url" type="text" size="60" /> </td> |
| 29 | </tr> |
| 30 | <tr> |
| 31 | <td> HTTP User: <input name="U" type="text" size="10" /> </td> |
| 32 | <td> HTTP Password: <input name="P" type="password" size="10" /> </td> |
| 33 | </tr> |
| 34 | <tr> |
| 35 | <td><input name="d" value="1" type="checkbox" checked="checked" />Debug mode</td> |
| 36 | <td><input name="k" value="1" type="checkbox" />Compile WML</td> |
| 37 | </tr> |
| 38 | <tr> |
| 39 | <td><input name="a" value="1" type="checkbox" />Use ASCII emulation</td> |
| 40 | <td></td> |
| 41 | </tr> |
| 42 | <tr> |
| 43 | <td colspan="2"> |
| 44 | <input name="n" value="1" type="checkbox" />Convert non-ASCII characters to numeric entities |
| 45 | </td> |
| 46 | </tr> |
| 47 | <tr> |
| 48 | <td colspan="2"> |
| 49 | <input name="collapse" value="0" type="checkbox" />Don't collapse spaces and empty paragraphs |
| 50 | </td> |
| 51 | </tr> |
| 52 | <tr> |
| 53 | <td><input name="linearize" value="0" type="checkbox" />Don't linearize tables </td> |
| 54 | <td><input name="p" value="1" type="checkbox" />Don't use PRE tag </td> |
| 55 | </td> |
| 56 | <td> <input type="submit" value="Convert" /> </td> |
| 57 | </tr> |
| 58 | </table> |
| 59 | </td> </tr> </table> |
| 60 | </form> |
| 61 | |
| 62 | </body> |
| 63 | </html> |