[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/zh-TW/search.marc result.tmpl,1.1.2.1,1.1.2.2 search.tmpl,NONE,1.3.2.1

Ambrose C. LI acli at users.sourceforge.net
Tue Feb 24 07:07:10 CET 2004


Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/zh-TW/search.marc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28329/intranet-tmpl/default/zh-TW/search.marc

Added Files:
      Tag: rel_2_0
	result.tmpl search.tmpl 
Log Message:
CVS seems to hate branches, or something Really Bad like that. I hope I
have done the correct things to add these missing files back.



--- NEW FILE ---
<!-- TMPL_IF NAME="opac" -->
    <!-- TMPL_INCLUDE NAME="opac-top.inc" -->
<!-- TMPL_ELSE -->
    <!-- TMPL_INCLUDE NAME="cat-top.inc" -->
<!-- /TMPL_IF -->

<span style="font-size:2em; text-align:left;">以機讀格式查詢</span>

<center>
<form name="f" method="post">

<input type="hidden" name="op" value="do_search">
<input type="hidden" name="type" value="intranet">
<input type="hidden" name="nbstatements" value="<!-- TMPL_VAR NAME="nbstatements" -->">

	<table border=0 cellspacing=0 cellpadding=2 width="100%">
		<tr align="center">
			<td>
				<div name="sql">
				<textarea name="sql" rows=5 cols=60 disabled readonly></textarea>
				</div>
			</td>
			<td bgcolor="#ad11ad" valign="top" align="left">
				<span style="color:#FFFFFF;">
					<b>說明:</b><br/>
					查詢的要求請以機讀格式的欄及分欄逐步建立。「新增查詢條件」讓您新增另一查詢的條件到您的查詢;按「開始查詢」即開始查詢,並顯示查詢的結果。
				</span>
			</td>
		</tr>
	</table>
	<table border=0 cellspacing=0 cellpadding=2 width="100%">
		<!-- TMPL_LOOP NAME="statements" -->
		<tr>
			<td>
				<!-- TMPL_IF NAME="first" -->
					<input type="hidden" name="and_or" value="">&nbsp;
				<!-- TMPL_ELSE -->
					<select name="and_or" size="1" onchange="sql_update()">
						<option value="and">及</option>
						<option <!-- TMPL_IF NAME="or" -->selected <!-- /TMPL_IF -->value="or">或</option>
					</select>
				<!-- /TMPL_IF -->
			</td>
			<td><!-- TMPL_VAR name="marclist" --></td>
			<td>
				<select name="excluding" size="1" onchange="sql_update()">
					<option value="0"> </option>
					<option <!-- TMPL_IF NAME="not" -->selected <!-- /TMPL_IF -->value="1">非</option>
				</select>
			</td>
			<td>
				<select name="operator" size="1" onchange="sql_update()">
					<option <!-- TMPL_IF NAME="contains" -->selected<!-- /TMPL_IF --> value="contains">包含</option>
					<option <!-- TMPL_IF NAME="eq" -->selected<!-- /TMPL_IF --> value="=">等於</option>
					<option <!-- TMPL_IF NAME="start" -->selected<!-- /TMPL_IF --> value="start">起首字詞為</option>
					<option <!-- TMPL_IF NAME="gt" -->selected<!-- /TMPL_IF --> value=">">大於</option>
					<option <!-- TMPL_IF NAME="ge" -->selected<!-- /TMPL_IF --> value=">=">大於或等於</option>
					<option <!-- TMPL_IF NAME="lt" -->selected<!-- /TMPL_IF --> value="<">小於</option>
					<option <!-- TMPL_IF NAME="le" -->selected<!-- /TMPL_IF --> value="<=">小於或等於</option>
				</select>
			</td>
			<td><input type="text" name="value" onChange="sql_update()" <!-- TMPL_IF NAME="value" -->value="<!-- TMPL_VAR NAME="value" -->"<!-- /TMPL_IF -->></td>
		</tr>
		<!-- /TMPL_LOOP -->
	</table>
	<br>

	<table width="90%">
	<tr>
	<td align="left" width="33%"><input type="button" value="新增查詢條件" onclick="AddStatement()" class="button"></td>
	<td align="middle" width="33%"><input type="submit" value="開始查詢" class="button"></td>
	<td align="right" width="33%">每頁顯示結果項數:
		<select align="right" name="resultsperpage" size="1">
			<option value="20">20</option>
			<option value="50">50</option>
			<option value="100">100</option>
		</select>
	</td>
	</tr>
	</table>
</form>
</center>

<script>
function sql_update() {
document.f.sql.value="";
	for (i=0 ; i<document.f.marclist.length ; i++) {
		if (document.f.marclist[i].value != '') {
			document.f.sql.value = document.f.sql.value+
										document.f.and_or[i].value + ' (' +
										document.f.excluding[i].value + ' ' +
										document.f.marclist[i].value + ' ' +
										document.f.operator[i].value + ' ' +
										'\''+document.f.value[i].value + '\') ';
		}
	}
}

function AddStatement() {

	document.forms[0].op.value="AddStatement";
	document.f.submit();
}

</script>
<!-- TMPL_IF NAME="opac" -->
    <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->
<!-- TMPL_ELSE -->
    <!-- TMPL_INCLUDE NAME="cat-bottom.inc" -->
<!-- /TMPL_IF -->






More information about the Koha-cvs mailing list