footer_search.php
上传用户:gzy2002
上传日期:2010-02-11
资源大小:1785k
文件大小:4k
- <?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: footer_search.php,v $
- // | $Date: 2004/02/10 01:34:28 $
- // | $Revision: 1.23 $
- // +-------------------------------------------------------------+
- // | File Details:
- // | - Ticket search footer.
- // +-------------------------------------------------------------+
- error_reporting(E_ALL ^ E_NOTICE);
- include('./../global.php');
- reload_index_nourl();
- # $Id: footer_search.php,v 1.23 2004/02/10 01:34:28 deskpro Exp $
- footer_html(NULL, $_REQUEST['searchid'], $_REQUEST['ticketid']);
- ?>
- <table cellspacing="0" cellpadding="2">
- <tr>
- <form action="./../tickets/ticketsearch.php" method="post" target="center">
- <td>
- <b>Awaiting</b>
- </td><td>
- <b>Status</b>
- </td><td>
- <b>Category</b>
- </td><td>
- <b>Priority</b>
- </td><td>
- <b>Tech Owner</b>
- </td>
- </tr>
- <td valign="top">
- <table cellspacing="0" cellpadding="0">
- <tr>
- <td><input type="checkbox" id="awaiting_tech" name="awaiting_tech" value="1" checked></td><td><label for="awaiting_tech">Awaiting Tech</label></td>
- </tr><tr>
- <td><input type="checkbox" id="awaiting_user" name="awaiting_user" value="1"></td><td><label for="awaiting_user">Awaiting User</label></td>
- </tr>
- </table>
- </td>
- <td valign="top">
- <table cellspacing="0" cellpadding="0">
- <tr>
- <td><input type="checkbox" name="unresolved" value="1" checked></td><td>Unresolved</td>
- </tr><tr>
- <td><input type="checkbox" name="resolved" value="1"></td><td>Resolved</td>
- </tr>
- </table>
- </td>
- <td valign="top">
- <table cellspacing="0" cellpadding="0">
- <tr>
- <?
- $categories[-2] = 'Any';
- $priority[-2] = 'Any';
- $techname[-2] = 'Any';
- $categories[-1] = 'None';
- $priority[-1] = 'None';
- $techname[-1] = 'Unassigned';
- if ($user['cats_user']) {
- $categories[-3] = 'Your Categories';
- }
- // category information
- $db->query("SELECT * FROM ticket_cat");
- while ($cat = $db->row_array()) {
- $categories[$cat['id']] = $cat['name'];
- }
- $bit = form_select('category', $categories, NULL, NULL, NULL, 0, 4);
- echo "
- <td colspan="2">$bit</td>
- ";
- ?>
- <td></td>
- </tr>
- </table>
- </td>
- <td valign="top">
- <table cellspacing="0" cellpadding="0">
- <tr>
- <?
- // priority information
- $db->query("SELECT * FROM ticket_pri");
- while ($pri = $db->row_array()) {
- $priority[$pri['id']] = $pri['name'];
- }
- $bit = form_select('priority', $priority, NULL, NULL, NULL, 0, 4);
- echo "
- <td colspan="2">$bit</td>
- ";
- ?>
- <td></td>
- </tr>
- </table>
- </td>
- <td valign="top">
- <table cellspacing="0" cellpadding="0">
- <tr>
- <?
- // tech owner
- $db->query("SELECT * FROM tech");
- while ($tech = $db->row_array()) {
- $techname[$tech['id']] = $tech['username'];
- }
- $bit = form_select('tech', $techname, NULL, $user['id'], NULL, 0, 4);
- echo "
- <td colspan="2">$bit</td>
- ";
- ?>
- <td></td>
- </tr>
- </table>
- </td>
- <td valign="top">
- <table cellspacing="0" cellpadding="0">
- <tr>
- <td><input type="hidden" name="searchtype" value="simple"><input type="hidden" name="do" value="search"><input type="submit" name="Find Tickets" value="Find Tickets"></td></tr>
- </table>