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

<h1><a href="<{$object->get('url')}>"><{$object->getShow('title')}></a></h1>
<dl class="twocoltbl">
  <dt><{$smarty.const._MD_XLEPROGRESS_LANG_DIRNAME}></dt>
  <dd><{$object->mType->getShow('dirname')}></dd>
  <dt><{$smarty.const._MD_XLEPROGRESS_LANG_DATANAME}></dt>
  <dd><{$object->mType->getShow('dataname')}></dd>
  <dt><{$smarty.const._MD_XLEPROGRESS_LANG_TARGET_ID}></dt>
  <dd><{$object->getShow('target_id')}></dd>
  <dt><{$smarty.const._MD_XLEPROGRESS_LANG_UID}></dt>
  <dd><{$object->getShow('uid')|xoops_user:"user_name"}></dd>
  <dt><{$smarty.const._MD_XLEPROGRESS_LANG_STEP}></dt>
  <dd><{$object->getShow('step')}></dd>
  <dt><{$smarty.const._MD_XLEPROGRESS_LANG_STATUS}></dt>
  <dd><{$object->getShowStatus()}></dd>
  <dt><{$smarty.const._MD_XLEPROGRESS_LANG_POSTTIME}></dt>
  <dd><{$object->get('posttime')|xoops_formattimestamp:l}></dd>
  <{if $object->get('deletetime')>0}>
  <dt><{$smarty.const._MD_XLEPROGRESS_LANG_DELETETIME}></dt>
  <dd><{$object->get('deletetime')|xoops_formattimestamp:l}></dd>
  <{/if}>
</dl>
<div class="clear"></div>
<h2><{$smarty.const._MD_XLEPROGRESS_LANG_HISTORY}></h2>
<table class="outer">
	<tr>
		<th><{$smarty.const._MD_XLEPROGRESS_LANG_UID}></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>
