1 |
#!/usr/bin/perl |
2 |
|
3 |
use Suika::CGI; |
4 |
use H2H; |
5 |
|
6 |
print jcode::jis(<<EOH, 'euc'); |
7 |
Content-Type: text/html; charset="iso-2022-jp" |
8 |
Content-Style-Type: text/css |
9 |
|
10 |
<html xml:lang="ja" xmlns="http://www.w3.org/1999/xhtml"> |
11 |
<head> |
12 |
<title>おくちゅ。の歩み</title> |
13 |
<?xml-stylesheet href="/s/simpledoc"?> |
14 |
<link rel="stylesheet" href="/s/simpledoc" /> |
15 |
<link rev="made" href="mailto:wakaba\@suika.fam.cx" /> |
16 |
<link rel="copyright" href="/c/" /> |
17 |
<meta name="author" content="奥田中学校, 若葉" /> |
18 |
<meta name="keywords" content="奥中, 奥田中学校, 富山市立奥田中学校, おくちゅ。, 歴史, 年表, History, 出来事, できごと, 流れ, 歩み, 伝統, 行事, 一覧, 実績" /> |
19 |
</head> |
20 |
<body> |
21 |
<h1>おくちゅ。の歩み</h1> |
22 |
|
23 |
EOH |
24 |
|
25 |
opendir DIR, '.'; |
26 |
my @FILELIST = (grep(/.*\.(?:hnf|h2h)$/, readdir(DIR))); |
27 |
close DIR; |
28 |
|
29 |
my %boptions = ( |
30 |
directory => '/home/wakaba/lib/H2H/V100/Theme/', theme => 'Glossary', |
31 |
theme09_directory => '/home/wakaba/lib/H2H/V090/', |
32 |
theme09 => 'glossary', |
33 |
title => 'おくちゅ。の歩み', |
34 |
keyword => '奥中, 奥田中学校, 富山市立奥田中学校, おくちゅ。, 歴史, 年表, History, 出来事, できごと, 流れ, 歩み, 伝統, 行事, 一覧, 実績', |
35 |
description => 'おくちゅ。の過去から現在まで。', |
36 |
version => 'H2H/1.0', |
37 |
); |
38 |
|
39 |
for my $fn (@FILELIST) { |
40 |
my %options = (%boptions); |
41 |
$fn =~ tr/\x0D\x0A//d; |
42 |
$fn =~ tr/\x0D\x0A//d; |
43 |
if ($fn =~ /^(.+)\.(?:hnf|h2h)$/) {$options{prefix} = $1} |
44 |
$options{noheader} = 1; $options{nofooter} = 1; |
45 |
open HNF, $fn; |
46 |
print jcode::jis(H2H->toHTML(\%options, <HNF>), 'euc'); |
47 |
close HNF; |
48 |
} |
49 |
|
50 |
print jcode::jis(<<EOH, 'euc'); |
51 |
|
52 |
<address> |
53 |
[<a href="/" title="このサーバーの首頁">/</a> |
54 |
<a href="/map" title="このサーバーの案内">地図</a> |
55 |
<a href="/search/" title="このサーバーの検索">検索</a>] |
56 |
[<a href="../../">伝説のおくちゅ。</a> |
57 |
<a href="../">おくちゅ。伝説</a>] |
58 |
</address> |
59 |
<!-- |
60 |
<div class="update"> |
61 |
<a href="http://validator.w3.org/check/referer" xml:lang="en"><img |
62 |
src="http://www.w3.org/Icons/valid-xhtml11" id="w3c-html" |
63 |
alt="Valid XHTML 1.1!" style="height: 31px; width: 88px" /></a> |
64 |
<a href="http://jigsaw.w3.org/css-validator/validator?uri=http://suika.fam.cx/okuchuu/" xml:lang="en"> |
65 |
<img style="width: 88px; height: 31px" id="w3c-css" |
66 |
src="http://jigsaw.w3.org/css-validator/images/vcss" |
67 |
alt="Valid CSS!" /></a></div> |
68 |
--> |
69 |
</body></html> |
70 |
EOH |
71 |
|
72 |
|
73 |
1; |