]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - Plugson/www/plugson_control.html
VentoyPlugson ---- A GUI ventoy.json configurator
[Ventoy.git] / Plugson / www / plugson_control.html
1 <div class="box box-primary" id="control">
2 <div class="box-header">
3 <div class="col-sm-8" style="padding-top:8px;">
4 <i class="fa fa-wrench">&nbsp;&nbsp;</i>
5 <h1 class="box-title" style="font-weight:bold;" id="id_h1_page_title">全局控制插件</h1>
6 </div>
7
8 <div class="col-sm-2" style="padding-top:2px;">
9 <button id="id_btn_collapse" class="btn btn-sm btn-primary"><i style="font-size: 14px;" class="fa fa-minus"></i></button>
10 <button id="id_btn_expand" class="btn btn-sm btn-primary"><i style="font-size: 14px;" class="fa fa-plus"></i></button>
11 </div>
12
13 <div class="col-sm-2" style="font-size:16px;padding-top:8px;">
14 <a id="id_a_official_doc" target="_blank" href="https://www.ventoy.net/cn/plugin_control.html"><span class="fa fa-link"></span><span id="id_span_official_doc">官网文档</span></a>
15 </div>
16 </div>
17 <legend></legend>
18
19 <div class="box-body">
20 <div class="nav-tabs-custom">
21 <ul class="nav nav-tabs" id="id_tab_control">
22 <li class=""><a href="#tab_0" data-toggle="tab" aria-expanded="false" style="font-weight:bold" >control</a></li>
23 <li class=""><a href="#tab_1" data-toggle="tab" aria-expanded="false" style="font-weight:bold">control_legacy</a></li>
24 <li class=""><a href="#tab_2" data-toggle="tab" aria-expanded="false" style="font-weight:bold">control_uefi</a></li>
25 <li class=""><a href="#tab_3" data-toggle="tab" aria-expanded="false" style="font-weight:bold">control_ia32</a></li>
26 <li class=""><a href="#tab_4" data-toggle="tab" aria-expanded="false" style="font-weight:bold">control_aa64</a></li>
27 <li class=""><a href="#tab_5" data-toggle="tab" aria-expanded="false" style="font-weight:bold">control_mips</a></li>
28 </ul>
29 </div>
30
31
32 <div class="box box-primary box-solid">
33 <div class="box-header with-border">
34 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_DEFAULT_SEARCH_ROOT
35 <span id="id_span_desc_cn"> —— 指定搜索目录</span></h3>
36 <div class="box-tools pull-right">
37 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
38 </div><!-- /.box-tools -->
39 </div><!-- /.box-header -->
40 <div class="box-body no-padding">
41 <table class="table table-bordered no-padding">
42 <tr style="font-weight:bold;">
43 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
44 <td>
45 <div class="col-sm-9" style="padding-left:0px;">
46 <input type="text" class="form-control" id="id_ctrl_text_search_root" name="name_ctrl_text_search_root" disabled="disabled"/>
47 </div>
48 <div class="col-sm-1" id="id_ctrl_div_root_status">
49 <span id="id_ctrl_span_search_root_valid" style="line-height: 2;" class="badge bg-green">有效</span>
50 <span id="id_ctrl_span_search_root_invalid" style="line-height: 2;" class="badge bg-red">无效</span>
51 </div>
52 <div class="col-sm-1">
53 <button id="id_ctrl_btn_sel_root" class="btn btn-primary btn-add"><span class="fa fa-edit"></span><span id="id_span_edit"> 设置</span></button>
54 </div>
55 <div class="col-sm-1">
56 <button id="id_ctrl_btn_clr_root" class="btn btn-danger btn-del"><span class="fa fa-trash"></span><span id="id_span_clear"> 清除</span></button>
57 </div>
58 </td>
59 </tr>
60 <tr id="tr_title_desc_cn">
61 <td class="td_ctrl_col">选项说明</td>
62 <td>
63 指定搜索ISO文件的根目录。默认Ventoy会搜索U盘上的所有目录和子目录,当你U盘上有海量的文件时,这个过程会很慢。<br/>
64 这种情况下你可以把ISO文件单独放在某个目录下,然后通过这个变量来指定搜索路径,此时Ventoy就只会搜索该目录及其子目录。
65 </td>
66 </tr>
67 <tr id="tr_title_desc_en">
68 <td class="td_ctrl_col">Option Description</td>
69 <td>
70 The root path where to search the image files. By default, Ventoy will search all the directories and subdirectories in the USB. This will be very slow when you have huge number of files in the USB.
71 In this case, you can put all the image files in one directory and use this to specify the search path.
72 After that Ventoy will only search this directory and its subdirectories for image files.
73 </td>
74 </tr>
75 </table>
76 </div><!-- /.box-body -->
77 </div><!-- /.box -->
78
79
80 <div class="box box-primary box-solid">
81 <div class="box-header with-border">
82 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_WIN11_BYPASS_CHECK
83 <span id="id_span_desc_cn"> —— 绕过Windows 11硬件检查</span></h3>
84 <div class="box-tools pull-right">
85 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
86 </div><!-- /.box-tools -->
87 </div><!-- /.box-header -->
88 <div class="box-body no-padding">
89 <table class="table table-bordered no-padding">
90 <tr style="font-weight:bold;">
91 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
92 <td>
93 <label class="radio-inline">
94 <input type="radio" id="id_ctrl_bypass_win11_radio0" name="id_ctrl_bypass_win11_radio" data-type="0" value="0"/> <span style="font-weight:bold;">0</span>
95 </label>&nbsp;&nbsp;&nbsp;&nbsp;
96 <label class="radio-inline">
97 <input type="radio" id="id_ctrl_bypass_win11_radio1" name="id_ctrl_bypass_win11_radio" data-type="1" value="1"/> <span style="font-weight:bold;">1</span>
98 </label>
99 </td>
100 </tr>
101 <tr id="tr_title_desc_cn">
102 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
103 <td>
104 <code style="font-weight: bold;">0</code> 不绕过Windows 11安装时的硬件检查。<br/>
105 <code style="font-weight: bold;">1</code> 绕过Windows 11安装时的硬件检查。<br/><br/>
106 该选项只对标准Windows 11 ISO文件有效,对于其他镜像文件无效。
107 当设置为1时,Ventoy 会在安装时创建以下几个注册表项用来绕过 Windows 11 安装程序的硬件检查。<br/>
108 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassRAMCheck</code><br/>
109 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassTPMCheck</code><br/>
110 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassSecureBootCheck</code><br/>
111 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassCPUCheck</code><br/>
112 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassStorageCheck</code><br/>
113 </td>
114 </tr>
115 <tr id="tr_title_desc_en">
116 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
117 <td>
118 <code style="font-weight: bold;">0</code> Don not bypass Windows 11 hardware check.<br/>
119 <code style="font-weight: bold;">1</code> Bypass Windows 11 hardware check. <br/><br/>
120 This option only avaliable for standard Windows 11 ISO files.
121 When set to 1, Ventoy will create the following registries to bypass Windows 11 hardware check when install. <br/>
122 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassRAMCheck</code><br/>
123 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassTPMCheck</code><br/>
124 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassSecureBootCheck</code><br/>
125 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassCPUCheck</code><br/>
126 <code>HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig\BypassStorageCheck</code><br/>
127 </td>
128 </tr>
129 </table>
130 </div><!-- /.box-body -->
131 </div><!-- /.box -->
132
133
134
135
136
137
138 <div class="box box-primary box-solid">
139 <div class="box-header with-border">
140 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_DEFAULT_MENU_MODE
141 <span id="id_span_desc_cn"> —— 菜单显示模式</span></h3>
142 <div class="box-tools pull-right">
143 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
144 </div><!-- /.box-tools -->
145 </div><!-- /.box-header -->
146 <div class="box-body no-padding">
147 <table class="table table-bordered no-padding">
148 <tr style="font-weight:bold;">
149 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
150 <td>
151 <label class="radio-inline">
152 <input type="radio" id="id_ctrl_radio_menu_mode0" name="id_ctrl_radio_menu_mode" data-type="0" value="0"> <span style="font-weight:bold;">0</span>
153 </label>&nbsp;&nbsp;&nbsp;&nbsp;
154 <label class="radio-inline">
155 <input type="radio" id="id_ctrl_radio_menu_mode1" name="id_ctrl_radio_menu_mode" data-type="1" value="1"> <span style="font-weight:bold;">1</span>
156 </label>
157 </td>
158 </tr>
159 <tr id="tr_title_desc_cn">
160 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
161 <td>启动菜单默认显示模式,
162 <code style="font-weight: bold;">0</code> 列表模式 &nbsp;&nbsp;
163 <code style="font-weight: bold;">1</code> TreeView(目录树) 模式</td>
164 </tr>
165 <tr id="tr_title_desc_en">
166 <td class="td_ctrl_col">Option Description</td>
167 <td>
168 Default boot menu display mode.
169 <code style="font-weight: bold;">0</code> ListView Mode &nbsp;&nbsp
170 <code style="font-weight: bold;">1</code> TreeView Mode
171 </td>
172 </tr>
173 </table>
174 </div><!-- /.box-body -->
175 </div><!-- /.box -->
176
177
178
179
180
181
182
183 <div class="box box-primary box-solid">
184 <div class="box-header with-border">
185 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_MENU_TIMEOUT
186 <span id="id_span_desc_cn"> —— 启动倒计时</span></h3>
187 <div class="box-tools pull-right">
188 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
189 </div><!-- /.box-tools -->
190 </div><!-- /.box-header -->
191 <div class="box-body no-padding">
192 <table class="table table-bordered no-padding">
193 <tr style="font-weight:bold;">
194 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
195 <td>
196 <div class="col-sm-9" style="padding-left:0px;">
197 <input type="text" class="form-control" id="id_ctrl_text_timeout" name="name_ctrl_text_timeout"/>
198 </div>
199 </td>
200 </tr>
201 <tr id="tr_title_desc_cn">
202 <td class="td_ctrl_col">选项说明</td>
203 <td>
204 菜单倒计时(秒)。默认为0(即没有超时时间),设置之后,比如设置为10,则在倒计时10秒之后,会自动启动选中的镜像文件。在倒计时的过程中按任意键会停止倒计时,等待用户操作。
205 </td>
206 </tr>
207 <tr id="tr_title_desc_en">
208 <td class="td_ctrl_col">Option Description</td>
209 <td>
210 Menu timeout (seconds). Default value is 0 (no timeout is set). <br/>
211 When you set it to 10 for example, the selected image will be booted automatically after 10 seconds.
212 During the countdown, pressing any key will stop the countdown and wait for user operation.
213 </td>
214 </tr>
215 </table>
216 </div><!-- /.box-body -->
217 </div><!-- /.box -->
218
219
220
221 <div class="box box-primary box-solid">
222 <div class="box-header with-border">
223 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_DEFAULT_IMAGE
224 <span id="id_span_desc_cn"> —— 默认选中的镜像文件</span></h3>
225 <div class="box-tools pull-right">
226 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
227 </div><!-- /.box-tools -->
228 </div><!-- /.box-header -->
229 <div class="box-body no-padding">
230 <table class="table table-bordered no-padding">
231 <tr style="font-weight:bold;">
232 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
233 <td>
234 <div class="col-sm-9" style="padding-left:0px;">
235 <input type="text" class="form-control" id="id_ctrl_text_default_img" name="name_id_ctrl_text_default_img" disabled="disabled"/>
236 </div>
237 <div class="col-sm-1" id="id_ctrl_div_img_status">
238 <span id="id_ctrl_span_img_valid" style="line-height: 2;" class="badge bg-green">有效</span>
239 <span id="id_ctrl_span_img_invalid" style="line-height: 2;" class="badge bg-red">无效</span>
240 </div>
241 <div class="col-sm-1">
242 <button id="id_ctrl_btn_default_img" class="btn btn-primary btn-add"><span class="fa fa-edit"></span><span id="id_span_edit"> 设置</span></button>
243 </div>
244 <div class="col-sm-1">
245 <button id="id_ctrl_btn_clr_default" class="btn btn-danger btn-del"><span class="fa fa-trash"></span><span id="id_span_clear"> 清除</span></button>
246 </div>
247 </td>
248 </tr>
249 <tr id="tr_title_desc_cn">
250 <td class="td_ctrl_col">选项说明</td>
251 <td>
252 正常情况下默认选中的是第1个镜像文件。通过这个选项可以设置默认选中的镜像文件,一般和 VTOY_MENU_TIMEOUT 一起使用。<br/>
253 可以设置为 WIM/VHD/IMG 等支持的文件,必须是以 / 开始的全路径,ListView模式和TreeView模式都支持。 <br/>
254 注意,当同时设置了 VTOY_DEFAULT_SEARCH_ROOT 以后,VTOY_DEFAULT_IMAGE 对应的文件必须位于 VTOY_DEFAULT_SEARCH_ROOT 对应的目录下,否则不会生效。
255 </td>
256 </tr>
257 <tr id="tr_title_desc_en">
258 <td class="td_ctrl_col">Option Description</td>
259 <td>
260 Default selected image path. Normally used with VTOY_MENU_TIMEOUT. <br/>It can be ISO/WIM/VHD/IMG ... and supported in both ListView mode and TreeView mode.<br/>
261 Attention that, when VTOY_DEFAULT_SEARCH_ROOT is set, VTOY_DEFAULT_IMAGE must be in the directory (or sub-directory) of VTOY_DEFAULT_SEARCH_ROOT, otherwise it will not take effect.
262 </td>
263 </tr>
264 </table>
265 </div><!-- /.box-body -->
266 </div><!-- /.box -->
267
268
269
270
271
272
273
274
275 <div class="box box-primary box-solid">
276 <div class="box-header with-border">
277 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_MAX_SEARCH_LEVEL
278 <span id="id_span_desc_cn"> —— 最大搜索目录深度</span></h3>
279 <div class="box-tools pull-right">
280 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
281 </div><!-- /.box-tools -->
282 </div><!-- /.box-header -->
283 <div class="box-body no-padding">
284 <table class="table table-bordered no-padding">
285 <tr style="font-weight:bold;">
286 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
287 <td>
288 <select id="id_ctrl_sel_max_depth" name="name_ctrl_sel_max_depth" class="form-control">
289 <option title="max" selected>max</option>
290 <option title="0">0</option>
291 <option title="1">1</option>
292 <option title="2">2</option>
293 <option title="3">3</option>
294 <option title="4">4</option>
295 <option title="5">5</option>
296 <option title="6">6</option>
297 <option title="7">7</option>
298 <option title="8">8</option>
299 <option title="9">9</option>
300 <option title="10">10</option>
301 </select>
302 </td>
303 </tr>
304 <tr id="tr_title_desc_cn">
305 <td class="td_ctrl_col">选项说明</td>
306 <td>
307 最大搜索子目录的层数,取值为:<code>max</code> <code>0</code> <code>1</code> <code>2</code> <code>3</code> <code>...</code>
308 &nbsp;&nbsp;&nbsp;默认值为:<code>max</code><br/>
309 默认Ventoy会递归搜索磁盘上的所有目录和子目录,不管目录结构有多深都会搜索到底。你可以通过这个参数来控制搜索时的路径深度。<br/><br/>
310 <code>max</code> : 最大层数,也就是搜索所有子目录的意思。这也是 Ventoy 的默认值。<br/>
311 <code>0</code> : 搜索0层子目录,只列出根目录下的文件,不去搜索任何一个子目录。<br/>
312 <code>1</code> : 搜索1层子目录,除了根目录下的文件以外,再搜索根目录下的1级子目录。但是不再搜索1级子目录下的子目录(2级子目录)。<br/>
313 <code>2</code> : 搜索2层子目录,除了根目录下的文件以外,再搜索根目录下的1级子目录以及1级子目录下的子目录(2级子目录)。<br/>
314 <code>3</code> : 搜索3层子目录,......<br/>
315 <code>...</code><br/><br/>
316 注意,如果 <code>VTOY_DEFAULT_SEARCH_ROOT</code> 参数也同时设置了的话,则就以 <code>VTOY_DEFAULT_SEARCH_ROOT</code> 指定的目录作为根目录开始计算。
317 </td>
318 </tr>
319 <tr id="tr_title_desc_en">
320 <td class="td_ctrl_col">Option Description</td>
321 <td>
322 Max subdirectory level when search for image files. It's value can be: <code>max</code> <code>0</code> <code>1</code> <code>2</code> <code>3</code> <code>...</code>
323 &nbsp;&nbsp;&nbsp;default is : <code>max</code><br/>
324 By default, Ventoy will search all the directories and sub directories recursively no matter how deep the directory level is.<br/>
325 You can use this parameter to set a max-depth for the search path.<br/><br/>
326 <code>max</code> : Maximum, search all the directories and subdirectories. This is Ventoy's default value.<br/>
327 <code>0</code> : Only search files in the root and don't search any subdirectories.<br/>
328 <code>1</code> : Search up to level 1 of subdirectories.<br/>
329 <code>2</code> : Search up to level 2 of subdirectories.<br/>
330 <code>3</code> : Search up to level 3 of subdirectories.<br/>
331 <code>...</code><br/><br/>
332 If <code>VTOY_DEFAULT_SEARCH_ROOT</code> is set at the same time. Then the level is counted from <code>VTOY_DEFAULT_SEARCH_ROOT</code> .
333 </td>
334 </tr>
335 </table>
336 </div><!-- /.box-body -->
337 </div><!-- /.box -->
338
339
340
341
342 <div class="box box-primary box-solid">
343 <div class="box-header with-border">
344 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_DEFAULT_KBD_LAYOUT
345 <span id="id_span_desc_cn"> —— 默认键盘布局</span></h3>
346 <div class="box-tools pull-right">
347 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
348 </div><!-- /.box-tools -->
349 </div><!-- /.box-header -->
350 <div class="box-body no-padding">
351 <table class="table table-bordered no-padding">
352 <tr style="font-weight:bold;">
353 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
354 <td>
355 <select id="id_ctrl_sel_kbd" name="name_ctrl_sel_kbd" class="form-control">
356 <option title="QWERTY_USA" selected>QWERTY_USA</option>
357 <option title="AZERTY">AZERTY</option>
358 <option title="CZECH_QWERTY">CZECH_QWERTY</option>
359 <option title="CZECH_QWERTZ">CZECH_QWERTZ</option>
360 <option title="DANISH">DANISH</option>
361 <option title="DVORAK_USA">DVORAK_USA</option>
362 <option title="FRENCH">FRENCH</option>
363 <option title="GERMAN">GERMAN</option>
364 <option title="ITALIANO">ITALIANO</option>
365 <option title="JAPAN_106">JAPAN_106</option>
366 <option title="LATIN_USA">LATIN_USA</option>
367 <option title="PORTU_BRAZIL">PORTU_BRAZIL</option>
368 <option title="QWERTY_UK">QWERTY_UK</option>
369 <option title="QWERTZ">QWERTZ</option>
370 <option title="QWERTZ_HUN">QWERTZ_HUN</option>
371 <option title="QWERTZ_SLOV_CROAT">QWERTZ_SLOV_CROAT</option>
372 <option title="SPANISH">SPANISH</option>
373 <option title="SWEDISH">SWEDISH</option>
374 <option title="TURKISH_Q">TURKISH_Q</option>
375 <option title="VIETNAMESE">VIETNAMESE</option>
376 </select>
377 </td>
378 </tr>
379 <tr id="tr_title_desc_cn">
380 <td class="td_ctrl_col">选项说明</td>
381 <td>
382 键盘布局
383 </td>
384 </tr>
385 <tr id="tr_title_desc_en">
386 <td class="td_ctrl_col">Option Description</td>
387 <td>
388 Keyboard Layout
389 </td>
390 </tr>
391 </table>
392 </div><!-- /.box-body -->
393 </div><!-- /.box -->
394
395
396
397
398 <div class="box box-primary box-solid">
399 <div class="box-header with-border">
400 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_TREE_VIEW_MENU_STYLE
401 <span id="id_span_desc_cn"> —— TreeView模式显示风格</span></h3>
402 <div class="box-tools pull-right">
403 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
404 </div><!-- /.box-tools -->
405 </div><!-- /.box-header -->
406 <div class="box-body no-padding">
407 <table class="table table-bordered no-padding">
408 <tr style="font-weight:bold;">
409 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
410 <td>
411 <label class="radio-inline">
412 <input type="radio" id="id_ctrl_radio_treestyle0" name="id_ctrl_radio_treestyle" data-type="0" value="0"> <span style="font-weight:bold;">0</span>
413 </label>&nbsp;&nbsp;&nbsp;&nbsp;
414 <label class="radio-inline">
415 <input type="radio" id="id_ctrl_radio_treestyle1" name="id_ctrl_radio_treestyle" data-type="1" value="1"> <span style="font-weight:bold;">1</span>
416 </label>
417 </td>
418 </tr>
419 <tr id="tr_title_desc_cn">
420 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
421 <td>TreeView模式下的菜单风格。
422 <code style="font-weight: bold;">0</code> 显示DIR和文件大小 &nbsp;&nbsp;&nbsp;
423 <code style="font-weight: bold;">1</code> 不显示DIR和文件大小。只在 VTOY_DEFAULT_MENU_MODE 为1时才有效。
424 </td>
425 </tr>
426 <tr id="tr_title_desc_en">
427 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
428 <td>
429 Menu style in TreeView mode.
430 <code style="font-weight: bold;">0</code> with DIR and file size prefix &nbsp;&nbsp;&nbsp;
431 <code style="font-weight: bold;">1</code> No DIR and file size. Default is 0.
432 </td>
433 </tr>
434 </table>
435 </div><!-- /.box-body -->
436 </div><!-- /.box -->
437
438
439 <div class="box box-primary box-solid">
440 <div class="box-header with-border">
441 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_FILT_DOT_UNDERSCORE_FILE
442 <span id="id_span_desc_cn"> —— 过滤以 ._ 开头的文件</span></h3>
443 <div class="box-tools pull-right">
444 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
445 </div><!-- /.box-tools -->
446 </div><!-- /.box-header -->
447 <div class="box-body no-padding">
448 <table class="table table-bordered no-padding">
449 <tr style="font-weight:bold;">
450 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
451 <td>
452 <label class="radio-inline">
453 <input type="radio" id="id_ctrl_radio_underscore0" name="id_ctrl_radio_underscore" data-type="0" value="0"> <span style="font-weight:bold;">0</span>
454 </label>&nbsp;&nbsp;&nbsp;&nbsp;
455 <label class="radio-inline">
456 <input type="radio" id="id_ctrl_radio_underscore1" name="id_ctrl_radio_underscore" data-type="1" value="1"> <span style="font-weight:bold;">1</span>
457 </label>
458 </td>
459 </tr>
460 <tr id="tr_title_desc_cn">
461 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
462 <td>过滤以 ._ 开头的文件。当使用苹果系统时,有时拷贝文件会产生一些 ._ 开头的文件,可以通过此选项过滤掉。
463 <code style="font-weight: bold;">0</code> 不过滤 &nbsp;&nbsp;
464 <code style="font-weight: bold;">1</code> 过滤
465 </td>
466 </tr>
467 <tr id="tr_title_desc_en">
468 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
469 <td>
470 Filter for files with prefix ._ in name. This will be useful when you use macOS (a lot of ._xxx file generated when you copy files).
471 <code style="font-weight: bold;">0</code> Don't filt &nbsp;&nbsp;&nbsp;
472 <code style="font-weight: bold;">1</code> Filt
473 </td>
474 </tr>
475 </table>
476 </div><!-- /.box-body -->
477 </div><!-- /.box -->
478
479
480
481 <div class="box box-primary box-solid">
482 <div class="box-header with-border">
483 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_SORT_CASE_SENSITIVE
484 <span id="id_span_desc_cn"> —— 菜单排序时是否区分大小写</span></h3>
485 <div class="box-tools pull-right">
486 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
487 </div><!-- /.box-tools -->
488 </div><!-- /.box-header -->
489 <div class="box-body no-padding">
490 <table class="table table-bordered no-padding">
491 <tr style="font-weight:bold;">
492 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
493 <td>
494 <label class="radio-inline">
495 <input type="radio" id="id_ctrl_radio_casesensitive0" name="id_ctrl_radio_casesensitive" data-type="0" value="0"> <span style="font-weight:bold;">0</span>
496 </label>&nbsp;&nbsp;&nbsp;&nbsp;
497 <label class="radio-inline">
498 <input type="radio" id="id_ctrl_radio_casesensitive1" name="id_ctrl_radio_casesensitive" data-type="1" value="1"> <span style="font-weight:bold;">1</span>
499 </label>
500 </td>
501 </tr>
502 <tr id="tr_title_desc_cn">
503 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
504 <td>在菜单排序时是否大小写敏感。
505 <code style="font-weight: bold;">0</code> 不区分大小写 &nbsp;&nbsp;&nbsp; <code style="font-weight: bold;">1</code> 区分大小写
506 </td>
507 </tr>
508 <tr id="tr_title_desc_en">
509 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
510 <td>
511 Case sensitive when sort the ISO files or directories. &nbsp;&nbsp;&nbsp;
512 <code style="font-weight: bold;">0</code> case insensitive &nbsp;&nbsp;&nbsp;<code style="font-weight: bold;">1</code> case sensitive
513 </td>
514 </tr>
515 </table>
516 </div><!-- /.box-body -->
517 </div><!-- /.box -->
518
519
520
521 <div class="box box-primary box-solid">
522 <div class="box-header with-border">
523 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_VHD_NO_WARNING</h3>
524 <div class="box-tools pull-right">
525 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
526 </div><!-- /.box-tools -->
527 </div><!-- /.box-header -->
528 <div class="box-body no-padding">
529 <table class="table table-bordered no-padding">
530 <tr style="font-weight:bold;">
531 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
532 <td>
533 <label class="radio-inline">
534 <input type="radio" id="id_ctrl_radio_vhd_warning0" name="id_ctrl_radio_vhd_warning" data-type="0" value="0"> <span style="font-weight:bold;">0</span>
535 </label>&nbsp;&nbsp;&nbsp;&nbsp;
536 <label class="radio-inline">
537 <input type="radio" id="id_ctrl_radio_vhd_warning1" name="id_ctrl_radio_vhd_warning" data-type="1" value="1"> <span style="font-weight:bold;">1</span>
538 </label>
539 </td>
540 </tr>
541 <tr id="tr_title_desc_cn">
542 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
543 <td>
544 <code style="font-weight: bold;">0</code> 启动Windows VHD(x)时,如果U盘分区不是NTFS格式,则显示告警信息。&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
545 <code style="font-weight: bold;">1</code> 不显示告警信息。
546 </td>
547 </tr>
548 <tr id="tr_title_desc_en">
549 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
550 <td>
551 <code style="font-weight: bold;">0</code> Show a warning message if the partition is not NTFS when booting VHD(x) file.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
552 <code style="font-weight: bold;">1</code> No warning message.
553 </td>
554 </tr>
555 </table>
556 </div><!-- /.box-body -->
557 </div><!-- /.box -->
558
559
560
561
562
563
564 <div class="box box-primary box-solid">
565 <div class="box-header with-border">
566 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_FILE_FLT_ISO
567 <span id="id_span_desc_cn"> —— 过滤 .iso 文件</span></h3>
568 <div class="box-tools pull-right">
569 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
570 </div><!-- /.box-tools -->
571 </div><!-- /.box-header -->
572 <div class="box-body no-padding">
573 <table class="table table-bordered no-padding">
574 <tr style="font-weight:bold;">
575 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
576 <td>
577 <label class="radio-inline">
578 <input type="radio" id="id_ctrl_radio_filt_iso0" name="id_ctrl_radio_filt_iso" data-type="0" value="0" > <span style="font-weight:bold;">0</span>
579 </label>&nbsp;&nbsp;&nbsp;&nbsp;
580 <label class="radio-inline">
581 <input type="radio" id="id_ctrl_radio_filt_iso1" name="id_ctrl_radio_filt_iso" data-type="1" value="1" > <span style="font-weight:bold;">1</span>
582 </label>
583 </td>
584 </tr>
585 <tr id="tr_title_desc_cn">
586 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
587 <td>
588 <code style="font-weight: bold;">0</code> 不过滤 .iso 文件 &nbsp;&nbsp; &nbsp;&nbsp;
589 <code style="font-weight: bold;">1</code> 过滤掉 .iso 文件。&nbsp;&nbsp; &nbsp;&nbsp;
590 过滤之后 .iso 文件就不会显示在启动菜单中。
591 </td>
592 </tr>
593 <tr id="tr_title_desc_en">
594 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
595 <td>
596 <code style="font-weight: bold;">0</code> List .iso files. &nbsp;&nbsp;&nbsp;&nbsp;
597 <code style="font-weight: bold;">1</code> Filter .iso files. &nbsp;&nbsp;&nbsp;&nbsp;
598 The iso files will not be shown in the boot menu if set to 1.
599 </td>
600 </tr>
601 </table>
602 </div><!-- /.box-body -->
603 </div><!-- /.box -->
604
605
606 <div class="box box-primary box-solid">
607 <div class="box-header with-border">
608 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_FILE_FLT_WIM
609 <span id="id_span_desc_cn"> —— 过滤 .wim 文件</span></h3>
610 <div class="box-tools pull-right">
611 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
612 </div><!-- /.box-tools -->
613 </div><!-- /.box-header -->
614 <div class="box-body no-padding">
615 <table class="table table-bordered no-padding">
616 <tr style="font-weight:bold;">
617 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
618 <td>
619 <label class="radio-inline">
620 <input type="radio" id="id_ctrl_radio_filt_wim0" name="id_ctrl_radio_filt_wim" data-type="0" value="0" > <span style="font-weight:bold;">0</span>
621 </label>&nbsp;&nbsp;&nbsp;&nbsp;
622 <label class="radio-inline">
623 <input type="radio" id="id_ctrl_radio_filt_wim1" name="id_ctrl_radio_filt_wim" data-type="1" value="1" > <span style="font-weight:bold;">1</span>
624 </label>
625 </td>
626 </tr>
627 <tr id="tr_title_desc_cn">
628 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
629 <td>
630 <code style="font-weight: bold;">0</code> 不过滤 .wim 文件 &nbsp;&nbsp; &nbsp;&nbsp;
631 <code style="font-weight: bold;">1</code> 过滤掉 .wim 文件。&nbsp;&nbsp; &nbsp;&nbsp;
632 过滤之后 .wim 文件就不会显示在启动菜单中。
633 </td>
634 </tr>
635 <tr id="tr_title_desc_en">
636 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
637 <td>
638 <code style="font-weight: bold;">0</code> List .wim files. &nbsp;&nbsp;&nbsp;&nbsp;
639 <code style="font-weight: bold;">1</code> Filter .wim files. &nbsp;&nbsp;&nbsp;&nbsp;
640 The wim files will not be shown in the boot menu if set to 1.
641 </td>
642 </tr>
643 </table>
644 </div><!-- /.box-body -->
645 </div><!-- /.box -->
646
647
648
649 <div class="box box-primary box-solid">
650 <div class="box-header with-border">
651 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_FILE_FLT_EFI
652 <span id="id_span_desc_cn"> —— 过滤 .efi 文件</span></h3>
653 <div class="box-tools pull-right">
654 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
655 </div><!-- /.box-tools -->
656 </div><!-- /.box-header -->
657 <div class="box-body no-padding">
658 <table class="table table-bordered no-padding">
659 <tr style="font-weight:bold;">
660 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
661 <td>
662 <label class="radio-inline">
663 <input type="radio" id="id_ctrl_radio_filt_efi0" name="id_ctrl_radio_filt_efi" data-type="0" value="0" > <span style="font-weight:bold;">0</span>
664 </label>&nbsp;&nbsp;&nbsp;&nbsp;
665 <label class="radio-inline">
666 <input type="radio" id="id_ctrl_radio_filt_efi1" name="id_ctrl_radio_filt_efi" data-type="1" value="1" > <span style="font-weight:bold;">1</span>
667 </label>
668 </td>
669 </tr>
670 <tr id="tr_title_desc_cn">
671 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
672 <td>
673 <code style="font-weight: bold;">0</code> 不过滤 .efi 文件 &nbsp;&nbsp; &nbsp;&nbsp;
674 <code style="font-weight: bold;">1</code> 过滤掉 .efi 文件。&nbsp;&nbsp; &nbsp;&nbsp;
675 过滤之后 .efi 文件就不会显示在启动菜单中。
676 </td>
677 </tr>
678 <tr id="tr_title_desc_en">
679 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
680 <td>
681 <code style="font-weight: bold;">0</code> List .efi files. &nbsp;&nbsp;&nbsp;&nbsp;
682 <code style="font-weight: bold;">1</code> Filter .efi files. &nbsp;&nbsp;&nbsp;&nbsp;
683 The efi files will not be shown in the boot menu if set to 1.
684 </td>
685 </tr>
686 </table>
687 </div><!-- /.box-body -->
688 </div><!-- /.box -->
689
690
691
692 <div class="box box-primary box-solid">
693 <div class="box-header with-border">
694 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_FILE_FLT_IMG
695 <span id="id_span_desc_cn"> —— 过滤 .img 文件</span></h3>
696 <div class="box-tools pull-right">
697 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
698 </div><!-- /.box-tools -->
699 </div><!-- /.box-header -->
700 <div class="box-body no-padding">
701 <table class="table table-bordered no-padding">
702 <tr style="font-weight:bold;">
703 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
704 <td>
705 <label class="radio-inline">
706 <input type="radio" id="id_ctrl_radio_filt_img0" name="id_ctrl_radio_filt_img" data-type="0" value="0" > <span style="font-weight:bold;">0</span>
707 </label>&nbsp;&nbsp;&nbsp;&nbsp;
708 <label class="radio-inline">
709 <input type="radio" id="id_ctrl_radio_filt_img1" name="id_ctrl_radio_filt_img" data-type="1" value="1" > <span style="font-weight:bold;">1</span>
710 </label>
711 </td>
712 </tr>
713 <tr id="tr_title_desc_cn">
714 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
715 <td>
716 <code style="font-weight: bold;">0</code> 不过滤 .img 文件 &nbsp;&nbsp; &nbsp;&nbsp;
717 <code style="font-weight: bold;">1</code> 过滤掉 .img 文件。&nbsp;&nbsp; &nbsp;&nbsp;
718 过滤之后 .img 文件就不会显示在启动菜单中。
719 </td>
720 </tr>
721 <tr id="tr_title_desc_en">
722 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
723 <td>
724 <code style="font-weight: bold;">0</code> List .img files. &nbsp;&nbsp;&nbsp;&nbsp;
725 <code style="font-weight: bold;">1</code> Filter .img files. &nbsp;&nbsp;&nbsp;&nbsp;
726 The img files will not be shown in the boot menu if set to 1.
727 </td>
728 </tr>
729 </table>
730 </div><!-- /.box-body -->
731 </div><!-- /.box -->
732
733
734
735 <div class="box box-primary box-solid">
736 <div class="box-header with-border">
737 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_FILE_FLT_VHD
738 <span id="id_span_desc_cn"> —— 过滤 .vhd(x) 文件</span></h3>
739 <div class="box-tools pull-right">
740 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
741 </div><!-- /.box-tools -->
742 </div><!-- /.box-header -->
743 <div class="box-body no-padding">
744 <table class="table table-bordered no-padding">
745 <tr style="font-weight:bold;">
746 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
747 <td>
748 <label class="radio-inline">
749 <input type="radio" id="id_ctrl_radio_filt_vhd0" name="id_ctrl_radio_filt_vhd" data-type="0" value="0" > <span style="font-weight:bold;">0</span>
750 </label>&nbsp;&nbsp;&nbsp;&nbsp;
751 <label class="radio-inline">
752 <input type="radio" id="id_ctrl_radio_filt_vhd1" name="id_ctrl_radio_filt_vhd" data-type="1" value="1" > <span style="font-weight:bold;">1</span>
753 </label>
754 </td>
755 </tr>
756 <tr id="tr_title_desc_cn">
757 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
758 <td>
759 <code style="font-weight: bold;">0</code> 不过滤 .vhd(x) 文件 &nbsp;&nbsp; &nbsp;&nbsp;
760 <code style="font-weight: bold;">1</code> 过滤掉 .vhd(x) 文件。&nbsp;&nbsp; &nbsp;&nbsp;
761 过滤之后 .vhd(x) 文件就不会显示在启动菜单中。
762 </td>
763 </tr>
764 <tr id="tr_title_desc_en">
765 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
766 <td>
767 <code style="font-weight: bold;">0</code> List .vhd(x) files. &nbsp;&nbsp;&nbsp;&nbsp;
768 <code style="font-weight: bold;">1</code> Filter .vhd(x) files. &nbsp;&nbsp;&nbsp;&nbsp;
769 The vhd(x) files will not be shown in the boot menu if set to 1.
770 </td>
771 </tr>
772 </table>
773 </div><!-- /.box-body -->
774 </div><!-- /.box -->
775
776
777
778 <div class="box box-primary box-solid">
779 <div class="box-header with-border">
780 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_FILE_FLT_VTOY
781 <span id="id_span_desc_cn"> —— 过滤 .vtoy 文件</span></h3>
782 <div class="box-tools pull-right">
783 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
784 </div><!-- /.box-tools -->
785 </div><!-- /.box-header -->
786 <div class="box-body no-padding">
787 <table class="table table-bordered no-padding">
788 <tr style="font-weight:bold;">
789 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
790 <td>
791 <label class="radio-inline">
792 <input type="radio" id="id_ctrl_radio_filt_vtoy0" name="id_ctrl_radio_filt_vtoy" data-type="0" value="0" > <span style="font-weight:bold;">0</span>
793 </label>&nbsp;&nbsp;&nbsp;&nbsp;
794 <label class="radio-inline">
795 <input type="radio" id="id_ctrl_radio_filt_vtoy1" name="id_ctrl_radio_filt_vtoy" data-type="1" value="1" > <span style="font-weight:bold;">1</span>
796 </label>
797 </td>
798 </tr>
799 <tr id="tr_title_desc_cn">
800 <td class="td_ctrl_col" id="td_title_desc">选项说明</td>
801 <td>
802 <code style="font-weight: bold;">0</code> 不过滤 .vtoy 文件 &nbsp;&nbsp; &nbsp;&nbsp;
803 <code style="font-weight: bold;">1</code> 过滤掉 .vtoy 文件。&nbsp;&nbsp; &nbsp;&nbsp;
804 过滤之后 .vtoy 文件就不会显示在启动菜单中。
805 </td>
806 </tr>
807 <tr id="tr_title_desc_en">
808 <td class="td_ctrl_col" id="td_title_desc">Option Description</td>
809 <td>
810 <code style="font-weight: bold;">0</code> List .vtoy files. &nbsp;&nbsp;&nbsp;&nbsp;
811 <code style="font-weight: bold;">1</code> Filter .vtoy files. &nbsp;&nbsp;&nbsp;&nbsp;
812 The vtoy files will not be shown in the boot menu if set to 1.
813 </td>
814 </tr>
815 </table>
816 </div><!-- /.box-body -->
817 </div><!-- /.box -->
818
819
820 <div class="box box-primary box-solid">
821 <div class="box-header with-border">
822 <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_HELP_TXT_LANGUAGE
823 <span id="id_span_desc_cn"> —— 帮助信息语言</span></h3>
824 <div class="box-tools pull-right">
825 <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
826 </div><!-- /.box-tools -->
827 </div><!-- /.box-header -->
828 <div class="box-body no-padding">
829 <table class="table table-bordered no-padding">
830 <tr style="font-weight:bold;">
831 <td class="td_ctrl_col" id="td_title_setting">选项设置</td>
832 <td>
833 <select id="id_ctrl_sel_help_lang" name="name_ctrl_sel_help_lang" class="form-control">
834
835 </select>
836 </td>
837 </tr>
838 <tr id="tr_title_desc_cn">
839 <td class="td_ctrl_col">选项说明</td>
840 <td>
841 快捷键 <code>h</code> 显示的帮助信息的语言版本。默认是 "en_US"。
842 具体请参考 <a target="_blank" href='https://www.ventoy.net/cn/plugin_control.html#vtoy_help_language'>Ventoy 帮助信息</a>
843 </td>
844 </tr>
845 <tr id="tr_title_desc_en">
846 <td class="td_ctrl_col">Option Description</td>
847 <td>
848 The language of the help text when press <code>h</code>. Default is "en_US",
849 refer <a target="_blank" href='https://www.ventoy.net/en/plugin_control.html#vtoy_help_language'>Ventoy Help Text</a> for details.
850 </td>
851 </tr>
852 </table>
853 </div><!-- /.box-body -->
854 </div><!-- /.box -->
855
856
857
858 </div>
859
860 </div>
861 <script type="text/javascript">
862 function VtoyPageLanguageChange(newlang) {
863 VtoyCommonChangeLanguage(newlang);
864
865 $('h1[id=id_h1_page_title]').text(g_vtoy_cur_language.STR_PLUG_CONTROL);
866 $('#id_ctrl_span_search_root_valid').text(g_vtoy_cur_language.STR_VALID);
867 $('#id_ctrl_span_search_root_invalid').text(g_vtoy_cur_language.STR_INVALID);
868 $('#id_ctrl_span_img_valid').text(g_vtoy_cur_language.STR_VALID);
869 $('#id_ctrl_span_img_invalid').text(g_vtoy_cur_language.STR_INVALID);
870
871 $("span[id=id_span_edit]").each(function(){
872 $(this).text(' ' + g_vtoy_cur_language.STR_EDIT);
873 });
874
875 $("span[id=id_span_clear]").each(function(){
876 $(this).text(' ' + g_vtoy_cur_language.STR_CLEAR);
877 });
878 }
879
880 function VtoyGetCurrentPageItem(data) {
881 var level;
882
883 data.win11_bypass_check = parseInt($('input:radio[name=id_ctrl_bypass_win11_radio]:checked').val());
884 data.default_search_root = $('input:text[id=id_ctrl_text_search_root]').val();
885 data.menu_timeout = parseInt($('input:text[id=id_ctrl_text_timeout]').val());
886 data.default_image = $('input:text[id=id_ctrl_text_default_img]').val();
887
888 level = $('select[id=id_ctrl_sel_max_depth').val();
889 if (level === 'max') {
890 data.max_search_level = -1;
891 } else {
892 data.max_search_level = parseInt(level);
893 }
894
895 data.default_kbd_layout = $('select[id=id_ctrl_sel_kbd').val();
896 data.default_menu_mode = parseInt($('input:radio[name=id_ctrl_radio_menu_mode]:checked').val());
897 data.treeview_style = parseInt($('input:radio[name=id_ctrl_radio_treestyle]:checked').val());
898
899 data.filter_dot_underscore = parseInt($('input:radio[name=id_ctrl_radio_underscore]:checked').val());
900 data.sort_casesensitive = parseInt($('input:radio[name=id_ctrl_radio_casesensitive]:checked').val());
901
902 data.vhd_no_warning = parseInt($('input:radio[name=id_ctrl_radio_vhd_warning]:checked').val());
903 data.filter_iso = parseInt($('input:radio[name=id_ctrl_radio_filt_iso]:checked').val());
904 data.filter_wim = parseInt($('input:radio[name=id_ctrl_radio_filt_wim]:checked').val());
905 data.filter_efi = parseInt($('input:radio[name=id_ctrl_radio_filt_efi]:checked').val());
906 data.filter_img = parseInt($('input:radio[name=id_ctrl_radio_filt_img]:checked').val());
907 data.filter_vhd = parseInt($('input:radio[name=id_ctrl_radio_filt_vhd]:checked').val());
908 data.filter_vtoy = parseInt($('input:radio[name=id_ctrl_radio_filt_vtoy]:checked').val());
909
910 data.help_text_language = $('select[id=id_ctrl_sel_help_lang').val();
911 }
912
913 function VtoyFillCurrentPageItem(data) {
914 //VTOY_WIN11_BYPASS_CHECK
915 $('input:radio[name=id_ctrl_bypass_win11_radio]')[data.win11_bypass_check].checked = true;
916
917 //VTOY_DEFAULT_SEARCH_ROOT
918 $('input:text[id=id_ctrl_text_search_root]').val(data.default_search_root);
919 if (data.default_search_root.length === 0) {
920 $('div[id=id_ctrl_div_root_status]').hide();
921 } else {
922 $('div[id=id_ctrl_div_root_status]').show();
923 if (data.default_search_root_valid === 0) {
924 $('span[id=id_ctrl_span_search_root_valid]').hide();
925 $('span[id=id_ctrl_span_search_root_invalid]').show();
926 } else {
927 $('span[id=id_ctrl_span_search_root_valid]').show();
928 $('span[id=id_ctrl_span_search_root_invalid]').hide();
929 }
930 }
931
932 //VTOY_MENU_TIMEOUT
933 $('input:text[id=id_ctrl_text_timeout]').val(data.menu_timeout);
934
935
936 //VTOY_DEFAULT_IMAGE
937 $('input:text[id=id_ctrl_text_default_img]').val(data.default_image);
938 if (data.default_image.length === 0) {
939 $('div[id=id_ctrl_div_img_status]').hide();
940 } else {
941 $('div[id=id_ctrl_div_img_status]').show();
942 if (data.default_image_valid === 0) {
943 $('span[id=id_ctrl_span_img_valid]').hide();
944 $('span[id=id_ctrl_span_img_invalid]').show();
945 } else {
946 $('span[id=id_ctrl_span_img_valid]').show();
947 $('span[id=id_ctrl_span_img_invalid]').hide();
948 }
949 }
950
951 //VTOY_MAX_SEARCH_LEVEL
952 if (data.max_search_level >=0 && data.max_search_level <= 10) {
953 $('select[id=id_ctrl_sel_max_depth').val(data.max_search_level);
954 } else {
955 $('select[id=id_ctrl_sel_max_depth').val('max');
956 }
957
958 //VTOY_DEFAULT_KBD_LAYOUT
959 $('select[id=id_ctrl_sel_kbd').val(data.default_kbd_layout);
960
961 //VTOY_DEFAULT_MENU_MODE
962 $('input:radio[name=id_ctrl_radio_menu_mode]')[data.default_menu_mode].checked = true;
963
964 //VTOY_TREE_VIEW_MENU_STYLE
965 $('input:radio[name=id_ctrl_radio_treestyle]')[data.treeview_style].checked = true;
966
967 //VTOY_FILT_DOT_UNDERSCORE_FILE
968 $('input:radio[name=id_ctrl_radio_underscore]')[data.filter_dot_underscore].checked = true;
969
970 //VTOY_SORT_CASE_SENSITIVE
971 $('input:radio[name=id_ctrl_radio_casesensitive]')[data.sort_casesensitive].checked = true;
972
973 //VTOY_VHD_NO_WARNING
974 $('input:radio[name=id_ctrl_radio_vhd_warning]')[data.vhd_no_warning].checked = true;
975
976 //VTOY_FILE_FLT_ISO
977 $('input:radio[name=id_ctrl_radio_filt_iso]')[data.filter_iso].checked = true;
978
979 //VTOY_FILE_FLT_WIM
980 $('input:radio[name=id_ctrl_radio_filt_wim]')[data.filter_wim].checked = true;
981
982 //VTOY_FILE_FLT_EFI
983 $('input:radio[name=id_ctrl_radio_filt_efi]')[data.filter_efi].checked = true;
984
985 //VTOY_FILE_FLT_IMG
986 $('input:radio[name=id_ctrl_radio_filt_img]')[data.filter_img].checked = true;
987
988
989 //VTOY_FILE_FLT_VHD
990 $('input:radio[name=id_ctrl_radio_filt_vhd]')[data.filter_vhd].checked = true;
991
992
993 //VTOY_FILE_FLT_VTOY
994 $('input:radio[name=id_ctrl_radio_filt_vtoy]')[data.filter_vtoy].checked = true;
995
996 //VTOY_HELP_TXT_LANGUAGE
997 if ($("select[id=id_ctrl_sel_help_lang")[0].options.length === 0)
998 {
999 for (var i = 0; i < data.help_list.length; i++) {
1000 var hlang = data.help_list[i];
1001 var opt = '<option title="'+hlang+'">'+hlang+'</option>';
1002 $('select[id=id_ctrl_sel_help_lang').append(opt);
1003 }
1004 }
1005
1006 $('select[id=id_ctrl_sel_help_lang').val(data.help_text_language);
1007 }
1008
1009 function VtoySaveCurrentPage() {
1010 VtoyGetCurrentPageItem(m_data_control[current_tab_index]);
1011 var data = m_data_control[current_tab_index];
1012
1013 callVtoy({
1014 method : 'save_control',
1015 index: current_tab_index,
1016 win11_bypass_check: data.win11_bypass_check,
1017 default_search_root: data.default_search_root,
1018 menu_timeout: data.menu_timeout,
1019 default_image: data.default_image,
1020 max_search_level: data.max_search_level,
1021 default_kbd_layout: data.default_kbd_layout,
1022 default_menu_mode: data.default_menu_mode,
1023 treeview_style: data.treeview_style,
1024 filter_dot_underscore: data.filter_dot_underscore,
1025 sort_casesensitive: data.sort_casesensitive,
1026 vhd_no_warning: data.vhd_no_warning,
1027 filter_iso: data.filter_iso,
1028 filter_wim: data.filter_wim,
1029 filter_efi: data.filter_efi,
1030 filter_img: data.filter_img,
1031 filter_vhd: data.filter_vhd,
1032 filter_vtoy: data.filter_vtoy,
1033 help_text_language: data.help_text_language
1034 }, function(e) {
1035 Message.success(g_vtoy_cur_language.STR_SAVE_SUCCESS);
1036 });
1037 }
1038
1039 function OnClickMultiModeTab() {
1040 var href = $(this).attr('href');
1041 var index = parseInt(href.substr(5, 1));
1042
1043 if (index < 0 || index >= g_vtoy_data_default_index || current_tab_index === index) {
1044 return;
1045 }
1046
1047 current_tab_index = index;
1048 VtoyFillCurrentPageItem(m_data_control[index]);
1049 }
1050
1051 function OnSelectSearchRoot(root, extra) {
1052 var path = root.substr(g_current_dir.length);
1053 $('input:text[id=id_ctrl_text_search_root]').val(path);
1054 if (path.length === 0) {
1055 $('div[id=id_ctrl_div_root_status]').hide();
1056 } else {
1057 $('div[id=id_ctrl_div_root_status]').show();
1058 $('span[id=id_ctrl_span_search_root_valid]').show();
1059 $('span[id=id_ctrl_span_search_root_invalid]').hide();
1060 }
1061 VtoySaveCurrentPage();
1062 }
1063
1064 function OnSelectDefaultImage(root, valid, extra) {
1065 var path = root.substr(g_current_dir.length);
1066 $('input:text[id=id_ctrl_text_default_img]').val(path);
1067 if (path.length === 0) {
1068 $('div[id=id_ctrl_div_img_status]').hide();
1069 } else {
1070 $('div[id=id_ctrl_div_img_status]').show();
1071 $('span[id=id_ctrl_span_img_valid]').show();
1072 $('span[id=id_ctrl_span_img_invalid]').hide();
1073 }
1074 VtoySaveCurrentPage();
1075 }
1076
1077 //Main process
1078 var m_data_control;
1079 var current_tab_index = 0;
1080
1081 callVtoySync({method : 'get_control'}, function(data) {
1082 m_data_control = data;
1083 });
1084
1085 $('#id_ctrl_btn_sel_root').click(function() {
1086 var tip = (g_current_os === 'windows') ? '\\ISO\\Windows' : "/ISO/Linux";
1087 var para = {
1088 "title": g_vtoy_cur_language.STR_SET_SEARCH_ROOT,
1089 "tip": g_current_dir + tip,
1090 "tip3": '',
1091 "extra": false,
1092 "extra_title": ''
1093 };
1094 VtoySelectDirPath(OnSelectSearchRoot, para);
1095 });
1096
1097 $('#id_ctrl_btn_clr_root').click(function() {
1098 var old = $('input:text[id=id_ctrl_text_search_root]').val();
1099 if (old.length != 0) {
1100 $('input:text[id=id_ctrl_text_search_root]').val('');
1101 $('div[id=id_ctrl_div_root_status]').hide();
1102 VtoySaveCurrentPage();
1103 }
1104 });
1105
1106 $('#id_ctrl_btn_default_img').click(function() {
1107 var tip = (g_current_os === 'windows') ? '\\ISO\\Windows10_en.iso' : "/ISO/Windows10_en.iso";
1108 var para = {
1109 "title": g_vtoy_cur_language.STR_SET_DEFAULT_IMAGE,
1110 "fuzzy": 0,
1111 "tip1": g_current_dir + tip,
1112 "tip2": '',
1113 "tip3": '',
1114 "extra": false,
1115 "extra_title": ''
1116 };
1117 VtoySelectFilePath(OnSelectDefaultImage, para);
1118 });
1119
1120 $('#id_ctrl_btn_clr_default').click(function() {
1121 var old = $('input:text[id=id_ctrl_text_default_img]').val();
1122 if (old.length != 0) {
1123 $('input:text[id=id_ctrl_text_default_img]').val('');
1124 $('div[id=id_ctrl_div_img_status]').hide();
1125 VtoySaveCurrentPage();
1126 }
1127 });
1128
1129 $('input[type=radio]').each(function(){
1130 var id = $(this).attr('id');
1131 if (id.startsWith('id_ctrl')) {
1132 $(this).change(VtoySaveCurrentPage);
1133 }
1134 });
1135 $('select[id=id_ctrl_sel_max_depth]').change(VtoySaveCurrentPage);
1136 $('select[id=id_ctrl_sel_kbd]').change(VtoySaveCurrentPage);
1137 $('select[id=id_ctrl_sel_help_lang]').change(VtoySaveCurrentPage);
1138 $('input[id=id_ctrl_text_timeout]').change(function() {
1139 var value = $('input:text[id=id_ctrl_text_timeout]').val();
1140 if (/^[0-9][0-9]*$/.test(value)) {
1141 VtoySaveCurrentPage();
1142 } else {
1143 Message.error(g_vtoy_cur_language.STR_INVALID_TIMEOUT);
1144 $('input:text[id=id_ctrl_text_timeout]').val(m_data_control[current_tab_index].menu_timeout);
1145 }
1146 });
1147
1148 $('#id_tab_control a[href="#tab_0"]').click(OnClickMultiModeTab);
1149 $('#id_tab_control a[href="#tab_1"]').click(OnClickMultiModeTab);
1150 $('#id_tab_control a[href="#tab_2"]').click(OnClickMultiModeTab);
1151 $('#id_tab_control a[href="#tab_3"]').click(OnClickMultiModeTab);
1152 $('#id_tab_control a[href="#tab_4"]').click(OnClickMultiModeTab);
1153 $('#id_tab_control a[href="#tab_5"]').click(OnClickMultiModeTab);
1154
1155 $('#id_tab_control a[href="#tab_0"]').tab('show');
1156 VtoyFillCurrentPageItem(m_data_control[0]);
1157 VtoyPageLanguageChange(g_current_language);
1158
1159 $('button[id=id_btn_collapse]').click(function() {
1160 $("button[data-widget='collapse'] i").each(function() {
1161 if ($(this).hasClass('fa-minus')) {
1162 $(this).click();
1163 }
1164 });
1165 });
1166
1167 $('button[id=id_btn_expand]').click(function() {
1168 $("button[data-widget='collapse'] i").each(function() {
1169 if ($(this).hasClass('fa-plus')) {
1170 $(this).click();
1171 }
1172 });
1173 });
1174
1175
1176 </script>