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

📄 advsearch.tpl

📁 太烦了
💻 TPL
📖 第 1 页 / 共 2 页
字号:
											</td>
											<td  id="srchlookcounty">
										{ if $lang.lookcounties|@count > 0}
											<select class="select" style="width: 175px" name="srchlookcounty" onchange="cascadeCounty(this.value,this.form.srchlookcountry.value,this.form.srchlookstate_province.value);" >
											{html_options options=$lang.lookcounties selected=$smarty.session.advsearch.srchlookcounty}
											</select>
										{ else }
											<input name="srchlookcounty" type="text" size="30" maxlength="100" value="{$smarty.session.advsearch.srchlookcounty}"/>
										{ /if}
											</td>
										</tr>
										{/if}
										{if $config.accept_city == 'Y' or $config.accept_city == '1'}
										{* State may be, but city may not be. Any clue... *}
										<tr>
											<td >
												{lang mkey='signup_city'}
											</td>
											<td  id="srchlookcity">
										{ if $lang.lookcities|@count > 0}
											<select class="select" style="width: 175px" name="srchlookcity" onchange="javascript: cascadeCity(this.value,this.form.srchlookcountry.value,this.form.srchlookstate_province.value,this.form.srchlookcounty.value);" >
											{html_options options=$lang.lookcities selected=$smarty.session.advsearch.srchlookcity}
											</select>
										{ else }
											<input name="srchlookcity" type="text" size="30" maxlength="100" value="{$smarty.session.advsearch.srchlookcity}"/>
										{ /if}
											</td>
										</tr>
										{/if}
										{if $config.accept_zipcode == 'Y' or $config.accept_zipcode == '1'}
                                        {* OK. I am out..  Not zip code, also bypass radius .. hurray... *}
										<tr>
											<td >
												{lang mkey='signup_zip'}
											</td>
											<td nowrap id="srchlookzip">
										{ if $lang.lookzipcodes|@count > 0}
											<select class="select" style="width: 100px" name="srchlookzip">
											{html_options options=$lang.lookzipcodes selected=$smarty.session.advsearch.srchlookzip}
											</select>
										{ else }
											<input name="srchlookzip" type="text" size="10" maxlength="100" value="{$smarty.session.advsearch.srchlookzip}" />
										{ /if}
											</td>
										</tr>
									</table>
									<div id="zipsavailable">
										{if $zipsavailable > 0}
										<table width="100%" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}" border=0>
											<tr>
											<td width="25%">
												{lang mkey='search_within'}:
											</td>
											<td width="75%" >
											<table border=0 cellspacing=0 cellpadding=0 width="100%">
												<tr>
													<td valign="middle" width="15">
														<input name="srchradius" value="{$smarty.session.advsearch.srchradius}" type=text size="5" maxlength="10" />
													</td>
													<td valign="middle" width="6">
														<input type=radio name="radiustype" value="miles" {if $smarty.session.radiustype=='miles'} CHECKED {/if} />
													</td>
													<td width="15" valign="middle">{lang mkey='miles'}
													</td>
													<td valign="middle" width="6">
														<input type=radio name="radiustype" value="kms" {if $smarty.session.radiustype=='kms'} CHECKED {/if} />
													</td>
													<td width="20" valign="middle">{lang mkey='kms'}
													</td>
													<td valign="middle">
														{lang mkey='of_zip_code'}
													</td>
												</tr>
												</table>
												</td>
											</tr>
										</table>
										{/if}
									</div>
										{/if}
									{/if}
								{/if}
									<table class="table" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}" width="100%">
										<tr>
									    	<td valign="middle" width="25%">{lang mkey='search_with_photo'}:</td>
									    	<td valign="middle" width="75%">
								    		<input type="checkbox" name="with_photo" value="1" {if $smarty.session.advsearch.with_photo == '1'}checked="checked"{/if} />
									    	</td>
									    </tr>
										<tr>
									    	<td valign="middle">{lang mkey='search_with_video'}:</td>
									    	<td valign="middle">
								    		<input type="checkbox" name="with_video" value="1" {if $smarty.session.advsearch.with_video == '1'}checked="checked"{/if} />
									    	</td>
									    </tr>
										<tr>
									    	<td valign="middle">{lang mkey='who_is_online'}:</td>
									    	<td valign="middle">
								    		<input type="checkbox" name="who_is_online" value="1" {if $smarty.session.advsearch.who_is_online == '1'}checked="checked"{/if} />
									    	</td>
									    </tr>
									</table>
						{else}
				{*Outer Loop to traverse outer dimension data array*}
									<table class="table" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}" width="100%">
							{foreach item=questionrow from=$data}
	{* added to solve the deselection of items from saved search *}
								{if $questionrow.id != 5 and $questionrow.id != 27}
									{if $smarty.session.advsearch.question[$questionrow.id]|@count > 0}
									<input type=hidden name="selected_questions[]" value="{$questionrow.id}" />
									{/if}
									{if $questionrow.control_type != "textarea"}
										<tr>
											<td width="33%" valign="top">
												<b>{$questionrow.question}</b>
											</td>
											<td width="67%" valign="top" >
												<table class="table" border="0" cellspacing="{$config.cellspacing}" cellpadding="{$config.cellpadding}" width="100%">
												{assign var="mcount" value="0"}
												{foreach key=rkey item=curropt from=$questionrow.options}
													{if $mcount == 0 }
													<tr>
													{/if}
													{if $questionrow.options|@count < 6}
													{* Only one option per row *}
													{math equation="$mcount+1" assign="mcount"}
													{/if}
													{math equation="$mcount+1" assign="mcount"}
														<td width="50%">
															<table border=0 cellspacing=0 cellpadding=0 width="100%">
															<tr><td width="5%" valign="top">
															<input name=
															"question[{$questionrow.id}][]" type="checkbox" value="{$rkey}"
															{foreach from=$smarty.session.advsearch.question[$questionrow.id] item=sel}
																{if $sel== $rkey}
																 CHECKED
																{/if}
															{/foreach}
															/>
															</td>
															<td  width="95%" valign="middle" align="left" >
																{$curropt|stripslashes}
															</td>
															</tr>
															</table>
														</td>
													{if $mcount == 2 }
													{assign var="mcount" value="0"}
													</tr>
													{/if}
												{/foreach}
												{if $mcount == 1}
													</tr>
												{/if}
												</table>
											</td>
										</tr>
									{/if}
								{else}
								{* Height and weight question *}
										<tr>
											<td width="33%" valign="top">
												<b>{$questionrow.question}</b>
											</td>
											<td width="67%" valign="top" nowrap>
												{lang mkey='between1'}&nbsp;
												<select name="question[{$questionrow.id}][]" >
												<option value='' selected>{lang mkey='select_from_list'}</option>
												{html_options options=$questionrow.options selected=$smarty.session.advsearch.question[$questionrow.id][0]}
												</select>&nbsp; {lang mkey='and'}&nbsp;
												<select name="question[{$questionrow.id}][]" >
												<option value='' selected>{lang mkey='select_from_list'}
												</option>
												{html_options options=$questionrow.endoptions selected=$smarty.session.advsearch.question[$questionrow.id][1]}
												</select>
											</td>
										</tr>
								{/if}
							{/foreach}
									</table>
						{/if}
								</td>
							</tr>
						</table>
						<table width="100%">
							<tr>
								<td width="20%">&nbsp;</td>
								<td width="80%">
									<input name="advsearch" type="submit" class="formbutton" value="{lang mkey='search'}" /> 									<input type="button" class="formbutton" value="{lang mkey='continue'}" onClick="javascript: document.{$frmname}.sectionid.value= {$nextsectionid}; document.{$frmname}.submit();" /> <input type="reset" class="formbutton" value="{lang mkey='reset'}" />
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
  </tbody>
</table>
</form>
<br />
{/strip}

⌨️ 快捷键说明

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