contacts.inc.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. $language_file = array('registration','messages','userInfo','admin');
  3. require ('../inc/global.inc.php');
  4. require_once (api_get_path(CONFIGURATION_PATH).'profile.conf.php');
  5. include_once (api_get_path(LIBRARY_PATH).'fileManage.lib.php');
  6. include_once (api_get_path(LIBRARY_PATH).'fileUpload.lib.php');
  7. include_once (api_get_path(LIBRARY_PATH).'image.lib.php');
  8. require_once (api_get_path(LIBRARY_PATH).'usermanager.lib.php');
  9. require_once '../inc/lib/social.lib.php';
  10. $this_section = SECTION_MYPROFILE;
  11. $_SESSION['this_section']=$this_section;
  12. //$list_path_friends=array();
  13. $request=api_is_xml_http_request();
  14. $language_variable=($request===true) ? api_convert_encoding(get_lang('Contacts'),'UTF-8',$charset) : get_lang('Contacts');
  15. //api_display_tool_title($language_variable);
  16. $user_id=api_get_user_id();
  17. $image_path = UserManager::get_user_picture_path_by_id ($user_id,'web',false,true);
  18. ?>
  19. <div align="center" >
  20. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="social-content-table">
  21. <tr>
  22. <td width="100%" height="20" valign="top">
  23. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  24. <tr>
  25. <td width="100%" height="20" valign="top"><?php
  26. echo '&nbsp;&nbsp;Dokeos&nbsp;&nbsp;-&nbsp;&nbsp;';
  27. $user_id=api_get_user_id();
  28. $user_info=api_get_user_info($user_id);
  29. echo $name_user=api_convert_encoding($user_info['firstName'].' '.$user_info['lastName'],'UTF-8',$charset) ;
  30. ?></td>
  31. </tr>
  32. </table>
  33. </td>
  34. </tr>
  35. <tr>
  36. <td height="25" valign="top">
  37. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="social-subtitle-search">
  38. <tr>
  39. <td width="100%" height="25" valign="top" class="social-align-box">&nbsp;&nbsp;<?php echo api_convert_encoding(get_lang('Search'),'UTF-8',$charset) .'&nbsp;&nbsp; : &nbsp;&nbsp;'; ?><input class="social-search-image" type="text" class="search-image" id="id_search_image" name="id_search_image" value="" onkeyup="search_image_social(this)" /></td>
  40. </tr>
  41. </table></td>
  42. </tr>
  43. <tr>
  44. <td height="175" valign="top">
  45. <table width="100%" border="0" cellpadding="0" cellspacing="0" >
  46. <tr>
  47. <td width="100%" height="22" valign="top">
  48. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="social-align-box">
  49. <tr>
  50. <td width="100%" height="22" valign="top">&nbsp;&nbsp;<?php echo api_convert_encoding(get_lang('ContactsList'),'UTF-8',$charset); ?></td>
  51. </tr>
  52. </table></td>
  53. </tr>
  54. <tr>
  55. <td height="153" valign="top">
  56. <?php
  57. echo '<div id="div_content_table">';
  58. require_once 'show_search_image.inc.php';
  59. echo '</div>';
  60. ?>
  61. </td>
  62. </tr>
  63. </table></td>
  64. </tr>
  65. </table>
  66. </div>