ticket_manager.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <div align='center'>
  2. <table width='100%' border='0' cellpadding='0' cellspacing='2'>
  3. <tr class='border'>
  4. <td align=\"left\">
  5. <br>
  6. <form method='post' name='ifrm' action=''>
  7. <div align='center'>
  8. <table width='100%' border='0' cellpadding='6' cellspacing='0'>
  9. <tr>
  10. <td colspan='2'>
  11. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  12. <tr>
  13. <td align='left' colspan="2">
  14. <strong>Ticket Module Manager</strong><br>
  15. </td>
  16. </tr>
  17. </table>
  18. </td>
  19. </tr>
  20. <tr>
  21. <td colspan="2">
  22. <table width='100%' border="0" cellpadding="0" cellspacing="0">
  23. <tr><td width="47%" valign="top">
  24. <table width='100%' border="0" cellpadding="0" cellspacing="0">
  25. <!-- <tr><td colspan='2'>Queues</td></tr> -->
  26. <tr><th>ID</th><th>Queue Name</th><th>Queue Email</th><td></td></tr>
  27. <?php
  28. $row_style[0] = 'row_style0';
  29. $row_style[1] = 'row_style1';
  30. $rs = 0;
  31. foreach ($queues as $queue) {
  32. if ($rs == 1) { $rs = 0; } else { $rs = 1; }
  33. ?>
  34. <form method='post' name='ifrm' action=''>
  35. <tr>
  36. <td width="10%" class='<?php echo $row_style[$rs]; ?>' align="center"><?php echo $queue['queue_id']; ?>
  37. <input type="hidden" name="queue_id" value="<?php echo $queue['queue_id']; ?>"/>
  38. </td>
  39. <td width="20%" class='<?php echo $row_style[$rs]; ?>' align='left' nowrap='nowrap'>
  40. <input class='formfld' style="width:100%" type="text" name="queue_name" value="<?php echo $queue['queue_name']; ?>"/>
  41. </td>
  42. <td width="70%" class='<?php echo $row_style[$rs]; ?>' align='left'>
  43. <input class='formfld' style="width:100%" type="text" name="queue_email" value="<?php echo $queue['queue_email']; ?>"/>
  44. </td>
  45. <td align='left' nowrap='nowrap'>
  46. <input type="submit" value="update">
  47. </td>
  48. </tr>
  49. </form>
  50. <?php }
  51. if ($rs == 1) { $rs = 0; } else { $rs = 1; }
  52. ?>
  53. <form method='post' name='ifrm' action=''>
  54. <tr>
  55. <td width="10%" class='<?php echo $row_style[$rs]; ?>' align="center" nowrap='nowrap'>
  56. </td>
  57. <td width="20%" class='<?php echo $row_style[$rs]; ?>' align='left' nowrap='nowrap'>
  58. <input class='formfld' style="width:100%" type="text" name="queue_name" />
  59. </td>
  60. <td width="70%" class='<?php echo $row_style[$rs]; ?>' align='left'>
  61. <input class='formfld' style="width:100%" type="text" name="queue_email" />
  62. </td>
  63. <td align='left' nowrap='nowrap'>
  64. <input type="submit" value="Add">
  65. </td>
  66. </tr>
  67. </form>
  68. </table>
  69. </td>
  70. </td>
  71. <td width="6%">
  72. </td>
  73. <td width="47%" valign="top">
  74. <table width='100%' border="0" cellpadding="0" cellspacing="0">
  75. <!-- <tr><th colspan='2'>Statuses</th></tr> -->
  76. <tr><th>Status ID</th><th>Status Name</th><td></td></tr>
  77. <?php
  78. foreach ($statuses as $status) {
  79. if ($rs == 1) { $rs = 0; } else { $rs = 1; }
  80. ?>
  81. <form method='post' name='ifrm' action=''>
  82. <tr>
  83. <td class='<?php echo $row_style[$rs]; ?>' align='left' nowrap='nowrap' width="20%">
  84. <input type="hidden" name="status_id" value="<?php echo $status['status_id']; ?>"/>
  85. <?php echo $status['status_id']; ?>
  86. </td>
  87. <td class='<?php echo $row_style[$rs]; ?>' align='left'>
  88. <input class='formfld' type="text" style="width:100%" name="status_name" value="<?php echo $status['status_name']; ?>"/>
  89. </td>
  90. <td align='left' nowrap='nowrap'>
  91. <input type="submit" value="update">
  92. </td>
  93. </tr>
  94. </form>
  95. <?php }
  96. if ($rs == 1) { $rs = 0; } else { $rs = 1; }
  97. ?>
  98. <form method='post' name='ifrm' action=''>
  99. <tr>
  100. <td class='<?php echo $row_style[$rs]; ?>' align='left' nowrap='nowrap' width="20%">
  101. </td>
  102. <td class='<?php echo $row_style[$rs]; ?>' align='left'>
  103. <input class='formfld' type="text" style="width:100%" name="status_name"/>
  104. </td>
  105. <td align='left' nowrap='nowrap'>
  106. <input type="submit" value="Add">
  107. </td>
  108. </tr>
  109. </form>
  110. </table>
  111. </td>
  112. </table>
  113. </td>
  114. </table></form> </td> </tr></table></div>