<!-- 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>讀者統計報表</h1>
		<!-- TMPL_IF NAME="loopfilter"-->
			<p>顯示讀者計算類別 
			<!-- TMPL_LOOP NAME="loopfilter" -->
					<strong><!-- TMPL_VAR NAME="crit"--></strong> 是 <span class="ex"><!-- TMPL_VAR NAME="filter"--></span>,
			<!-- /TMPL_LOOP --></p>
		<!-- /TMPL_IF NAME="loopfilter"-->
		<div class="table"><table>
			<tr >
				<th scope="col"><!-- TMPL_VAR name="line" --> / <!-- TMPL_VAR name="column" --></th>
				<!-- TMPL_LOOP NAME="loopcol" -->
					<th scope="col"><!-- TMPL_VAR NAME="coltitle" --></th>
				<!-- /TMPL_LOOP -->
				<th scope="col">總計</th>
			</tr>
				<!-- TMPL_LOOP NAME="looprow" -->
					<!-- TMPL_IF NAME="hilighted" --><tr class="highlight"><!-- TMPL_ELSE --><!-- /TMPL_IF -->
						<td>
						<!-- TMPL_VAR NAME="rowtitle" --></td>
						<!-- TMPL_LOOP NAME="loopcell" -->
							<td class="sum">
								<!--TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" -->
								<!--TMPL_ELSE-->
									&nbsp;
								<!--/TMPL_IF-->
								</td>
						<!-- /TMPL_LOOP -->
						<td class="sum">
							<!-- TMPL_VAR NAME="totalrow" -->
						</td>
					</tr>
				<!-- /TMPL_LOOP NAME="looprow" -->
				<tfoot>
				<tr >
					<td>總計</td>
					<!-- TMPL_LOOP NAME="loopfooter" -->
						<td class="sum">
							<!-- TMPL_VAR NAME="totalcol" -->
						</td>
					<!-- /TMPL_LOOP -->
					<td class="sum"><!-- TMPL_VAR NAME="total" --></td>
				</tr>
				</tfoot>
		</table></div>
	<!-- /TMPL_LOOP -->
<!-- TMPL_ELSE -->
<h1>建立讀者統計報表</h1>
<div class="help">至少選擇一部份資料，顯示報表列的資料和顯示欄的資料。</div>
	<form method="post">
<div class="data">
	<table>
	<caption>讀者類別</caption>
	<thead><tr><th scope="col">顯示列</th><th scope="col">顯示欄</th><th scope="col">限制類別</th><th scope="col">限制查詢</th></tr></thead>
		<tbody>
			<tr><td><input type="radio" name="Line" value="categorycode" /></td><td><input type="radio" name="Column" value="categorycode" /></td><td><!-- TMPL_VAR NAME="CGICatCode" --></td><td><select name="status"><option value=""> </option><option value="debarred">禁止</option><option value="gonenoadress">沒有地址</option><option value="lost">遺失</option></td></tr>
</table>
<table>
	<caption>讀者 Zip Code</caption>
		<thead><tr><th scope="col">顯示列</th><th scope="col">顯示欄</th><th scope="col">限制 Zip Code</th><th scope="col">限制過濾</th></tr></thead>
			<tr><td><input type="radio" name="Line" value="zipcode" /></td><td><input type="radio" name="Column" value="zipcode" /></td><td><input type="text" size="10" id="zipcode" name="Filter" /></td><td><select name="digits">
			<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>
			<option value ="6">6</option>
			<option value ="7">7</option>
			<option value ="8">8</option>
			<option value ="9">9</option>
			<option value ="10">10</option>
			</select> 讀者</td></tr>
	</table>
	<table>
		<caption>分館</caption>
		<thead><tr><th scope="col">顯示列</th><th scope="col">顯示欄</th><th scope="col">限制分館</th></tr></thead>
				<tbody><tr>
				<td><input type="radio" name="Line" value="branchcode"></td>
				<td><input type="radio" name="Column" value="branchcode"></td>
				<td ><!-- TMPL_VAR NAME="CGIBranch" --></td>
			</tr></tbody>
	</table>
			<!-- TMPL_IF name="hassort1" -->
				<table><caption>排序欄位 1</caption>
						<thead><tr><th scope="col">顯示列</th><th scope="col">顯示欄</th><th scope="col" colspan="2">限制排序欄位 1</th></tr></thead>
				<tr><td><input type="radio" name="Line" value="sort1" /></td><td><input type="radio" name="Column" value="sort1" /></td><td colspan="2"><!-- TMPL_VAR NAME="CGISort1" --></td></tr></table>
			<!-- /TMPL_IF -->
			<!-- TMPL_IF name="hassort2" -->
							<table><caption>排序欄位 2</caption>
						<thead><tr><th scope="col">顯示列</th><th scope="col">顯示欄</th><th scope="col" colspan="2">限制排序欄位 2</th></tr></thead>
				<tr><td><input type="radio" name="Line" value="sort2" /></td><td><input type="radio" name="Column" value="sort2" /></td><td colspan="2"><!-- TMPL_VAR NAME="CGISort1" --></td></tr></table>
			<!-- /TMPL_IF -->
<table>
	<caption>輸出選擇</caption>
	<tr><td colspan="2"><label for="screen">顯示</label> <input type="radio" checked name="output" value="顯示" id="screen" /></td></tr>
	<tr><td colspan="2"><label for="file">檔案</label><input type="radio" name="output" value="檔案" id="file"></td></tr>
<tr><td>&nbsp;</td><td>...名稱:   <input type="text" name="basename" value="Export"></td></td></tr>
<tr><td>&nbsp;</td><td>檔案格式: <!-- TMPL_VAR NAME="CGIextChoice" --></td></tr>
<tr><td>&nbsp;</td><td>刪除限制: <!-- TMPL_VAR NAME="CGIsepChoice" --></td></tr>
</table>
	</div>
	<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" />
	</form>
<!-- /TMPL_IF -->
</div>

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