<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}
<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()" />&nbsp;&nbsp;{$lang.pays.name}</td>
						<td width="15%">{$lang.pays.account}</td>
						<td width="15%">{$lang.pays.period_type}</td>
						<td width="15%">{$lang.pays.period}</td>
						<td width="10%">{$lang.pays.present_group}</td>
						
						<td width="10%">{$lang.pays.last_login}</td>
                        <td width="10%" align="right">{$lang.users.actions}</td>
				</tr>				
					{section name=u loop=$user}
					<tr {if $smarty.section.u.index mod 2 eq 1}class="even"{else}class="odd"{/if}>						
						<td class="main_content_text" >
                            <input type="checkbox" name="delete" value="{$user[u].id}" {if $user[u].group_type eq "r" || $user[u].group_type eq "g" || $user[u].group_type eq "m"}disabled{/if} /> &nbsp;                            
                            {if $user[u].root_user}{$user[u].name}{else}<a href="{$user[u].edit_link}">{$user[u].name}</a>{/if}                            
                        </td>
						<td class="main_content_text" id="qwerty">
                            <div style="float:left;">{$user[u].account}&nbsp;{$form.costunits}&nbsp;&nbsp;</div> 
                            <div class="block_action" style="float:left;">
                               <!-- <a href="{$server}{$site_root}/admin/admin_pays.php?sel=add_billing&id={$user[u].id}" rel="#overlay">-->
                               {if $user[u].group_type ne "r" && $user[u].group_type ne "g" && $user[u].group_type ne "m"}     
                                    <img src="{$site_root}{$template_root}/images/add_money_n.png"  onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.pays.account}');return false" alt="" height="13" style="cursor: pointer;" onclick="WindowShow({$user[u].id})" />
                               {/if}    
                                <!--</a>-->    
                            </div>
                        </td>
						<td class="main_content_text" >{$user[u].groups}</td>
						<td class="main_content_text" >{$user[u].dates}</td>
						<td class="main_content_text" >{$user[u].date_registration}</td>
						<td class="main_content_text" >{$user[u].last_login} {if $user[u].ip}({$user[u].ip}){/if}</td>						
                        <td class="main_content_text"  width="100">
                                <div class="block_action" style="float:right;">
                                    <img onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.pays.entry}');return false" src="{$site_root}{$template_root}/images/icn_view.png" alt="" height="16" style="cursor: pointer;" onclick="javascript:document.location.href='{$user[u].edit_link}';" />
                                </div>
                            {if !$user[u].root_user}
								<div style="width:20px;float:right;" class="fl">&nbsp;</div>
                                <div class="block_action" style="float:right;">
                                    <img onmouseout="javascript:hideToolTip();" onmouseover="javascript: showToolTip(event,'{$lang.comunicate.editform}');return false" src="{$site_root}{$template_root}/images/communicate.png" alt="" height="16" style="cursor: pointer;" onclick="javascript:window.open('{$user[u].comunicate}','comunicate', 'height=800, resizable=yes, scrollbars=yes,width=600, menubar=no,status=no');" />
                                </div>
								<div style="width:10px;float:right;" class="fl">&nbsp;</div>
                            {/if}
                        </td>
					</tr>
					{sectionelse}

					<tr height="40">
						<td class="main_error_text" align="left" colspan="7" bgcolor="#FFFFFF">{$lang.pays.empty}</td>
					</tr>
					{/section}
					</form>
				            <tr class="table_header">
                                <td colspan="7">
                                    &nbsp;&nbsp;
                                    {if $links}
                                    {foreach item=item from=$links.pages}
                                        &nbsp;<a onclick="PageList('bad_words', '{$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('bad_words', '{$links.previous}');">< {$lang.content.previous} {$per_page}</a>
                                    {/if}
                                    {if $links.next}
                                        <a onclick="PageList('bad_words', '{$links.next}');">{$lang.content.next} {$per_page} ></a>
                                    {/if}
                                    </div>
                                </td>
                            </tr>
			</table>              
<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';
		}
{/literal}		
</script>
