第 10 回 ことおぼえ レポート課題 氏名:照井さつき 学籍番号:c1101589 語学クラス:中国語3 コース(系):政策マネジメント ---------- 添付ファイル ---------- r2_cgi_best.html best.rb ========== 1.筆記問題 ========== require 'pstore(ここの名前は自由)' で PStore フォルダ内の ファイルを使うことを宣言する。 db =PStore.("xx.db") dbに入れられたものを書き込む。 これにより、閲覧者もwebページ上で書けるようになる。 ========== 2.プログラム問題 ========== アドレス: http://roy/~c110158/advertise2/rubycgi/r2_cgi_best.html css: best.css ---------- b.CGIの題名と意図 ---------- 「テンプレート作成」 講義中や課題でHPを作る事が多く、配色に悩むことが多いので、 見本として実際に組み合わせることが出来れば便利だと思い、作成した。 ---------- c.元にしたプログラム ---------- 前回の課題で作成した色変えプログラム、 color.html color.rb を 応用して作成した。 ---------- d.プログラム説明 ---------- 添付ファイル : r2_cgi_best.html
著作権 ©
c1101589 照井さつき
(2011)
c110158@f.koeki-u.ac.jp
\n") print('\n") print("') print("\n") print("") printf("%s",gaide) # gaide の内容を代入 print("使用した背景画像は此方です→ ") # head の部分と同じように選択し、その画像を表示 if back == "dot" if x == "小" if color == "青" then print('
\n") print("') elsif color == "ピンク" then print('
') else color == "黄色" print('
') end elsif x == "中" if color == "青" then print('
') elsif color == "ピンク" then print('
') else color == "黄色" print('
') end else x == "大" if color == "青" then print('
') elsif color == "ピンク" then print('
') else color = "黄色" print('
') end end elsif back == "stripe" if x == "小" if color == "青" then print('
') elsif color == "ピンク" then print('
') else color == "黄色" print('
') end elsif x == "中" if color == "青" then print('
') elsif color == "ピンク" then print('
') else color == "黄色" print('
') end else x == "大" if color == "青" then print('
') elsif color == "ピンク" then print('
') else color == "黄色" print('
') end end elsif back == "border" if x == "小" if color == "青" then print('
') elsif color == "ピンク" then print('
') else color == "黄色" print('
') end elsif x == "中" if color == "青" then print('
') elsif color == "ピンク" then print('
') else color == "黄色" print('
') end else x == "大" if color == "青" then print('
') elsif color == "ピンク" then print('
') else color == "黄色" print('
') end end elsif back == "clover" print('
') else back == "flower" print('
') end print("
以下は今回使用した
部分です。コピぺでどうぞ\n") print('\n") print("