contacts.inc.php 2.7 KB

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