<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- 報表<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->

<div id="main" >

<!-- TMPL_IF NAME="do_it" -->
	<!-- TMPL_LOOP NAME="mainloop" -->
		<h1>Catalogue Statistics </h1>
		<!-- TMPL_IF NAME="loopfilter"-->
			<p>過濾</p>
			<!-- TMPL_LOOP NAME="loopfilter" -->
					<p><!-- TMPL_IF NAME="err" --> <span class="error"> <b><!--/TMPL_IF --><strong><!-- TMPL_VAR NAME="crit"--> =</strong><!-- TMPL_VAR NAME="filter"--><!-- TMPL_IF NAME="err" --> </span> </b><!--/TMPL_IF --></p>
			<!-- /TMPL_LOOP -->
		<!-- /TMPL_IF NAME="loopfilter"-->
		
		<table>
			<tr>
				<th><!-- TMPL_VAR name="line" --> / <!-- TMPL_VAR name="column" --></th>
				<!-- TMPL_LOOP NAME="loopcol" -->
					<th><!-- TMPL_VAR NAME="coltitle" --></th>
				<!-- /TMPL_LOOP -->
				<th>總計</th>
			</tr>
				<!-- TMPL_LOOP NAME="looprow" -->
					<tr>
						<!-- TMPL_IF NAME="hilighted" --><td><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
						<!-- TMPL_VAR NAME="rowtitle" --></td>
						<!-- TMPL_LOOP NAME="loopcell" -->
							<!-- TMPL_IF NAME="hilighted" --><td class="numberhilighted"><!-- TMPL_ELSE --><td class="number"><!-- /TMPL_IF -->
								<!--TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" -->
								<!--TMPL_ELSE-->&nbsp;
								<!--/TMPL_IF-->
							</td>
						<!-- /TMPL_LOOP -->
						<!-- TMPL_IF NAME="hilighted" --><td class="numberhilighted"><!-- TMPL_ELSE --><td class="number"><!-- /TMPL_IF -->
							<!-- TMPL_VAR NAME="totalrow" -->
						</td>
					</tr>
				<!-- /TMPL_LOOP NAME="looprow" -->
				<tr>
					<th>總計</th>
					<!-- TMPL_LOOP NAME="loopfooter" -->
						<th>
							<!-- TMPL_VAR NAME="totalcol" -->
						</th>
					<!-- /TMPL_LOOP -->
					<th><!-- TMPL_VAR NAME="total" --></th>
				</tr>
		</table>
	<!-- /TMPL_LOOP -->
<!-- TMPL_ELSE -->
	<form method="post" action="catalogue_stats.pl">
	<div class="data">
	<table>
	<caption>目錄統計</caption>
			<!-- TMPL_IF Name="hasdewey" --><tr>
				
					<th>顯示分類號:</th><td><label for="Line">列</label> <input type="radio" name="Line" id="Line" value="dewey" /> <label for="Column">Column</label> <input type="radio" name="Column" id="Column" value="dewey" /></td></tr>
				<tr><th>限制分類號: </th><td><label for="Filter">從</label> <!-- TMPL_VAR NAME="CGIFromDeweyClass" --> <label for="Filter">到</label> <!-- TMPL_VAR NAME="CGIToDeweyClass" -->, 限制到: <select name="deweydigits">
						<option value=""> </option>
						<option value ="1">1</option>
						<option value ="2">2</option>
						<option value ="3">3</option>
						<option value ="4">4</option>
						<option value ="5">5</option>
						</select> digits</td>
			</tr><!-- /TMPL_IF -->
			
			<!-- TMPL_IF Name="haslccn" -->
				<tr>
					<th>顯示 LoC 號碼:</th>
					<td><label for="Line2">列</label> <input type="radio" name="Line" id="Line2" value="lccn" /> <label for="Column2">欄</label> <input type="radio" id="Column2" name="Column" value="lccn" /></td></tr>
					<tr><th>顯示 LoC 號碼: </th><td><label for="locfrom">從</label> <input type="text" id="locfrom" size="6" name="Filter" /> <label for="locto">到</label> <input id="locto" type="text" size="6" name="Filter" />, <label for="lccndigits">限制到</label> <select name="lccndigits" id="lccndigits">
						<option value=""> </option>
						<option value ="1">1</option>
						<option value ="2">2</option>
						<option value ="3">3</option>
						<option value ="4">4</option>
						<option value ="5">5</option>
						</select> 特徵</td></tr>
			<!-- /TMPL_IF  -->
			<!-- TMPL_IF Name="hascote" -->
