A tumblelog CMS built on AJAX, PHP and MySQL.

template_add_photo.htm 1.7KB

12345678910111213141516171819202122232425262728293031
  1. <input class="txt" type="hidden" name="title" id="title" value="" />
  2. <p>
  3. <div id="photo_upload">
  4. <label for="description">Photo</label>
  5. <input type="file" name="photo" accept="image/gif,image/jpeg,image/jpg,image/png"/>
  6. <div style="font-size:11px; color:#666; margin-top:5px;">
  7. Supports JPEG, GIF and PNG.&nbsp; <strong>Max size is 10 MB.</strong>
  8. </div>
  9. <div style="font-size:11px; color:#666; margin-top:5px;">
  10. <a class="linkFrm" href="#" onclick="document.getElementById('photo_upload').style.display = 'none';
  11. document.getElementById('photo_url').style.display = 'block';
  12. return false;">Use a URL instead</a>
  13. </div>
  14. </div>
  15. <div id="photo_url" style="display:none;">
  16. <label for="description">Photo URL</label>
  17. <input class="input-text" type="text" name="url" id="url" size="80" value="{editUrl}" />
  18. <div style="font-size:11px; color:#666; margin-top:5px;">
  19. The photo URL.</b>
  20. </div>
  21. </div>
  22. </p>
  23. <p>
  24. <label for="description">Caption <span class="option">(optional)</span></label><br />
  25. <textarea rows="12" cols="84" name="description" id="description">{editBody}</textarea>
  26. </p>
  27. <input type="hidden" name="MAX_FILE_SIZE" value="10485760" />
  28. <input type="hidden" name="type" id="type" value="{type}" />
  29. <input type="hidden" name="date" id="date" value="{date}" />
  30. <input type="hidden" name="id_user" id="id_user" value="{id_user}" />