Add list option for plugins

This commit is contained in:
Emmanuel Papin 2015-05-14 11:38:38 +02:00
parent 6b2c435460
commit 676968ed04
27 changed files with 318 additions and 15 deletions

View File

@ -80,6 +80,7 @@ $SLANG = array(
'8BitGrey' => '8 位元灰階',
'Action' => 'Action',
'Actual' => 'Actual',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => '新增控制',
'AddNewMonitor' => '新增監視',
'AddNewUser' => '新增使用者',
@ -96,6 +97,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => '警告',
'All' => '全部',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => '確定',
'ApplyingStateChange' => '確定狀態改變',
'ArchArchived' => 'Archived Only',
@ -523,6 +525,8 @@ $SLANG = array(
'NumPresets' => 'Num Presets',
'Off' => 'Off',
'On' => 'On',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -591,6 +595,7 @@ $SLANG = array(
'RemoteImageColours' => 'Remote Image Colours',
'RemoteMethod' => 'Remote Method', // Added - 2009-02-08
'RemoteProtocol' => 'Remote Protocol', // Added - 2009-02-08
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => '重新命名',
'Replay' => '重新播放',
'ReplayAll' => 'All Events',

View File

@ -76,6 +76,7 @@ $SLANG = array(
'8BitGrey' => '8 位灰度',
'Action' => '活动动作',
'Actual' => '实际',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => '新建控制',
'AddNewMonitor' => '新建监视器',
'AddNewUser' => '新建用户',
@ -92,6 +93,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => '警报',
'All' => '全部',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => '应用',
'ApplyingStateChange' => '状态改变生效',
'ArchArchived' => '仅限于存档',
@ -519,6 +521,8 @@ $SLANG = array(
'NumPresets' => '数值预置',
'Off' => '关',
'On' => '开',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -587,6 +591,7 @@ $SLANG = array(
'RemoteImageColours' => '远程影像颜色',
'RemoteMethod' => '远程方法',
'RemoteProtocol' => '远程协议',
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => '重命名',
'Replay' => '重放',
'ReplayAll' => '全部事件',

View File

@ -76,6 +76,7 @@ $SLANG = array(
'8BitGrey' => '8 bit ¹edá ¹kála',
'Action' => 'Akce',
'Actual' => 'Skuteèná',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'Pøidat nové øízení',
'AddNewMonitor' => 'Pøidat kameru',
'AddNewUser' => 'Pøidat u¾ivatele',
@ -92,6 +93,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => 'Pozor',
'All' => 'V¹echny',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => 'Pou¾ít',
'ApplyingStateChange' => 'Aplikuji zmìnu stavu',
'ArchArchived' => 'Pouze archivované',
@ -519,6 +521,8 @@ $SLANG = array(
'NumPresets' => 'Poèet pøedvoleb',
'Off' => 'Off',
'On' => 'On',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -587,6 +591,7 @@ $SLANG = array(
'RemoteImageColours' => 'Barvy',
'RemoteMethod' => 'Remote Method', // Added - 2009-02-08
'RemoteProtocol' => 'Remote Protocol', // Added - 2009-02-08
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => 'Pøejmenovat',
'Replay' => 'Replay',
'ReplayAll' => 'All Events',

View File

@ -76,6 +76,7 @@ $SLANG = array(
'8BitGrey' => '8-Bit-Grau',
'Action' => 'Aktion',
'Actual' => 'Original',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'Neues Kontrollelement hinzuf&uuml;gen',
'AddNewMonitor' => 'Neuer Monitor',
'AddNewUser' => 'Neuer Benutzer',
@ -92,6 +93,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => 'Alarm',
'All' => 'Alle',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => 'OK',
'ApplyingStateChange' => 'Aktiviere neuen Status',
'ArchArchived' => 'Nur Archivierte',
@ -519,6 +521,8 @@ $SLANG = array(
'NumPresets' => 'Nummerierte Voreinstellungen',
'Off' => 'Aus',
'On' => 'An',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -587,6 +591,7 @@ $SLANG = array(
'RemoteImageColours' => 'Entfernte Bildfarbe',
'RemoteMethod' => 'Remote Method', // Added - 2009-02-08
'RemoteProtocol' => 'Remote Protocol', // Added - 2009-02-08
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => 'Umbenennen',
'Replay' => 'Wiederholung',
'ReplayAll' => 'Alle Ereignisse',

View File

@ -77,6 +77,7 @@ $SLANG = array(
'8BitGrey' => '8 bit greyscale',
'Action' => 'Action',
'Actual' => 'Aktuel',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'Tilføj Ny kontrol',
'AddNewMonitor' => 'Tilføj Ny Monitor',
'AddNewUser' => 'Tilføj Ny Bruger',
@ -93,6 +94,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => 'Alarm',
'All' => 'Alle',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => 'Aktiver',
'ApplyingStateChange' => 'Aktivere State Ændring',
'ArchArchived' => 'Kun Arkiverede',
@ -520,6 +522,8 @@ $SLANG = array(
'NumPresets' => 'Num Presets',
'Off' => 'Off',
'On' => 'On',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -588,6 +592,7 @@ $SLANG = array(
'RemoteImageColours' => 'Remote Image Farver',
'RemoteMethod' => 'Remote Method', // Added - 2009-02-08
'RemoteProtocol' => 'Remote Protocol', // Added - 2009-02-08
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => 'Omdøb',
'Replay' => 'Spil Igen',
'ReplayAll' => 'All Events',

View File

@ -85,6 +85,7 @@ $SLANG = array(
'8BitGrey' => '8 bit greyscale',
'Action' => 'Action',
'Actual' => 'Actual',
'Add' => 'Add',
'AddNewControl' => 'Add New Control',
'AddNewMonitor' => 'Add New Monitor',
'AddNewUser' => 'Add New User',
@ -101,6 +102,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score',
'Alert' => 'Alert',
'All' => 'All',
'AlreadyInList' => 'Already present in list',
'Apply' => 'Apply',
'ApplyingStateChange' => 'Applying State Change',
'ArchArchived' => 'Archived Only',
@ -520,6 +522,8 @@ $SLANG = array(
'Notes' => 'Notes',
'NumPresets' => 'Num Presets',
'Off' => 'Off',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed',
'OnlyIntegers' => 'An integer number is required',
'On' => 'On',
'OnvifProbe' => 'ONVIF',
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>',
@ -588,6 +592,7 @@ $SLANG = array(
'RemoteMethod' => 'Remote Method',
'RemoteProtocol' => 'Remote Protocol',
'Remote' => 'Remote',
'Remove' => 'Remove',
'Rename' => 'Rename',
'ReplayAll' => 'All Events',
'ReplayGapless' => 'Gapless Events',

View File

@ -27,6 +27,7 @@ $SLANG = array(
'8BitGrey' => 'Grises 8 bits',
'Action' => 'Action',
'Actual' => 'Actual',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'Add New Control',
'AddNewMonitor' => 'Agregar Nuevo Monitor',
'AddNewUser' => 'Agregar Nuevo Usuario',
@ -43,6 +44,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => 'Alerta',
'All' => 'Todo',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => 'Aplicar',
'ApplyingStateChange' => 'Aplicar Cambio Estado',
'ArchArchived' => 'Solo Archivados',
@ -470,6 +472,8 @@ $SLANG = array(
'NumPresets' => 'Num Presets',
'Off' => 'Off',
'On' => 'On',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -538,6 +542,7 @@ $SLANG = array(
'RemoteImageColours' => 'Remote Image Colours',
'RemoteMethod' => 'Remote Method', // Added - 2009-02-08
'RemoteProtocol' => 'Remote Protocol', // Added - 2009-02-08
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => 'Renombrar',
'Replay' => 'Replay',
'ReplayAll' => 'All Events',

View File

@ -76,6 +76,7 @@ $SLANG = array(
'8BitGrey' => 'Grises 8 bits',
'Action' => 'Acción',
'Actual' => 'Actual',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'Añadir nuevo control',
'AddNewMonitor' => 'Añadir nuevo monitor',
'AddNewUser' => 'Añadir nuevo usuario',
@ -92,6 +93,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => 'Alerta',
'All' => 'Todo',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => 'Aplicar',
'ApplyingStateChange' => 'Aplicando cambio de estado...',
'ArchArchived' => 'Sólo archivados',
@ -519,6 +521,8 @@ $SLANG = array(
'NumPresets' => 'Número programa',
'Off' => 'Off',
'On' => 'On',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -587,6 +591,7 @@ $SLANG = array(
'RemoteImageColours' => 'Colores de imagen remota',
'RemoteMethod' => 'Método remoto',
'RemoteProtocol' => 'Protocolo remoto',
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => 'Renombrar',
'Replay' => 'Repetir',
'ReplayAll' => 'Todos los eventos',

View File

@ -77,6 +77,7 @@ $SLANG = array(
'8BitGrey' => '8 bit mustvalge',
'Action' => 'Action',
'Actual' => 'Aktuaalne',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'Lisa uus Kontroll',
'AddNewMonitor' => 'Lisa uus Monitor',
'AddNewUser' => 'Lisa uus Kasutaja',
@ -93,6 +94,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => 'Hoiatus',
'All' => 'All',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => 'Apply',
'ApplyingStateChange' => 'Applying State Change',
'ArchArchived' => 'Arhiveeritud Ainult',
@ -520,6 +522,8 @@ $SLANG = array(
'NumPresets' => 'Num Presets',
'Off' => 'Väljas',
'On' => 'Sees',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -588,6 +592,7 @@ $SLANG = array(
'RemoteImageColours' => 'Remote Image Colours',
'RemoteMethod' => 'Remote Method',
'RemoteProtocol' => 'Remote Protocol',
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => 'Nimeta ümber',
'Replay' => 'Kordus esitus',
'ReplayAll' => 'Kõik sündmused',

View File

@ -82,6 +82,7 @@ $SLANG = array(
'8BitGrey' => 'Gris 8 bits',
'Action' => 'Action',
'Actual' => 'Réel',
'Add' => 'Ajouter', // Added - 2015-05-14
'AddNewControl' => 'Ajouter contrôle',
'AddNewMonitor' => 'Ajouter caméra',
'AddNewUser' => 'Ajouter utilisateur',
@ -98,6 +99,7 @@ $SLANG = array(
'AlarmScore' => 'Score alarme', // Added - 2015-05-06
'Alert' => 'Alerte',
'All' => 'Tous',
'AlreadyInList' => 'Déjà présent dans la liste', // Added - 2015-05-14
'Apply' => 'Appliquer',
'ApplyingStateChange' => 'Appl. chgt état',
'ArchArchived' => 'Archivé seul.',
@ -525,6 +527,8 @@ $SLANG = array(
'NumPresets' => 'Nombre',
'Off' => 'Désactiver',
'On' => 'Activer',
'OnlyAlphaChars' => 'Seuls les caractères alphanumériques sont autorisés', // Added - 2015-05-14
'OnlyIntegers' => 'Un nombre entier est requis', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Veuillez fournir un nom d\'utilisateur et un mot de passe pour la caméra sélectionnée.<br/>Si aucun utilisateur n\'a été créé pour la caméra alors l\'utilisateur saisi sera créé avec le mot de passe associé.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'La liste ci-dessous montre les caméras ONVIF détectées et si elles sont déjà utilisées ou disponibles.<br/><br/>Sélectionnez la caméra souhaitée dans la liste ci-dessous.<br/><br/>Veuillez noter que toutes les caméras ne sont pas forcément détectées et que la sauvegarde entraînera l\'écrasement des paramètres déjà configurés pour la caméra en cours.<br/><br/>', // Added - 2015-04-18
@ -593,6 +597,7 @@ $SLANG = array(
'RemoteImageColours' => 'Nombre de couleurs',
'RemoteMethod' => 'Méthode', // Added - 2009-02-08
'RemoteProtocol' => 'Protocole', // Added - 2009-02-08
'Remove' => 'Enlever', // Added - 2015-05-14
'Rename' => 'Renommer',
'Replay' => 'Relire',
'ReplayAll' => 'Tous les événements',

View File

@ -76,6 +76,7 @@ $SLANG = array(
'8BitGrey' => 'âååðé àôåø 8 áéè',
'Action' => 'ôòåìä',
'Actual' => 'î÷åøé',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'äåñó ÷åðèøåì çãù',
'AddNewMonitor' => 'äåñó îåðéèåø çãù',
'AddNewUser' => 'äåñó îùúîù çãù',
@ -92,6 +93,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => 'äúøàä',
'All' => 'äëì',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => 'äçì',
'ApplyingStateChange' => 'äçì ùéðåé îöá',
'ArchArchived' => 'àøëéá áìáã',
@ -519,6 +521,8 @@ $SLANG = array(
'NumPresets' => 'Num Presets',
'Off' => 'ëáåé',
'On' => 'ãìå÷',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -587,6 +591,7 @@ $SLANG = array(
'RemoteImageColours' => 'Remote Image Colours',
'RemoteMethod' => 'Remote Method', // Added - 2009-02-08
'RemoteProtocol' => 'Remote Protocol', // Added - 2009-02-08
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => 'ùðä ùí',
'Replay' => 'Replay',
'ReplayAll' => 'All Events',

View File

@ -119,6 +119,7 @@ $SLANG = array(
'8BitGrey' => '8 bit szürkeárnyalat',
'Action' => 'Művelet',
'Actual' => 'Valós',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'Új vezérlés',
'AddNewMonitor' => 'Új kamera',
'AddNewUser' => 'Új felhasználó',
@ -135,6 +136,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => 'Figyelem',
'All' => 'Mind',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => 'Alkalmaz',
'ApplyingStateChange' => 'Állapot váltása...',
'ArchArchived' => 'Csak archivált',
@ -562,6 +564,8 @@ $SLANG = array(
'NumPresets' => 'Profilok száma',
'Off' => 'Ki',
'On' => 'Be',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -630,6 +634,7 @@ $SLANG = array(
'RemoteImageColours' => 'A kép színe',
'RemoteMethod' => 'Hálózati cím mód',
'RemoteProtocol' => 'Hálózati protokoll',
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => 'Átnevezés',
'Replay' => 'Események visszajátszása',
'ReplayAll' => 'Mindet',

View File

@ -81,6 +81,7 @@ $SLANG = array(
'8BitGrey' => '8 bit scala di grigio',
'Action' => 'Azione',
'Actual' => 'Attuale',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'Aggiungi nuovo Controllo',
'AddNewMonitor' => 'Aggiungi nuovo Monitor',
'AddNewUser' => 'Aggiungi nuovo Utente',
@ -97,6 +98,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => 'Attenzione',
'All' => 'Tutto',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => 'Applica',
'ApplyingStateChange' => 'Sto applicando le modifiche',
'ArchArchived' => 'Archiviato',
@ -524,6 +526,8 @@ $SLANG = array(
'NumPresets' => 'Num Presets',
'Off' => 'Off',
'On' => 'On',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -592,6 +596,7 @@ $SLANG = array(
'RemoteImageColours' => 'Colori delle immagini Remote',
'RemoteMethod' => 'Metodo Remoto', // Added - 2009-02-08
'RemoteProtocol' => 'Protocollo Remoto', // Added - 2009-02-08
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => 'Rinomina',
'Replay' => 'Replay',
'ReplayAll' => 'All Events',

View File

@ -76,6 +76,7 @@ $SLANG = array(
'8BitGrey' => '8ビット濃淡画像',
'Action' => 'Action',
'Actual' => '生中継',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'Add New Control',
'AddNewMonitor' => 'モニター追加',
'AddNewUser' => 'ユーザ追加',
@ -92,6 +93,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => '警告',
'All' => '全て',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => '適用',
'ApplyingStateChange' => '変更適用中',
'ArchArchived' => '保存分のみ',
@ -519,6 +521,8 @@ $SLANG = array(
'NumPresets' => 'Num Presets',
'Off' => 'Off',
'On' => 'On',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -587,6 +591,7 @@ $SLANG = array(
'RemoteImageColours' => 'リモート イメージ カラー',
'RemoteMethod' => 'Remote Method', // Added - 2009-02-08
'RemoteProtocol' => 'Remote Protocol', // Added - 2009-02-08
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => '新しい名前をつける',
'Replay' => 'Replay',
'ReplayAll' => 'All Events',

View File

@ -76,6 +76,7 @@ $SLANG = array(
'8BitGrey' => '8 bits grijstinten',
'Action' => 'Actie',
'Actual' => 'Aktueel',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'Nieuwe controle toevoegen',
'AddNewMonitor' => 'Nieuwe monitor toevoegen',
'AddNewUser' => 'Nieuwe gebruiker toevoegen',
@ -92,6 +93,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => 'Waarschuwing',
'All' => 'Alle',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => 'Voer uit',
'ApplyingStateChange' => 'Status verandering aan het uitvoeren',
'ArchArchived' => 'Alleen gearchiveerd',
@ -519,6 +521,8 @@ $SLANG = array(
'NumPresets' => 'Num Voorkeuren',
'Off' => 'Uit',
'On' => 'Aan',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -587,6 +591,7 @@ $SLANG = array(
'RemoteImageColours' => 'Remote foto kleuren',
'RemoteMethod' => 'Remote Methode', // Added - 2009-02-08
'RemoteProtocol' => 'Remote Protocol', // Added - 2009-02-08
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => 'Hernoem',
'Replay' => 'Opnieuw',
'ReplayAll' => 'Alle Gebeurtenissen',

View File

@ -76,6 +76,7 @@ $SLANG = array(
'8BitGrey' => 'Cz/b (8 bitów)',
'Action' => 'Action',
'Actual' => 'Aktualny',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'Add New Control',
'AddNewMonitor' => 'Dodaj nowy monitor',
'AddNewUser' => 'Dodaj u¿ytkownika',
@ -92,6 +93,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => 'Gotowosc',
'All' => 'Wszystko',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => 'Zastosuj',
'ApplyingStateChange' => 'Zmieniam stan pracy',
'ArchArchived' => 'Tylko zarchiwizowane',
@ -519,6 +521,8 @@ $SLANG = array(
'NumPresets' => 'Num Presets',
'Off' => 'Off',
'On' => 'On',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -587,6 +591,7 @@ $SLANG = array(
'RemoteImageColours' => 'Kolory zdalnego obrazu',
'RemoteMethod' => 'Remote Method', // Added - 2009-02-08
'RemoteProtocol' => 'Remote Protocol', // Added - 2009-02-08
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => 'Zmieñ nazwê',
'Replay' => 'Replay',
'ReplayAll' => 'All Events',

View File

@ -16,6 +16,7 @@ $SLANG = array(
'8BitGrey' => 'cinza 8 bits',
'Action' => 'Action',
'Actual' => 'Atual',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'Add New Control',
'AddNewMonitor' => 'Adicionar Monitor',
'AddNewUser' => 'Adicionar Usuário',
@ -32,6 +33,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => 'Alerta',
'All' => 'Tudo',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => 'Aplicar',
'ApplyingStateChange' => 'Aplicando mudança de estado',
'ArchArchived' => 'Somente Arquivados',
@ -459,6 +461,8 @@ $SLANG = array(
'NumPresets' => 'Num Presets',
'Off' => 'Off',
'On' => 'On',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -527,6 +531,7 @@ $SLANG = array(
'RemoteImageColours' => 'Cores de imagem remota',
'RemoteMethod' => 'Remote Method', // Added - 2009-02-08
'RemoteProtocol' => 'Remote Protocol', // Added - 2009-02-08
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => 'Renomear',
'Replay' => 'Ver Novamente',
'ReplayAll' => 'All Events',

View File

@ -47,6 +47,7 @@ $SLANG = array(
'8BitGrey' => 'Scal&#259 gri &#226;n 8 bi&#355;i',
'Action' => 'Action',
'Actual' => 'Real',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'Adaug&#259; control nou',
'AddNewMonitor' => 'Adaug&#259; monitor',
'AddNewUser' => 'Adaug&#259; utilizator',
@ -63,6 +64,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => 'Alert',
'All' => 'Toate',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => 'Accept',
'ApplyingStateChange' => 'Aplic schimbarea de stare',
'ArchArchived' => 'Numai arhivate',
@ -490,6 +492,8 @@ $SLANG = array(
'NumPresets' => 'Num Presets',
'Off' => 'Off',
'On' => 'On',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -558,6 +562,7 @@ $SLANG = array(
'RemoteImageColours' => 'Remote Image Colours',
'RemoteMethod' => 'Remote Method', // Added - 2009-02-08
'RemoteProtocol' => 'Remote Protocol', // Added - 2009-02-08
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => 'Rename',
'Replay' => 'Replay',
'ReplayAll' => 'All Events',

View File

@ -76,6 +76,7 @@ $SLANG = array(
'8BitGrey' => '256 ÏÔÔÅÎËÏ× ÓÅÒÏÇÏ',
'Action' => 'Action',
'Actual' => 'äÅÊÓÔ×ÉÔÅÌØÎÙÊ',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'Add New Control',
'AddNewMonitor' => 'äÏÂÁ×ÉÔØ ÍÏÎÉÔÏÒ',
'AddNewUser' => 'äÏÂÁ×ÉÔØ ÐÏÌØÚÏ×ÁÔÅÌÑ',
@ -92,6 +93,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => 'îÁÓÔÏÒÏÖÅ',
'All' => '÷ÓÅ',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => 'ðÒÉÍÅÎÉÔØ',
'ApplyingStateChange' => 'óÏÓÔÏÑÎÉÅ ÓÅÒ×ÉÓÁ ÉÚÍÅÎÑÅÔÓÑ',
'ArchArchived' => 'ôÏÌØËÏ × ÁÒÈÉ×Å',
@ -519,6 +521,8 @@ $SLANG = array(
'NumPresets' => 'Num Presets',
'Off' => 'Off',
'On' => 'On',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -587,6 +591,7 @@ $SLANG = array(
'RemoteImageColours' => 'ã×ÅÔÎÏÓÔØ ÎÁ ÕÄÁÌÅÎÎÏÍ ÈÏÓÔÅ',
'RemoteMethod' => 'Remote Method', // Added - 2009-02-08
'RemoteProtocol' => 'Remote Protocol', // Added - 2009-02-08
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => 'ðÅÒÅÉÍÅÎÏ×ÁÔØ',
'Replay' => 'Replay',
'ReplayAll' => 'All Events',

View File

@ -77,6 +77,7 @@ $SLANG = array(
'8BitGrey' => '8 bit gråskala',
'Action' => 'Action',
'Actual' => 'Verklig',
'Add' => 'Add', // Added - 2015-05-14
'AddNewControl' => 'Ny kontroll',
'AddNewMonitor' => 'Ny bevakare',
'AddNewUser' => 'Ny användare',
@ -93,6 +94,7 @@ $SLANG = array(
'AlarmScore' => 'Alarm Score', // Added - 2015-05-06
'Alert' => 'Varning',
'All' => 'Alla',
'AlreadyInList' => 'Already present in list', // Added - 2015-05-14
'Apply' => 'Lägg till',
'ApplyingStateChange' => 'Aktivera statusändring',
'ArchArchived' => 'Arkivera endast',
@ -520,6 +522,8 @@ $SLANG = array(
'NumPresets' => 'Antal förinställningar',
'Off' => 'Av',
'On' => 'På',
'OnlyAlphaChars' => 'Only alphanumeric characters are allowed', // Added - 2015-05-14
'OnlyIntegers' => 'An integer number is required', // Added - 2015-05-14
'OnvifCredentialsIntro'=> 'Please supply user name and password for the selected camera.<br/>If no user has been created for the camera then the user given here will be created with the given password.<br/><br/>', // Added - 2015-04-18
'OnvifProbe' => 'ONVIF', // Added - 2015-04-18
'OnvifProbeIntro' => 'The list below shows detected ONVIF cameras and whether they are already being used or available for selection.<br/><br/>Select the desired entry from the list below.<br/><br/>Please note that not all cameras may be detected and that choosing a camera here may overwrite any values you already have configured for the current monitor.<br/><br/>', // Added - 2015-04-18
@ -588,6 +592,7 @@ $SLANG = array(
'RemoteImageColours' => 'Fjärrbildfärger',
'RemoteMethod' => 'Remote Method', // Added - 2009-02-08
'RemoteProtocol' => 'Remote Protocol', // Added - 2009-02-08
'Remove' => 'Remove', // Added - 2015-05-14
'Rename' => 'Byt namn',
'Replay' => 'Repris',
'ReplayAll' => 'Alla händelser',

View File

@ -23,3 +23,22 @@
vertical-align: top;
white-space: nowrap;
}
table.listSetting {
border-spacing: 3px!important;
border-collapse: separate!important;
}
table.listSetting td {
vertical-align: top!important;
border: 0px!important;
padding: 0px!important
}
table.listSetting input[type=text] {
width: 96px
}
table.listSetting select {
width: 100px;
}

View File

@ -15,6 +15,7 @@
border: 1px solid #7f7fb2;
padding: 3px;
text-align: left;
vertical-align: middle;
}
#pluginSettings th[scope=row] {
@ -22,3 +23,28 @@
vertical-align: top;
white-space: nowrap;
}
table.listSetting {
border-spacing: 3px!important;
border-collapse: separate!important;
}
table.listSetting td {
vertical-align: top!important;
border: 0px!important;
padding: 0px!important
}
table.listSetting input[type=text] {
width: 96px
}
table.listSetting input[type=button] {
height: 26px;
font-size: 40%;
padding-top:1px;
}
table.listSetting select {
width: 100px;
}

View File

@ -56,6 +56,7 @@ var popupSizes = {
'onvifprobe': { 'width': 500, 'height': 300 },
'optionhelp': { 'width': 400, 'height': 320 },
'options': { 'width': 1000, 'height': 660 },
'plugin': { 'addWidth': 50, 'addHeight': 100 },
'preset': { 'width': 300, 'height': 120 },
'settings': { 'width': 220, 'height': 225 },
'state': { 'width': 370, 'height': 134 },

View File

@ -56,6 +56,7 @@ var popupSizes = {
'onvifprobe': { 'width': 500, 'height': 300 },
'optionhelp': { 'width': 400, 'height': 320 },
'options': { 'width': 1000, 'height': 660 },
'plugin': { 'addWidth': 50, 'addHeight': 100 },
'preset': { 'width': 300, 'height': 120 },
'settings': { 'width': 220, 'height': 225 },
'state': { 'width': 370, 'height': 134 },

View File

@ -1,3 +1,83 @@
function addOption( name )
{
var form = document.pluginForm;
var select = form.elements['dsp_pluginOpt[' + name + ']'];
var str = form.elements['dsp_input_pluginOpt[' + name + ']'].value;
// Do nothing if the input field is empty
if ( str === "" )
{
return;
}
// Raise an error and exit of non alphanumeric characters in string
if ( !str.match(/^[0-9a-zA-Z]+$/) )
{
alert(onlyAlphaCharString);
return;
}
var hidden = form.elements['pluginOpt[' + name + ']'];
// Do not add option if already present in list
var list = hidden.value.split( "," );
if ( list.indexOf( str ) != -1 )
{
alert(alreadyInList);
return;
}
// Add option to the list
select.options[select.options.length] = new Option(str, str);
// Synchronize hidden field
if ( hidden.value.length > 0 )
{
hidden.value += ",";
}
hidden.value += str;
// Enable remove button
form.elements['removeBtn[' + name + ']'].disabled = false;
}
function removeOptionSelected( name )
{
var form = document.pluginForm;
var select = form.elements['dsp_pluginOpt[' + name + ']'];
// Remove selected options from list
for ( var i = select.length - 1; i >= 0; i-- )
{
if ( select.options[i].selected )
{
select.remove(i);
}
}
// Synchronize hidden field
var hidden = form.elements['pluginOpt[' + name + ']'];
hidden.value = "";
for ( var i = 0; i < select.length; i++ )
{
if ( i > 0 )
{
hidden.value += ",";
}
hidden.value += select.options[i].value;
}
// Disable remove button if the list is empty
if ( select.length == 0 )
{
form.elements['removeBtn[' + name + ']'].disabled = true;
}
}
function updateAddBtn( name )
{
var form = document.pluginForm;
// Disable add button if the text input is empty
if ( form.elements['dsp_input_pluginOpt[' + name + ']'].value === "")
{
form.elements['addBtn[' + name + ']'].disabled = true;
}
else
{
form.elements['addBtn[' + name + ']'].disabled = false;
}
}
function validateForm( form )
{
return( true );
@ -22,9 +102,10 @@ function saveChanges( element )
function applyChanges()
{
var form = document.pluginForm;
// Synchronize hidden fields
for ( var option in pluginOptionList )
{
// Sync hidden field
//console.log("Option type is '" + form.elements['dsp_pluginOpt[' + option + ']'].type + "'");
if ( form.elements['dsp_pluginOpt[' + option + ']'].type == "checkbox" )
{
if ( form.elements['dsp_pluginOpt[' + option + ']'].checked )
@ -36,17 +117,31 @@ function applyChanges()
form.elements['pluginOpt[' + option + ']'].value = "No";
}
}
else
// Do not synchronize here lists with multiple selections, this should be done in function addOption or removeOptionSelected
else if ( form.elements['dsp_pluginOpt[' + option + ']'].type != "select-multiple" )
{
form.elements['pluginOpt[' + option + ']'].value = form.elements['dsp_pluginOpt[' + option + ']'].value;
}
//console.log("Option '" + option + "' synchronized, new value is '" + form.elements['pluginOpt[' + option + ']'].value + "'");
}
// Disable visible fields if a dependency is missing
for ( var option in pluginOptionList )
{
var enabled = true;
// Disable visible field if a dependency is missing
for ( var name in pluginOptionList[option] )
{
//console.log("form.elements['pluginOpt[" + name + "]'].value=" + form.elements['pluginOpt[' + name + ']'].value + " pluginOptionList[" + option + "][" + name + "]=" + pluginOptionList[option][name]);
if (form.elements['pluginOpt[' + name + ']'].value != pluginOptionList[option][name])
{
form.elements['dsp_pluginOpt[' + option + ']'].disabled = true;
// Handle additionnal controls for list option
if ( typeof form.elements['dsp_input_pluginOpt[' + option + ']'] !== "undefined" )
{
form.elements['dsp_input_pluginOpt[' + option + ']'].disabled = true;
form.elements['dsp_input_pluginOpt[' + option + ']'].value = "";
form.elements['addBtn[' + option + ']'].disabled = true;
form.elements['removeBtn[' + option + ']'].disabled = true;
}
enabled = false;
break;
}
@ -55,6 +150,15 @@ function applyChanges()
if (enabled)
{
form.elements['dsp_pluginOpt[' + option + ']'].disabled = false;
// Handle additionnal controls for list option
if ( typeof form.elements['dsp_input_pluginOpt[' + option + ']'] !== "undefined" )
{
form.elements['dsp_input_pluginOpt[' + option + ']'].disabled = false;
if ( form.elements['dsp_pluginOpt[' + option + ']'].length > 0 )
{
form.elements['removeBtn[' + option + ']'].disabled = false;
}
}
}
}
}
@ -68,8 +172,8 @@ function limitRange( field, minValue, maxValue )
}
else
{
alert("Not and integer!");
field.value = minValue;
alert(onlyIntegerString);
field.value = field.defaultValue;
return;
}
if ( intval < parseInt(minValue) )

View File

@ -1,17 +1,21 @@
var pluginOptionList = {};
<?php
foreach ( $pOptions as $option )
foreach ( $pOptions as $key => $option )
{
?>
pluginOptionList['<?= $option['Name'] ?>'] = {};
pluginOptionList['<?php echo $key; ?>'] = {};
<?php
if (!isset($option['Require']))
continue;
foreach($option['Require'] as $req_couple)
{
?>
pluginOptionList['<?= $option['Name'] ?>']['<?= $req_couple['Name'] ?>'] = '<?= $req_couple['Value'] ?>';
pluginOptionList['<?php echo $key; ?>']['<?php echo $req_couple['Name']; ?>'] = '<?php echo $req_couple['Value']; ?>';
<?php
}
}
?>
var onlyAlphaCharString = '<?php echo addslashes($SLANG['OnlyAlphaChars']) ?>';
var alreadyInList = '<?php echo addslashes($SLANG['AlreadyInList']) ?>';
var onlyIntegerString = '<?php echo addslashes($SLANG['OnlyIntegers']) ?>';

View File

@ -45,13 +45,11 @@ $focusWindow = true;
$generalOptions=array(
'Enabled'=>array(
'Type'=>'select',
'Name'=>'Enabled',
'Choices'=>'Yes,No',
'Value'=>'No'
),
'RequireNatDet'=>array(
'Type'=>'select',
'Name'=>'RequireNatDet',
'Choices'=>'Yes,No',
'Value'=>'No',
'Require'=>array(
@ -63,7 +61,6 @@ $generalOptions=array(
),
'IncludeNatDet'=>array(
'Type'=>'select',
'Name'=>'IncludeNatDet',
'Choices'=>'Yes,No',
'Value'=>'No',
'Require'=>array(
@ -79,7 +76,6 @@ $generalOptions=array(
),
'ReInitNatDet'=>array(
'Type'=>'select',
'Name'=>'ReInitNatDet',
'Choices'=>'Yes,No',
'Value'=>'No',
'Require'=>array(
@ -95,7 +91,6 @@ $generalOptions=array(
),
'AlarmScore'=>array(
'Type'=>'integer',
'Name'=>'AlarmScore',
'Min'=>'1',
'Max'=>'100',
'Value'=>'99',
@ -118,12 +113,26 @@ if(file_exists($plugin_path."/config.php"))
{
// Set default dependency information if not set in configuration file
if(!isset($optionValue['Require']))
{
$optionValue['Require'] = array (
array(
'Name'=>'Enabled',
'Value'=>'Yes'
)
);
}
elseif(is_array($optionValue['Require']))
{
$optionValue['Require'][] = array (
'Name'=>'Enabled',
'Value'=>'Yes'
);
}
else
{
// Wrong type
continue;
}
$pOptions[$optionKey]=$optionValue;
}
}
@ -171,11 +180,15 @@ foreach($pOptions as $name => $values)
case "select":
$sql="INSERT INTO PluginsConfig VALUES ('',?,?,?,?,'','',?,?,?)";
dbQuery($sql, array( $popt['Name'], $popt['Value'], $popt['Type'], $popt['Choices'], $mid, $zid, $plugin ) );
break;
break;
case "integer":
$sql="INSERT INTO PluginsConfig VALUES ('',?,?,?,'',?,?,?,?,?)";
dbQuery($sql, array( $popt['Name'], $popt['Value'], $popt['Type'], $popt['Min'], $popt['Max'], $mid, $zid, $plugin ) );
break;
break;
case "list":
$sql="INSERT INTO PluginsConfig VALUES ('',?,'',?,'','','',?,?,?)";
dbQuery($sql, array( $popt['Name'], $popt['Type'], $mid, $zid, $plugin ) );
break;
case "checkbox":
case "text":
default:
@ -301,6 +314,41 @@ foreach($pOptions as $name => $popt)
</td>
<?php
break;
case "list":
$nbopt = 0;
$pvalues=explode(',',$popt['Value']);
?>
<td style="padding:0px;"><table class="listSetting">
<tr>
<td>
<input type="text" name="dsp_input_pluginOpt[<?php echo $popt['Name'] ?>]" id="dsp_input_pluginOpt[<?php echo $popt['Name']; ?>]" <?php if (!isEnabled($popt['Name'])) echo 'disabled="disabled"'; ?> onkeyup="updateAddBtn('<?php echo $popt['Name'] ?>');" />
</td>
<td>
<input type="button" name="addBtn[<?php echo $popt['Name'] ?>]" id="addBtn[<?php echo $popt['Name'] ?>]" value="<?php echo $SLANG['Add'] ?>" onclick="addOption('<?php echo $popt['Name'] ?>');" disabled="disabled" />
</td>
</tr><tr>
<td>
<select multiple="multiple" name="dsp_pluginOpt[<?php echo $popt['Name'] ?>]" id="dsp_pluginOpt[<?php echo $popt['Name']; ?>]" <?php if (!isEnabled($popt['Name'])) echo 'disabled="disabled"'; ?>>
<?php
foreach($pvalues as $pvalue) {
if(!empty($pvalue)) {
$nbopt++;
?>
<option value="<?php echo $pvalue; ?>"><?php echo $pvalue; ?></option>
<?php
}
}
?>
</select>
<input type="hidden" name="pluginOpt[<?php echo $popt['Name'] ?>]" id="pluginOpt[<?php echo $popt['Name']; ?>]" value="<?php echo $popt['Value']; ?>" />
</td>
<td>
<input type="button" name="removeBtn[<?php echo $popt['Name'] ?>]" id="removeBtn[<?php echo $popt['Name'] ?>]" value="<?php echo $SLANG['Remove'] ?>" onclick="removeOptionSelected('<?php echo $popt['Name'] ?>');" <?php if ($nbopt == 0) echo 'disabled="disabled"'; ?> />
</td>
</tr>
</table></td>
<?php
break;
default:
echo "Type '".$popt['Type']."' is not implemented<br>";
}