A tumblelog CMS built on AJAX, PHP and MySQL.

template_add_conversation.htm 1.2KB

1234567891011121314151617181920212223242526272829303132333435
  1. <div>
  2. <label for="title">Title <span class="option">(optional)</span></label><br />
  3. <input class="txt" type="text" name="title" id="title" value="{editTitle}" size="80" />
  4. </div>
  5. <div>
  6. <label for="description">Conversation</label>
  7. <div style="color: rgb(136, 136, 136); margin-bottom: 10px; font-size: 10px;">
  8. <span style="font-weight: bold;">Example</span><br>
  9. <span style="font-style: italic;">
  10. Geek: Wow an open source tumblelog CMS!!.<br>
  11. Normal: Tumble... what??<br>
  12. Geek: Read the wikipedia!!
  13. </span>
  14. </div>
  15. <textarea rows="12" cols="84" name="description" id="description">{editBody}</textarea>
  16. </div>
  17. <input type="hidden" name="url" id="url" value="" />
  18. <input type="hidden" name="type" id="type" value="{type}" />
  19. <input type="hidden" name="date" id="date" value="{date}" />
  20. <input type="hidden" name="id_user" id="id_user" value="{id_user}" />
  21. <script>
  22. $("#autosave").validate({
  23. rules: {
  24. description: "required"
  25. },
  26. errorElement: "span",
  27. errorClass: "validate_span",
  28. errorPlacement: function(label, element) {
  29. label.prependTo(element.parent().children("label"))
  30. }
  31. });
  32. </script>