source: pycgibattler/trunk/20character.tmpl @ 57

Revision 57, 2.4 KB checked in by atzm, 13 years ago (diff)

add pycgibattler

  • Property svn:keywords set to Id
Line 
1## $Id$
2#encoding UTF-8
3#import time
4#import urllib
5#import xml.sax.saxutils
6#include "00header.tmpl"
7
8#for $e in $entries
9      <div class="day">
10        <h2>
11          <span class="date">
12            [$time.strftime('%Y/%m/%d %H:%M:%S', time.localtime($e.mtime))] 登録
13          </span>
14        </h2>
15        <div class="body">
16          <div class="section">
17            <h3><span class="sanchor">■</span> 名前</h3>
18            <p><a href="http://www.google.co.jp/images?q=$urllib.quote_plus('"' + $e.warrior.name() + '"')">$e.warrior.name()</a></p>
19
20            <h3><span class="sanchor">■</span> ステヌタス</h3>
21            <table class="stat">
22              <tr>
23                <th>HP</th>
24                <th>SP</th>
25                <th>攻撃力</th>
26                <th>集䞭力</th>
27                <th>防埡力</th>
28                <th>玠早さ</th>
29                <th>運</th>
30              </tr>
31              <tr>
32                <td class="right">$e.warrior.hitpoint()</td>
33                <td class="right">$e.warrior.skillpoint()</td>
34                <td class="right">$e.warrior.strength()</td>
35                <td class="right">$e.warrior.concentration()</td>
36                <td class="right">$e.warrior.defense()</td>
37                <td class="right">$e.warrior.agility()</td>
38                <td class="right">$e.warrior.luck()</td>
39              </tr>
40            </table>
41
42            <h3><span class="sanchor">■</span> 必殺技</h3>
43            <table class="stat">
44              <tr>
45                <th>名前</th>
46                <th>タむプ</th>
47                <th>レベル</th>
48                <th>消費 SP</th>
49              </tr>
50  #for $skill in $e.skills
51              <tr>
52                <td class="left"><a href="http://www.google.co.jp/images?q=$urllib.quote_plus('"' + $skill.name() + '"')">$skill.name()</a></td>
53                <td class="center">$(str($skill.skilltype()).split('.')[-1])</td>
54                <td class="right">$skill.level()</td>
55                <td class="right">$skill.point()</td>
56              </tr>
57  #end for
58            </table>
59
60            <h3><span class="sanchor">■</span> コヌド</h3>
61            <pre style="max-height: 25em; overflow: auto;">$xml.sax.saxutils.escape($e.code)</pre>
62          </div>
63        </div>
64      </div>
65#end for
66
67      <div class="footer">
68        コヌドの著䜜暩はそれぞれの著䜜者に垰属したす
69      </div>
70
71#include "90footer.tmpl"
Note: See TracBrowser for help on using the repository browser.