Mercurial > hgrepos > hgweb.cgi > skipweb
changeset 2617:295f3a97ac24
preopen3
author | ARAKI Tsuyohito <c113007@e.koeki-u.ac.jp> |
---|---|
date | Sat, 24 Oct 2015 11:13:19 +0900 |
parents | b65ce4e525b3 |
children | 56cf10171f33 |
files | opencampus2015/prof.rb opencampus2015/quest.rb |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/opencampus2015/prof.rb Sat Oct 24 11:09:04 2015 +0900 +++ b/opencampus2015/prof.rb Sat Oct 24 11:13:19 2015 +0900 @@ -359,7 +359,8 @@ <input type="reset" value="やめる"> <input type="submit" value="泊まる"></div></label> </div></label></form> -</td><td>--> +</td><td> +--> <form method="POST" action="cookie.rb"> <label><input type="checkbox" name="hdn">人生リセット<div><br><br><br> <input type="reset" value="やめる">
--- a/opencampus2015/quest.rb Sat Oct 24 11:09:04 2015 +0900 +++ b/opencampus2015/quest.rb Sat Oct 24 11:13:19 2015 +0900 @@ -25,10 +25,11 @@ newname = "select name from zukan where no = ?" if chenge == 2 db.execute("update box set no1=?,e1=?,t1=?,tm1=?,no2=?,e2=?,t2=?,tm2=? where id = ?",no2,e2,t2,tm2,no1,e1,t1,tm1,id) +calname = db.execute(newname,no2)[0][0] elsif chenge == 3 db.execute("update box set no1=?,e1=?,t1=?,tm1=?,no3=?,e3=?,t3=?,tm3=? where id = ?",no3,e3,t3,tm3,no1,e1,t1,tm1,id) +calname = db.execute(newname,no3)[0][0] end -calname = db.execute(newname,no1)[0][0] db.execute("update test set cal = ? where id = ?",calname,id)