1. #!/usr/bin/python
  2. from os import listdir
  3. print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\
  4. "http://www.w3.org/TR/html4/strict.dtd">'
  5. print '<html lang="en-US"><head>'
  6. print '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'
  7. print '<link rel="stylesheet" type="text/css" href="web.css">'
  8. print '<title>noob2admin - videos page</title>'
  9. print '</head><body>'
  10. print ''
  11. print '<div id=header>'
  12. print '<img src="images/500test.png" alt="500test.png">'
  13. print '</div>'
  14. print ''
  15. print '<div id=content><ul>'
  16. for filename in listdir('../videos'):
  17. print '<li><a href="videos/{0}">{0}</a></li>'.format(filename)
  18. print '</ul></div>'
  19. print ''
  20. print '</body></html>'
Comments powered by Disqus