Contact: fumanchu@aminus.org

Log in as guest/misc to create tickets

root/pinximus/main.html

Revision 31 (checked in by fumanchu, 6 years ago)

New upload functionality, plus ability to store non-image files.

Line 
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
5 <head>
6     <title>%(appname)s</title>
7     <link href='%(root)s/pinximus.css' rel='stylesheet' type='text/css' />
8     <link rel="shortcut icon" href="%(root)s/favicon.ico" />
9     <script src='%(root)s/ajax.js' type='text/javascript'></script>
10 <script type='text/javascript'>
11 <!--
12
13 function encoded(s) {
14     e = encodeURI(s);
15     e = e.replace(/[#]/g, "%23");
16     e = e.replace(/[=]/g, "%3d");
17     e = e.replace(/[?]/g, "%3f");
18     e = e.replace(/[;]/g, "%3b");
19     e = e.replace(/[&]/g, "%26");
20     e = e.replace(/[\/]/g, "%2f");
21     return e;
22 }
23
24 function submit_tags(elem) {
25     var h = http_action();
26     h.open("POST", "%(root)s/resource/" + elem.id.substr(4) + "/tags", true);
27     h.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
28     h.send("tags=" + encoded(elem.value));
29 }
30
31 // -->
32 </script>
33 </head>
34
35 <body>
36
37 <div id='banner'>
38     <h1>%(appname)s</h1>
39     <p>
40         <form id='searchform' action='%(root)s/index'>
41         <a href='%(root)s/library/upload'>Upload</a> |
42         <a href='%(root)s/library/'>Libraries</a> |
43         <a href='%(root)s/tag/'>Tags</a> |
44         Search: <input type='text' name='q' id='q' size='20' />
45         </form>
46     </p>
47 </div>
48
49 <table id='results'>
50 <tr>
51 %(results)s
52 </tr>
53 </table>
54
55 </body>
56 </html>
Note: See TracBrowser for help on using the browser.