-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathform.json
28 lines (28 loc) · 2.31 KB
/
form.json
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
{
"elements": [
{ "type": "SelectMedia", "name": "View", "caption": "View" },
{ "type": "ValidationTextBox", "name": "Directory", "caption": "Directory" },
{ "type": "Label", "label": "---------------------------------" },
{ "type": "CheckBox", "name": "AutoBackup", "caption": "Automatic Backup" },
{ "type": "IntervalBox", "name": "Interval", "caption": "Minutes" },
{ "type": "Label", "label": "---------------------------------" },
{ "type": "CheckBox", "name": "AutoPurge", "caption": "Automatic Purge" },
{ "type": "NumberSpinner", "name": "PurgeDays", "caption": "Purge Days", "digits": 0}
],
"actions": [
{ "type": "Button", "label": "Backup Now", "onClick": "IPSView_Backup($id);" },
{ "type": "Label", "label": "---------------------------------" },
{ "type": "Label", "label": "Restore View" },
{ "type": "ValidationTextBox", "name": "FileName", "caption": "FileName" },
{ "type": "Label", "label": "or" },
{ "type": "ValidationTextBox", "name": "FileIdxBack", "caption": "FileIdxBack", "digits": 0 },
{ "type": "Button", "label": "Restore View", "onClick": "if (trim($FileName) != '') { $result=IPSView_RestoreByFileName($id, $FileName); } else { $result=IPSView_RestoreByFileIdx($id, $FileIdxBack);} if ($result) { echo 'Restored !';} else { echo 'Backup NOT found: '.PHP_EOL; }" },
{ "type": "Button", "label": "Show Backupfiles", "onClick": "$files=IPSView_GetBackupFiles($id); echo 'Files: '.PHP_EOL; foreach ($files as $num=>$file) { echo $num.'='.$file.PHP_EOL;}" }
],
"status": [
{ "code": 102, "icon": "active", "caption": "Backup is active" },
{ "code": 104, "icon": "inactive", "caption": "Backup is inactive" },
{ "code": 201, "icon": "error", "caption": "No Directory specified" },
{ "code": 202, "icon": "error", "caption": "Specified Directory not found" },
{ "code": 203, "icon": "error", "caption": "No View specified for Backup" }
]}