<inp2:m_include t="incs/header"/>
<inp2:m_RenderElement name="combined_header" prefix="apayments.log" section="in-commerce:paymentlog" title_preset="payments_log"/>

<!-- ToolBar -->
<table class="toolbar" height="30" cellspacing="0" cellpadding="0" width="100%" border="0">
<tbody>
	<tr>
  		<td>
	  		<script type="text/javascript">
					a_toolbar = new ToolBar();

					a_toolbar.AddButton( new ToolBarButton('refresh', '<inp2:m_phrase label="la_ToolTip_Refresh" escape="1"/>', function() {
								window.location.href = window.location.href;
							}
					) );

					a_toolbar.AddButton( new ToolBarSeparator('sep2') );

					a_toolbar.AddButton( new ToolBarButton('view', '<inp2:m_phrase label="la_ToolTip_View" escape="1"/>', function() {
								show_viewmenu(a_toolbar,'view');
							}
					) );

					a_toolbar.Render();

					function edit()
					{
						// required for correct row selection
					}
			</script>
		</td>

		<inp2:m_RenderElement name="search_main_toolbar" prefix="apayments.log" grid="Log"/>
	</tr>
</tbody>
</table>

<inp2:m_DefineElement name="grid_userlink_td" format="">
	<a href="<inp2:UserLink edit_template='users/users_edit'/>" onclick="return direct_edit('<inp2:m_Param name="PrefixSpecial"/>', this.href);" title="<inp2:m_phrase name="la_Edit_User"/>"><inp2:Field field="$field" no_special="no_special" grid="$grid" format="$format"/></a>
</inp2:m_DefineElement>

<inp2:m_DefineElement name="grid_currency_td" format="" no_special="">
	<inp2:Field field="$field" grid="$grid" no_special="$no_special" format="$format" currency="selected" />
</inp2:m_DefineElement>

<inp2:m_RenderElement name="grid" PrefixSpecial="apayments.log" IdField="AffiliatePaymentId" grid="Log" main_special=""/>

<inp2:m_include t="incs/footer"/>