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">
26 ■ diary.xmlが以下の赤色の位置にログとして挿入されます
30 <td colspan="" style="text-align: center;" class="formnavi">
33 <td style="text-align: center;" class="formnavi">
37 <% db["loglist"].path.each_with_index do |log, i| %>
39 <td style="text-align: center;" class="forminput">
42 <td style="text-align: center;" class="forminput">
43 <%= db["loglist"].display[i] %>
48 <td style="text-align: center;" class="forminputhilight">
50 <input type="hidden" name="logpath" value="<%= db["logpath"] %>">
52 <td style="text-align: center;" class="forminputhilight">
53 <%= db["logdisplay"] %>
54 <input type="hidden" name="logdisplay" value="<%= db["logdisplay"] %>">
61 <input type="hidden" name="mode" value="replace"><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" %>
62 <table align="center" style="width: <%= TABLEWIDTH %>px">
65 <td class="forminput" style="text-align: center;">
72 <a href="<%= cgi.script_name %>">トップページに戻る</a>
74 <table align="center" style="width: <%= TABLEWIDTH - 20 %>px;">
77 <td colspan="2" class="formnavi">
78 ■ diary.xmlとして保存するファイルを選択してください
82 <td class="formnavi" style="width: 200px;">
85 <td class="forminput">
86 <input type="file" name="updata" style="width: 100%;">
90 <td colspan="2" class="formnavi">
91 ■ 現在のdiary.xmlを保存する情報を設定してください
95 <td class="formnavi" style="width: 200px;">
98 <td class="forminput">
99 <input type="text" name="logpath" style="width: 100%;">
103 <td class="formnavi" style="width: 200px;">
106 <td class="forminput">
107 <input type="text" name="logdisplay" style="width: 100%;">
111 </table><%= db["error"] %>
113 <input type="hidden" name="mode" value="replace"><input type="hidden" name="action" value=""><input type="button" value="確認" onclick="switchsubmit(this.form, 'confirm')">
119 <div class="divstyle" style="border: none;">