3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
4 <title><%= APPTITLE %></title>
5 <link rel="stylesheet" href="./erbtemp/stylesheet.css" type="text/css">
6 <script type="text/javascript">
7 function switchsubmit(form, action){
8 document.getElementsByName("action").item(0).value = action;
14 <% db.transaction do %>
18 <div class="divstyle" style="width: <%= TABLEWIDTH %>px;">
19 <form action="<%= cgi.script_name %>" method="POST" enctype="multipart/form-data">
20 <% case params["action"]
22 <table align="center" style="width: <%= (TABLEWIDTH - 20) %>px;">
25 <td class="formheader" colspan="3">
30 <td colspan="" style="text-align: center;" class="formnavi">
33 <td style="text-align: center;" class="formnavi">
38 <% db["loglist"].path.each_with_index do |log, i| %>
39 <% if i == db["loginsertindex"] %>
41 <td style="text-align: center;" class="forminputhilight">
43 <input type="hidden" name="logpath" value="<%= db["logpath"] %>">
45 <td style="text-align: center;" class="forminputhilight">
46 <%= db["logdisplay"] %>
47 <input type="hidden" name="logdisplay" value="<%= db["logdisplay"] %>">
49 </tr><% written = true %>
52 <td style="text-align: center;" class="forminput">
55 <td style="text-align: center;" class="forminput">
56 <%= db["loglist"].display[i] %>
60 <% if written == false %>
62 <td style="text-align: center;" class="forminputhilight">
64 <input type="hidden" name="logpath" value="<%= db["logpath"] %>">
66 <td style="text-align: center;" class="forminputhilight">
67 <%= db["logdisplay"] %>
68 <input type="hidden" name="logdisplay" value="<%= db["logdisplay"] %>">
74 <input type="hidden" name="loginsertindex" value="<%= db["loginsertindex"] %>"><input type="hidden" name="mode" value="insert"><input type="hidden" name="action" value=""><input type="button" value="戻る" onclick="switchsubmit(this.form, '')"> <input type="button" value="確定" onclick="switchsubmit(this.form, 'exec')"><% when "exec" %>
75 <table align="center" style="width: <%= TABLEWIDTH %>px">
78 <td class="forminput" style="text-align: center;">
85 <a href="<%= cgi.script_name %>">トップページに戻る</a>
87 <table align="center" style="width: <%= (TABLEWIDTH - 20) %>px;">
90 <td class="formheader" colspan="3">
91 ■ 指定されたログの後にインポートされたファイルを挿入します
95 <td class="formnavi" style="width: 30px;">
98 <td colspan="" style="text-align: center;" class="formnavi">
101 <td style="text-align: center;" class="formnavi">
106 <% db["loglist"].path.each_with_index do |log, i| %>
108 <td style="text-align: center; width: 30px;" class="forminput">
110 <input type="radio" name="loginsertindex" value="<%= index %>" checked="checked"><% else %>
111 <input type="radio" name="loginsertindex" value="<%= index %>"><% end %>
113 <td style="text-align: center;" class="forminput">
116 <td style="text-align: center;" class="forminput">
117 <%= db["loglist"].display[i] %>
120 <% index = index + 1 %>
125 <table align="center" style="width: 600px;">
128 <td class="formnavi" style="width: 200px;">
131 <td class="forminput">
132 <input type="file" name="updata" style="width: 100%;">
136 <td class="formnavi" style="width: 200px;">
139 <td class="forminput">
140 <input type="text" name="logpath" style="width: 100%;">
144 <td class="formnavi">
147 <td class="forminput">
148 <input type="text" name="logdisplay" style="width: 100%;">
152 </table><%= db["error"] %>
154 <input type="hidden" name="mode" value="insert"><input type="hidden" name="action" value=""><input type="button" value="確認" onclick="switchsubmit(this.form, 'confirm')">
160 <div class="divstyle" style="border: none;">