<{strip}>
<{* 携帯用検索結果 *}>
<{* @author T.Hashimoto,R.Fujiwara /@copyright 2009 AllCreator Co., Ltd. / @license NetCommons License *}>
<h3><{$lang.mdb_search_result_title|smarty:nodefaults}></h3>
	<{if $action.keyword != ""}>
		<{$lang.mdb_search_keyword|smarty:nodefaults}>:
		<{$action.keyword}>
		&nbsp;
	<{/if}>
	<{if $action.handle != ""}>
		<{$lang.mdb_search_handle|smarty:nodefaults}>:
		<{$action.handle}>
		&nbsp;
	<{/if}>
	<{if ($action.date_from != "" || $action.date_to != "") }>
		<{$lang.mdb_search_date|smarty:nodefaults}>:
		<{$action.date_from}><{$lang.mdb_search_target_date_separator|smarty:nodefaults}><{$action.date_to}>
		&nbsp;
	<{/if}>
	<{if $action.status != ""}>
		<{$lang.mdb_search_status|smarty:nodefaults}>:
		<{if $action.status == $smarty.const.MULTIDATABASE_STATUS_ALL}>
			<{$lang.mdb_display_item_all|smarty:nodefaults}>
		<{elseif $action.status == $smarty.const.MULTIDATABASE_STATUS_AGREE_VALUE}>
			<{$lang.mdb_search_open|smarty:nodefaults}>
		<{elseif $action.status == $smarty.const.MULTIDATABASE_STATUS_WAIT_AGREE_VALUE}>
			<{$lang.mdb_search_not_ready|smarty:nodefaults}>
		<{/if}>
		&nbsp;
	<{/if}>
	<{if $action.section_metadatas}>
		<{foreach from=$action.section_metadatas item=item key=key}>
			<{$item.name}>:
			<{if $action.sort_section.$key == "" || $action.sort_section.$key == "0"}>
				<{$lang.mdb_display_item_all|smarty:nodefaults}>
			<{else}>
				<{foreach from=$item.select_content_array item=option name=selectloop}>
					<{if $action.sort_section.$key == $option}> <{$option}> <{/if}>							
				<{/foreach}>
			<{/if}>
			&nbsp;
		<{/foreach}>
	<{/if}>
	<{$lang.mdb_search_result|smarty:nodefaults}>
<hr />
	<h3>
		<a href="?action=multidatabase_view_main_init&amp;multidatabase_id=<{$action.multidatabase_id}>&amp;block_id=<{$action.block_id}><{$session_param}>">
			<{$action.mdb_obj.multidatabase_name}>
		</a>
		<{if $action.result_count > 0 }>
			<{$lang.mdb_search_page_count|smarty:nodefaults|sprintf:"`$action.result_count`":"`$action.disp_begin+1`":"`$action.disp_end`"}>
		<{/if}>
	</h3>
	<{if $action.result_count > 0 }>
		<{foreach key=key item=item from=$action.result_contents}>
			<{foreach key=key1 item=item1 from=$item}>
				<{if $key1 == $action.mdb_obj.title_metadata_id}>
					<a href="?action=multidatabase_view_main_detail&amp;content_id=<{$item.content_id}>&amp;multidatabase_id=<{$action.multidatabase_id}>&amp;block_id=<{$action.block_id}><{$session_param}>">
						<{$item1|smarty:nodefaults}>
					</a>
				<{/if}>
			<{/foreach}>
			<{$lang.mdb_search_time_prefix|smarty:nodefaults}>
			<{* ユーザ名 $item.insert_user_id ... userinfoモジュールの携帯移行が完了したら、リンクを張る *}>
			<{$item.insert_user_name}>
			<{$lang.mdb_search_time_prefix|smarty:nodefaults}>
			<{* 検索時間 *}>
			<{$item.insert_time|timezone_date_format:$lang._full_date_format|smarty:nodefaults}>
			<br /><br />
		<{/foreach}>
	<{else}>
		<{$lang.mdb_search_result_no_match|smarty:nodefaults}>
	<{/if}>
<{include file="multidatabase_mobile_search_condition.html"}>
<{/strip}>
