You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
2.3 KiB
64 lines
2.3 KiB
<?php //$id: $
|
|
/* For licensing terms, see /chamilo_license.txt */
|
|
/**
|
|
* @package dokeos.social
|
|
* @author Julio Montoya <gugli100@gmail.com>
|
|
*/
|
|
|
|
$language_file=array('registration','messages','userInfo','admin');
|
|
require_once '../inc/global.inc.php';
|
|
require_once api_get_path(LIBRARY_PATH).'usermanager.lib.php';
|
|
require_once '../inc/lib/social.lib.php';
|
|
$user_friend=(int)$_POST['user_friend'];
|
|
$list_of_options=array();
|
|
$img_user=array();
|
|
$img_info_user=array();
|
|
$list_of_options=SocialManager::show_list_type_friends();
|
|
$path_user=str_replace(array('\\','../','\\0'),array('','',''),$_GET['path_user']);
|
|
$img_user =explode('"',$path_user);
|
|
$number_list=count($list_of_options);
|
|
$user_friend = $user_id = (int)str_replace(array('\\','"'),array('',''),$_GET['id_user']);
|
|
$user_info=api_get_user_info($user_friend);
|
|
$user_friend_relation=SocialManager::get_relation_between_contacts(api_get_user_id(),$user_friend);
|
|
?>
|
|
<input type="hidden" name="user_cod_qualify" id="user_cod_qualify" value="<?php echo $user_friend; ?>"/>
|
|
<table width="600" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td>
|
|
<table width="600" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td width="600" align="left">
|
|
<td width="50%"><br/>
|
|
<img src="<?php echo Security::remove_XSS($img_user[1]); ?>" />
|
|
<?php
|
|
echo '<br /><br />'.$name_user=api_xml_http_response_encode(api_get_person_name($user_info['firstName'], $user_info['lastName']));
|
|
?>
|
|
</td>
|
|
<td width="50%"><div align="left">
|
|
<?php
|
|
for ($k=0;$k<$number_list;$k++) {
|
|
echo '<br />';
|
|
if ($list_of_options[$k]['id']==$user_friend_relation) {
|
|
$check='checked="checked"';
|
|
} else {
|
|
$check='';
|
|
}
|
|
?>
|
|
<input <?php echo $check; ?> style="margin-left:50px" type="radio" class="radio" name="list_type_friend" value="<?php echo api_xml_http_response_encode($list_of_options[$k]['id']); ?>" />
|
|
<?php
|
|
echo api_xml_http_response_encode(get_lang($list_of_options[$k]['title']));
|
|
echo '<br />';
|
|
?>
|
|
<?php
|
|
}
|
|
echo '<br />';
|
|
?>
|
|
<button style="margin-left:50px" type="button" class="save" value="<?php echo api_xml_http_response_encode(get_lang('AttachToGroup')); ?>" onclick="set_qualify_friend()"><?php echo api_xml_http_response_encode(get_lang('AttachToGroup')) ?></button>
|
|
</div></td>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|