Mercurial > hgrepos > hgweb.cgi > skipweb
changeset 726:cbbae265f30f
prof.rb [][]
author | ARAKI Tsuyohito <c113007@e.koeki-u.ac.jp> |
---|---|
date | Tue, 07 Jul 2015 23:19:27 +0900 |
parents | a6bd4c4b4eef |
children | 4766b2e3ee92 |
files | oasis2015/accountcheck.rb oasis2015/prof.rb |
diffstat | 2 files changed, 31 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/oasis2015/accountcheck.rb Tue Jul 07 22:57:24 2015 +0900 +++ b/oasis2015/accountcheck.rb Tue Jul 07 23:19:27 2015 +0900 @@ -40,7 +40,6 @@ id2 = rand(1000000) - expires = "SAT, 24 Oct 2015 00:00:00 GMT" printf("Content-type: text/html; charset=UTF-8
--- a/oasis2015/prof.rb Tue Jul 07 22:57:24 2015 +0900 +++ b/oasis2015/prof.rb Tue Jul 07 23:19:27 2015 +0900 @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- require 'cgi' require 'sqlite3' -#require 'kconv' +require 'kconv' c = CGI.new(:tag_maker => "html5", :accept_charest => "UTF-8") db = SQLite3::Database.new("./sql/main.sq3") @@ -19,21 +19,38 @@ bomd = "update test set pt = ? where id = ?" -name = cook[0][1] -cal = cook[0][2] -age = cook[0][3] -sex = cook[0][4] -aria = cook[0][5] -exp = cook[0][6] -pt = cook[0][7] -lv = cook[0][8] +#name = cook[0][1] +#cal = cook[0][2] +#age = cook[0][3] +#sex = cook[0][4] +#aria = cook[0][5] +#exp = cook[0][6] +#pt = cook[0][7] +#lv = cook[0][8] -q1 = toi[0][1] -q2 = toi[0][2] -q3 = toi[0][3] -q4 = toi[0][4] -q5 = toi[0][5] +#q1 = toi[0][1] +#q2 = toi[0][2] +#q3 = toi[0][3] +#q4 = toi[0][4] +#q5 = toi[0][5] + +name = "aa" +cal = "ii" +age = "uu" +sex = "ee" +aria = "oo" +exp = "kk" +pt = "ss" +lv = "tt" + +q1 = "nn" +q2 = "hh" +q3 = "mm" +q4 = "yy" +q5 = "rr" + + per ="%"