A tumblelog CMS built on AJAX, PHP and MySQL.

template_add_quote.htm 894B

1234567891011121314151617181920212223242526272829
  1. <div>
  2. <label for="description">Quote</label>
  3. <br /><textarea rows="12" cols="84" name="description" id="description">{editBody}</textarea>
  4. </div>
  5. <div>
  6. <label for="title">Source <span class="option">(optional)</span></label>
  7. <br /><input class="txt" type="text" name="title" id="title" value="{editTitle}" size="80" />
  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>