<title> {$lang['friends_list']} -
{$_CONF['info_row']['title']}</title>

{template}address_bar_part1{/template}
 <a href="index.php?page=usercp&amp;index=1">{$lang['User_Control_Panel']}</a>
{$_CONF['info_row']['adress_bar_separate']}
{$lang['friends_list']}
{template}address_bar_part2{/template}

<table border="0" width="98%" cellpadding="0" style="border-collapse: collapse;margin: auto;">
	<tr>
		<td width="20%" valign="top">{template}usercp_menu{/template}</td>
		<td width="80%" valign="top" align="center">

<form name="info" method="post" action="index.php?page=usercp&amp;options=1&amp;friends=1&amp;add=1">
	<div align="center">
	<table border="0" cellspacing="1" width="100%" class="border" >
		<tr>
			<td class="tcat">			{$lang['add_friend']}</td>
		</tr>
<tr>
			<td class="row1" width="60%">
			{$lang['explanation_friends_list']}
			</td>
		</tr>
<tr>
			<td class="row1" align="right">
			<input name="username_friend" type="text">
			<input name="send" type="submit" value="{$lang['add_friend']}" />
			</td>
		</tr>
	</table>
	</div>
</form>

 <br />


	<div align="center">
<table border="0" cellspacing="1" width="100%" class="border" >
	<tr>
		<td class="tcat" colspan="2">{$lang['friends_list']}</td>
	</tr>
	<tr>
		<td class="thead rows_space">{$lang['user_name']}</td>
		<td class="thead rows_space">{$lang['remove']}</td>
	</tr>
{Des::while}{FriendsList}
	<tr>
		<td class="row1" align="center">
		{if {$FriendsList['approval']} == '0'}
{$lang['Friendship_request_is_pending_approval_by']}
 <b>{$FriendsList['username_friend']}</b>
{else}
{$FriendsList['username_friend']}
{/if}
		</td>
		<td class="row1" align="center">
		   <form name="info" method="post" action="index.php?page=usercp&amp;options=1&amp;friends=1&amp;del=1&amp;id={$FriendsList['id']}">
		<input name="send" type="submit" value="{$lang['remove']}" />
		</form>
		</td>
	</tr>
{if {$No_Friends}}
	<tr>
		<td class="row1" align="center" colspan="2">{$lang['does_not_have_friends']}</td>
	</tr>
{/if}
{/Des::while}


</table>
	</div>
<br />

	<div align="center">
<table border="0" cellspacing="1" width="100%" class="border" >
	<tr>
		<td class="tcat" colspan="3">{$lang['friend_requests_sent_to_you_by_the_members']}</td>
		</tr>
{Des::while}{FriendsApprovalList}
	<tr>
	<td class="row1" align="center">
       {$lang['new_friend_request_sent_by']}
       <b>{$FriendsApprovalList['username']}</b>
		</td>
		<td class="row1" align="center">
      		   <form name="info" method="post" action="index.php?page=usercp&amp;options=1&amp;friends=1&amp;approval=1&amp;id={$FriendsApprovalList['id']}&amp;username={$FriendsApprovalList['username']}">
		<input name="send" type="submit" value="{$lang['i_agree_to_the_request_of_friendship']}
 {$FriendsApprovalList['username']}" />
		</form>
       </td>
		<td class="row1" align="center">
		   <form name="info" method="post" action="index.php?page=usercp&amp;options=1&amp;friends=1&amp;del=1&amp;id={$FriendsApprovalList['id']}">
		<input name="send" type="submit" value="{$lang['no_agree_to_the_request_of_friendship']}
 {$FriendsApprovalList['username']}" />
		</form>
       </td>
	</tr>
{if {$No_Approval_Friends}}
	<tr>
	<td class="row1" align="center" colspan="2">
       <b>{$lang['does_not_have_friend_requests']}</b>
		</td>
	</tr>
{/if}
	{/Des::while}
</table>
	</div>

		</td>
	</tr>
</table>


<br /><br />
<br />