OSDN Git Service

livePreview ok
[pybbs/pybbs.git] / pybbs / modules / index.htm
1 <!DOCTYPE html>
2
3 <html>
4   <head>
5     <meta charset=utf-8>
6     <title>
7         {% block title %}
8                 {{data['title']}}
9         {% end %}
10     </title>
11     {% block style %}
12     <link rel="stylesheet" href={{static_url('css/main.css')}}>
13         {% end %}
14         <script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js></script>
15         <script type=text/javascript src={{static_url('js/jquery-live-preview.js')}}></script>
16         <link rel=stylesheet href={{static_url('css/livepreview-demo.css')}}>
17         <script type=text/javascript>
18         $(document).ready(function(){
19                 $('.livepreview').livePreview({position:'top'});
20         });
21         </script>
22   </head> 
23   <body>
24   {% block header %}
25     <a href=/ style=text-decoration:none>{% raw data['title2'] %}</a>
26     <header>
27     <a name=top></a>
28     <form action=/{{db}}/regist method="post">
29     {% module xsrf_form_html() %}
30       <table>
31         <tr><td>
32           <label><p>お名前</p><input name="name" value={{username}}></label>
33           <label><p>タイトル</p><input name="title"></label>
34           <input type="submit" value="送信">
35         </td></tr>
36         <tr><td>
37           <label><p>本文<span>必須</span><br></p>
38             <textarea name="comment" cols=30 required placeholder="コメントなどを入力してください."></textarea></label>
39         </td></tr>
40         <tr><td>
41           <label><p>パスワード</p><input name="password" type="password" placeholder="削除用"></label>
42         </td></tr>
43       </table>
44     </form>
45     </header>
46     <hr size="1" width="100%">
47     <form action=/{{db}}/userdel method="post" id=search>
48       {% module xsrf_form_html() %}
49       <label><p>記事No</p><input name="number"></label>
50       <label><p>Pass</p><input type="password" name="password"></label>
51       <input type="submit" value="削除">
52       <p><a href=/{{db}}/search>検索ページ</a></p>
53     </form>
54     <p style=text-align:center>{{db}}</p>
55   {% module Footer(position,'/'+db,'#article') %}
56   {% end %}
57   {% block body %}
58     {% for record in records %}
59     <hr size=1>
60         <section id=number>[<a name={{record['number']}}>{{record['number']}}</a>]</section>
61         <section id=title>{{record['title']}}</section>
62         <section id=name> Name:<h1>{{record['name']}}</h1></section>
63         <section id=date> Date:<h1>{{record['date']}}</h1></section>
64         <section id=comment>{% raw record['comment'] %}</section>
65         {% end %}
66         <a name=article></a>
67         <p style=text-align:right><a href=#top>Topへ移動</a></p>
68   {% end %}
69   {% block footer %}
70     {% module Footer(position,'/'+db,'#article') %}
71     <p style=text-align:center><a href="/{{db}}/admin/0/">管理者用ログイン</a></p>
72   {% end %}
73   </body>
74 </html>