<[include file="common/group_list.tpl"]>
<div id="contents">
  <div id="site-info">
    <br />
    <table width="100%">
      <tr>
        <td width="50%" align="left">
          <h3><img src="<[$TEMPLATE_DIR]>/img/icon_large/sakuin.jpg" width="38" height="44" align="absmiddle" style="margin-right:8px;">ごみ箱</h3>
        </td>
        <td width="50%" align="right" valign="bottom"></td>
      </tr>
    </table>
    <div class="entry-site-search">
      <form method="post" action="./index.php?mode=27" name="form">
        <div style="float:right;">
          記事タイトル検索:
          <input name="search_word" type="text" value="<[$search_word|escape]>" size="25">
          <input type="submit" value=" 検索 ">
          <input type="button" value="リセット" onclick="document.form.search_word.value='';document.form.per_page.value='10';document.form.submit();">
        </div>
        <div>
          表示件数:
          <select name="per_page" onchange="submit();">
            <option value="10"<[if $per_page == "10"]> selected<[/if]>>10</option>
            <option value="20"<[if $per_page == "20"]> selected<[/if]>>20</option>
            <option value="40"<[if $per_page == "40"]> selected<[/if]>>40</option>
            <option value="50"<[if $per_page == "50"]> selected<[/if]>>50</option>
            <option value="100"<[if $per_page == "100"]> selected<[/if]>>100</option>
          </select>
        </div>
      </form>
    </div>
    <table id="view-table" cellpadding="2" cellspacing="0" width="100%">
      <tr>
        <th width="125" valign="middle" colspan="2" nowrap>更新日付</th>
        <th width="150" nowrap>更新セット</th>
        <th width="150" nowrap>カテゴリ</th>
        <th nowrap>タイトル</th>
        <th width="40" nowrap>復旧</th>
        <th width="40" nowrap>削除</th>
      </tr>
    <[foreach from=$group_entry_array item=group_entry name=group_entry]>
      <tr class="<[cycle values="odd,even"]>">
        <td width="3">
        <[if $group_entry.entry_publish > 0]>
          <div style="margin:0px;padding:1px;background-color:#3333FF;"><img src="<[$TEMPLATE_DIR]>/img/global/space.gif" width="1" height="13"></div>
        <[else]>
          <div style="margin:0px;padding:1px;background-color:#FF3333;"><img src="<[$TEMPLATE_DIR]>/img/global/space.gif" width="1" height="13"></div>
        <[/if]>
        </td>
        <td><[$group_entry.entry_modification_date|date_format:"%Y年%m月%d日"]></td>
        <td style="text-align:left;"><[$group_entry.group_name|escape]></td>
        <td style="text-align:left;"><[$group_entry.category_name|default:"なし"|escape]></td>
        <td style="text-align:left;"><[$group_entry.entry_title|escape]></td>
        <td><a href="./index.php?mode=29&group_code=<[$group_entry.group_code]>&entry_code=<[$group_entry.entry_code]>"><img src="<[$TEMPLATE_DIR]>/img/icon/return.gif" border="0"></a></td>
        <td><a href="./index.php?mode=30&group_code=<[$group_entry.group_code]>&entry_code=<[$group_entry.entry_code]>" onclick="return confirm('\'<[$group_entry.entry_title|escape:"javascriptall"|escape]>\'&nbsp;を削除しますか?');"><img src="<[$TEMPLATE_DIR]>/img/icon/trash_02.gif" border="0"></td>
      </tr>
      <[foreachelse]>
      <tr colspan="6">
        <td>削除されたデータはありません。</td>
      </tr>
    <[/foreach]>
    </table>
  <[if $page_count > 1]>
    <table border="0" width="100%">
      <tr>
        <td>
          <div class="page-navi">
            <[if !$first_page]>&nbsp;<a href="./index.php?mode=27&page=<[$current_page-1]>">&lt;&lt;前へ</a><[/if]><[section name=count start=1 loop=$page_count+1]>&nbsp;<[if $smarty.section.count.index != $current_page]><a href="./index.php?mode=27&page=<[$smarty.section.count.index]>"><[$smarty.section.count.index]></a><[else]><[$smarty.section.count.index]><[/if]><[/section]><[if !$last_page]>&nbsp;<a href="./index.php?mode=27&page=<[$current_page+1]>">次へ&gt;&gt;</a><[/if]>
          </div>
        </td>
      </tr>
    </table>
  <[/if]>
  </div>
</div>