KXStudio Website https://kx.studio/
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.

edit_form.php 2.6KB

9 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <form id="comment_edit_<?php echo $comment->id; ?>" class="inline_edit comment_edit" action="<?php echo $config->chyrp_url."/admin/?action=update_comment"; ?>" method="post" accept-charset="utf-8">
  2. <p>
  3. <label for="body"><?php echo __("Body", "comments"); ?></label>
  4. <textarea name="body" rows="8" cols="40" class="wide"><?php echo fix($comment->body, false, false); ?></textarea>
  5. </p>
  6. <a id="more_options_link_<?php echo $comment->id; ?>" href="javascript:void(0)" class="more_options_link"><?php echo __("More Options &darr;"); ?></a>
  7. <div id="more_options_<?php echo $comment->id; ?>" class="more_options" style="display: none">
  8. <p>
  9. <label for="author"><?php echo __("Author"); ?></label>
  10. <input class="text" type="text" name="author" value="<?php echo fix($comment->author); ?>" id="author" />
  11. </p>
  12. <p>
  13. <label for="author_url"><?php echo __("Author URL", "comments"); ?></label>
  14. <input class="text" type="text" name="author_url" value="<?php echo fix($comment->author_url); ?>" id="author_url" />
  15. </p>
  16. <p>
  17. <label for="author_email"><?php echo __("Author E-Mail", "comments"); ?></label>
  18. <input class="text" type="text" name="author_email" value="<?php echo fix($comment->author_email); ?>" id="author_email" />
  19. </p>
  20. <p>
  21. <label for="status"><?php echo __("Status"); ?></label>
  22. <select name="status" id="status">
  23. <option value="approved"<?php selected($comment->status, "approved"); ?>><?php echo __("Approved", "comments"); ?></option>
  24. <option value="denied"<?php selected($comment->status, "denied"); ?>><?php echo __("Denied", "comments"); ?></option>
  25. <option value="spam"<?php selected($comment->status, "spam"); ?>><?php echo __("Spam", "comments"); ?></option>
  26. </select>
  27. </p>
  28. <p>
  29. <label for="created_at"><?php echo __("Timestamp"); ?></label>
  30. <input class="text" type="text" name="created_at" value="<?php echo when("F jS, Y H:i:s", $comment->created_at); ?>" id="created_at" />
  31. </p>
  32. <div class="clear"></div>
  33. </div>
  34. <br />
  35. <input type="hidden" name="id" value="<?php echo fix($comment->id); ?>" id="id" />
  36. <input type="hidden" name="ajax" value="true" id="ajax" />
  37. <div class="buttons">
  38. <input type="submit" value="<?php echo __("Update"); ?>" accesskey="s" /> <?php echo __("or"); ?>
  39. <a href="javascript:void(0)" id="comment_cancel_edit_<?php echo $comment->id; ?>" class="cancel"><?php echo __("Cancel"); ?></a>
  40. </div>
  41. </form>