⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 techs.php

📁 本代码是为客户联系管理而做的系统
💻 PHP
字号:
<?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();
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -