{include file="admin/header.html"}
{include file="admin/gnavi.html"}

<div id="container">

{include file="admin/menu/submenu_item.html"}

<!-- ↓段組み　メイン側 -->
<div id="main">

<h3>{$action.title}</h3>

<!--↓エラーメッセージ -->
{errorList->getMessages assign=errmsg}
{if $errmsg}
<div class="error">
  <ul class="alert">
  {foreach from=$errmsg item=msg}
    <li>{$msg|escape}</li>
  {/foreach}
  </ul>
</div>
{/if}
<!--↑エラーメッセージ -->

<!-- ↓ジャンル一括変更 -->
<div class="genrechange">

<form method="get" action="" id ="search">

<input type="hidden" name="div" value="{$action.div}">

<table class="hyou">
  <tr>
    <th>ジャンル</th>  
		<td>  
{action->getGenreSearch assign=genre_search}  
			<ul style="list-style:none; line-height:1.6;">  
			{foreach item=value from=$genre_search key=key}  
				<li>  
					<label name="genre" onclick="selectParentGenre('childs{$value.genrecd}', '{$value.genrecd}')">  
						<input class="childs{$value.genrecd}" id="{$value.genrecd}" type="checkbox" name="genre_select[]" value="{$value.genrecd}"{if in_array($value.genrecd, $action.genre_select)} checked{/if}>  
						<strong>{$value.genrenm}</strong>  
					</label>  
{if $value.child !=""}  
					<div class="genrelist clearfix">  
						<ul style="list-style:none;">{include file="admin/itemmanage/search_genretree.html" child=$value.child parentcd=$value.genrecd}</ul>  
					</div><!-- clearfix  -->  
					<br />  
{/if}  
				</li>  
			{/foreach}  
			</ul>  
			<br> 
    </td>
  </tr>
  
  <tr>
    <th class="title">タイトル</th>
    <td class="title">
      <input type="text" name="src_title" value="{$action.src_title}" class="src_title">&nbsp;
    </td>
  </tr>
</table>

<!-- ↑ジャンル一括変更 -->

<div class="form-operation">
  <input type="submit" name="dispatch_admin_itemmanage_genrechange_list" value="検索">
</div>
</form>
</div>

<div class="pagetop" title="ページトップへ"><a href="#top">ページトップへ</a></div>

</div>
<!--End of main-->

<div class="cr"></div>
</div>
<!--End of container-->

{include file="admin/footer.html"}
