newpm.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: newpm.php,v $
- // | $Date: 2004/02/10 01:34:30 $
- // | $Revision: 1.11 $
- // +-------------------------------------------------------------+
- // | File Details:
- // | - New private message
- // +-------------------------------------------------------------+
- error_reporting(E_ALL ^ E_NOTICE);
- include "./../global.php";
- tech_nav('teamwork');
- // default do
- $_REQUEST['do'] = trim($_REQUEST['do']);
- if (!isset($_REQUEST['do']) or $_REQUEST['do'] == "") {
- $_REQUEST['do'] = "send";
- }
- $db->query("SELECT id, username FROM tech WHERE !disabled AND id != '$user[id]' ORDER BY username");
- while ($res = $db->row_array()) {
- $users[$res['id']] = $res['username'];
- }
- $table[] = array('<b>Title</b>', form_input('title'));
- $table[] = array('<b>Send To</b>', form_select('to', $users, '', $_REQUEST[id], '', '', 5));
- $table[] = array('<b>Message</b>', form_textarea('message', 80, 10));
- table_header('Send a New Message', 'pms.php', array('do' => 'add2'));
- table_content('', $table);
- table_footer('Send Message');
- tech_footer();
- ?>