A tumblelog CMS built on AJAX, PHP and MySQL.

template_add_video.htm 1.3KB

123456789101112131415161718192021222324252627282930313233343536
  1. <div>
  2. <label for="url">Video URL</label>
  3. <br /><input class="txt" type="text" name="url" id="url" value="{editUrl}" size="80" />
  4. <div style="color: rgb(136, 136, 136); margin-bottom: 5px; font-size: 11px; font-weight: bold;">
  5. This is the URL from the video sites YouTube, Vimeo, Yahoo, Daily Motion <br />
  6. or even an Slide Share Presentation.<br />
  7. <span style="font-size: 10px; font-weight: normal;">(ie. http://youtube.com/watch?v=HcBFLN9cli0)</span>
  8. </div>
  9. </div>
  10. <div>
  11. <label for="description">Caption <span class="option">(optional)</span></label><br />
  12. <textarea rows="12" cols="84" name="description" id="description" tabindex="2">{editBody}</textarea>
  13. </div>
  14. <input type="hidden" name="title" id="title" value="" />
  15. <input type="hidden" name="type" id="type" value="{type}" />
  16. <input type="hidden" name="date" id="date" value="{date}" />
  17. <input type="hidden" name="id_user" id="id_user" value="{id_user}" />
  18. <script>
  19. $("#autosave").validate({
  20. rules: {
  21. url: {
  22. required: true,
  23. url: true
  24. }
  25. },
  26. errorElement: "span",
  27. errorClass: "validate_span",
  28. errorPlacement: function(label, element) {
  29. label.prependTo(element.prev())
  30. }
  31. });
  32. </script>