Unsupported scripts and control panel web app for a hosting company
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

listsearch.php 1.4KB

1234567891011121314151617181920212223242526272829303132333435
  1. <div class="block">
  2. <h2>Your saved searches</h2>
  3. <table class="innerblock">
  4. <tr><th>Name</th><th>Actions</th></tr>
  5. <?php
  6. if (count($savedsearches) == 0) {
  7. echo '<tr><td style="text-align: center; font-style: italic;" colspan="3">No Results Found</td></tr>';
  8. } else {
  9. foreach($savedsearches as $search) {
  10. echo '<tr><td><a href="'.CP_PATH.'search/'.$search['isea_id'].'" title="'.$search['isea_name'].'">'.$search['isea_name'].'</a></td>
  11. <td><a href="'.CP_PATH.'searches/edit/'.$search['isea_id'].'" title="Edit">Edit</a> |
  12. <a href="'.CP_PATH.'searches/delete/'.$search['isea_id'].'" title="Delete">Delete</a></td></tr>';
  13. }
  14. }
  15. ?>
  16. </table>
  17. </div>
  18. <div class="block">
  19. <h2>Global saved searches</h2>
  20. <table class="innerblock">
  21. <tr><th>Name</th><th>Actions</th></tr>
  22. <?php
  23. if (count($globalsavedsearches) == 0) {
  24. echo '<tr><td style="text-align: center; font-style: italic;" colspan="3">No Results Found</td></tr>';
  25. } else {
  26. foreach($globalsavedsearches as $search) {
  27. echo '<tr><td><a href="'.CP_PATH.'search/'.$search['isea_id'].'" title="'.$search['isea_name'].'">'.$search['isea_name'].'</a></td>
  28. <td><a href="'.CP_PATH.'searches/edit/'.$search['isea_id'].'" title="Edit">Edit</a> |
  29. <a href="'.CP_PATH.'searches/delete/'.$search['isea_id'].'" title="Delete">Delete</a></td></tr>';
  30. }
  31. }
  32. ?>
  33. </table>
  34. </div>