Mercurial > hgrepos > hgweb.cgi > skipweb
changeset 2353:29838bde7296
Updated
author | MURAKAMI Masaki <c112124@h.koeki-u.ac.jp> |
---|---|
date | Sun, 03 Aug 2014 09:15:24 +0900 |
parents | f3156644feda |
children | ab9cbdbf5066 |
files | 2014OC/admin/drawLots.html 2014OC/admin/drawLots.rb 2014OC/admin/monitor.rb 2014OC/admin/operation.html 2014OC/admin/operation.rb |
diffstat | 5 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/2014OC/admin/drawLots.html Sun Aug 03 08:29:42 2014 +0900 +++ b/2014OC/admin/drawLots.html Sun Aug 03 09:15:24 2014 +0900 @@ -11,7 +11,7 @@ <h1>抽選用ページ</h1> <p>実行するとデータベースが書き変えられます。</p> <p>実行する際は注意してください。</p> -<form method="POST" action="./chusen.rb"> +<form method="POST" action="./drawLots.rb"> <p>抽選を行いますか?<br> はい<input type="radio" name="check" value="OK"> いいえ<input type="radio" name="check" value="NO">
--- a/2014OC/admin/drawLots.rb Sun Aug 03 08:29:42 2014 +0900 +++ b/2014OC/admin/drawLots.rb Sun Aug 03 09:15:24 2014 +0900 @@ -19,10 +19,9 @@ rank_sum = db.execute(sum).flatten(2)[0].to_i t = Time.now -expires = Time.local(2014, 7, 26, 11, 27) -expires2 = Time.local(2014, 7, 26, 13, 27) -if t > expires && rank_sum == 0 -elsif t > expires2 && rank_sum == 7 +expires = Time.local(2014, 8, 3, 8, 50) +#expires2 = Time.local(2014, 7, 26, 13, 27) +if t > expires && t.min % 3 == 0 else check = "" puts check @@ -66,8 +65,9 @@ printf("<p>1等はIDが%04dの方!おめでとー!</p>\n",tousen[i].to_i-1) printf("<p>2等はIDが%04dと%04dと%04dの方!おめでとー!</p>\n",tousen[i+=1].to_i-1,tousen[i+=1].to_i-1,tousen[i+=1].to_i-1) +print'<p><a href=\"drawLots.html\">抽選ページ戻る</a></p>' else - print"<p>抽選はまだ行いませんよ</p>\n" + print"<p>抽選はまだ行いませんよ</p>\n<p><a href=\"drawLots.html\">抽選ページ戻る</a></p>" end else printf("Content-type: text/html; charset=UTF-8\n\n")
--- a/2014OC/admin/monitor.rb Sun Aug 03 08:29:42 2014 +0900 +++ b/2014OC/admin/monitor.rb Sun Aug 03 09:15:24 2014 +0900 @@ -35,7 +35,7 @@ tml4/strict.dtd"> <html> <head> -<meta http-equiv="refresh" content="180;http://skip.koeki-prj.org/minato2014/admin/etsuran.rb"> +<meta http-equiv="refresh" content="180;http://skip.koeki-prj.org/2014OC/admin/monitor.rb"> <title>Delete table</title> </head> </body>
--- a/2014OC/admin/operation.html Sun Aug 03 08:29:42 2014 +0900 +++ b/2014OC/admin/operation.html Sun Aug 03 09:15:24 2014 +0900 @@ -11,7 +11,7 @@ <h1>データベース消去用</h1> <p>実行するとデータベースが削除されます。</p> <p>実行する際は注意してください。</p> -<form method="POST" action="./delete.rb"> +<form method="POST" action="./operation.rb"> <p>本当に消しますか?<br> はい<input type="radio" name="check" value="OK"> いいえ<input type="radio" name="check" value="NO">