<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- 目錄: 虛擬書架 <!-- TMPL_IF Name="viewshelf" -->書架 '<!-- TMPL_VAR Name="shelfname" -->'<!-- TMPL_ELSE -->Shelves<!-- /TMPL_IF --><!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
<div id="topmenu">
<strong>登入者: <!-- TMPL_VAR Name="loggedinuser" --></strong> [<a href="/cgi-bin/koha/logout.pl">登出</a>]</div>
<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->

<div id="main">

<!-- TMPL_IF Name="viewshelf" -->
 <h2>虛擬書架 '<!-- TMPL_VAR Name="shelfname" -->'</h2> <form class="inline">
	<label for="addbarcode">利用條碼掃描器（barcode）新增一本書:</label> <input id="addbarcode" name="addbarcode" type="text" size="14" maxlength="14" />
			<table>
			
		<tr><th>&nbsp;</th><th>題名</th><th>作者</th><th>條碼（Barcode）</th></tr>
	<!-- TMPL_IF NAME="itemsloop" -->
		<!-- TMPL_LOOP Name="itemsloop" -->
			<tr>
				<td><input type="checkbox" name="REM-<!-- TMPL_VAR Name="itemnumber" -->"></td>
				<td><a href="/cgi-bin/koha/detail.pl?type=intra&bib=<!-- TMPL_VAR NAME="biblionumber" -->"><!-- TMPL_VAR Name="title" --></a></td>
				<td><!-- TMPL_VAR Name="author" --></td><td><!-- TMPL_VAR Name="barcode" --></td>
			</tr>
		<!-- /TMPL_LOOP -->
	<!-- TMPL_ELSE -->
		<tr><td colspan="4">這個書架沒有任何內容</td></tr>
	<!-- /TMPL_IF -->
    </table>
    <input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR Name="shelfnumber" -->" />
    <input type="hidden" name="modifyshelfcontents" value="1" />
    <input type="hidden" name="viewshelf" value="<!-- TMPL_VAR Name="shelfnumber" -->" />
    <input type="submit" class="cancel" value="取消所選擇的館藏" />
    </form><form class="inline" action="shelves.pl" method="get"><input type="submit" class="submit" value="回到虛擬書架" /></form>
<!-- TMPL_ELSE -->
<h2>虛擬書架</h2>
	<!-- TMPL_IF Name="shelves" -->
		<!-- TMPL_IF Name="status1" -->
				<div class="error">Shelf "<!-- TMPL_VAR Name="string1" -->" 已經存在。</div>
		<!-- /TMPL_IF -->
		<!-- TMPL_LOOP Name="paramsloop" -->
			<!-- TMPL_IF Name="status" -->			<div class="error">書架有 <!-- TMPL_VAR Name="string" --> 一些館藏。在刪除書架前，請先移除所有館藏。</div>

			<!-- /TMPL_IF -->
		<!-- /TMPL_LOOP -->
    <form method="post">
    <input type="hidden" name="shelves" value="1">
    <label for="addshelf">新增書架:</label> <input name="addshelf" id="addshelf" type="text" size="25" />
    <input type="submit" value="新增書架" class="submit" />
    </form>
	<form method="post">
				<input type="hidden" name="shelves" value="1">
				<table>
				<tr><th>書架名稱</th><th>刪除嗎？</th></tr>
			<!-- TMPL_LOOP Name="shelvesloop" -->
				<tr>
					<td><a href="shelves.pl?viewshelf=<!-- TMPL_VAR Name="shelf" -->"><strong><!-- TMPL_VAR Name="shelfname" --></strong> (<!-- TMPL_VAR Name="shelfbookcount" --> 書)</a></td><td>
						<input type="checkbox" name="DEL-<!-- TMPL_VAR Name="shelf" -->"></td></tr>
			<!-- /TMPL_LOOP -->
	
    </table><input type="submit" value="刪除選擇的書架" class="cancel" /></form>
	

	<!-- TMPL_ELSE --><form method="post">
    <input type="hidden" name="shelves" value="1">
    <label for="addshelf">新增書架:</label> <input name="addshelf" id="addshelf" type="text" size="25" />
    <input type="submit" value="新增書架" class="submit" />
    </form>
		<form action="shelves.pl" method="get"><input type="hidden" name="shelves" value="1" /><table>
		<tr><th>書架名稱</th><th>刪除嗎？</th></tr>
		<!-- TMPL_IF NAME="shelvesloop" -->
			<!-- TMPL_LOOP Name="shelvesloop" -->
				<tr><td><a href="shelves.pl?viewshelf=<!-- TMPL_VAR Name="shelf" -->">
						<strong><!-- TMPL_VAR Name="shelfname" --></strong> (<!-- TMPL_VAR Name="shelfbookcount" --> 書)</a>
				</td><td>
						<input type="checkbox" name="DEL-<!-- TMPL_VAR Name="shelf" -->"></td></tr>
			<!-- /TMPL_LOOP -->
		<!-- TMPL_ELSE -->
		<tr><td colspan="2">沒有虛擬書架</td></tr>
		<!-- /TMPL_IF -->
		</table>
		<input type="submit" value="刪除選擇的書架" class="cancel" /></form>

	<!-- /TMPL_IF -->

<!-- /TMPL_IF --></div>

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