<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- 讀者: 詳細資料<!-- TMPL_VAR name="surname" -->, <!-- TMPL_VAR name="firstname" --> (<!-- TMPL_VAR name="cardnumber" -->)<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
<!-- TMPL_INCLUDE NAME="members-topmenu.inc" -->
<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->

<!-- main site -->
<div id="main">
<h1><!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR name="surname" --> (<!-- TMPL_VAR name="cardnumber" -->) <span class="print"><a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR name="borrowernumber" -->&amp;print=page">(列印此頁)</a> <a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR name="borrowernumber" -->&amp;print=slip">(列印紙條 [slip])</a></span></h1>
<div class="tabitem">
			 <form method="post" action="/cgi-bin/koha/circ/circulation.pl"><input name="findborrower" type="hidden" value="<!-- TMPL_VAR name="cardnumber" -->" /><input type="hidden" name="branch" value="<!-- TMPL_VAR name="branch" -->" /><input type="hidden" name="printer" value="<!-- TMPL_VAR name="printer" -->" /> <input type="submit" class="submit" value="流通" /></form>

<!-- Hide from NPL --><!-- TMPL_IF name="IS_ADULT" --> <!-- TMPL_UNLESS NAME="unvalidlibrarian"--><form action="/cgi-bin/koha/jmemberentry.pl" method="post"> <input type="submit" name="submit" value="新增小孩" class="submit" alt="Add Child" /><input type="hidden" name="type" value="新增" /><input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR name="borrowernumber" -->" /></form><!-- /TMPL_UNLESS --><!-- /TMPL_IF --><!-- /Hide from NPL -->

<!-- TMPL_UNLESS NAME="unvalidlibrarian"--><!-- TMPL_IF name="I" --> <form action="/cgi-bin/koha/members/imemberentry.pl" method="post"><input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR name="bornum" -->" /> <input type="submit" name="modify" class="submit" value="編輯" /></form>
<!-- TMPL_ELSE --> <form action="/cgi-bin/koha/members/memberentry.pl" method="post"><input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR name="bornum" -->" /> <input type="submit" class="submit" name="modify" value="編輯" /></form>
<!-- /TMPL_IF --><!-- /TMPL_UNLESS -->

<!-- TMPL_UNLESS NAME="unvalidlibrarian"--><form action="/cgi-bin/koha/members/member-password.pl" method="post"><input type="hidden" name="member" value="<!-- TMPL_VAR name=bornum -->" /> <input type="submit" class="submit" value="更改密碼" /></form><!-- /TMPL_UNLESS -->

 <!-- TMPL_UNLESS NAME="unvalidlibrarian"--><form action="/cgi-bin/koha/members/member-flags.pl" method="post"><input type="hidden" name="member" value="<!-- TMPL_VAR name=bornum -->" /> <input type="submit" class="submit" value="修改權限" /></form><!-- /TMPL_UNLESS -->


<!-- TMPL_UNLESS NAME="unvalidlibrarian"--><form action="/cgi-bin/koha/members/deletemem.pl?member=<!-- TMPL_VAR name="bornum" -->" onclick="confirm_deletion(); return false;"><input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR name="bornum" -->"><input type="submit" class="cancel" value="刪除"></form><!-- /TMPL_UNLESS -->

</div>
<!-- TMPL_IF NAME="flagged" -->	<div class="details">
	<ul>
		<!-- TMPL_IF NAME="debarred" --><li>Patron is <span class="error">禁止</span>. <form class="inline compact" action="/cgi-bin/koha/members/setdebar.pl" method="post"><input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR name="borrowernumber" -->" /><input type="hidden" name="status" value="0" /><input type="submit" class="submit" value="解除禁止" /></form></li><!-- /TMPL_IF -->
		<!-- TMPL_IF NAME="gonenoaddress" --><li>讀者 <span class="error">地址有問題</span>。</li><!-- /TMPL_IF -->
		<!-- TMPL_IF NAME="lost" --><li>借書證已經 <span class="error">遺失</span>。</li><!-- /TMPL_IF -->
	</ul>
<!-- TMPL_IF name="borrowernotes" --><dl><dt>附註:</dt> <dd class="error"><!-- TMPL_VAR name="borrowernotes" --></dd></dl><!-- /TMPL_IF --></div>
<!-- /TMPL_IF -->

<div class="compact">
<table>
<tr><th>姓名:</th><td><!-- TMPL_IF name="IS_ADULT" --><!-- TMPL_IF NAME="title" -->[<!-- TMPL_VAR name="title" -->]. <!-- /TMPL_IF --><!-- TMPL_VAR name="firstname" --> <!-- TMPL_IF NAME="othernames" -->"<!-- TMPL_VAR name="othernames" -->" <!-- /TMPL_IF --><!-- TMPL_VAR name="surname" --> <!-- TMPL_IF NAME="initials" -->(<!-- TMPL_VAR name="initials" -->)<!-- /TMPL_IF --><!-- /TMPL_IF --></td></tr>
		<tr><th>郵寄地址:</th><td><!-- TMPL_IF NAME="streetaddress" --><!-- TMPL_VAR name="streetaddress" --><br /><!-- /TMPL_IF -->
<!-- TMPL_VAR name="city" -->, <!-- TMPL_VAR name="zipcode" --></td></tr>
		<!-- TMPL_IF NAME="physstreet" --><tr><th>地址:</th><td><!-- TMPL_VAR name="physstreet" --><br /><!-- TMPL_VAR name="streetcity" -->, <!-- TMPL_VAR name="homezipcode" --></td></tr><!-- /TMPL_IF -->
		<!-- TMPL_UNLESS name="I" -->
		<tr><th>住宅電話: </th><td><!-- TMPL_IF NAME="phone" --><!-- TMPL_VAR name="phone" --><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td></tr><!-- /TMPL_UNLESS -->
		<!-- TMPL_IF NAME="phoneday" --><tr><th>公司電話: </th><td><!-- TMPL_VAR name="phoneday" --></td></tr><!-- /TMPL_IF -->
		<!-- TMPL_IF NAME="faxnumber" --><tr><th>傳真機: </th><td><!-- TMPL_VAR name="faxnumber" --></td></tr><!-- /TMPL_IF -->
		<!-- TMPL_IF NAME="emailaddress" --><tr><th>E-mail:</th><td><a href="mailto:<!-- TMPL_VAR name="emailaddress" -->"><!-- TMPL_VAR name="emailaddress" --></a></td></tr><!-- /TMPL_IF -->
	<!-- TMPL_UNLESS name="I" -->
			<tr><th>生日:</th><td><!-- TMPL_IF NAME="dateofbirth" --><!-- TMPL_VAR name="dateofbirth" --><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td></tr>
			<tr><th>性別:</th><td><!-- TMPL_IF NAME="sex" --><!-- TMPL_VAR name="sex" --><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td></tr><!-- /TMPL_UNLESS -->
</table></div>
<div class="compact">
	<table>
		<tr><th>會員號碼:</th><td><!-- TMPL_VAR name="borrowernumber" --></td></tr>
		<tr><th>類別:</th><td><!-- TMPL_VAR name="categorycode" --></td></tr>
		<tr><th>註冊日期:</th><td><!-- TMPL_IF NAME="dateenrolled" --><!-- TMPL_VAR name="dateenrolled" --><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td></tr>
		<tr><th>過期時間</th><td><!-- TMPL_IF NAME="expiry" --><!-- TMPL_VAR name="expiry" --><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF --></td></tr>
		<tr><th>註冊分館:</th><td><!-- TMPL_VAR name="branchcode" --></td></tr>
		<!-- TMPL_IF name="printethnicityline" -->
			<tr><th>種族:</th><td><!-- TMPL_VAR name="ethnicity" -->, <!-- TMPL_VAR name="ethnotes" --></td></tr>
	<!-- /TMPL_IF -->
			<!-- TMPL_IF NAME="sort1" -->
			<tr><th>排序欄位 1 : </th><td><!-- TMPL_VAR name="sort1" --></td></tr>
		<!-- /TMPL_IF -->
		<!-- TMPL_IF NAME="sort2" -->
			<tr><th>排序欄位 2 :</th> <td><!-- TMPL_VAR name="sort2" --></td></tr>
		<!-- /TMPL_IF -->
</table>
</div>


<div class="compact">
<table>
<!-- TMPL_IF NAME="userid" -->
	<tr><th>登入 OPAC : </th><td><!-- TMPL_VAR name="userid" --></td></tr>
	<tr><th>OPAC 密碼: </th><td><!-- TMPL_IF name="password" -->記錄<!-- TMPL_ELSE -->沒有設定 <form class="inline compact" action="/cgi-bin/koha/members/member-password.pl" method="post"><input type="hidden" name="member" value="<!-- TMPL_VAR name=bornum -->" /> <input type="submit" class="submit" value="設定密碼" /></form><!-- /TMPL_IF --></td></tr> 
<!-- TMPL_ELSE -->
	<tr><th>沒有設定登入 OPAC！</th><td><form class="inline compact" action="/cgi-bin/koha/members/member-password.pl" method="post"><input type="hidden" name="member" value="<!-- TMPL_VAR name=bornum -->" /> <input type="submit" class="submit" value="設定登入和密碼" /></form></td></tr>
<!-- /TMPL_IF -->
</table>
</div>


