# $Id: html.itcl,v 1.28.2.9 2002/10/15 05:04:28 lightn Exp $ # Modified to remove boxes at the top of the page and replaced # Heading with TiVo logo. # A. O'Connell v1.5 2003/12/06 proc print_html_header_200 { chan contenttype lastmodified } { puts $chan "HTTP/1.0 200 OK" puts $chan [format "Date: %s GMT" [clock format [clock seconds] -format "%a, %d %b %Y %T" -gmt true]] if { $lastmodified != "" } { puts $chan [format "Last-Modified: %s GMT" [clock format $lastmodified -format "%a, %d %b %Y %T" -gmt true]] } puts $chan "Connection: close" puts $chan "Content-Type: $contenttype" puts $chan "" } proc print_html_header_304 { chan } { puts $chan "HTTP/1.0 304 Not Modified" puts $chan "Connection: close" puts $chan "" } proc print_html_header_401 { chan } { puts $chan "HTTP/1.0 401 Authorization Required" puts $chan "WWW-Authenticate: Basic realm=\"TiVo-web\"" puts $chan "Connection: close" puts $chan "" } proc print_html_header_404 { chan } { puts $chan "HTTP/1.0 404 Not Found" puts $chan "Connection: close" puts $chan "Content-Type: text/html; charset=iso-8859-1" puts $chan "
INTERNAL SERVER ERROR" puts $chan "--cut here--" puts $chan $action puts $chan $error puts $chan "--cut here--" puts $chan "" } proc html_start {args} { global url_prefix set title [lindex $args 0] set submenu "" if { [llength $args] > 1 } { set submenu [lindex $args 1] } set ret "\n" append ret "\n" if {$title != ""} { append ret "
$TT_HTTPD::OPTIONS_MENU | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
$submenu |
$cap |
---|