<div class="adminnavi">
  <a href="./index.php"><{$smarty.const._MI_BASE_NAME}></a>
  &raquo;&raquo; <a href="./index.php?action=BlockList"><{$smarty.const._MI_BASE_MENU_BLOCKLIST}></a>
  &raquo;&raquo; <{$smarty.const._AD_BASE_LANG_BLOCK_INSTALL}>
</div>

<h3><{$smarty.const._AD_BASE_LANG_BLOCK_INSTALL}></h3>

<{if $actionForm->hasError()}>
  <ul>
    <{foreach item=message from=$actionForm->getErrorMessages()}>
      <li><{$message|escape}></li>
    <{/foreach}>
  </ul>
<{/if}>

<form action="index.php?action=BlockInstallEdit" method="post">
  <{xoops_token form=$actionForm}>
  <{xoops_input type=hidden name=bid value=$actionForm->getVar('bid')}>
  <table class="outer">
    <tr>
      <th colspan="2"><{$smarty.const._AD_BASE_LANG_BLOCK_INSTALL}></th>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._AD_BASE_LANG_TITLE}></td>
      <td class="<{cycle values="odd,even"}>">
        <{xoops_input type=text name=title value=$actionForm->getVar('title') size=50 maxlength=255}>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._AD_BASE_LANG_SIDE}></td>
      <td class="<{cycle values="odd,even"}>">
        <select name="side">
          <{foreach item=side from=$columnSideArr}>
            <option value="<{$side->getVar('id')}>"><{$side->getVar('name')}></option>
          <{/foreach}>
        </select>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._AD_BASE_LANG_WEIGHT}></td>
      <td class="<{cycle values="odd,even"}>">
        <{xoops_input type=text name=weight value=$actionForm->getVar('weight') size=5}>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._AD_BASE_LANG_BCACHETIME}></td>
      <td class="<{cycle values="odd,even"}>">
        <select name='bcachetime'>
          <{xoops_optionsArray from=$cachetimeArr value=cachetime label=label default=$actionForm->get('bcachetime')}>
        </select>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._AD_BASE_LANG_TARGET_MODULES}></td>
      <td class="<{cycle values="odd,even"}>">
        <select  size='5' name='bmodule[]' multiple='multiple'>
          <{foreach item=module from=$moduleArr}>
            <option value="<{$module->getVar('mid')}>"><{$module->getVar('name')}></option>
          <{/foreach}>
        </select>
      </td>
    </tr>
    <tr>
      <td class="head"><{$smarty.const._AD_BASE_LANG_TARGET_GROUPS}></td>
      <td class="<{cycle values="odd,even"}>">
        <select  size='5' name='groupid[]' multiple='multiple'>
          <{foreach item=group from=$groupArr}>
            <option value="<{$group->getVar('groupid')}>"><{$group->getVar('name')}></option>
          <{/foreach}>
        </select>
      </td>
    </tr>
    <{if $optionForm != null}>
      <tr>
        <td class="head"><{$smarty.const._AD_BASE_LANG_OPTIONS}></td>
        <td class="<{cycle values="odd,even"}>">
          <{$optionForm}>
        </td>
      </tr>
    <{/if}>
    <tr class="foot">
      <td colspan="2">
        <input class="formButton" type="submit" value="<{$smarty.const._INSTALL}>" />
        <input type="button" value="<{$smarty.const._BACK}>" onclick="javascript:history.back()" class="formButton" />
      </td>
    </tr>
  </table>
</form>
