<div class="adminnavi">
  <a href="./index.php"><{$smarty.const._MI_LEGACY_NAME}></a>
  &raquo;&raquo; <a href="./index.php?action=BlockList"><{$smarty.const._MI_LEGACY_MENU_BLOCKLIST}></a>
  &raquo;&raquo; <span class="adminnaviTitle"><{$smarty.const._AD_LEGACY_LANG_BLOCK_UPDATECONF}></span>
</div>

<h3 class="admintitle"><{$smarty.const._AD_LEGACY_LANG_BLOCK_UPDATECONF}></h3>

<div class="confirm"><{$smarty.const._AD_LEGACY_MESSAGE_CONFIRM_UPDATE_BLOCK}></div>

<{if $actionForm->hasError() && $actionForm->get('confirm')}>
<div class="error">
  <ul>
    <{foreach item=message from=$actionForm->getErrorMessages()}>
      <li><{$message|xoops_escape}></li>
    <{/foreach}>
  </ul>
</div>
<{/if}>

<form method="post"  action="./index.php?action=BlockList">
  <{xoops_token form=$actionForm}>
  <{xoops_input type=hidden name=confirm value=1}>
<table class="outer">
  <tr>
    <th><{$smarty.const._AD_LEGACY_LANG_BID}></th>
    <th><{$smarty.const._AD_LEGACY_LANG_TITLE}></th>
    <th><{$smarty.const._AD_LEGACY_LANG_SIDE}></th>
    <th><{$smarty.const._AD_LEGACY_LANG_WEIGHT}></th>
    <th><{$smarty.const._AD_LEGACY_LANG_BCACHETIME}></th>
    <th><{$smarty.const._AD_LEGACY_LANG_UNINSTALL}></th>
  </tr>

<{foreach item=bid from=$bids}>
  <tr class="<{cycle values='odd,even'}>">
    <td class="legacy_list_id"><{$bid}></td>
    <td class="legacy_list_name">
      <{if $actionForm->get('title',$bid) == $blockObjects[$bid]->get('title')}>
        <{$actionForm->get('title',$bid)|xoops_escape}>
      <{else}>
         (<{$blockObjects[$bid]->getShow('title')}>) &raquo; <b  class="legacy_module_error"><{$actionForm->get('title',$bid)|xoops_escape}></b>
      <{/if}>
    </td>
    <td class="legacy_list_name">
      <{assign var="formside" value=$actionForm->get('side',$bid)}>
      <{assign var="formside_obj" value=$columnSideArr.$formside}>
      <{if $actionForm->get('side',$bid) == $blockObjects[$bid]->get('side')}>
        <{$formside_obj->getShow('name')}>
      <{else}>
         (<{$blockObjects[$bid]->mColumn->getShow('name')}>) &raquo; <br /><b  class="legacy_module_error"><{$formside_obj->getShow('name')}></b>
      <{/if}>
    </td>
    <td class="legacy_list_order">
      <{if $actionForm->get('weight',$bid) == $blockObjects[$bid]->get('weight')}>
        <{$actionForm->get('weight',$bid)|xoops_escape}>
      <{else}>
         (<{$blockObjects[$bid]->getShow('weight')}>) &raquo; <b  class="legacy_module_error"><{$actionForm->get('weight',$bid)|xoops_escape}></b>
      <{/if}>
    </td>
    <td class="legacy_list_name">
      <{assign var="formcache" value=$actionForm->get('bcachetime',$bid)}>
      <{assign var="formcache_obj" value=$cachetimeArr.$formcache}>
      <{if $actionForm->get('bcachetime',$bid) == $blockObjects[$bid]->get('bcachetime')}>
        <{$formcache_obj->getShow('label')}>
      <{else}>
         (<{$blockObjects[$bid]->mCachetime->getShow('label')}>) &raquo; <br /><b  class="legacy_module_error"><{$formcache_obj->getShow('label')}></b>
      <{/if}>
      <input type="hidden" name="title[<{$bid}>]" value="<{$actionForm->get('title',$bid)|xoops_escape:edit}>" />
      <input type="hidden" name="side[<{$bid}>]" value="<{$actionForm->get('side',$bid)|xoops_escape:edit}>" />
      <input type="hidden" name="weight[<{$bid}>]" value="<{$actionForm->get('weight',$bid)|xoops_escape:edit}>" />
      <input type="hidden" name="bcachetime[<{$bid}>]" value="<{$actionForm->get('bcachetime',$bid)|xoops_escape:edit}>" />
    </td>
    <td class="legacy_list_select">
        
        <{if $actionForm->get('uninstall',$bid) == 1}>
        <b class="legacy_module_error">
          <{$smarty.const._YES}>
        <{else}>
        <b class="legacy_module_warning">
          <{$smarty.const._NO}>
        <{/if}></b>
      <{if $actionForm->get('uninstall',$bid)}>
        <input type="hidden" name="uninstall[<{$bid}>]" value="1" />
      <{else}>
        <input type="hidden" name="uninstall[<{$bid}>]" value="0" />
      <{/if}>
    </td>
  </tr>
<{/foreach}>
  <tr>
    <td class="foot" colspan="6">
      <input type="submit" value="<{$smarty.const._AD_LEGACY_LANG_UPDATE}>" class="formButton" />
      <input class="formButton" type="submit" value="<{$smarty.const._BACK}>" name="_form_control_cancel" />
    </td>
  </tr>
</table>
</form>
