OSDN Git Service

link upgrade
[pybbs/pybbs.git] / templates / 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 src={{static_url('js/sub.js')}}></script>
18   </head> 
19   <body>
20   {% block header %}
21     <a href=/ style=text-decoration:none>{% raw data['title2'] %}</a>
22     <header>
23     <a name=top></a>
24     <form action=/{{db}}/regist method="post">
25     {% module xsrf_form_html() %}
26       <table>
27         <tr><td>
28           <label><p>お名前</p><input name="name" class=name value={{username}}></label>
29           <label><p>タイトル</p><input name="title" class=title value="タイトルなし."></label>
30           <input type="submit" value="送信">
31         </td></tr>
32         <tr><td>
33           <label><p>本文<span>必須</span><br></p>
34             <textarea name="comment" cols=30 required placeholder="コメントなどを入力してください."></textarea></label>
35         </td></tr>
36         <tr><td>
37           <label><p>パスワード</p><input name="password" type="password" placeholder="削除用"></label>
38         <tr><td>
39           <label><p>合言葉をひらがなで入力してください: gennki<input name=aikotoba type=text value={{aikotoba}}></label>
40         </td></tr>
41       </table>
42     </form>
43     <button>open</button>
44     </header>
45     <hr size="1" width="100%">
46     <form action=/{{db}}/userdel method="post" id=search>
47       {% module xsrf_form_html() %}
48       <label><p>記事No</p><input name="number"></label>
49       <label><p>Pass</p><input type="password" name="password"></label>
50       <input type="submit" value="削除">
51       <p><a href=/{{db}}/search>検索ページ</a></p>
52     </form>
53     <p style=text-align:center>{{db}}</p>
54   {% module Footer(position,'/'+db,'#article') %}
55   {% end %}
56   {% block body %}
57     {% for record in records %}
58     <hr size=1>
59         <section id=number>[<a name={{record['number']}}>{{record['number']}}</a>]</section>
60         <section id=title>{{record['title']}}</section>
61         <section id=name> Name:<h1>{{record['name']}}</h1></section>
62         <section id=date> Date:<h1>{{record['date']}}</h1></section>
63         <p>▽▲▽▲▽▲▽
64         <section id=comment>{% raw record['comment'] %}</section>
65         <p>△▼△▼△▼△
66         {% end %}
67         <a name=article></a>
68         <p style=text-align:right><a href=#top>Topへ移動</a></p>
69   {% end %}
70   {% block footer %}
71     {% module Footer(position,'/'+db,'#article') %}
72     <p style=text-align:center><a href="/{{db}}/admin/0/">管理者用ログイン</a></p>
73   {% end %}
74   </body>
75 </html>