			<table border=0  cellspacing=0 cellpadding=0 width="100%">				
				<tr class="table_header">					
					<td width="25%"><input type="checkbox" id="select_all" name="select_all" onclick="PutAll()" /> {$lang.pays.name}</td>
					<td width="15%">{$lang.pays.date_entry}</td>
                    
					<td width="10%">{$lang.pays.amount}</td>
					<td width="20%">{$lang.pays.paysystem}</td>
					
					<td width="8%">{$lang.pays.pay_status}</td>
					<td width="10%">{$lang.pays.payment_type}</td>
					<td width="10%" style="text-align: right; padding-right: 10px;">{$lang.users.actions}</td>
				</tr>
				{section name=p loop=$pays}
				<tr {if $smarty.section.p.index mod 2 eq 1}class="even"{else}class="odd"{/if}>					
					<td class="main_content_text">
                        <input type="checkbox" name="delete" value="{$pays[p].number}" {if $pays[p].status ne 'send'} disabled=""{/if} />  
                        <a href="admin_users.php?sel=edituser&editpage=1&page=1&id={$pays[p].id_user}" > {$pays[p].user_fname}&nbsp;{$pays[p].user_sname}</a>
                    </td>
					<td class="main_content_text">{$pays[p].date_send_show}</td>
					<td class="main_content_text">{$pays[p].count_curr}   {$pays[p].currency}</td>
					<td class="main_content_text">{$pays[p].paysystem}{if $pays[p].user_info}&nbsp;(<a href='#' onclick="javascript: window.open('{$server}/admin/admin_pays.php?sel=manual_payment_details&id={$pays[p].id}', 'approve_field_{$pays[p].id}', 'height=500,width=400,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes');">{$lang.pays.view_details}</a>){/if}</td>
                    <td class="main_content_text"><span id='status_{$pays[p].id}'>{$pays[p].status}</span></td>
                    
                    <td class="main_content_text">{$pays[p].system}</td> 
                    <td class="main_content_text">
                        <div class="block_action" style="float:right;">
                        <span id='approve_field_{$pays[p].id}'>
                        {if $pays[p].status eq 'send'}
                        <img onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.buttons.approve}');return false" src="{$site_root}{$template_root}/images/icn_active.png" alt="" height="16" style="cursor: pointer;" onclick="ChangeStatus('approve_req&id_order={$pays[p].number}');" />&nbsp;
                        <img onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.buttons.decline}');return false" src="{$site_root}{$template_root}/images/photo_delete.png" alt="" height="16" style="cursor: pointer;" onclick="ChangeStatus('decline_req&id_order={$pays[p].number}');" />
                       <!-- <input type="button" class="button_2" value="{$lang.buttons.approve}" onclick="ChangeStatus('approve_req&id_order={$pays[p].number}');">
                        &nbsp;
                        <input type="button" class="button_2" value="{$lang.buttons.decline}" onclick="ChangeStatus('decline_req&id_order={$pays[p].number}');">-->
                        {else}&nbsp;{/if}</span>
                        </div>
                        </td>
                </tr>
				{sectionelse}

				<tr height="40">
					<td class="main_error_text" align="left" colspan="7" bgcolor="#FFFFFF">{$lang.pays.empty}</td>
				</tr>
				{/section}
                <tr class="table_header">
                    <td colspan="7">
                        &nbsp;&nbsp;
                        {if $links}
                        {foreach item=item from=$links.pages}
                            &nbsp;<a onclick="PageList('', '{$item.link}');" class="page_link" {if $item.selected} style=" font-weight: bold; text-decoration: none;" {/if}>{$item.name}</a>&nbsp;
                        {/foreach}
                        {/if}
                        <div class="page_navigation">
                        {if $links.previous}
                            <a onclick="PageList('', '{$links.previous}');">< {$lang.content.previous} {$per_page}</a>
                        {/if}
                        {if $links.next}
                            <a onclick="PageList('', '{$links.next}');">{$lang.content.next} {$per_page} ></a>
                        {/if}
                        </div>
                    </td>
                </tr>				
			</table>
<div id="tooltip" onclick="hideToolTip()" style="text-align:center; background-color: #FFFFFF; border: 1px dotted; text-align: {$default_left}; position:absolute; display:none; padding:5px;"></div>
{literal}
<script type="text/javascript">
$(function() {
$('#tool_tip_4 *').tooltip();
});
</script>
{/literal}
<script type="text/javascript">
{literal}
    function showToolTip(e,text){
			if(document.all)e = event;
			var obj = document.getElementById('tooltip');
			obj.innerHTML = text;
			obj.style.display = 'block';
			var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
			if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)st=0;
			var leftPos = e.clientX - $('#tooltip').width()-10;
			if(leftPos<0)leftPos = 0;
			obj.style.left = leftPos + 'px';
			obj.style.top = e.clientY - obj.offsetHeight -10 + st + 'px';
		}
		function hideToolTip(){
			document.getElementById('tooltip').style.display = 'none';
		}

    function ChangeStatus(par){	
        num_users = $("select[name=pays_numpage]").val();    
        url = 'pays_numpage='+num_users+'&ajax=1&sel='+par+'&page={/literal}{$page}{literal}';
        ajaxLoadingImage(1, 'off');
            $.post("admin_pays.php", url, function(data){
                ajaxLoadingImage(0, 'off');
                $('#off').html(data);
            });
        
}
{/literal}
</script>