<!-- Header -->
{include file='includes/header.inc'}
</head>
<body>
<!-- Main -->
<table border=0 cellspacing=0 cellpadding=0 valign="top" id="container">
<tr><td>
{include file='includes/pathlist.inc'}
</td></tr>
<tr><td valign="top" id="maincont">
<h1>{$page.name}</h1>

<!-- Search Box & Sort Tab-->
{*include file='includes/item_search/search_form.inc'*}
{*include file='includes/item_search/sort_tab.inc'*}

<!-- Main Contents-->

<!-- Input Form -->
<div class="contents-block">
<div class='header'>
<div class="left-box">Amazon 商品検索</div>
<div class="right-box">&nbsp;</div>
<div class="end"></div>
</div>
{if $page.message}<div class="message">{$page.message|nl2br}</div>{/if}
<div class="main">
{include file='includes/auto_input_form.inc'}
</div>
</div>

<div class="contents-block">
<div class='header'>
<div class="left-box">商品検索結果の一覧</div>
<div class="right-box">{if $num.TotalResults}ヒット：{$num.TotalResults}件　ページ{$p.itempage}／{$num.TotalPages}{/if}</div>
<div class="end"></div>
</div>
<div class='header' style='background-color:#fff;'>
<div class="left-box">&nbsp;</div>
<div class="right-box">
<form  action="{$b}<!--{$folder_name}-->/item_search/" method="post" name="search_pager">
<input type="hidden" name="keywords" value="{$p.keywords}" />
<input type="hidden" name="search_option" value="{$p.search_option}" />
<input type="hidden" name="sort_option" value="{$p.sort_option}" />
<input type="hidden" name="itempage" value="{$p.itempage}" />
{if $p.itempage > 1}
<input type="button" name="PrevButton" value="前のページ" onclick="javascript:document.search_pager.itempage.value=parseInt(document.search_pager.itempage.value)-1;submit();" />
{/if}
{if $p.itempage < $num.TotalPages}
<input type="button" name="NextButton" value="次のページ" onclick="javascript:document.search_pager.itempage.value=parseInt(document.search_pager.itempage.value)+1;submit();" />
{/if}
</form>
</div>
<div class="end"></div>
</div>

<div class="main">
{include file='includes/item_search/table_view.inc'}
</div>
<div class="pager">
{include file='includes/pager.inc'}
</div>
</div>

<!-- End of Main -->


</td>
<!-- Right -->
<td valign="top" id="mainright">
{insert name='right'}
</td></tr>
</table>
<!-- Footer -->
{include file='includes/footer.inc'}