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

<h1><a href="<{$object->get('url')}>"><{$object->getShow('title')}></a></h1>
<table width="100%" cellspacing="1" class="outer">
  <tr><td class="head"><{$smarty.const._MD_XLEPROGRESS_LANG_DIRNAME}></td>
  <td class="odd"><{$object->mType->getShow('dirname')}></td></tr>
  <tr><td class="head"><{$smarty.const._MD_XLEPROGRESS_LANG_DATANAME}></td>
  <td class="even"><{$object->mType->getShow('dataname')}></td></tr>
  <tr><td class="head"><{$smarty.const._MD_XLEPROGRESS_LANG_TARGET_ID}></td>
  <td class="odd"><{$object->getShow('target_id')}></td></tr>
  <tr><td class="head"><{$smarty.const._MD_XLEPROGRESS_LANG_USER}></td>
  <td class="even"><{$object->getShow('uid')|xoops_user:"user_name"}></td></tr>
  <tr><td class="head"><{$smarty.const._MD_XLEPROGRESS_LANG_STEP}></td>
  <td class="odd"><{$object->getShow('step')}></td></tr>
  <tr><td class="head"><{$smarty.const._MD_XLEPROGRESS_LANG_STATUS}></td>
  <td class="even"><{$object->getShowStatus()}></td></tr>
  <tr><td class="head"><{$smarty.const._MD_XLEPROGRESS_LANG_POSTTIME}></td>
  <td class="odd"><{$object->get('posttime')|xoops_formattimestamp:l}></td></tr>
  <{if $object->get('deletetime')>0}>
  <tr><td class="head"><{$smarty.const._MD_XLEPROGRESS_LANG_DELETETIME}></td>
  <td class="even"><{$object->get('deletetime')|xoops_formattimestamp:l}></td></tr>
  <{/if}>
</table>
<div class="clear"></div>
<h2><{$smarty.const._MD_XLEPROGRESS_LANG_HISTORY}></h2>
<table class="outer">
	<tr>
		<th><{$smarty.const._MD_XLEPROGRESS_LANG_USER}></th>
		<th><{$smarty.const._MD_XLEPROGRESS_LANG_STEP}></th>
		<th><{$smarty.const._MD_XLEPROGRESS_LANG_RESULT}></th>
		<th><{$smarty.const._MD_XLEPROGRESS_LANG_POSTTIME}></th>
	</tr>
	<{foreach item=history from=$object->mHistory}>
	<tr>
		<td><{$history->getShow('uid')|xoops_user:"user_name"}></td>
		<td><{$history->getShow('step')}></td>
		<td><{$history->getShowResult()}></td>
		<td><{$history->getShow('posttime')|xoops_formattimestamp:l}></td>
	</tr>
	<{/foreach}>
</table>
<{*
<{if $approval==true}>
	<{if $actionForm->hasError()}>
	  <ul class="error">
	    <{foreach item=message from=$actionForm->getErrorMessages()}>
	      <li><{$message|xoops_escape}></li>
	    <{/foreach}>
	  </ul>
	<{/if}>
	<form action="index.php?action=HistoryEdit" method="post">
	  <dl>
	    <dt><{$smarty.const._MD_XLEPROGRESS_LANG_RESULT}></dt>
	    <dd>
	      <{xoops_input type=text name=result value=$actionForm->get('result')}>
	    </dd>
	    <dt><{$smarty.const._MD_XLEPROGRESS_LANG_COMMENT}></dt>
	    <dd>
	      <{xoops_textarea type=text name=comment value=$actionForm->get('comment')}>
	    </dd>
	    <dd>
	      <{xoops_token form=$actionForm}>
	      <{xoops_input type=hidden name=item_id value=$object->get('item_id')}>
	      <{xoops_input type=hidden name=progress_id value=$actionForm->get('progress_id')}>
	      <input type="submit" value="<{$smarty.const._SUBMIT}>" />
	      <input type="submit" value="<{$smarty.const._CANCEL}>" name="_form_control_cancel" />
	    </dd>
	  </dl>
	</form>
<{/if}>
*}>
</div>
