Просмотр файла admin_list/user_profile.php

Размер файла: 2.32Kb
  1. <?php
  2. /*
  3. =============================================
  4. Движок: SHCMS Engine
  5. =============================================
  6. Название файла: Профили пользователей
  7. =============================================
  8. Official website: http://shcms.ru
  9. =============================================
  10. */
  11. define('SHCMS', true);
  12. include_once'../system/inc/basic_settings.php';
  13. $shcmsengine['title'] = 'SHCMS Engine Управление пользователями';
  14. include_once'../template/head.php';
  15. registrat();
  16. $adminka ->admin();
  17. $allfield = mysql_result(mysql_query("SELECT COUNT(*) FROM `users`"),0);
  18. $newlist = new Navigation($allfield,10, true);
  19. $user4 = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id`='$user_id'"));
  20. if($user4['team'] < 6)
  21. {
  22. echo 'Ошибка';
  23. header('Refresh: 1; url=/index.php?'.$conservation.'&');
  24. include_once'../template/foot.php';
  25. exit();
  26. }
  27. include_once'secu.php';
  28. $yuser = mysql_query("SELECT * FROM `users` ORDER BY `id` DESC ". $newlist->limit()."");
  29. $users_prof = mysql_fetch_array($yuser);
  30.  
  31. do
  32. {
  33. echo '
  34. <table width="100%" class="userstop">
  35. <thead>
  36. <tr>
  37. <td>ID:</td>
  38. <td>Логин пользователя: </td>
  39. <td align="center">Дата регистрации: </td>
  40. <td align="center">Последнее посещение: </td>
  41. <td align="center">IP адрес: </td>
  42. <td align="center">Изменить: </td>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. <tr>
  47. <td align="center">
  48. '.$users_prof['id'].'
  49. </td>
  50. <td>
  51. <a class="pm_list" href="'.DIR_SHCMS.'change_view.php?id='.$users_prof['id'].'">'.$users_prof['login'].'</a>
  52. </td>
  53.  
  54. <td align="center">'.$timedate->times($users_prof['datereg']).'</td>
  55. <td align="center">'.$timedate->times($users_prof['datelast']).'</td>
  56. <td align="center">'.long2ip($users_prof['ip']).'</td>
  57. <td align="center">
  58. [
  59. <a href="user_edit.php?id='.$users_prof['id'].'">Изм</a>
  60. ]
  61. [
  62. <a href="ban.php?id='.$users_prof['id'].'">Бан</a>
  63. ]
  64. </td>
  65. </tr>
  66. </tbody>
  67. </table>
  68. ';
  69.  
  70. }
  71. while($users_prof = mysql_fetch_array($yuser));
  72. echo '<div class="pages">';
  73. echo $newlist->pagination();
  74. echo '</div>';
  75.  
  76. include_once'../template/foot.php';
  77. ?>