techs.php
上传用户:gzy2002
上传日期:2010-02-11
资源大小:1785k
文件大小:2k
- <?php
- // +-------------------------------------------------------------+
- // | DeskPRO v [2.0.1 Production]
- // | Copyright (C) 2001 - 2004 Headstart Solutions Limited
- // | Supplied by WTN-WDYL
- // | Nullified by WTN-WDYL
- // | Distribution via WebForum, ForumRU and associated file dumps
- // +-------------------------------------------------------------+
- // | DESKPRO IS NOT FREE SOFTWARE
- // +-------------------------------------------------------------+
- // | License ID : Full Enterprise License =) ...
- // | License Owner : WTN-WDYL Team
- // +-------------------------------------------------------------+
- // | $RCSfile: techs.php,v $
- // | $Date: 2004/02/10 01:34:30 $
- // | $Revision: 1.8 $
- // +-------------------------------------------------------------+
- // | File Details:
- // | - Technician search
- // +-------------------------------------------------------------+
- error_reporting(E_ALL ^ E_NOTICE);
- include "./../global.php";
- // default do
- $_REQUEST['do'] = trim($_REQUEST['do']);
- if (!isset($_REQUEST['do']) or $_REQUEST['do'] == "") {
- $_REQUEST['do'] = "add";
- }
- tech_nav('users');
- if ($settings[cookie_lifespan] > $settings[session_length]) {
- $time = $settings[cookie_lifespan];
- } else {
- $time = $settings[session_length];
- }
- $time = mktime() - $time;
- $db->query("
- SELECT tech.*, tech_session.lastactivity
- FROM tech
- LEFT JOIN tech_session ON (tech_session.techid = tech.id)
- WHERE techzone
- AND id != '$user[id]'
- ");
- while ($result = $db->row_array()) {
- $table[] = array(
- iff($result[id] == $_REQUEST[id], '<b>') . $result[username] . iff($result[id] == $_REQUEST[id], '</b>'),
- iff($result[lastactivity] > $time, 'ONLINE', 'OFFLINE'),
- "<a href="mailto:$result[email]">$result[email]</a>",
- "<a href="./../teamwork/newpm.php?id=$result[id]">Send Private Message</a>"
- );
- }
- table_header('Technicians');
- table_content('', $table);
- table_footer();
- tech_footer();
- ?>