<div class="compact">
<table>
		<!-- TMPL_IF NAME="borrowernotes" -->
		<tr><th>流通附註: <p>(出現在流通)</p></th> 
		<td><p class="notes"><!-- TMPL_VAR name="borrowernotes" --></p></td></tr>
		<!-- /TMPL_IF -->
		<!-- TMPL_IF NAME="textmessaging" --><tr><th>讀者訊息:<p>(出現在 OPAC)</p></th><td><!-- TMPL_VAR name="textmessaging" --></td></tr><!-- /TMPL_IF -->
</table></div>
<div class="compact">
<table>
			<tr><th><!-- TMPL_UNLESS name="I" -->Alternate<!-- /TMPL_UNLESS --> 聯絡:</th> 
			<td>
				<!-- TMPL_UNLESS name="I" --><ul><li>姓名: <!-- /TMPL_UNLESS --><!-- TMPL_VAR name="contactname" --><!-- TMPL_UNLESS name="I" --></li><!-- /TMPL_UNLESS -->
				<!-- TMPL_UNLESS name="I" --><li>電話: <!-- TMPL_VAR name="altphone" --></li>
				<li>關係: <!-- TMPL_VAR name="altrelationship" --></li>
		<!-- /TMPL_UNLESS -->
		<!-- TMPL_IF NAME="altnotes" --><li>附註: <!-- TMPL_VAR name="altnotes" --></li><!-- /TMPL_IF -->
				<!-- TMPL_UNLESS name="I" --></ul><!-- /TMPL_UNLESS --></td></tr>

		<!-- TMPL_UNLESS name="I" -->
		
			<!-- TMPL_IF name="isguarantee" -->

				<!-- TMPL_IF NAME="guaranteeloop" --><tr><th>保證:</th><td><ul><!-- TMPL_LOOP name="guaranteeloop" --><li><a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR name="borrowernumber" -->"><!-- TMPL_VAR name=name --> - <!-- TMPL_VAR name="cardnumber" --></a></li><!-- /TMPL_LOOP --></ul></td></tr><!-- /TMPL_IF -->

			<!-- TMPL_ELSE -->

<!-- TMPL_IF name="guarantorborrowernumber" --><tr><th>保證人:</th>
					<td><a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR name="guarantorborrowernumber" -->"><!-- TMPL_VAR name="guarantorcardnumber" --></a></td></tr><!-- /TMPL_IF -->

			<!-- /TMPL_IF -->
			
		<!-- /TMPL_UNLESS -->
</table>
</div><div class="data">
<table>
	<caption>費用 &amp; 繳費</caption>
		
		<tr>
			<!-- TMPL_IF name="totaldue" --><th>總計到期:</th><td>$<!-- TMPL_VAR name="totaldue" --></td></tr><!-- TMPL_ELSE --><td>沒有顯著的繳費</td><!-- /TMPL_IF --></table>
<!-- TMPL_UNLESS NAME="unvalidlibrarian"--><p><form class="inline" action="/cgi-bin/koha/boraccount.pl" method="get"><input type="hidden" name="bornum" value="<!-- TMPL_VAR name="bornum" -->" /><input type="submit" value="帳號" class="submit" /></form>

	<form class="inline" action="/cgi-bin/koha/pay.pl" method="get"><input type="hidden" name="bornum" value="<!-- TMPL_VAR name="bornum" -->" /><input type="submit" value="費用" class="submit" /></form>

</p><!-- /TMPL_UNLESS --></div>

<form class="inline" action="renewscript.pl" method="post">
	<input type="hidden" name="bornum" value="<!-- TMPL_VAR name="bornum" -->" />
<table>
	<caption>館藏借閱</caption>
	<thead>
	<tr>
		<th>題名</th>
		<th>到期</th>
		<th>館藏型式</th>
		<!-- Hide from NPL --><th>Charge</th><!-- /Hide from NPL -->
		<th>價格</th>
		<!-- TMPL_UNLESS NAME="unvalidlibrarian"--><th>Renew</th><!-- /TMPL_UNLESS -->
		<th>條碼掃描器（Barcode）</th>
	</tr>
	</thead>
	<tfoot><tr><td colspan="4">Total Replacement Cost:</td><td class="sum"><!-- TMPL_VAR name="totalprice" --></td><td colspan="3">&nbsp;</td></tr></tfoot>
