Diff -- /var/www/vhosts/3dshawn.com/site1/TEMPLATES/file_monitor_settings.html

O Operator
Diff

/var/www/vhosts/3dshawn.com/site1/TEMPLATES/file_monitor_settings.html

added on local at 2026-07-10 18:40:41

Added
+99
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to 1e3c37e9af92
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.
1<div class="div_area shadow">
2 <div class="div_area_header">
3 <div class="div_area_header_text">MANAGE FILE MONITORS</div>
4 <div style="position:relative;float:right;top:-21px;padding:0px 5px 0px 0px;">
5 <input type="button" name="" value="add location to scan" class="add_button" onClick="ajax_request('[url:file_monitor]&add_setup=1', 'file_monitor_div');success_msg('File Monitor Added - Ready To Be Configured');">
6 </div>
7 </div>
8 [area:file_monitor_div]
9 <div id="file_monitor_div">
10
11 <div class="div_area_content">
12 <div class="div_area_row page_font box_sizing">
13 <table width="100%" cellspacing="0" cellpadding="0" border="0">
14 <tr class="page_font">
15 <td align="left" width="100" title="This turns on and off all monitoring for this folder."><b>File Monitor</b></td>
16 <td align="left" width="220" title="This name is used only as a reference for knowing which file montitor you are looking at, it does not have any other purpose or functionality behind it."><b>Reference Name</b></td>
17 <td align="left" width="200"><b>Paths To Scan</b></td>
18 <td align="left" width="200" title="These folders & files are not tracked or monitored in any way or form, this feature is designed around the idea of not wanting to track certain folders or files, using regex you can even add file types to ingore within the specified folders. Regex ignore sample: /files/*.pl"><b>Ignore List</b></td>
19 <td align="left" width="100"><b>Email Triggers</b></td>
20 <td align="left" width="100"><b>Total Emails</b></td>
21 <td align="left" width="150"><b>Advanced Settings</b></td>
22 <td align="left">&nbsp;</td>
23 </tr>
24 </table>
25 </div>
26
27 [loop:@monitor_list]
28 <div class="div_area_row page_font box_sizing">
29 <table width="100%" cellspacing="0" cellpadding="0" border="0" style="position:relative;z-index:1;">
30 <tr class="page_font">
31 <td align="left" width="100">
32 <select name="status" class="page_font [if:$status eq '1']switch_on[/if][else]switch_off[/else]" style="width:60px;height:20px;" onChange="if(this.value=='1'){this.className='page_font switch_on';}else{this.className='page_font switch_off';} ajax_request('[url:file_monitor]&update_setup=1&update_status=1&file_monitor_list_id=$file_monitor_list_id&status='+encodeURIComponent(this.value) + '', '');success_msg('File Monitoring Status Updated');">
33 <option value="1" [if:$status eq '1']selected="selected"[/if] style="border:1px solid #548235;color:#548235;background: #e2efda;">on</option>
34 <option value="0" [if:$status eq '0']selected="selected"[/if] style="border:1px solid #b94441;color:#b94441;background: #ffb1b1;">off</option>
35 </select>
36 </td>
37 <td align="left" width="220"><input type="text" name="scan_name" value="$scan_name" class="text_field" style="width:95%;height:15px;background:transparent;border:0px;" onKeyPress="if(event.which == 13 || event.keyCode == 13){document.activeElement.blur();}" onBlur="ajax_request('[url:file_monitor]&update_setup=1&update_scan_name=1&file_monitor_list_id=$file_monitor_list_id&scan_name='+encodeURIComponent(this.value)+'', '');success_msg('Reference Name Updated!');"></td>
38 <td align="left" width="200"><textarea name="scan_path" id="scan_path" class="text_field edit_autogrow_textfield_style" autocomplete="off" autocorrect="off" autocapitalize="off" onkeyup="auto_grow(this)" style="width:195px;height:20px;" onfocus="this.style.height=scrollHeight+'px';this.style.width='400px';" onBlur="this.style.width='195px';this.style.height='20px'; ajax_request('[url:file_monitor]&update_setup=1&update_scan_path=1&file_monitor_list_id=$file_monitor_list_id&scan_path='+encodeURIComponent(this.value) + '', '');success_msg('Paths To Scan Updated');">$scan_path</textarea>
39 <td align="left" width="200"><textarea name="ignore_list" id="ignore_list" class="text_field edit_autogrow_textfield_style" autocomplete="off" autocorrect="off" autocapitalize="off" onkeyup="auto_grow(this)" style="width:195px;height:20px;" onfocus="this.style.height=scrollHeight+'px';this.style.width='400px';" onBlur="this.style.width='195px';this.style.height='20px'; ajax_request('[url:file_monitor]&update_setup=1&update_ignore_list=1&file_monitor_list_id=$file_monitor_list_id&ignore_list='+encodeURIComponent(this.value) + '', '');success_msg('Paths To Scan Updated');">$ignore_list</textarea>
40 <td align="left" width="100">&nbsp;</td>
41 <td align="left" width="100">$total_emails</td>
42 <td align="left" width="150" onClick="if(document.getElementById('db_$file_monitor_list_id').style.display=='none'){document.getElementById('db_$file_monitor_list_id').style.display='block';}else{document.getElementById('db_$file_monitor_list_id').style.display='none';}">advanced settings</td>
43 <td align="left">&nbsp;</td>
44 </tr>
45 </table>
46 <div id="db_$file_monitor_list_id" style="position:relative;z-index:2;display:none;height:auto;">
47 <div class="div_area" style="width:calc(100% - 30px);">
48 <div class="div_area_header2">
49 <div class="div_area_header_text2">ADVANCED SETTINGS</div>
50 </div>
51 <div class="div_area_content2" style="width:calc(100% - 20px);">
52 <table width="100%" cellspacing="0" cellpadding="4" border="0">
53 <tr class="page_font">
54 <td align="left" width="150" title="Shows if the system is capable of finding the location(s) to scan"><b>Path Verification</b></td>
55 <td align="left" width="150"><b>&nbsp;</b></td>
56 <td align="left" width="150"><b>&nbsp;</b></td>
57 </tr>
58 <tr class="page_font">
59 <td align="left" class="page_font"><div id="scan_verification_results_$file_monitor_list_id"></div></td>
60 <td align="left"><input type="button" name="button" value="test file scan paths" class="add_button" onClick="ajax_request('[url:file_monitor]&verify_scan_paths=1&file_monitor_list_id=$file_monitor_list_id', 'scan_verification_results_$file_monitor_list_id');success_msg('Ran Path Verification Tests!');"></td>
61 <td align="left"><input type="button" name="button" value="delete this file monitor" class="delete_button" onClick="var confirmed=confirm('Are you sure you want to delete this file monitor from the monitoring software?');if(confirmed==true){ajax_request('[url:file_monitor]&delete_setup=1&file_monitor_list_id=$file_monitor_list_id', 'file_monitor_div');success_msg('File Monitor Deleted!');}else{}"></td>
62 </tr>
63 </table>
64 </div>
65 </div>
66 </div>
67 </div>
68 [/loop]
69 </div>
70
71 </div>
72 [/area:file_monitor_div]
73</div>
74 <td align="left">
75 <div style="position:relative;">
76 <div style="position:absolute;float:left;top:-9px;">
77 <textarea name="track_tables_silently" id="track_tables_silently" class="text_field edit_autogrow_textfield_style" autocomplete="off" autocorrect="off" autocapitalize="off" onkeyup="auto_grow(this)" style="width:145px;height:20px;" onfocus="this.style.height=scrollHeight+'px';this.style.width='300px';" onKeyPress="if(event.which == 13 || event.keyCode == 13){document.activeElement.blur();}" onBlur="location.href='[url:file_monitor]&update_setup=1&file_monitor_list_id=$file_monitor_list_id&track_tables_silently='+encodeURIComponent(this.value);">$track_tables_silently</textarea>
78 </div>
79 </div>
80 </td>
81 <td align="left">
82 <select name="track_row_count" class="page_font" style="width:80%;height:15px;background:transparent;border:0px;" onChange="window.location.href='[url:file_monitor]&update_setup=1&file_monitor_list_id=$file_monitor_list_id&track_row_count='+encodeURIComponent(this.value);">
83 <option value="1" [if:$track_row_count eq '1']selected="selected"[/if]>yes</option>
84 <option value="0" [if:$track_row_count eq '0']selected="selected"[/if]>no</option>
85 </select>
86 </td>
87 <td align="left" style="color:#[if:$connection_status eq '1']009800[/if][else]FF0000[/else]">[if:$connection_status eq '1']path test successful[/if][else]path test failed[/else]</td>
88 <td align="left">$last_scanned</td>
89 <td align="left"><input type="button" name="" value="test connection" class="add_button" onClick="location.href='[url:file_monitor]&test_connection=1&file_monitor_list_id=$file_monitor_list_id';"></td>
90 <td align="left"><input type="button" name="" value="delete" class="delete_button" onClick="var confirmed=confirm('Are you sure you want to delete this path we are monitoring?');if(confirmed==true){location.href='[url:file_monitor]&delete_setup=1&file_monitor_list_id=$file_monitor_list_id';}else{}"></td>
91 </tr>
92 </table>
93 </div>
94 </div>
95 </div>
96 </div>
97 [/loop]
98 </div>
99</div>