<?php /* Smarty version Smarty-3.1.8, created on 2012-05-12 19:47:24
         compiled from "./templates/friendsmanagement-butterfly.tpl" */ ?>
<?php /*%%SmartyHeaderCode:13965106604faea22c195551-03126017%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '69428821c74e94a3e4953b8e9d26201ce2de1949' => 
    array (
      0 => './templates/friendsmanagement-butterfly.tpl',
      1 => 1336330785,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '13965106604faea22c195551-03126017',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'lang' => 0,
    'config' => 0,
    'friends' => 0,
    'i' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4faea22c1ef174_95141057',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4faea22c1ef174_95141057')) {function content_4faea22c1ef174_95141057($_smarty_tpl) {?><?php  $_config = new Smarty_Internal_Config("lang/".($_smarty_tpl->tpl_vars['lang']->value).".lang", $_smarty_tpl->smarty, $_smarty_tpl);$_config->loadConfigVars(null, 'local'); ?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="<?php echo $_smarty_tpl->tpl_vars['config']->value->url_site;?>
/web-gallery/js/jquery.dataTables.min.js" type="text/javascript"></script>
		<script type="text/javascript" charset="utf-8">
			$.noConflict();
			jQuery(document).ready(function() {
				jQuery('#example').dataTable({
					 "oLanguage": {
						"sSearch": "<?php echo $_smarty_tpl->getConfigVariable('FindAFriend');?>
",
						"sLengthMenu": "<?php echo $_smarty_tpl->getConfigVariable('See');?>
 _MENU_ <?php echo $_smarty_tpl->getConfigVariable('friends');?>
",
						"sEmptyTable": "<?php echo $_smarty_tpl->getConfigVariable('NoFriends');?>
",
						"sInfo": "",
						"oPaginate": {
        					"sLast": "<?php echo $_smarty_tpl->getConfigVariable('Previous');?>
",
        					"sNext" : "<?php echo $_smarty_tpl->getConfigVariable('Next');?>
",
        					"sPrevious": "<?php echo $_smarty_tpl->getConfigVariable('Previous');?>
",
        					"sInfo": ""
      					}
				}
				});
			} );
			
			function deleteFriends(id){
			
				jQuery.get('ajax/friends_delete.php?id='+id+'',function(data){ jQuery('#remove-friend-button-'+id).fadeOut();  });
				
			
			}
			
		</script>
<style>


.list:hover{
	background: #EFF0FF;
}


.dataTables_filter{
	float:left;
	width: 300px ;
}

.dataTables_filter label{
	padding: 10px 0 ;
}

.dataTables_length{
	float: right;
}

.dataTables_paginate {
	margin: 10px 0 ;
}

	div.paging_two_button a {
		padding: 2px 5px 2px 5px;
		margin: 2px;
		background: #F6F6F6 -webkit-gradient(linear, 0% 0%, 0% 100%, from(white), to(#EFEFEF));
	border: 1px solid #CCC;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	color: #646566;
	text-decoration: none;
	cursor: pointer;
	height: 2.0833em
		}
	div.paging_two_button a:hover, div.digg a:active {
		-webkit-box-shadow: #999 0px 0px 3px;
	background: #F3F3F3 -webkit-gradient(linear, 0% 0%, 0% 100%, from(white), to(#EBEBEB));
	color: #FC6204;
	border-color: #999;
	outline: 0px;
	
	}
	
	tr:nth-child(odd)		{ background-color:#eee; }
tr:nth-child(even)		{ background-color:#fff; }
</style>
<div id="container">
	<div id="content" style="position: relative" class="clear fix">
    <div>

<div class="content">
<div class="habblet-container" style="float:left; width:210px;">
<div class="cbb settings">

<h2 class="title"><?php echo $_smarty_tpl->getConfigVariable('AccountSettings');?>
</h2>
<div class="box-content">
            <div id="settingsNavigation">
            <ul>

                <li class="slected"><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value->url_site;?>
/profile.php?page=index"><?php echo $_smarty_tpl->getConfigVariable('Motto');?>
</a>
                </li>

				

                <li class=""><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value->url_site;?>
/profile.php?page=password"><?php echo $_smarty_tpl->getConfigVariable('Password');?>
</a>
                </li>
				
                <li ><a href="<?php echo $_smarty_tpl->tpl_vars['config']->value->url_site;?>
/newusername.php">Changement de Pseudo</a>
                </li>

                <li class="selected" ><?php echo $_smarty_tpl->getConfigVariable('FriendManagement');?>

                </li>

            </ul>
            </div>
</div></div>
</div>
    <div class="habblet-container " style="float:left; width: 560px;">
        <div class="cbb clearfix settings">

            <h2 class="title"><?php echo $_smarty_tpl->getConfigVariable('FriendManagement');?>
</h2>
            <div class="box-content">
            
<div id="category-view" class="clearfix">
<table cellpadding="0" cellspacing="0" border="0" class="display" id="example" width="100%">
	<thead>
		<tr style="background-color: #4AB501; color:white ;">
			<th style="height: 20px; padding:0 5px;"><?php echo $_smarty_tpl->getConfigVariable('Name');?>
</th>
			<th><?php echo $_smarty_tpl->getConfigVariable('LastConnected');?>
</th>
			<th><?php echo $_smarty_tpl->getConfigVariable('Remove');?>
</th>
		</tr>
	</thead>
	<tbody>

<?php  $_smarty_tpl->tpl_vars['i'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['i']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['friends']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['i']->key => $_smarty_tpl->tpl_vars['i']->value){
$_smarty_tpl->tpl_vars['i']->_loop = true;
?>
		<tr class="list"  style="height:15px;" id="remove-friend-button-<?php echo $_smarty_tpl->tpl_vars['i']->value['id'];?>
">
			<td  style="padding-left:5px;"><?php echo $_smarty_tpl->tpl_vars['i']->value['username'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['i']->value['last_online'];?>
</td>
		<td class="friend-remove"><div  onclick="deleteFriends(<?php echo $_smarty_tpl->tpl_vars['i']->value['id'];?>
)" style="margin-left:10px; cursor: pointer;" class="friendmanagement-small-icons friendmanagement-remove remove-friend">X</div></td>

		</tr>
		<?php } ?>
		
			</tbody>
	
</table>
<script type="text/javascript">
$("profileForm-submit").show();
</script>

</div>
</div>
</div>
</div>
</div><?php }} ?>