Source

confjoke / templates / view.html

Full commit
{% extends "layout.html" %}

{% block title %} - 統計結果bg1{% endblock %}

{% block nav %} - Result{% endblock %}

{% block menu %}
	<a href="/">首頁</a>
{% endblock %}

{% block content %}
<table width="80%" align="center">
	<tr>
		<th align="center" valign="middle" class="bg1"><p>無意願購買原因</p></th>
		<th align="center" valign="middle" class="bg1" colspan="2"><p>統計</p></th>
	</tr>
	<tr>
		<td align="center" valign="middle" width="70%" rowspan="3">
			{% for show in result %}
			{% if show.comments %}
				<p>
					{{ show.comments|escape }} - ({{ show.sent|date:"M.d.Y H:i:s" }})
				</p>
			{% endif%}
			{% endfor %}
		</td>
		<td align="center" valign="middle">
				<a href="/s/img/bag1.png" target="_blank" alt="小莎包樣式 1"><img src="/s/img/bag1_s.jpg" border="0"></a>
		</td>
		<td align="left" valign="middle">
				<h2>x {{ bagno1|default:"0" }}</h2>
		</td>
	</tr>
	<tr>
		<td align="center" valign="middle">
				<a href="/s/img/bag2.png" target="_blank" alt="小莎包樣式 2"><img src="/s/img/bag2_s.jpg" border="0"></a>
		</td>
		<td align="left" valign="middle">
				<h2>x {{ bagno2|default:"0" }}</h2>
		</td>
	</tr>
	<tr>
		<td align="right" valign="top" colspan="2">
				<h2>Total: {{ total|default:"0" }}</h2>
		</td>
	</tr>
</table>
{% endblock %}