Index: trunk/extensions/CongressLookup/SpecialCongressLookup.php |
— | — | @@ -45,10 +45,21 @@ |
46 | 46 | private function buildPage() { |
47 | 47 | $htmlOut = ''; |
48 | 48 | |
| 49 | + $dir = dirname( __FILE__ ) . '/'; |
| 50 | + |
| 51 | + // Output beginning of the page |
| 52 | + $filename = $dir."includes/pageBegin.html"; |
| 53 | + $handle = fopen( $filename, "r" ); |
| 54 | + $htmlOut .= fread( $handle, filesize( $filename ) ); |
| 55 | + fclose( $handle ); |
| 56 | + |
49 | 57 | if ( $this->zip ) { |
50 | 58 | $htmlOut .= $this->getCongressTable(); |
51 | 59 | } |
52 | 60 | |
| 61 | + // Output end of the page |
| 62 | + $htmlOut .= "\n</body>\n</html>\n"; |
| 63 | + |
53 | 64 | echo $htmlOut; |
54 | 65 | |
55 | 66 | return true; |
Index: trunk/extensions/CongressLookup/includes/pageBegin.html |
— | — | @@ -0,0 +1,9 @@ |
| 2 | +<!DOCTYPE html> |
| 3 | +<html lang="en" dir="ltr" class="client-nojs"> |
| 4 | +<head> |
| 5 | +<title>Wikipedia, the free encyclopedia</title> |
| 6 | +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 7 | +<meta http-equiv="Content-Style-Type" content="text/css" /> |
| 8 | +<meta name="generator" content="MediaWiki 1.18wmf1" /> |
| 9 | +</head> |
| 10 | +<body> |