129 lines
3.1 KiB
Plaintext
129 lines
3.1 KiB
Plaintext
<% # encoding: utf-8 %>
|
||
<%
|
||
data = action_data
|
||
@nkuht_donate = data["nkuht_donate"]
|
||
%>
|
||
|
||
<% if @nkuht_donate.donation_way == '4' || @nkuht_donate.donation_way == '5' %>
|
||
|
||
|
||
<!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>
|
||
|
||
<div align="right"><b>繳件日期: 年 月 日 </b></div>
|
||
|
||
<table width="100%" border="1px" cellspacing="0" cellpadding="8">
|
||
<tr>
|
||
<td colspan="2" align="center"><b><h2>國立高雄餐旅大學收款通知書</h2></b></td>
|
||
</tr>
|
||
<tr>
|
||
<td width="15%" align="center"><b>收款事由</b></td>
|
||
<td width="85%"><b>捐贈收入 </b><br /><br />
|
||
<b>用途:
|
||
<%=
|
||
|
||
if !@nkuht_donate.nkuht_donate_use.blank?
|
||
if @nkuht_donate.nkuht_donate_use.title == '其他' || @nkuht_donate.nkuht_donate_use.title == 'Other'
|
||
"#{@nkuht_donate.nkuht_donate_use.title}(#{@nkuht_donate.donation_use_other})"
|
||
else
|
||
@nkuht_donate.nkuht_donate_use.title
|
||
end
|
||
end
|
||
|
||
%>
|
||
</b>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="center"><b>繳 款 人</b></td>
|
||
<%
|
||
if @nkuht_donate.receipt_title == '1'
|
||
@receipt_title = @nkuht_donate.name
|
||
elsif @nkuht_donate.receipt_title == '2'
|
||
@receipt_title = @nkuht_donate.donors_service_unit
|
||
else
|
||
@receipt_title = @nkuht_donate.receipt_title_other
|
||
end
|
||
%>
|
||
<td>
|
||
<b>名稱(即收據抬頭):<u> <%= @receipt_title %> </u> </b>
|
||
<br /><br />
|
||
<b>身份證字號(或統一編號):<u> <%= @nkuht_donate.receipt_number %> </u></b>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="center"><b>收款金額</b></td>
|
||
<td>
|
||
<b>金額:<u> <%= @nkuht_donate.donation_amount %> </u>元整(阿拉伯數字)</b><br /><br />
|
||
<b>新台幣<%= NkuhtDonateMain.change_cash(@nkuht_donate.donation_amount) %>元整</b>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="center"><b>收款日期</b></td>
|
||
<td> </td>
|
||
</tr>
|
||
<tr>
|
||
<td align="center"><b>收款方式</b></td>
|
||
<td>
|
||
<b>
|
||
<%= t("nkuht_donate_ways.ways#{@nkuht_donate.donation_way}") if !@nkuht_donate.donation_way.blank? %>
|
||
</b>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td align="center"><b>備 註</b></td>
|
||
<td>
|
||
<b>
|
||
如需郵寄收據請加註遞送住址。<br />
|
||
<br />
|
||
<% if @nkuht_donate.receipt_address == '2' %>
|
||
遞送住址: <%= @nkuht_donate.receipt_address_other %>
|
||
<% end %>
|
||
</b>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2">
|
||
<p><b>此 致 </b></p>
|
||
<b> 總 務 處 出 納 組</b></td>
|
||
</tr>
|
||
</table>
|
||
|
||
<br /><b>經辦人: </b>
|
||
|
||
|
||
<br />
|
||
<br />
|
||
|
||
<input name="print" type="button" id="printPage" value="列印" class="NoPrint" onClick="window.print()">
|
||
|
||
</body>
|
||
|
||
</html>
|
||
|
||
<% else %>
|
||
no data
|
||
<% end %>
|