OSDN Git Service

if is IE use openWYSIWYG, is is NOT ie use WYMeditor.
[feedblog/feedgenerator.git] / erbtemp / replacefeed.html.erb
1 <html>
2     <head>
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;
9                 form.submit();
10             }
11         </script>
12     </head>
13     <body>
14         <% db.transaction do %>
15         <br>
16         <%= menu %>
17         <br>
18         <div class="divstyle" style="width: <%= TABLEWIDTH %>px;">
19             <form action="<%= cgi.script_name %>" method="POST" enctype="multipart/form-data">
20                 <% case params["action"]
21                 when "confirm" %>
22                 <table align="center" style="width: <%= (TABLEWIDTH - 20) %>px;">
23                     <tbody>
24                         <tr>
25                             <td class="formheader" colspan="3">
26                                 ■ diary.xmlが以下の赤色の位置にログとして挿入されます
27                             </td>
28                         </tr>
29                         <tr>
30                             <td colspan="" style="text-align: center;" class="formnavi">
31                                 ログファイルのパス
32                             </td>
33                             <td style="text-align: center;" class="formnavi">
34                                 ログの表示名
35                             </td>
36                         </tr>
37                         <% db["loglist"].path.each_with_index do |log, i| %>
38                         <tr>
39                             <td style="text-align: center;" class="forminput">
40                                 <%= log %>
41                             </td>
42                             <td style="text-align: center;" class="forminput">
43                                 <%= db["loglist"].display[i] %>
44                             </td>
45                         </tr>
46                         <% if i == 0 %>
47                         <tr>
48                             <td style="text-align: center;" class="forminputhilight">
49                                 <%= db["logpath"] %>
50                                 <input type="hidden" name="logpath" value="<%= db["logpath"] %>">
51                             </td>
52                             <td style="text-align: center;" class="forminputhilight">
53                                 <%= db["logdisplay"] %>
54                                 <input type="hidden" name="logdisplay" value="<%= db["logdisplay"] %>">
55                             </td>
56                         </tr><% end %>
57                         <% end %>
58                     </tbody>
59                 </table>
60                 <br>
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">
63                     <tbody>
64                         <tr>
65                             <td class="forminput" style="text-align: center;">
66                                 インポート処理が完了しました。
67                             </td>
68                         </tr>
69                     </tbody>
70                 </table>
71                 <br>
72                 <a href="<%= cgi.script_name %>">トップページに戻る</a>
73                 <% else %>
74                 <table align="center" style="width: <%= TABLEWIDTH - 20 %>px;">
75                     <tbody>
76                         <tr>
77                             <td colspan="2" class="formnavi">
78                                 ■ diary.xmlとして保存するファイルを選択してください
79                             </td>
80                         </tr>
81                         <tr>
82                             <td class="formnavi" style="width: 200px;">
83                                 インポートファイル
84                             </td>
85                             <td class="forminput">
86                                 <input type="file" name="updata" style="width: 100%;">
87                             </td>
88                         </tr>
89                         <tr>
90                             <td colspan="2" class="formnavi">
91                                 ■ 現在のdiary.xmlを保存する情報を設定してください 
92                             </td>
93                         </tr>
94                         <tr>
95                             <td class="formnavi" style="width: 200px;">
96                                 ログ化されたdiary.xmlのパス
97                             </td>
98                             <td class="forminput">
99                                 <input type="text" name="logpath" style="width: 100%;">
100                             </td>
101                         </tr>
102                         <tr>
103                             <td class="formnavi" style="width: 200px;">
104                                 ログ化されたdiary.xmlの表示名
105                             </td>
106                             <td class="forminput">
107                                 <input type="text" name="logdisplay" style="width: 100%;">
108                             </td>
109                         </tr>
110                     </tbody>
111                 </table><%= db["error"] %>
112                 <br>
113                 <input type="hidden" name="mode" value="replace"><input type="hidden" name="action" value=""><input type="button" value="確認" onclick="switchsubmit(this.form, 'confirm')">
114                 <br>
115                 <% end %>
116             </form>
117         </div>
118         <br>
119         <div class="divstyle" style="border: none;">
120             <%= APPVERSION %>
121         </div>
122         <% end %>
123     </body>
124 </html>