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.

deletecategory.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. if ($data[0] == 0) {
  3. ?>
  4. <div class="block">
  5. <h2>Delete Category :: Confirmation</h2>
  6. <div class="innerblock">
  7. Are you sure you want to delete category #<?php echo $data['icat_id']; ?> (<?php echo $data['icat_name']; ?>)?
  8. <form action="<?php $_SERVER['REQUEST_URI']; ?>" method="post"><input type="submit" name="confirm" value="Yes" /></form>
  9. </div>
  10. </div>
  11. <?php
  12. } else {
  13. ?>
  14. <div class="block">
  15. <h2>Unable to delete category</h2>
  16. <div class="innerblock bottomdiv">
  17. You cannot delete a category which has active issues, please alter the issues below before proceeding.
  18. </div>
  19. <table class="innerblock">
  20. <tr>
  21. <th>ID</th><th>Title</th><th>Actions</th>
  22. </tr>
  23. <?php
  24. $i = -1;
  25. while($data = mysql_fetch_assoc($res)) {
  26. $i++;
  27. ?>
  28. <tr <?php echo ($i % 2 == 0 ? 'class="even"':'class="odd"'); ?>>
  29. <td><?php echo $data['i_id']; ?></td>
  30. <td><?php echo $data['i_title']; ?></td>
  31. <td><a href="<?php echo CP_PATH.'editissue/'.$data['i_id']; ?>" title="Edit">Edit</a> | <a href="<?php echo CP_PATH.'deleteissue/'.$data['i_id']; ?>" title="Delete">Delete</a></td>
  32. </tr>
  33. <?php
  34. }
  35. ?>
  36. </table>
  37. </div>
  38. <?php
  39. }
  40. ?>