<tbody>
<!-- TMPL_IF NAME="issueloop" -->	<!-- TMPL_LOOP name="issueloop" -->
	<tr>
		<td><!-- TMPL_IF name="red" --><font color="red"><!-- /TMPL_IF -->
		<!-- TMPL_VAR name="title" --><!-- TMPL_IF name="red" --></font><!-- /TMPL_IF -->
		<a href="/cgi-bin/koha/detail.pl?item=<!-- TMPL_VAR name="itemnumber" -->&amp;bib=<!-- TMPL_VAR name="biblionumber" -->&amp;bi=<!-- TMPL_VAR name="biblioitemnumber" -->">
			<!-- TMPL_VAR name="barcode" -->
		</a>
		</td>
		<td><!-- TMPL_VAR name="date_due" --></td>
		<td><!-- TMPL_VAR name="itemtype" --></td>
		<!-- Hide from NPL --><td class="credit"><!-- TMPL_VAR name="charge" --></td><!-- /Hide from NPL -->
		<td class="credit"><!-- TMPL_VAR name="replacementprice" --></td>
		<!-- TMPL_UNLESS NAME="unvalidlibrarian"--><td>
		<!-- TMPL_IF name="norenew" -->
			<a href="/cgi-bin/koha/request.pl?bib=<!-- TMPL_VAR name="biblionumber" -->">預約</a>
		<!-- TMPL_ELSE -->
			<input type="checkbox" name="renew_item_<!-- TMPL_VAR name="itemnumber" -->" value="是"<!-- TMPL_IF name="red" -->checked="checked"<!-- /TMPL_IF --> />
		<!-- /TMPL_IF -->
		</td><!-- /TMPL_UNLESS -->
		<td><a href="/cgi-bin/koha/circ/returns.pl?barcode=<!-- TMPL_VAR name="barcode" -->">條碼掃描器（Barcode）</a></td>
	</tr>
	<!-- /TMPL_LOOP --><!-- TMPL_ELSE --><tr><td colspan="7">讀者沒有借閱任何東西。</td></tr><!-- /TMPL_IF -->
	</tbody>
	</table><!-- TMPL_UNLESS NAME="unvalidlibrarian"--><p><input type="submit" class="submit" value="續借選擇的館藏" /></p><!-- /TMPL_UNLESS -->
</form>

<!-- TMPL_UNLESS NAME="unvalidlibrarian"--><form class="inline" action="renewscript.pl" method="post"><input type="hidden" name="bornum" value="<!-- TMPL_VAR name="bornum" -->" /><!-- TMPL_LOOP NAME="issueloop" --><!-- TMPL_UNLESS NAME="norenew" --><input type="hidden" name="renew_item_<!-- TMPL_VAR name="itemnumber" -->" value="是" /><!-- /TMPL_UNLESS --><!-- /TMPL_LOOP --><input type="submit" class="submit" value="續借全部" /></form><!-- /TMPL_UNLESS -->




	<form action="/cgi-bin/koha/modrequest.pl" method="post">
	<input type="hidden" name="from" value="borrower" />
	<table>
	<caption>續借</caption>
	<tr>
		<th>題名</th>
		<th>請求</th>
		<th>移除</th>
	</tr>



<!-- TMPL_IF NAME="reserveloop" -->	<!-- TMPL_LOOP name="reserveloop" -->
	<tr>
		<td>
			<a href="/cgi-bin/koha/request.pl?bib=<!-- TMPL_VAR name="biblionumber" -->"><!-- TMPL_VAR name="btitle" --></a>
		</td>
		<td><!-- TMPL_VAR name="reservedate2" --></td>
		<td>
			<select name="rank-request">
			<option value="n">否</option>
			<option value="del">是</option>
			</select>
		</td>
		<input type="hidden" name="biblio" value="<!-- TMPL_VAR name="biblionumber" -->" />
		<input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR name="bornum" -->" />
	</tr>
	<!-- /TMPL_LOOP --><!-- TMPL_ELSE --><tr><td colspan="4">讀者沒有預約任何東西</td></tr><!-- /TMPL_IF -->

</table>		<!-- TMPL_IF name="reserveloop" -->
			<!-- TMPL_UNLESS NAME="unvalidlibrarian"--><p><input type="submit" class="cancel" name="submit" value="刪除所有請求" /></p><!-- /TMPL_UNLESS -->
		<!-- /TMPL_IF --></form>


<!-- Hide from NPL --><h1>Reading Record</h1>
<form class="inline" action="/cgi-bin/koha/readingrec.pl" method="get"><input type="hidden" name="bornum" value="<!-- TMPL_VAR name="bornum" -->" /> <input type="submit" class="submit" value="讀者借閱記錄" /></form><!-- /Hide from NPL -->

</div>

<script language="JavaScript" type="text/javascript">
function confirm_deletion() {
	var is_confirmed = confirm('你想刪除這位讀者嗎？');
	if (is_confirmed) {
		window.location="/cgi-bin/koha/members/deletemem.pl?member=<!-- TMPL_VAR name="bornum" -->";
	}
}
</script>

<!-- TMPL_INCLUDE name="intranet-bottom.inc" -->