<tr>
					<th>顯示索書號:</th>
					<td><label for="Line3">列</label> <input type="radio" name="Line" id="Line3" value="items.itemcallnumber"> <label for="Column3">欄</label> <input type="radio" name="Column" id="Column3" value="items.itemcallnumber" /></td></tr>
					<th>限制索書號</th><label for="cote">從</label> <!-- TMPL_VAR NAME="CGIFromCoteClass" --> 到 <!-- TMPL_VAR NAME="CGIToCoteClass" -->, <label for="cotedigits">限制到</label> <select id="cotedigits" name="cotedigits">
						<option value=""> </option>
						<option value ="1">1</option>
						<option value ="2">2</option>
						<option value ="3">3</option>
						<option value ="4">4</option>
						<option value ="5">5</option>
						</select> 特徵</td></tr>
			<!-- /TMPL_IF -->
			</table>
			<!-- TMPL_UNLESS NAME="hasdewey --><input type="hidden" name="Filter" /> <input type="hidden" name="Filter" /><!-- /TMPL_UNLESS -->
			<!-- TMPL_UNLESS NAME="haslccn --><input type="hidden" name="Filter" /> <input type="hidden" name="Filter" /><!-- /TMPL_UNLESS -->
			<!-- TMPL_UNLESS NAME="hascote --><input type="hidden" name="Filter" /> <input type="hidden" name="Filter" /><!-- /TMPL_UNLESS -->
			<table>
			<tr>
				<th>顯示館藏型式:</th>
				<td><label for="Line4">列</label> <input type="radio" name="Line" id="Line4" value="itemtype" /> <label for="Column4">欄</label> <input type="radio" id="Column4" name="Column" value="itemtype" /></td></tr>
				<tr><th><label for="itemtype">限制館藏型式: </label></th><td><!-- TMPL_VAR NAME="CGIItemType" --></td></tr></table>
<table>
				<tr>
				<th>顯示出版者: </th>
				<td><label for="Line5">列</label> <input type="radio" name="Line" id="Line5" value="publishercode" /> <label for="Column5">欄</label> <input type="radio" name="Column" id="Column5" value="publishercode" /></td></tr>
				<tr><th><label for="publisher">限制出版者:</label> </th><td><input type="text" id="publisher" name="Filter" /></td>
			</tr>
</table>
<table><tr>
				<th>顯示出版年: </th><td><label for="Line6">列</label> <input type="radio" name="Line" id="Line6" value="publicationyear" /> <label for="Column6">欄</label> <input type="radio" name="Column" id="Column6" value="publicationyear" /></td></tr>
				<tr><th>限制出版年: </th><td><label for="fromyear">從</label> <input type="text" id="fromyear" name="Filter" size="4" maxlength="4" /> <label for="toyear">到</label> <input type="text" size="4" maxlength="4" id="toyear" name="Filter" /></td></tr>
</table>
<table>
	<tr><th>顯示主要分館: </th>
				<td><label for="Line7">列</label> <input type="radio" name="Line" id="Line7" value="items.homebranch" /> <label for="Column7">欄</label> <input type="radio" id="Column7" name="Column" value="items.homebranch" /></td></tr>
				<tr><th><label for="branch">限制主要分館:</label> </th>
				<td><!-- TMPL_VAR NAME="CGIBranch" --></td>
			</tr></table>
			<table>
			<tr>
				<th>顯示館藏地: </th>
				<td><label for="Line8">列</label> <input type="radio" name="Line" id="Line8" value="items.location" /> <label for="Column8">欄</label> <input type="radio" name="Column" id="Column8" value="items.location" /></td></tr>
			<tr><th><label for="location">限制館藏地: </label></th><td><!-- TMPL_VAR NAME="CGILocation" --> </td>
			</tr>
	</table>
	
<table>
	<caption>輸出選擇</caption>
	<tr><td colspan="2"><label for="screen">顯示</label> <input type="radio" checked="checked" name="output" value="screen" id="screen" /></td></tr>
	<tr><td colspan="2"><label for="file">檔案</label><input type="radio" name="output" value="file" id="file" /></td></tr>
<tr><td>&nbsp;</td><td><label for="basename">...名稱:</label>   <input type="text" id="basename" name="basename" value="匯出" /></td></tr>
<tr><td>&nbsp;</td><td><label for="MIME">檔案格式:</label> <!-- TMPL_VAR NAME="CGIextChoice" --></td></tr>
<tr><td>&nbsp;</td><td><label for="sep">刪除限制:</label> <!-- TMPL_VAR NAME="CGIsepChoice" --></td></tr>
</table>
		
	<p>
	<input type="submit" value="產生報表" class="submit" />
	<input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->" />
	<input type="hidden" name="do_it" value="1" /></p>
	</div></form>
	
<!-- /TMPL_IF -->
</div>

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