techs.php
上传用户:gzy2002
上传日期:2010-02-11
资源大小:1785k
文件大小:2k
源码类别:

电子政务应用

开发平台:

Java

  1. <?php
  2. // +-------------------------------------------------------------+
  3. // | DeskPRO v [2.0.1 Production]
  4. // | Copyright (C) 2001 - 2004 Headstart Solutions Limited
  5. // | Supplied by WTN-WDYL
  6. // | Nullified by WTN-WDYL
  7. // | Distribution via WebForum, ForumRU and associated file dumps
  8. // +-------------------------------------------------------------+
  9. // | DESKPRO IS NOT FREE SOFTWARE
  10. // +-------------------------------------------------------------+
  11. // | License ID : Full Enterprise License =) ...
  12. // | License Owner : WTN-WDYL Team
  13. // +-------------------------------------------------------------+
  14. // | $RCSfile: techs.php,v $
  15. // | $Date: 2004/02/10 01:34:30 $
  16. // | $Revision: 1.8 $
  17. // +-------------------------------------------------------------+
  18. // | File Details:
  19. // | - Technician search
  20. // +-------------------------------------------------------------+
  21. error_reporting(E_ALL ^ E_NOTICE);
  22. include "./../global.php";
  23. // default do
  24. $_REQUEST['do'] = trim($_REQUEST['do']);
  25. if (!isset($_REQUEST['do']) or $_REQUEST['do'] == "") {
  26. $_REQUEST['do'] = "add";
  27. }
  28. tech_nav('users');
  29. if ($settings[cookie_lifespan] > $settings[session_length]) {
  30. $time = $settings[cookie_lifespan];
  31. } else {
  32. $time = $settings[session_length];
  33. }
  34. $time = mktime() - $time;
  35. $db->query("
  36. SELECT tech.*, tech_session.lastactivity
  37. FROM tech
  38. LEFT JOIN tech_session ON (tech_session.techid = tech.id)
  39. WHERE techzone
  40. AND id != '$user[id]'
  41. ");
  42. while ($result = $db->row_array()) {
  43. $table[] = array(
  44. iff($result[id] == $_REQUEST[id], '<b>') . $result[username] . iff($result[id] == $_REQUEST[id], '</b>'), 
  45. iff($result[lastactivity] > $time, 'ONLINE', 'OFFLINE'),
  46. "<a href="mailto:$result[email]">$result[email]</a>",
  47. "<a href="./../teamwork/newpm.php?id=$result[id]">Send Private Message</a>"
  48. );
  49. }
  50. table_header('Technicians');
  51. table_content('', $table);
  52. table_footer();
  53. tech_footer();
  54. ?>