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.

admin.addannouncement.php 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <form action="<?PHP echo CP_PATH; ?>adminannouncements" method="post">
  2. <div class="block">
  3. <h2>ADMIN: Create message</h2>
  4. <div class="innerblock">
  5. <p class="blurb">
  6. You must preview announcements before submitting. Announcements
  7. will be e-mailed to users who have opted to receive them as soon as the
  8. announcement is submitted.
  9. </p>
  10. <table class="form leftpad">
  11. <tr>
  12. <th>Title</th>
  13. <td><input type="text" name="title" id="title" class="inflat"<?PHP if (isset($_POST['title'])) { echo ' value="'.h($_POST['title']).'"'; } ?>></td>
  14. </tr><tr>
  15. <th>Type</th>
  16. <td><select name="type" class="inflat">
  17. <option value="admin"<?PHP if ($_POST['type'] == 'admin') { echo ' selected="selected"'; } ?>>Admin</option>
  18. <option value="announcement"<?PHP if ($_POST['type'] == 'announcement') { echo ' selected="selected"'; } ?>>Announcement</option>
  19. <option value="information"<?PHP if ($_POST['type'] == 'information') { echo ' selected="selected"'; } ?>>Information</option>
  20. </select></td>
  21. </tr><tr>
  22. <th width="10%">Body</th>
  23. <td><textarea name="body" id="body" class="inflat"><?PHP
  24. if (isset($_POST['body'])) { echo h($_POST['body']); }
  25. ?></textarea></td>
  26. </tr><tr>
  27. <td colspan="2" style="text-align: right;">
  28. <input type="reset" value="Reset">
  29. <?PHP if (defined('MESSAGE_BODY')) { ?>
  30. <input type="submit" name="submit" value="Submit">
  31. <?PHP } else { ?>
  32. <input type="submit" name="preview" value="Preview">
  33. <?PHP } ?>
  34. </td>
  35. <td width="100%">&nbsp;</td>
  36. </tr>
  37. </table>
  38. </div>
  39. </div>
  40. </form>