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

电子政务应用

开发平台:

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: footer_search.php,v $
  15. // | $Date: 2004/02/10 01:34:28 $
  16. // | $Revision: 1.23 $
  17. // +-------------------------------------------------------------+
  18. // | File Details:
  19. // | - Ticket search footer.
  20. // +-------------------------------------------------------------+
  21. error_reporting(E_ALL ^ E_NOTICE);
  22. include('./../global.php');
  23. reload_index_nourl();
  24. # $Id: footer_search.php,v 1.23 2004/02/10 01:34:28 deskpro Exp $
  25. footer_html(NULL, $_REQUEST['searchid'], $_REQUEST['ticketid']);
  26. ?>
  27. <table cellspacing="0" cellpadding="2">
  28. <tr>
  29. <form action="./../tickets/ticketsearch.php" method="post" target="center">
  30. <td>
  31. <b>Awaiting</b>
  32. </td><td>
  33. <b>Status</b>
  34. </td><td>
  35. <b>Category</b>
  36. </td><td>
  37. <b>Priority</b>
  38. </td><td>
  39. <b>Tech Owner</b>
  40. </td>
  41. </tr>
  42. <td valign="top">
  43. <table cellspacing="0" cellpadding="0">
  44. <tr>
  45. <td><input type="checkbox" id="awaiting_tech" name="awaiting_tech" value="1" checked></td><td><label for="awaiting_tech">Awaiting Tech</label></td>
  46. </tr><tr>
  47. <td><input type="checkbox" id="awaiting_user" name="awaiting_user" value="1"></td><td><label for="awaiting_user">Awaiting User</label></td>
  48. </tr>
  49. </table>
  50. </td>
  51. <td valign="top">
  52. <table cellspacing="0" cellpadding="0">
  53. <tr>
  54. <td><input type="checkbox" name="unresolved" value="1" checked></td><td>Unresolved</td>
  55. </tr><tr>
  56. <td><input type="checkbox" name="resolved" value="1"></td><td>Resolved</td>
  57. </tr>
  58. </table>
  59. </td>
  60. <td valign="top">
  61. <table cellspacing="0" cellpadding="0">
  62. <tr>
  63. <?
  64. $categories[-2] = 'Any';
  65. $priority[-2] = 'Any';
  66. $techname[-2] = 'Any';
  67. $categories[-1] = 'None';
  68. $priority[-1] = 'None';
  69. $techname[-1] = 'Unassigned';
  70. if ($user['cats_user']) {
  71. $categories[-3] = 'Your Categories';
  72. }
  73. // category information
  74. $db->query("SELECT * FROM ticket_cat");
  75. while ($cat = $db->row_array()) {
  76. $categories[$cat['id']] = $cat['name'];
  77. }
  78. $bit = form_select('category', $categories, NULL, NULL, NULL, 0, 4);
  79. echo "
  80. <td colspan="2">$bit</td>
  81. ";
  82. ?>
  83. <td></td>
  84. </tr>
  85. </table>
  86. </td>
  87. <td valign="top">
  88. <table cellspacing="0" cellpadding="0">
  89. <tr>
  90. <?
  91. // priority information
  92. $db->query("SELECT * FROM ticket_pri");
  93. while ($pri = $db->row_array()) {
  94. $priority[$pri['id']] = $pri['name'];
  95. }
  96. $bit = form_select('priority', $priority, NULL, NULL, NULL, 0, 4);
  97. echo "
  98. <td colspan="2">$bit</td>
  99. ";
  100. ?>
  101. <td></td>
  102. </tr>
  103. </table>
  104. </td>
  105. <td valign="top">
  106. <table cellspacing="0" cellpadding="0">
  107. <tr>
  108. <?
  109. // tech owner
  110. $db->query("SELECT * FROM tech");
  111. while ($tech = $db->row_array()) {
  112. $techname[$tech['id']] = $tech['username'];
  113. }
  114. $bit = form_select('tech', $techname, NULL, $user['id'], NULL, 0, 4);
  115. echo "
  116. <td colspan="2">$bit</td>
  117. ";
  118. ?>
  119. <td></td>
  120. </tr>
  121. </table>
  122. </td>
  123. <td valign="top">
  124. <table cellspacing="0" cellpadding="0">
  125. <tr>
  126. <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>
  127. </table>