<?= $this->extend('layouts/empty') ?>
<?= $this->section('content') ?>
<div style="position:relative; width:799px; height:283px; margin:0 auto; background-image:url('/images/common/adminbg.png');">
  <?= form_open(url_to('signin'), $forms['attributes'], $forms['hiddens']) ?>
  <table style="position:absolute; top:130px; left:343px; width:340px;">
    <tr>
      <td colspan="2" style="text-align:center; color:white;">
        <?php foreach ($login_buttons as $key => $login_button) : ?>
          <?= $login_button  ?>
        <?php endforeach ?>
      </td>
    </tr>
    <tr>
      <td style="text-align:right;">
        <table>
          <tr>
            <td width="15%" nowrap style="padding:5px; text-align:right; color:white;">계정</td>
            <td width="*" style="text-align:left;"><input type="text" id="id" name="id" value="<?= old('id') ?>"></td>
          </tr>
          <tr>
            <td width="15%" nowrap style="padding:5px; text-align:right; color:white;">암호</td>
            <td width="*" style="text-align:left;"><input type="password" id="passwd" name="passwd" value="<?= old('passwd') ?>"></td>
          </tr>
        </table>
      </td>
      <td style="text-align:left;"><input type="submit" style="padding:5px; width:57px; height:60px; border:0px; background:url('/images/common/btn_login.png');" value="" alt="login"></td>
    </tr>
    <?php if (session()->getFlashdata('error')) : ?>
      <tr>
        <td colspan="2" style="text-align:center; color:white;">
          <?= session()->getFlashdata('error') ?>
        </td>
      </tr>
    <?php endif ?>
  </table>
  <?= form_close(); ?>
</div>
<?= $this->endSection() ?>