#!/usr/bin/env ruby
#
# 表題: ape お絵描きサムネイル HTML 作成スクリプト
#
# 履歴: 2003/09/28 やまだ由 
#       2004/02/18 やまだ由 ($head 付加)
#
# 注意: 本プログラムは, 
#       dcphoto.pl Ver 1.02 - 写真用 HTML作成スクリプト
#       Mitsuda Chihiro   <totera@ep.sci.hokudai.ac.jp>
#       を ruby で写経し, やまだ由用にカスタマイズしたものである 
#
#
#
#

END{

# rd のみの出力
#apethum_rd 
# html も出力
#apethum
# html のみ出力
apethum_html


}


########################################################
##  ユーザ設定
########################################################


# html ファイル名  $PWD/../html/${index}.html, $PWD/../html/table_${index}.rd
$index = "htmlname"

# 情報ファイル, $PWD/${infofile}
$infofile = $index + ".txt"

# 拡張子
$base = ".gif"

# 接頭子
# $head = "figure_head"
$head = ""

# 絵のあるディレクトリ名, $PWD/../${figdir}
$figdir = "fig"

# 画像ファイルサイズ, 横にならべるファイル数
# $width  = "160";  $height = "120" ; $figtable_num = 5
$width  = "200";  $height = "150" ; $figtable_num = 4
# $width  = "280" ; $height = "210" ; $figtable_num = 3

# テーブル, フォントの色
$color_table   = "#ADD8E6" 
$color_font    = "#000080" 
$color_link    = "#269900" 
$color_visited = "#269900" 
$color_hover   = "#99FF33" 

# html ヘッダタイトル
$title  = "テストタイトル"

# サムネイルタイトル
$header1 = $title 
$header2 = "<br>
実験設定などはここに書き込む.  <br>
ここに書いた文字はセンタリングされてしまう.  <br>
ちょっと恰好悪い. <br><br>
<table BORDER=\"0\" cellspacing=\"10\" align=\"center\">
<tr><td><small>
テーブルをさらに作ってその中に書き込む. <br>
そうするとこんな感じ. 
</small></td></tr></table>
<br><br>
<hr>
[<a href =\"../.\">HOME</a>]
"

# サムネイルフッタ ;
$footer = "Last update: #{Time.now} <br>
           Copyright &copy; AGU for APE 2005 (YAMADA Yukiko)"


########################################################
##  include ファイル
########################################################

require 'date'
require '/home/yukiko/lib/ape-thum.rb'
$KCODE = "e"

