⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 search.tpl

📁 太烦了
💻 TPL
字号:
{strip}
<script type="text/javascript">
/* <![CDATA[ */
{literal}
function MM_reloadPage(init) {  /* reloads the window if Nav4 resized */
  if (init==true)
  	with (navigator) {
		if ( appName == "Netscape" && parseInt(appVersion) == 4 ) {
			document.MM_pgW=innerWidth;
			document.MM_pgH=innerHeight;
			onresize=MM_reloadPage;
		}
	}else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
		location.reload();
}
MM_reloadPage(true);

function compile(form){
	/* this function will get values from simple search form
	 and generate a querystring for itself to avoid the values
	 of unused fields
	*/
	var element;
	var rdoName;

	for( i=0 ; i < form.length ; i++ )
		if(form.elements[i].type=='radio' && form.elements[i].name=='searchby'
			&& form.elements[i].checked == true ){

			rdoName=form.elements[i].value;
			eval("element=form.txt" + form.elements[i].value + "");
			break;
		}

	if(!element){
		result = "";
		startHeight = 0;
		endHeight = 0
		for( i=0 ; i < form.length ; i++ )
			if(form.elements[i].type=='checkbox' && form.elements[i].name == rdoName + "[]" && form.elements[i].checked == true ){

				result += "&" + rdoName + escape("[]") + "=";
				eval("result += '" + form.elements[i].value + "' ");
			}else if(form.elements[i].name == rdoName + "[]" && form.elements[i].type == 'select-one'){

				eval("tmp = " + form.elements[i].value );
				if( startHeight == 0 )

					startHeight = tmp;
				else if( endHeight == 0 )
					endHeight = tmp;
			}

		if( startHeight != 0 && endHeight != 0){

			if( endHeight < startHeight){
				tmp=startHeight;
				startHeight=endHeight;
				endHeight=tmp;
			}
			for(i=startHeight; i <= endHeight ; i++)
				result += "&" + rdoName + escape("[]") + "=" + i ;
		}
		document.location="searchprofiles.php?searchtype=simple&searchby=" + rdoName + "" + result;
	}else{

		eval("document.location='searchprofiles.php?searchtype=simple&searchby=" + rdoName
			+ "&txtsearch=" + element.value + "'");
	}
	return false;
}
{/literal}
/* ]]> */
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="0" >
	<tr>
		<td class="module_detail" width="100%">
			{assign var="page_hdr01_text" value="{lang mkey='search_options'}"}
			{include file="admin/admin_page_hdr01.tpl"}
			<table border="0" cellpadding="0" cellspacing="10" width="100%">
				<tr>
					<td width="100%">

						<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
							<tr>
								<td class="module_detail_inside" width="100%">

									{assign var="page_hdr02_text" value="{lang mkey='search_simple'}"}
									{include file="admin/admin_page_hdr02.tpl"}
									<table border="0" width="100%" >
										<tr>
											<td>
												{include file="admin/simplesearch.tpl"}
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
							<tr>
								<td class="module_detail_inside" width="100%">
									{assign var="page_hdr01_text" value="{lang mkey='search_advance'}"}
									{include file="admin/admin_page_hdr01.tpl"}
									<table border="0" width="100%">
										<tr>
											<td>
												{include file="admin/advancesearch.tpl"}
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
{/strip}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -