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

END{

  exp_jikkou

}


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

def jikkou

# インデックスファイル  $PWD/../html/${index}.html, $PWD/../html/table_${index}.rd
# $index = "T39L24_eml_radiation_3hour_control_sh"
# $index = "#{$head}#{$figdir}"

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

# 拡張子
$base = ".gif"

# 接頭子
# $head = ""

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

# 横にならべるファイル数
# $figtable_num = 3

#画像ファイルサイズ

# $width  = "160" ; $height = "120"
# $width  = "200" ; $height = "150"
# $width  = "280" ; $height = "210"

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

# html ヘッダタイトル
$title  = "赤道波 2 層モデル モード図集" 

# サムネイルタイトル
$header1 = $title 
$header2 << "<br> 

<table BORDER=\"0\" cellspacing=\"10\" align=\"center\">
<tr><td><small>
</small></td></tr></table>
<hr>
[<a href =\"2layer-freq.html\">分散関係と成長率</a>] 
<hr>
[<a href =\"2layer-h1.html\">delZ=1.0, eta=0.0</a>] 
<hr>
[<a href =\"shallow-freq.html\">shallow</a>] 
[<a href =\"2layer-freq.html\">2layer</a>] 
<hr>
[<a href =\"../.\">HOME</a>]
"


# サムネイルフッタ ;
$footer = "Last update: #{Time.now} <br> 
           Copyright &copy\; GFD Dennou Club 2004 (YAMADA Yukiko)"


# ファイル生成実行
print $title, "\n" ; apethum

end



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

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


########################################################
##  ローカル生成ルーチン
########################################################

def exp_jikkou

  $head = "2layer-"
  $figdir = "2layer"

  $index = "#{$head}h1"
  $infofile = "#{$index}.txt"
  $width  = "160" ; $height = "120" ; $figtable_num = 4
  $header2 = "<br><br> [ delZ=1.0 ]"
  jikkou

  $index = "#{$head}freq"
  $infofile = "#{$index}.txt"
  $width  = "280" ; $height = "210" ; $figtable_num = 2
  $header2 = "<br><br> 分散曲線と成長率"
  jikkou

end



