main.html 899 B

123456789101112131415161718192021222324
  1. <div id="shortURLForm">
  2. <div id="topmatter">
  3. $MESSAGES$$ERRORS$
  4. </div>
  5. <h1> $pageTitle$ </h1>
  6. <form name="shortURLForm" method="post" action="$SELF$">
  7. <p>Target URL: <span class="small"> Target URL must be a complete URL, e.g., <b>http://bw.org/</b> </span> </p>
  8. <input type="text" name="targetURL" value="$targetURL$"><br/>
  9. <p>Short URL token: <span class="small"> Short URL token is the token only, e.g., <b>bw</b> </span></p>
  10. <input type="text" name="shortURL" value="$shortURL$" /><br/>
  11. <input class="formSubmit" type="submit" value="Add Record" />
  12. &nbsp;&nbsp;<input class="formSubmit" type="submit" name="generate" value="Generate Hash" />
  13. $hiddens$
  14. </form>
  15. <div id="reclist">
  16. <h1> URLs in the database </h1>
  17. $CONTENT$
  18. </div>
  19. </div>
  20. <!-- set the focus to the testimonial field -->
  21. <script language="javascript">
  22. document.shortURLForm.targetURL.focus();
  23. </script>