<div class="xleprogress">
<{include file="db:`$dirname`_inc_menu.html"}>

<h1><{if $actionName=='ItemList'}><{$smarty.const._MD_XLEPROGRESS_LANG_ITEM_LIST}><{else}><{$smarty.const._MD_XLEPROGRESS_LANG_MYTASK_LIST}><{/if}></h1>
<{if count($objects) > 0}>
  <form action="index.php" method="get">
  <input type="hidden" name="action" value="HistoryEdit">
  <input type="hidden" name="item_id" value="1">
  <div class="pagenavi"><{xoops_pagenavi pagenavi=$pageNavi}></div>
  <table class="outer" summary="">
    <thead>
      <tr>
        <th>
          <{$smarty.const._MD_XLEPROGRESS_LANG_ITEM_ID}><br />
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_ITEM_ID}>"><img src="images/up.gif" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_ITEM_ID}>"><img src="images/down.gif" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a>
        </th>
        <th>
          <{$smarty.const._MD_XLEPROGRESS_LANG_TITLE}><br />
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_TITLE}>"><img src="images/up.gif" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_TITLE}>"><img src="images/down.gif" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a>
        </th>
        <th>
          <{$smarty.const._MD_XLEPROGRESS_LANG_DIRNAME}><br />
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_DIRNAME}>"><img src="images/up.gif" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_DIRNAME}>"><img src="images/down.gif" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a>
        </th>
        <th>
          <{$smarty.const._MD_XLEPROGRESS_LANG_DATANAME}><br />
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_DATANAME}>"><img src="images/up.gif" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_DATANAME}>"><img src="images/down.gif" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a>
        </th>
        <th>
          <{$smarty.const._MD_XLEPROGRESS_LANG_TARGET_ID}><br />
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_TARGET_ID}>"><img src="images/up.gif" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_TARGET_ID}>"><img src="images/down.gif" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a>
        </th>
        <th>
          <{$smarty.const._MD_XLEPROGRESS_LANG_USER}><br />
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_UID}>"><img src="images/up.gif" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_UID}>"><img src="images/down.gif" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a>
        </th>
        <th>
          <{$smarty.const._MD_XLEPROGRESS_LANG_STEP}><br />
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_STEP}>"><img src="images/up.gif" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_STEP}>"><img src="images/down.gif" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a>
        </th>
        <th>
          <{$smarty.const._MD_XLEPROGRESS_LANG_STATUS}><br />
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_STATUS}>"><img src="images/up.gif" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_STATUS}>"><img src="images/down.gif" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a>
        </th>
        <th>
          <{$smarty.const._MD_XLEPROGRESS_LANG_POSTTIME}><br />
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_POSTTIME}>"><img src="images/up.gif" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
          <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.XLEPROGRESS_ITEM_SORT_KEY_POSTTIME}>"><img src="images/down.gif" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a>
        </th>
        <th>
          <{$smarty.const._MD_XLEPROGRESS_LANG_CONTROL}><br />
        </th>
      </tr>
    </thead>
    <tbody>
      <{foreach item=obj from=$objects}>
        <tr class="<{cycle values='odd,even'}>">
          <td>
            <{if $obj->get('status')==$status_progress}>
            <a href="./index.php?action=HistoryEdit&amp;item_id=<{$obj->getShow('item_id')}>"><{$obj->getShow('item_id')}>
            <{else}>
            <{$obj->getShow('item_id')}>
            <{/if}>
          </td>
          <td><{$obj->getShow('title')}></td>
          <td><{$obj->mType->getShow('dirname')}></td>
          <td><{$obj->mType->getShow('dataname')}></td>
          <td><{$obj->getShow('target_id')}></td>
          <td>
            <{if $obj->getShow('uid')!=0}>
            <{$obj->getShow('uid')|xoops_user:"user_name"}>
            <{else}>
            guest
            <{/if}>
          </td>
          <td><{$obj->getShow('step')}></td>
          <td><a href="./index.php?action=HistoryList&amp;item_id=<{$obj->getShow('item_id')}>"><{$obj->getShowStatus()}></a></td>
          <td><{$obj->get('posttime')|xoops_formattimestamp:m}></td>
          <td>
            <{if $obj->get('status')==$status_progress}>
            <input class="formButton" type="button" value="<{$smarty.const._MD_XLEPROGRESS_LANG_DETAIL}>" onclick="this.form.item_id.value='<{$obj->getShow('item_id')}>'; submit();"/></a>
            <{/if}>
          </td>
        </tr>
      <{/foreach}>
    </tbody>
  </table>
  </form>
  <div class="pagenavi"><{xoops_pagenavi pagenavi=$pageNavi}></div>
<{else}>
  <div class="msgInfo"><{$smarty.const._MD_XLEPROGRESS_MESSAGE_NO_TASK}></div>
<{/if}>
</div>
