A tumblelog CMS built on AJAX, PHP and MySQL.

template_add_post.htm 914B

123456789101112131415161718192021222324252627
  1. <div>
  2. <label for="title" style="display:block;">Title <span class="option">(optional)</span></label>
  3. <br /><input class="txt" type="text" name="title" id="title" value="{editTitle}" size="80" />
  4. </div>
  5. <div>
  6. <label for="description" style="display:block;">Body</label>
  7. <textarea rows="12" cols="84" name="description" id="description">{editBody}</textarea>
  8. </div>
  9. <input type="hidden" name="url" id="url" value="" />
  10. <input type="hidden" name="type" id="type" value="{type}" />
  11. <input type="hidden" name="date" id="date" value="{date}" />
  12. <input type="hidden" name="id_user" id="id_user" value="{id_user}" />
  13. <script>
  14. $("#autosave").validate({
  15. rules: {
  16. description: "required"
  17. },
  18. errorElement: "span",
  19. errorClass: "validate_span",
  20. errorPlacement: function(label, element) {
  21. label.prependTo(element.prev())
  22. }
  23. });
  24. </script>