	<!-- includes/auto_batch_table.inc -->
	{if !$update_form.display_cmd}{assign var="update_form.display_cmd" value="edit"}{/if}
	{if $update_form.max_column}{assign var="max_column" value=$update_form.max_column}{else}{assign var="max_column" value="5"}{/if}
	{assign var="full_width" value="100"}
	{assign var="column_width" value="`$full_width/$max_column`"}
	<form {$update_form.attributes}>
	{if $update_form.information }
		<div id="form-information">
			{$update_form.information}
		</div>
	{/if}

	<div style="text-align:right;float:right;">
	{$pager_navi}
	</div>
	<div style="clear:left;padding-left:5px;">
	{$update_form.submit.UPDATE.html}
	</div>
	<table cellspacing="0" cellpadding="0" border="0 valign="top" id="cms-list-view">
{foreach from=$table_view item="row" key="key" name="table_view"}
{assign var="sequence" value=`$sequence+1`}
{if $smarty.foreach.table_view.first}
		<tr>
			<th>&nbsp;</th>
			<td>
			<table cellspacing="0" cellpadding="0" border="0 "valign="top">
			<tr>
		{foreach from=$row item="column" name="headers"}
			{if $column.label}<th style="width:{$column_width}%;">{$column.label}</th>{/if}
			{if $smarty.foreach.headers.iteration==($smarty.foreach.headers.total-1) and $smarty.foreach.headers.iteration is not div by $max_column}
			{assign var="tmp" value=`$smarty.foreach.headers.iteration%$max_column`}
			{assign var="padding" value=`$max_column-$tmp`}
			<th colspan="{$padding}">&nbsp;</th>
			{/if}
			{if $smarty.foreach.headers.iteration is div by $max_column and $smarty.foreach.headers.iteration<($smarty.foreach.headers.total-1)}
			</tr>
			<tr>
			{/if}
		{/foreach}
			</tr>
			</table>
			</td>
		</tr>
{/if}
{if $smarty.foreach.table_view.iteration is even}
	{assign var="row_color" value=$update_form.even_color}
{else}
	{assign var="row_color" value="white"}
{/if}
		<tr style="background-color:{$row_color}">
			<td style="text-align:center;">
				<a href="{$update_form.display_cmd}?id={$row.id.value}">{$sequence}</a>
				{$update_form.$key.hidden}
				{if $update_form.$key.errors }
					<div id="form-information">
						{$update_form.$key.errors}
					</div>
				{/if}
			</td>
			<td>
			<table cellspacing="0" cellpadding="0" border="0 "valign="top">
			<tr style="background-color:{$row_color}">
		{foreach from=$row item="column" name="columns"}
			{if $column.label}
				<td style="width:{$column_width}%;">{$column.html}{if $column.error}<br>{$column.error}{/if}</td>
			{/if}
			{if $smarty.foreach.columns.iteration==($smarty.foreach.columns.total-1) and $smarty.foreach.columns.iteration is not div by $max_column}
			{assign var="tmp" value=`$smarty.foreach.columns.iteration%$max_column`}
			{assign var="padding" value=`$max_column-$tmp`}
			<td colspan="{$padding}">&nbsp;</td>
			{/if}
			{if $smarty.foreach.columns.iteration is div by $max_column and $smarty.foreach.columns.iteration<($smarty.foreach.columns.total-1)}
			</tr>
			<tr style="background-color:{$row_color}">
			{/if}
		{/foreach}
			</tr>
			</table>
			</td>
		</tr>
{foreachelse}
		<tr>
			<td>データがありません</td>
		</tr>
{/foreach}
	</table>
	<div style="text-align:right;float:right;">
	{$pager_navi}
	</div>
	<div style="clear:left;padding-left:5px;">
	{$update_form.submit.UPDATE.html}
	</div>
	{foreach from=$update_form.conditions item="field" key="key"}
	<input type="hidden" name="{$key}" value="{$field}">
	{/foreach}
	{if $update_form.pageID}<input type="hidden" name="pageID" value="{$update_form.pageID}">{/if}
	</form>
	<!-- end of includes/auto_batch_table.inc -->