ftpServer.html
8.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="../../css/frame.css" rel="stylesheet" />
<link href="../../scripts/easyui/themes/default/easyui.css" rel="stylesheet" />
<style type="text/css">
#form_ftp {
padding: 8px;
}
.tdTitle {
width: 110px;
}
.settingBtn {
}
</style>
</head>
<body>
<form id="form_ftp">
<table class="settingsContainer">
<tr>
<td class="tdTitle">FTP服务器Ip地址</td>
<td class="tdContent">
<input id="940" name="940" class="settingParameter" type="text" />
</td>
<td class="tdTitle">端口</td>
<td class="tdContent">
<input id="941" name="941" class="settingParameter" type="text" />
</td>
<td class="tdTitle">
<a href="#" id="btnTestFtp" class="settingBtn" style="margin-left: 10px;">测试连接</a>
</td>
</tr>
<tr>
<td class="tdTitle">帐号</td>
<td class="tdContent">
<input id="942" name="942" class="settingParameter" type="text" />
</td>
<td class="tdTitle">密码</td>
<td class="tdContent">
<input id="943" name="943" class="settingParameter" type="text" />
</td>
<td> </td>
</tr>
<tr>
<td class="tdTitle">一级目录</td>
<td class="tdContent">
<select name="944" id="944" class="settingParameter">
<option value="0">设备名称</option>
<option value="1">设备编号</option>
<option value="2">地点名称</option>
<option value="3">地点编号</option>
<option value="4">时间</option>
<option value="5">日期</option>
<option value="6">日期+时间</option>
<option value="7">IP地址</option>
<option value="8">方向</option>
<option value="9">车道</option>
<option value="10">空</option>
</select>
</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="tdTitle">二级目录</td>
<td class="tdContent">
<select name="945" id="945" class="settingParameter">
<option value="0">设备名称</option>
<option value="1">设备编号</option>
<option value="2">地点名称</option>
<option value="3">地点编号</option>
<option value="4">时间</option>
<option value="5">日期</option>
<option value="6">日期+时间</option>
<option value="7">IP地址</option>
<option value="8">方向</option>
<option value="9">车道</option>
<option value="10">空</option>
</select>
</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="tdTitle">三级目录</td>
<td class="tdContent">
<select id="946" name="946" class="settingParameter">
<option value="0">设备名称</option>
<option value="1">设备编号</option>
<option value="2">地点名称</option>
<option value="3">地点编号</option>
<option value="4">时间</option>
<option value="5">日期</option>
<option value="6">日期+时间</option>
<option value="7">IP地址</option>
<option value="8">方向</option>
<option value="9">车道</option>
<option value="10">空</option>
</select>
</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="tdTitle">四级目录</td>
<td class="tdContent">
<select id="947" name="947" class="settingParameter">
<option value="0">设备名称</option>
<option value="1">设备编号</option>
<option value="2">地点名称</option>
<option value="3">地点编号</option>
<option value="4">时间</option>
<option value="5">日期</option>
<option value="6">日期+时间</option>
<option value="7">IP地址</option>
<option value="8">方向</option>
<option value="9">车道</option>
<option value="10">空</option>
</select>
</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="tdTitle">文件名称选择项</td>
<td class="tdContent">
<select id="948" name="948" class="settingParameter">
<option value="0">设备名称</option>
<option value="1">设备编号</option>
<option value="2">地点名称</option>
<option value="3">地点编号</option>
<option value="4">时间</option>
<option value="5">日期</option>
<option value="6">日期+时间</option>
<option value="7">IP地址</option>
<option value="8">方向</option>
<option value="9">车道</option>
<option value="10">空</option>
</select>
</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td class="tdTitle">文件名称</td>
<td class="tdContent">
<input id="949" name="949" class="settingParameter" type="text" />
</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="5">
<a href="#" class="settingBtn" id="btnSave">保存</a>
</td>
</tr>
</table>
</form>
<script src="../../scripts/easyui/jquery.min.js"></script>
<script src="../../scripts/easyui/jquery.easyui.min.js"></script>
<script src="../../scripts/utilities.js"></script>
<script type="text/javascript">
var parameterAdaptor = new ParameterAdaptor();
$().ready(function() {
//加载信息
loadFtpInfo();
//保存信息
$("#btnSave").click(saveParametersToServer);
});
//加载信息
function loadFtpInfo() {
var keys = new Array();
for (var i = 940; i <= 949; i++) {
keys.push(i);
}
parameterAdaptor.getParameters(keys, function(data) {
$("#form_ftp").form("load", data);
});
}
//保存参数
function saveParametersToServer() {
var formObj = $("#form_ftp");
parameterAdaptor.saveParameters(formObj);
}
</script>
</body>
</html>