donate/app/views/nkuht_donates/print_market_payment.html.erb

130 lines
3.5 KiB
Plaintext
Raw Normal View History

2015-01-30 07:02:08 +00:00
<% # encoding: utf-8 %>
<%
data = action_data
@nkuht_donate = data["nkuht_donate"]
@barcodes = data["barcodes"]
%>
<% if @nkuht_donate.donation_way == '3' %>
<!DOCTYPE html>
<html lang="zh_tw" class="orbit">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>捐贈繳款單</title>
<style>
@media print {
.NoPrint {display:none}
}
</style>
<script type="text/javascript">
function printPage() {
if (window.print) {
agree = confirm('列印此頁!\n\n確定列印?');
if (agree) window.print();
}
}
</script>
</head>
<body>
<table width="700" height="250" cellpadding='2' cellspacing="2" rules="all" style="border:1px #000000" >
<tr>
<td colspan="4" bgcolor="#8CB210">國立高雄餐旅大學 捐款單</td>
</tr>
<tr>
<td colspan="4">感謝您捐款興學!</td>
</tr>
<tr>
<td width="20" rowspan="6">第一聯客戶留存</td>
<td width="100">繳款編號</td>
<td width="130"><%= @nkuht_donate.donation_payment_number %></td>
<td width="250" align="center">超商代收收訖章</td>
</tr>
<tr>
<td>繳款項目</td>
<td>捐款</td>
<td rowspan="5" height="200">&nbsp;</td>
</tr>
<tr>
<td>印單日期</td>
<td><%= @nkuht_donate.donation_serial_date.to_date %></td>
</tr>
<tr>
<td>繳款期限</td>
<td><%= @nkuht_donate.donation_serial_date.to_date + 14 %></td>
</tr>
<tr>
<td>應繳金額</td>
<td>NT$ <%= @nkuht_donate.donation_amount %></td>
</tr>
<tr>
<td colspan="2">*繳款完畢,請保留收據,作為日後對帳之依據。</td>
</tr>
</table>
<hr style="border:2px dotted" size="3" width="695">
<table width="700" height="350" cellpadding='2' cellspacing="2" rules="all" style="border:1px #000000" >
<tr>
<td colspan="4" bgcolor="#8CB210">國立高雄餐旅大學 捐款單</td>
</tr>
<tr>
<td colspan="4">感謝您捐款興學!</td>
</tr>
<tr>
<td width="20" rowspan="6">第二聯超商代收留存</td>
<td width="100">繳款編號</td>
<td width="120"><%= @nkuht_donate.donation_payment_number %></td>
<td width="260" align="center">超商代收專用條碼</td>
</tr>
<tr>
<td>繳款項目</td>
<td>捐款</td>
<td rowspan="5" align="center">
* <img src="<%="/code39_1.png"%>" > * <br />
<%= @barcodes[0] %> <br />
* <img src="<%="/code39_2.png"%>" > * <br />
<%= @barcodes[1] %> <br />
* <img src="<%="/code39_3.png"%>" > * <br />
<%= @barcodes[2] %> <br />
</td>
</tr>
<tr>
<td>印單日期</td>
<td><%= @nkuht_donate.donation_serial_date.to_date %></td>
</tr>
<tr>
<td>繳款期限</td>
<td><%= @nkuht_donate.donation_serial_date.to_date + 14 %></td>
</tr>
<tr>
<td>應繳金額</td>
<td>NT$ <%= @nkuht_donate.donation_amount %></td>
</tr>
<tr>
<td colspan="2">*繳款完畢,請保留收據,作為日後對帳之依據。<br />
*本繳款單建議以雷射印表機列印,若無法讀取條碼,煩請捐款者以其他方式另行繳款。</td>
</tr>
</table>
<p>超商代收說明: </p>
<ol>
<li>請列印繳款單後至四大超商(統一、全家、萊爾富、OK)進行繳款。 </li>
<li>每筆繳款單手續費10元(繳款單每筆繳款上限為2萬元)。 </li>
<li>依據系統列印之繳款單繳款有效日期為14天未於期限內繳款者繳款單自動失效。 </li>
</ol>
<br />
<input name="print" type="button" id="printPage" value="列印" class="NoPrint" onClick="window.print()">
</body>
</html>
<% else %>
no data
<% end %>