{include file="$admingentemplates/admin_top.tpl"}
<div class="back">
    <a href="{$site_url}{$site_root}/admin/admin_modules.php">{$lang.button.back}</a>
</div>
<div class="cr"></div>
<div class="show_help" style="display: none;">&nbsp;</div>
<div class="red_header">{$lang.admin_games.razdel_name}</div>
<div class="cr">&nbsp;</div>
<div class="help_text" style="display:block;">
    <div class="close_help">
        <img src="{$site_root}{$template_root}/images/close_help.png" alt="">
    </div>
    <div class="help_body">
        <span class="help_title">{$lang.help}:</span>{$admin_help}
    </div>
</div>
<div class="cr">&nbsp;</div>
<ul class="tabs">
    <li>
        <a href="admin_games.php">{$lang.admin_market.sales_games}</a>
    </li>
    <li>
        <a class="current">{$lang.admin_games.orders_list}</a>
    </li>
	<li>
        <a href="admin_games.php?sel=settings">{$lang.admin_menu.aff_settings}</a>
    </li>
</ul>
<div class="user_operation_line">
	<div onclick="javascript: document.location.href='{$file_name}?sel=edit_game'" class="uol_item">
		<div class="uol_in_item">{$lang.admin_games.games_add}</div>
	</div>
</div><br><br><br><br>
<div id="games_orders_div">
	<div style="padding-top: 10px;">
	<b>{$lang.admin_games.total}:</b> {$total} {$cur}
	</div>
	<div style="padding-top: 10px;">
	<table border=0 cellspacing=0 cellpadding=0 width="100%">
{*		{if $links}
		<tr bgcolor="#ffffff">
			<td colspan=4 class="main_content_text" >
				<div style="float: left;">{$links}</div>
			</td>
		</tr>
		{/if}*}
		<tr class="table_header">
			<td class="main_header_text" align="left" width="25%">{$lang.admin_menu.games}</td>
			<td class="main_header_text" align="left" width="25%">{$lang.admin_games.orders_login}</td>
			<td class="main_header_text" align="left" width="25%">{$lang.admin_games.orders_price}</td>
			<td class="main_header_text" align="left" width="25%">{$lang.admin_games.orders_status}</td>
		</tr>
		{foreach item=item from=$games_orders name=i}
		<tr {if $smarty.foreach.i.iteration mod 2 eq 1}class="table_row even"{else}class="table_row odd"{/if}>
			<td style="padding:5px 10px;" valign="top" class="main_content_text" align="left"><img src="{$item.icon}" style="border: 1px solid #cccccc;"></td>
			<td style="padding:5px 10px;" valign="top" class="main_content_text" align="left"><a href="admin_users.php?sel=edituser&editpage=1&page=1&id={$item.id_user}" target="_blank">{$item.login}</a></td>
			<td style="padding:5px 10px;" valign="top" class="main_content_text" align="left">{$item.price} {$cur}</td>
			<td style="padding:5px 10px;" valign="top" class="main_content_text" align="left">{$item.status}</a></td>
		</tr>
		{foreachelse}
		<tr height="40">
			<td  align="center" colspan="4" bgcolor="#FFFFFF">{$lang.interests_spr.empty}</td>
		</tr>
		{/foreach}
{*		{if $links}
		<tr bgcolor="#ffffff">
			<td colspan=4 class="main_content_text">{$links}</td>
		</tr>
		{/if}*}
                    <tr class="table_header">
                        <td colspan="4">
                            &nbsp;&nbsp;
                            {if $links}
                            {foreach item=item from=$links.pages}
                                &nbsp;<a onclick="PageList('games_orders_div', '{$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('games_orders_div', '{$links.previous}');">< {$lang.content.previous} {$per_page}</a>
                            {/if}
                            {if $links.next}
                                <a onclick="PageList('games_orders_div', '{$links.next}');">{$lang.content.next} {$per_page} ></a>
                            {/if}
                            </div>
                        </td>
                    </tr>
		
	</table>
	</div>
</div>
{include file="$admingentemplates/admin_bottom.tpl"}