Эх сурвалжийг харах

Add multi-delete in advanced -> domain settings

Mark Crane 11 жил өмнө
parent
commit
24076f3bc5

+ 271 - 281
core/domain_settings/app_languages.php

@@ -1,283 +1,273 @@
 <?php
 
-	//Domains
-
-		$text['title-domains']['en-us'] = "Domains";
-		$text['title-domains']['es-cl'] = "Dominios";
-		$text['title-domains']['pt-pt'] = "Domínios";
-		$text['title-domains']['fr-fr'] = "Domaines";
-
-		$text['header-domains']['en-us'] = "Domains";
-		$text['header-domains']['es-cl'] = "Dominios";
-		$text['header-domains']['pt-pt'] = "Domínios";
-		$text['header-domains']['fr-fr'] = "Domaines";
-
-		$text['description-domains']['en-us'] = "Control the list of domains to manage.";
-		$text['description-domains']['es-cl'] = "Controlar la lista de dominios a gestionar.";
-		$text['description-domains']['pt-pt'] = "Controlar a lista dos domínios a gerir";
-		$text['description-domains']['fr-fr'] = "Contrôler la liste des domaines à gérer";
-
-		//------
-
-		$text['title-domain-edit']['en-us'] = "Domain";
-		$text['title-domain-edit']['es-cl'] = "Dominio";
-		$text['title-domain-edit']['pt-pt'] = "Domínio";
-		$text['title-domain-edit']['fr-fr'] = "Domaines";
-
-		$text['header-domain-edit']['en-us'] = "Domain";
-		$text['header-domain-edit']['es-cl'] = "Dominio";
-		$text['header-domain-edit']['pt-pt'] = "Domínio";
-		$text['header-domain-edit']['fr-fr'] = "Domaine";
-
-		$text['description-domain-edit']['en-us'] = "Edit the details of this domain.";
-		$text['description-domain-edit']['es-cl'] = "Editar detalles de este dominio.";
-		$text['description-domain-edit']['pt-pt'] = "Editar detalhes deste domínio.";
-		$text['description-domain-edit']['fr-fr'] = "Editer les détaisl de ce domaine. ";
-
-		$text['header-settings']['en-us'] = "Settings";
-		$text['header-settings']['es-cl'] = "Configuraciones";
-		$text['header-settings']['pt-pt'] = "Definições";
-		$text['header-settings']['fr-fr'] = "Paramètres";
-
-		//------
-
-		$text['title-domain-add']['en-us'] = "Domain Add";
-		$text['title-domain-add']['es-cl'] = "Agregar Dominio";
-		$text['title-domain-add']['pt-pt'] = "Adicionar Domínio";
-		$text['title-domain-add']['fr-fr'] = "Ajouter un Domaine";
-
-		$text['header-domain-add']['en-us'] = "Domain Add";
-		$text['header-domain-add']['es-cl'] = "Agregar Dominio";
-		$text['header-domain-add']['pt-pt'] = "Adicionar Domínio";
-		$text['header-domain-add']['fr-fr'] = "Ajouter un Domaine";
-
-		$text['description-domain-add']['en-us'] = "Enter the domain details below.";
-		$text['description-domain-add']['es-cl'] = "Ingrese los detalles del dominio a continuación.";
-		$text['description-domain-add']['pt-pt'] = "Introduza os detalhes do domínio abaixo.";
-		$text['description-domain-add']['fr-fr'] = "Entrer les détails du domaine ci-dessous.";
-
-		//------
-
-		$text['label-domain']['en-us'] = "Domain";
-		$text['label-domain']['es-cl'] = "Dominio";
-		$text['label-domain']['pt-pt'] = "Domínio";
-		$text['label-domain']['fr-fr'] = "Domaine";
-
-		$text['label-tools']['en-us'] = "Tools";
-		$text['label-tools']['es-cl'] = "Herramientas";
-		$text['label-tools']['pt-pt'] = "Ferramentas";
-		$text['label-tools']['fr-fr'] = "Outils";
-
-
-		$text['label-manage']['en-us'] = "Manage";
-		$text['label-manage']['es-cl'] = "Gestionar";
-		$text['label-manage']['pt-pt'] = "Gerir";
-		$text['label-manage']['fr-fr'] = "Gérer";
-
-		$text['label-name']['en-us'] = "Name";
-		$text['label-name']['es-cl'] = "Nombre";
-		$text['label-name']['pt-pt'] = "Nome";
-		$text['label-name']['fr-fr'] = "Nom";
-
-		$text['description-name']['en-us'] = "Enter the name of the domain.";
-		$text['description-name']['es-cl'] = "Ingrese el nombre del dominio";
-		$text['description-name']['pt-pt'] = "Introduza o nome do domínio.";
-		$text['description-name']['fr-fr'] = "Entrer le nom du domaine.";
-
-		$text['label-description']['en-us'] = "Description";
-		$text['label-description']['es-cl'] = "Descripción";
-		$text['label-description']['pt-pt'] = "Descrição";
-		$text['label-description']['fr-fr'] = "Description";
-
-		$text['description-description']['en-us'] = "Enter a description for this domain, if desired.";
-		$text['description-description']['es-cl'] = "Ingrese una descripción para este dominio, opcional.";
-		$text['description-description']['pt-pt'] = "Introduza a descrição deste domínio, caso queira.";
-		$text['description-description']['fr-fr'] = "";
-
-		//------ settings
-
-		$text['title-domain_setting-edit']['en-us'] = "Domain Setting";
-		$text['title-domain_setting-edit']['es-cl'] = "Configuraciones de dominio.";
-		$text['title-domain_setting-edit']['pt-pt'] = "Definições do Domínio";
-		$text['title-domain_setting-edit']['fr-fr'] = "Paramètres du domaine";
-
-		$text['header-domain_setting-edit']['en-us'] = "Domain Setting";
-		$text['header-domain_setting-edit']['es-cl'] = "Configuraciones de dominio";
-		$text['header-domain_setting-edit']['pt-pt'] = "Definições do Domínio";
-		$text['header-domain_setting-edit']['fr-fr'] = "Paramètres du domaine";
-
-		$text['description-domain_setting-edit']['en-us'] = "Edit a setting for this domain.";
-		$text['description-domain_setting-edit']['es-cl'] = "Edita una configuración para este dominio.";
-		$text['description-domain_setting-edit']['pt-pt'] = "Editar uma definição deste domínio.";
-		$text['description-domain_setting-edit']['fr-fr'] = "Editer un paramètre du domaine.";
-
-		//------
-
-		$text['title-domain_setting-add']['en-us'] = "Domain Setting Add";
-		$text['title-domain_setting-add']['es-cl'] = "Agregar Configuración de Dominio";
-		$text['title-domain_setting-add']['pt-pt'] = "Adicionar Definição ao Domínio";
-		$text['title-domain_setting-add']['fr-fr'] = "Ajouter un paramètre au domaine";
-
-		$text['header-domain_setting-add']['en-us'] = "Domain Setting Add";
-		$text['header-domain_setting-add']['es-cl'] = "Agregar Configuración de Dominio";
-		$text['header-domain_setting-add']['pt-pt'] = "Adicionar Definição ao Domínio";
-		$text['header-domain_setting-add']['fr-fr'] = "Ajouter un paramètre au domaine";
-
-		$text['description-domain_setting-add']['en-us'] = "Add a setting for this domain.";
-		$text['description-domain_setting-add']['es-cl'] = "Agregar una configuración para este dominio.";
-		$text['description-domain_setting-add']['pt-pt'] = "Adicionar uma definição a este domínio.";
-		$text['description-domain_setting-add']['fr-fr'] = "";
-
-		//------
-
-		$text['label-category']['en-us'] = "Category";
-		$text['label-category']['es-cl'] = "Categoría";
-		$text['label-category']['pt-pt'] = "Categoria";
-		$text['label-category']['fr-fr'] = "Catégorie";
-
-		$text['description-category']['en-us'] = "Enter the category.";
-		$text['description-category']['es-cl'] = "Ingrese la categoría.";
-		$text['description-category']['pt-pt'] = "Introduza a categoria.";
-		$text['description-category']['fr-fr'] = "";
-
-		$text['label-subcategory']['en-us'] = "Subcategory";
-		$text['label-subcategory']['es-cl'] = "Subcategoría";
-		$text['label-subcategory']['pt-pt'] = "Subcategoria";
-		$text['label-subcategory']['fr-fr'] = "Sous-Catégorie";
-
-		$text['description-subcategory']['en-us'] = "Enter the subcategory.";
-		$text['description-subcategory']['es-cl'] = "Ingrese la categoría.";
-		$text['description-subcategory']['pt-pt'] = "Introduza a subcategoria";
-		$text['description-subcategory']['fr-fr'] = "";
-
-		$text['label-type']['en-us'] = "Type";
-		$text['label-type']['es-cl'] = "Tipo";
-		$text['label-type']['pt-pt'] = "Tipo";
-		$text['label-type']['fr-fr'] = "Type";
-
-		$text['description-type']['en-us'] = "Enter the setting type (ie. uuid, name, var, dir, etc).";
-		$text['description-type']['es-cl'] = "Ingrese el tipo de configuración (ej. uuid, nombre, var, dir, etc.)";
-		$text['description-type']['pt-pt'] = "Introduza o tipo de definição (ex: uuid, name, var, dir, etc).";
-		$text['description-type']['fr-fr'] = "Entrer le type du paramètre (ie. uuid, nom, var, dir, etc).";
-
-		$text['label-value']['en-us'] = "Value";
-		$text['label-value']['es-cl'] = "Valor";
-		$text['label-value']['pt-pt'] = "Valor";
-		$text['label-value']['fr-fr'] = "Valeur";
-
-		$text['description-value']['en-us'] = "Enter the value of this setting.";
-		$text['description-value']['es-cl'] = "Ingrese el valor para esta configuración.";
-		$text['description-value']['pt-pt'] = "Introduza o valor desta definição.";
-		$text['description-value']['fr-fr'] = "";
-
-		$text['label-order']['en-us'] = "Order";
-		$text['label-order']['es-cl'] = "Orden";
-		$text['label-order']['pt-pt'] = "Ordem";
-		$text['label-order']['fr-fr'] = "Ordre";
-
-		$text['description-order']['en-us'] = "Set the order (index) for this array element.";
-		$text['description-order']['es-cl'] = "Establecer el orden (índice) para este elemento de la matriz.";
-		$text['description-order']['pt-pt'] = "Defina a ordem (índice) para este elemento da matriz.";
-		$text['description-order']['fr-fr'] = "Définir l'ordre (index) pour cet élément de tableau.";
-
-		$text['label-enabled']['en-us'] = "Enabled";
-		$text['label-enabled']['es-cl'] = "Activado";
-		$text['label-enabled']['pt-pt'] = "Habilitado";
-		$text['label-enabled']['fr-fr'] = "Actif";
-
-		$text['description-enabled']['en-us'] = "Set the status of this default setting.";
-		$text['description-enabled']['es-cl'] = "Configure el estado de esta configuración predeterminada.";
-		$text['description-enabled']['pt-pt'] = "Escolha o estado desta definição por omissão.";
-		$text['description-enabled']['fr-fr'] = "Choisir l'état de ce paramètre";
-
-		$text['label-description']['en-us'] = "Description";
-		$text['label-description']['es-cl'] = "Descripción";
-		$text['label-description']['pt-pt'] = "Descrição";
-		$text['label-description']['fr-fr'] = "Description";
-
-		$text['description-description']['en-us'] = "Enter a description, if desired.";
-		$text['description-description']['es-cl'] = "Ingrese una descripción, opcional.";
-		$text['description-description']['pt-pt'] = "Introduza uma descrição, caso queira.";
-		$text['description-description']['fr-fr'] = "";
-
-		$text['label-true']['en-us'] = "True";
-		$text['label-true']['es-cl'] = "Verdadero";
-		$text['label-true']['pt-pt'] = "Sim";
-		$text['label-true']['fr-fr'] = "Oui";
-
-		$text['label-false']['en-us'] = "False";
-		$text['label-false']['es-cl'] = "Falso";
-		$text['label-false']['pt-pt'] = "Não";
-		$text['label-false']['fr-fr'] = "Non";
-
-		$text['label-none']['en-us'] = "None";
-		$text['label-none']['es-cl'] = "Ninguno";
-		$text['label-none']['pt-pt'] = "Nenhum";
-		$text['label-none']['fr-fr'] = "Aucun";
-
-		$text['button-add']['en-us'] = "Add";
-		$text['button-add']['es-cl'] = "Agregar";
-		$text['button-add']['pt-pt'] = "Adicionar";
-		$text['button-add']['fr-fr'] = "Ajouter";
-
-		$text['button-edit']['en-us'] = "Edit";
-		$text['button-edit']['es-cl'] = "Editar";
-		$text['button-edit']['pt-pt'] = "Editar";
-		$text['button-edit']['fr-fr'] = "Editer";
-
-		$text['button-delete']['en-us'] = "Delete";
-		$text['button-delete']['es-cl'] = "Eliminar";
-		$text['button-delete']['pt-pt'] = "Remover";
-		$text['button-delete']['fr-fr'] = "Supprimer";
-
-		$text['button-search']['en-us'] = "Search";
-		$text['button-search']['es-cl'] = "Buscar";
-		$text['button-search']['pt-pt'] = "Pesquisar";
-		$text['button-search']['fr-fr'] = "Chercher";
-
-		$text['confirm-delete']['en-us'] = "Do you really want to delete this?";
-		$text['confirm-delete']['es-cl'] = "¿Realmente desea eliminar esto?";
-		$text['confirm-delete']['pt-pt'] = "Tem a certeza que pretende remover isto";
-		$text['confirm-delete']['fr-fr'] = "Voulez-vous vraiment supprimer cela?";
-
-		$text['button-save']['en-us'] = "Save";
-		$text['button-save']['es-cl'] = "Guardar";
-		$text['button-save']['pt-pt'] = "Guardar";
-		$text['button-save']['fr-fr'] = "Sauvegarder";
-
-		$text['button-back']['en-us'] = "Back";
-		$text['button-back']['es-cl'] = "Volver";
-		$text['button-back']['pt-pt'] = "Voltar";
-		$text['button-back']['fr-fr'] = "Retour";
-
-		$text['button-export']['en-us'] = "Export";
-		$text['button-export']['es-cl'] = "Exportar";
-		$text['button-export']['pt-pt'] = "Exportar";
-		$text['button-export']['fr-fr'] = "Exporter";
-
-		$text['message-message']['en-us'] = "Message";
-		$text['message-message']['es-cl'] = "Mensaje";
-		$text['message-message']['pt-pt'] = "Mensagem";
-		$text['message-message']['fr-fr'] = "Message";
-
-		$text['message-add']['en-us'] = "Add Completed";
-		$text['message-add']['es-cl'] = "Agregar Completado";
-		$text['message-add']['pt-pt'] = "Adição Efectuada";
-		$text['message-add']['fr-fr'] = "Ajouté";
-
-		$text['message-update']['en-us'] = "Update Completed";
-		$text['message-update']['es-cl'] = "Actualización Completada";
-		$text['message-update']['pt-pt'] = "Actualização Efectuada";
-		$text['message-update']['fr-fr'] = "Mis à jour";
-
-		$text['message-delete']['en-us'] = "Delete Completed";
-		$text['message-delete']['es-cl'] = "Eliminar Completado";
-		$text['message-delete']['pt-pt'] = "Remoção Efectuada";
-		$text['message-delete']['fr-fr'] = "Supprimé";
-
-		$text['message-required']['en-us'] = "Please provide: ";
-		$text['message-required']['es-cl'] = "Por favor indique: ";
-		$text['message-required']['pt-pt'] = "Por favor indique: ";
-		$text['message-required']['fr-fr'] = "Merci d'indiquer: ";
-
-?>
+	$text['title-domains']['en-us'] = "Domains";
+	$text['title-domains']['es-cl'] = "Dominios";
+	$text['title-domains']['pt-pt'] = "Domínios";
+	$text['title-domains']['fr-fr'] = "Domaines";
+
+	$text['header-domains']['en-us'] = "Domains";
+	$text['header-domains']['es-cl'] = "Dominios";
+	$text['header-domains']['pt-pt'] = "Domínios";
+	$text['header-domains']['fr-fr'] = "Domaines";
+
+	$text['description-domains']['en-us'] = "Control the list of domains to manage.";
+	$text['description-domains']['es-cl'] = "Controlar la lista de dominios a gestionar.";
+	$text['description-domains']['pt-pt'] = "Controlar a lista dos domínios a gerir";
+	$text['description-domains']['fr-fr'] = "Contrôler la liste des domaines à gérer";
+
+	$text['title-domain-edit']['en-us'] = "Domain";
+	$text['title-domain-edit']['es-cl'] = "Dominio";
+	$text['title-domain-edit']['pt-pt'] = "Domínio";
+	$text['title-domain-edit']['fr-fr'] = "Domaines";
+
+	$text['header-domain-edit']['en-us'] = "Domain";
+	$text['header-domain-edit']['es-cl'] = "Dominio";
+	$text['header-domain-edit']['pt-pt'] = "Domínio";
+	$text['header-domain-edit']['fr-fr'] = "Domaine";
+
+	$text['description-domain-edit']['en-us'] = "Edit the details of this domain.";
+	$text['description-domain-edit']['es-cl'] = "Editar detalles de este dominio.";
+	$text['description-domain-edit']['pt-pt'] = "Editar detalhes deste domínio.";
+	$text['description-domain-edit']['fr-fr'] = "Editer les détaisl de ce domaine. ";
+
+	$text['header-settings']['en-us'] = "Settings";
+	$text['header-settings']['es-cl'] = "Configuraciones";
+	$text['header-settings']['pt-pt'] = "Definições";
+	$text['header-settings']['fr-fr'] = "Paramètres";
+
+	$text['title-domain-add']['en-us'] = "Domain Add";
+	$text['title-domain-add']['es-cl'] = "Agregar Dominio";
+	$text['title-domain-add']['pt-pt'] = "Adicionar Domínio";
+	$text['title-domain-add']['fr-fr'] = "Ajouter un Domaine";
+
+	$text['header-domain-add']['en-us'] = "Domain Add";
+	$text['header-domain-add']['es-cl'] = "Agregar Dominio";
+	$text['header-domain-add']['pt-pt'] = "Adicionar Domínio";
+	$text['header-domain-add']['fr-fr'] = "Ajouter un Domaine";
+
+	$text['description-domain-add']['en-us'] = "Enter the domain details below.";
+	$text['description-domain-add']['es-cl'] = "Ingrese los detalles del dominio a continuación.";
+	$text['description-domain-add']['pt-pt'] = "Introduza os detalhes do domínio abaixo.";
+	$text['description-domain-add']['fr-fr'] = "Entrer les détails du domaine ci-dessous.";
+
+	$text['label-domain']['en-us'] = "Domain";
+	$text['label-domain']['es-cl'] = "Dominio";
+	$text['label-domain']['pt-pt'] = "Domínio";
+	$text['label-domain']['fr-fr'] = "Domaine";
+
+	$text['label-tools']['en-us'] = "Tools";
+	$text['label-tools']['es-cl'] = "Herramientas";
+	$text['label-tools']['pt-pt'] = "Ferramentas";
+	$text['label-tools']['fr-fr'] = "Outils";
+
+	$text['label-manage']['en-us'] = "Manage";
+	$text['label-manage']['es-cl'] = "Gestionar";
+	$text['label-manage']['pt-pt'] = "Gerir";
+	$text['label-manage']['fr-fr'] = "Gérer";
+
+	$text['label-name']['en-us'] = "Name";
+	$text['label-name']['es-cl'] = "Nombre";
+	$text['label-name']['pt-pt'] = "Nome";
+	$text['label-name']['fr-fr'] = "Nom";
+
+	$text['description-name']['en-us'] = "Enter the name of the domain.";
+	$text['description-name']['es-cl'] = "Ingrese el nombre del dominio";
+	$text['description-name']['pt-pt'] = "Introduza o nome do domínio.";
+	$text['description-name']['fr-fr'] = "Entrer le nom du domaine.";
+
+	$text['label-description']['en-us'] = "Description";
+	$text['label-description']['es-cl'] = "Descripción";
+	$text['label-description']['pt-pt'] = "Descrição";
+	$text['label-description']['fr-fr'] = "Description";
+
+	$text['description-description']['en-us'] = "Enter a description for this domain, if desired.";
+	$text['description-description']['es-cl'] = "Ingrese una descripción para este dominio, opcional.";
+	$text['description-description']['pt-pt'] = "Introduza a descrição deste domínio, caso queira.";
+	$text['description-description']['fr-fr'] = "";
+
+	$text['title-domain_setting-edit']['en-us'] = "Domain Setting";
+	$text['title-domain_setting-edit']['es-cl'] = "Configuraciones de dominio.";
+	$text['title-domain_setting-edit']['pt-pt'] = "Definições do Domínio";
+	$text['title-domain_setting-edit']['fr-fr'] = "Paramètres du domaine";
+
+	$text['header-domain_setting-edit']['en-us'] = "Domain Setting";
+	$text['header-domain_setting-edit']['es-cl'] = "Configuraciones de dominio";
+	$text['header-domain_setting-edit']['pt-pt'] = "Definições do Domínio";
+	$text['header-domain_setting-edit']['fr-fr'] = "Paramètres du domaine";
+
+	$text['description-domain_setting-edit']['en-us'] = "Edit a setting for this domain.";
+	$text['description-domain_setting-edit']['es-cl'] = "Edita una configuración para este dominio.";
+	$text['description-domain_setting-edit']['pt-pt'] = "Editar uma definição deste domínio.";
+	$text['description-domain_setting-edit']['fr-fr'] = "Editer un paramètre du domaine.";
+
+	$text['title-domain_setting-add']['en-us'] = "Domain Setting Add";
+	$text['title-domain_setting-add']['es-cl'] = "Agregar Configuración de Dominio";
+	$text['title-domain_setting-add']['pt-pt'] = "Adicionar Definição ao Domínio";
+	$text['title-domain_setting-add']['fr-fr'] = "Ajouter un paramètre au domaine";
+
+	$text['header-domain_setting-add']['en-us'] = "Domain Setting Add";
+	$text['header-domain_setting-add']['es-cl'] = "Agregar Configuración de Dominio";
+	$text['header-domain_setting-add']['pt-pt'] = "Adicionar Definição ao Domínio";
+	$text['header-domain_setting-add']['fr-fr'] = "Ajouter un paramètre au domaine";
+
+	$text['description-domain_setting-add']['en-us'] = "Add a setting for this domain.";
+	$text['description-domain_setting-add']['es-cl'] = "Agregar una configuración para este dominio.";
+	$text['description-domain_setting-add']['pt-pt'] = "Adicionar uma definição a este domínio.";
+	$text['description-domain_setting-add']['fr-fr'] = "";
+
+	$text['label-category']['en-us'] = "Category";
+	$text['label-category']['es-cl'] = "Categoría";
+	$text['label-category']['pt-pt'] = "Categoria";
+	$text['label-category']['fr-fr'] = "Catégorie";
+
+	$text['description-category']['en-us'] = "Enter the category.";
+	$text['description-category']['es-cl'] = "Ingrese la categoría.";
+	$text['description-category']['pt-pt'] = "Introduza a categoria.";
+	$text['description-category']['fr-fr'] = "";
+
+	$text['label-subcategory']['en-us'] = "Subcategory";
+	$text['label-subcategory']['es-cl'] = "Subcategoría";
+	$text['label-subcategory']['pt-pt'] = "Subcategoria";
+	$text['label-subcategory']['fr-fr'] = "Sous-Catégorie";
+
+	$text['description-subcategory']['en-us'] = "Enter the subcategory.";
+	$text['description-subcategory']['es-cl'] = "Ingrese la categoría.";
+	$text['description-subcategory']['pt-pt'] = "Introduza a subcategoria";
+	$text['description-subcategory']['fr-fr'] = "";
+
+	$text['label-type']['en-us'] = "Type";
+	$text['label-type']['es-cl'] = "Tipo";
+	$text['label-type']['pt-pt'] = "Tipo";
+	$text['label-type']['fr-fr'] = "Type";
+
+	$text['description-type']['en-us'] = "Enter the setting type (ie. uuid, name, var, dir, etc).";
+	$text['description-type']['es-cl'] = "Ingrese el tipo de configuración (ej. uuid, nombre, var, dir, etc.)";
+	$text['description-type']['pt-pt'] = "Introduza o tipo de definição (ex: uuid, name, var, dir, etc).";
+	$text['description-type']['fr-fr'] = "Entrer le type du paramètre (ie. uuid, nom, var, dir, etc).";
+
+	$text['label-value']['en-us'] = "Value";
+	$text['label-value']['es-cl'] = "Valor";
+	$text['label-value']['pt-pt'] = "Valor";
+	$text['label-value']['fr-fr'] = "Valeur";
+
+	$text['description-value']['en-us'] = "Enter the value of this setting.";
+	$text['description-value']['es-cl'] = "Ingrese el valor para esta configuración.";
+	$text['description-value']['pt-pt'] = "Introduza o valor desta definição.";
+	$text['description-value']['fr-fr'] = "";
+
+	$text['label-order']['en-us'] = "Order";
+	$text['label-order']['es-cl'] = "Orden";
+	$text['label-order']['pt-pt'] = "Ordem";
+	$text['label-order']['fr-fr'] = "Ordre";
+
+	$text['description-order']['en-us'] = "Set the order for this array element.";
+	$text['description-order']['es-cl'] = "Establecer el orden para este elemento de la matriz.";
+	$text['description-order']['pt-pt'] = "Definir a ordem para este elemento do array.";
+	$text['description-order']['fr-fr'] = "Définissez l'ordre de cet élément de tableau.";
+
+	$text['label-enabled']['en-us'] = "Enabled";
+	$text['label-enabled']['es-cl'] = "Activado";
+	$text['label-enabled']['pt-pt'] = "Habilitado";
+	$text['label-enabled']['fr-fr'] = "Actif";
+
+	$text['description-enabled']['en-us'] = "Set the status of this default setting.";
+	$text['description-enabled']['es-cl'] = "Configure el estado de esta configuración predeterminada.";
+	$text['description-enabled']['pt-pt'] = "Escolha o estado desta definição por omissão.";
+	$text['description-enabled']['fr-fr'] = "Choisir l'état de ce paramètre";
+
+	$text['label-description']['en-us'] = "Description";
+	$text['label-description']['es-cl'] = "Descripción";
+	$text['label-description']['pt-pt'] = "Descrição";
+	$text['label-description']['fr-fr'] = "Description";
+
+	$text['description-description']['en-us'] = "Enter a description, if desired.";
+	$text['description-description']['es-cl'] = "Ingrese una descripción, opcional.";
+	$text['description-description']['pt-pt'] = "Introduza uma descrição, caso queira.";
+	$text['description-description']['fr-fr'] = "";
+
+	$text['label-true']['en-us'] = "True";
+	$text['label-true']['es-cl'] = "Verdadero";
+	$text['label-true']['pt-pt'] = "Sim";
+	$text['label-true']['fr-fr'] = "Oui";
+
+	$text['label-false']['en-us'] = "False";
+	$text['label-false']['es-cl'] = "Falso";
+	$text['label-false']['pt-pt'] = "Não";
+	$text['label-false']['fr-fr'] = "Non";
+
+	$text['label-none']['en-us'] = "None";
+	$text['label-none']['es-cl'] = "Ninguno";
+	$text['label-none']['pt-pt'] = "Nenhum";
+	$text['label-none']['fr-fr'] = "Aucun";
+
+	$text['button-add']['en-us'] = "Add";
+	$text['button-add']['es-cl'] = "Agregar";
+	$text['button-add']['pt-pt'] = "Adicionar";
+	$text['button-add']['fr-fr'] = "Ajouter";
+
+	$text['button-edit']['en-us'] = "Edit";
+	$text['button-edit']['es-cl'] = "Editar";
+	$text['button-edit']['pt-pt'] = "Editar";
+	$text['button-edit']['fr-fr'] = "Editer";
+
+	$text['button-delete']['en-us'] = "Delete";
+	$text['button-delete']['es-cl'] = "Eliminar";
+	$text['button-delete']['pt-pt'] = "Remover";
+	$text['button-delete']['fr-fr'] = "Supprimer";
+
+	$text['button-search']['en-us'] = "Search";
+	$text['button-search']['es-cl'] = "Buscar";
+	$text['button-search']['pt-pt'] = "Pesquisar";
+	$text['button-search']['fr-fr'] = "Chercher";
+
+	$text['confirm-delete']['en-us'] = "Do you really want to delete this?";
+	$text['confirm-delete']['es-cl'] = "¿Realmente desea eliminar esto?";
+	$text['confirm-delete']['pt-pt'] = "Tem a certeza que pretende remover isto";
+	$text['confirm-delete']['fr-fr'] = "Voulez-vous vraiment supprimer cela?";
+
+	$text['button-save']['en-us'] = "Save";
+	$text['button-save']['es-cl'] = "Guardar";
+	$text['button-save']['pt-pt'] = "Guardar";
+	$text['button-save']['fr-fr'] = "Sauvegarder";
+
+	$text['button-back']['en-us'] = "Back";
+	$text['button-back']['es-cl'] = "Volver";
+	$text['button-back']['pt-pt'] = "Voltar";
+	$text['button-back']['fr-fr'] = "Retour";
+
+	$text['button-export']['en-us'] = "Export";
+	$text['button-export']['es-cl'] = "Exportar";
+	$text['button-export']['pt-pt'] = "Exportar";
+	$text['button-export']['fr-fr'] = "Exporter";
+
+	$text['message-message']['en-us'] = "Message";
+	$text['message-message']['es-cl'] = "Mensaje";
+	$text['message-message']['pt-pt'] = "Mensagem";
+	$text['message-message']['fr-fr'] = "Message";
+
+	$text['message-add']['en-us'] = "Add Completed";
+	$text['message-add']['es-cl'] = "Agregar Completado";
+	$text['message-add']['pt-pt'] = "Adição Efectuada";
+	$text['message-add']['fr-fr'] = "Ajouté";
+
+	$text['message-update']['en-us'] = "Update Completed";
+	$text['message-update']['es-cl'] = "Actualización Completada";
+	$text['message-update']['pt-pt'] = "Actualização Efectuada";
+	$text['message-update']['fr-fr'] = "Mis à jour";
+
+	$text['message-delete']['en-us'] = "Delete Completed";
+	$text['message-delete']['es-cl'] = "Eliminar Completado";
+	$text['message-delete']['pt-pt'] = "Remoção Efectuada";
+	$text['message-delete']['fr-fr'] = "Supprimé";
+
+	$text['message-delete_failed']['en-us'] = "No Settings Checked";
+	$text['message-delete_failed']['es-cl'] = "No hay ajustes facturado";
+	$text['message-delete_failed']['pt-pt'] = "Nenhuma configuração marcada";
+	$text['message-delete_failed']['fr-fr'] = "Pas de paramètres enregistrés";
+
+	$text['message-required']['en-us'] = "Please provide: ";
+	$text['message-required']['es-cl'] = "Por favor indique: ";
+	$text['message-required']['pt-pt'] = "Por favor indique: ";
+	$text['message-required']['fr-fr'] = "Merci d'indiquer: ";
+
+?>

+ 118 - 20
core/domain_settings/domain_settings.php

@@ -17,7 +17,7 @@
 
  The Initial Developer of the Original Code is
  Mark J Crane <[email protected]>
- Portions created by the Initial Developer are Copyright (C) 2008-2012
+ Portions created by the Initial Developer are Copyright (C) 2008-2014
  the Initial Developer. All Rights Reserved.
 
  Contributor(s):
@@ -34,19 +34,60 @@ else {
 	exit;
 }
 
-//require_once "resources/header.php";
-require_once "resources/paging.php";
 
-//get variables used to control the order
-	$order_by = $_GET["order_by"];
-	$order = $_GET["order"];
+//delete domain settings
+	if (sizeof($_REQUEST) > 0) {
+		$action = check_str($_REQUEST["action"]);
+		if ($action == 'delete' && permission_exists('domain_setting_delete')) {
+			//add multi-lingual support
+				require_once "app_languages.php";
+				foreach($text as $key => $value) {
+					$text[$key] = $value[$_SESSION['domain']['language']['code']];
+				}
+			//delete the selected domain settings
+				$domain_setting_uuids = $_REQUEST["id"];
+				if (sizeof($domain_setting_uuids) > 0) {
+					foreach ($domain_setting_uuids as $domain_setting_uuid) {
+						$sql = "delete from v_domain_settings ";
+						$sql .= "where domain_setting_uuid = '".$domain_setting_uuid."' ";
+						$prep_statement = $db->prepare(check_sql($sql));
+						$prep_statement->execute();
+						unset($sql);
+					}
+					// set message
+					$_SESSION["message"] = $text['message-delete'].": ".sizeof($domain_setting_uuids);
+				}
+				else {
+					// set message
+					$_SESSION["message"] = $text['message-delete_failed'];
+					$_SESSION["message_mood"] = "negative";
+				}
+			//redirect the user
+				header("Location: domain_edit.php?id=".check_str($_REQUEST["domain_uuid"]));
+				exit;
+		}
+	} //REQUEST
+
+//include the paging
+	require_once "resources/paging.php";
 
+//get the variables
+	$order_by = check_str($_GET["order_by"]);
+	$order = check_str($_GET["order"]);
+
+//show the content
+	echo "<form name='domain_frm' id='domain_frm' method='GET' action='domain_settings.php'>";
+	echo "<input type='hidden' name='action' id='action' value=''>";
+	echo "<input type='hidden' name='domain_uuid' value='".$domain_uuid."'>";
+
+	echo "<div align='center'>";
+	echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
+	echo "<tr class='border'>\n";
+	echo "	<td align=\"center\">\n";
 
 //prepare to page the results
 	$sql = "select count(*) as num_rows from v_domain_settings ";
 	$sql .= "where domain_uuid = '$domain_uuid' ";
-	$sql .= "and domain_uuid = '$domain_uuid' ";
-	if (strlen($order_by)> 0) { $sql .= "order by $order_by $order "; }
 	$prep_statement = $db->prepare($sql);
 	if ($prep_statement) {
 	$prep_statement->execute();
@@ -60,7 +101,7 @@ require_once "resources/paging.php";
 	}
 
 //prepare to page the results
-	$rows_per_page = 100;
+	$rows_per_page = 200;
 	$param = "";
 	$page = $_GET['page'];
 	if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }
@@ -88,18 +129,18 @@ require_once "resources/paging.php";
 	$row_style["1"] = "row_style1";
 
 //show the content
-	echo "<br /><br />";
+	echo "<div align='center'>\n";
 	echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
 
 	if ($result_count > 0) {
 		$previous_category = '';
 		foreach($result as $row) {
 			if ($previous_category != $row['domain_setting_category']) {
-				echo "<tr>";
-				echo "	<td colspan='6' align='left'>\n";
+				echo "<tr>\n";
+				echo "	<td colspan='7' align='left'>\n";
 				echo "		<br />\n";
 				echo "		<br />\n";
-				echo "		<b>";
+				echo "		<b>\n";
 				if (strtolower($row['domain_setting_category']) == "cdr") {
 					echo "		CDR";
 				}
@@ -113,6 +154,12 @@ require_once "resources/paging.php";
 				echo "	</td>\n";
 				echo "</tr>\n";
 				echo "<tr>\n";
+				if ((permission_exists("domain_select") 
+					&& permission_exists("domain_setting_add") 
+					&& count($_SESSION['domains']) > 1) ||
+					permission_exists('domain_setting_delete')) {
+						echo "<th style='text-align: center;' style='text-align: center; padding: 3px 0px 0px 0px;'><input type='checkbox' onchange=\"(this.checked) ? check('all','".strtolower($row['domain_setting_category'])."') : check('none','".strtolower($row['domain_setting_category'])."');\"></th>";
+				}
 				echo "<th>".$text['label-subcategory']."</th>";
 				echo "<th>".$text['label-type']."</th>";
 				echo "<th>".$text['label-value']."</th>";
@@ -120,13 +167,23 @@ require_once "resources/paging.php";
 				echo "<th>".$text['label-description']."</th>";
 				echo "<td class='list_control_icons'>";
 				if (permission_exists('domain_setting_add')) {
-					echo "<a href='domain_setting_edit.php?domain_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>";
+					echo "<a href='domain_setting_edit.php?domain_setting_category=".urlencode($row['domain_setting_category'])."&domain_uuid=".check_str($_GET['id'])."' alt='".$text['button-add']."'>".$v_link_label_add."</a>";
+				}
+				if (permission_exists('domain_setting_delete')) {
+					echo "<a href='javascript:void(0);' onclick=\"if (confirm('".$text['confirm-delete']."')) { document.getElementById('action').value = 'delete'; document.forms.domain_frm.submit(); }\" alt='".$text['button-delete']."'>".$v_link_label_delete."</a>";
 				}
 				echo "</td>\n";
 				echo "</tr>\n";
 			}
 			$tr_link = (permission_exists('domain_setting_edit')) ? " href='domain_setting_edit.php?domain_uuid=".$row['domain_uuid']."&id=".$row['domain_setting_uuid']."'" : null;
 			echo "<tr ".$tr_link.">\n";
+			if (
+				(permission_exists("domain_select") && permission_exists("domain_setting_add") && count($_SESSION['domains']) > 1) ||
+				permission_exists("domain_setting_delete")
+				) {
+				echo "	<td valign='top' class='".$row_style[$c]." tr_link_void' style='text-align: center; padding: 3px 0px 0px 0px;'><input type='checkbox' name='id[]' id='checkbox_".$row['domain_setting_uuid']."' value='".$row['domain_setting_uuid']."'></td>\n";
+				$subcat_ids[strtolower($row['domain_setting_category'])][] = 'checkbox_'.$row['domain_setting_uuid'];
+			}
 			echo "	<td valign='top' class='".$row_style[$c]."'>";
 			if (permission_exists('domain_setting_edit')) {
 				echo 	"<a href='domain_setting_edit.php?domain_uuid=".$row['domain_uuid']."&id=".$row['domain_setting_uuid']."'>".$row['domain_setting_subcategory']."</a>";
@@ -142,8 +199,7 @@ require_once "resources/paging.php";
 			$subcategory = $row['domain_setting_subcategory'];
 			$name = $row['domain_setting_name'];
 			if ($category == "domain" && $subcategory == "menu" && $name == "uuid" ) {
-				$sql = "";
-				$sql .= "select * from v_menus ";
+				$sql = "select * from v_menus ";
 				$sql .= "where menu_uuid = '".$row['domain_setting_value']."' ";
 				$sub_prep_statement = $db->prepare(check_sql($sql));
 				$sub_prep_statement->execute();
@@ -152,13 +208,16 @@ require_once "resources/paging.php";
 					echo $sub_row["menu_language"]." - ".$sub_row["menu_name"]."\n";
 				}
 			}
+			elseif ($category == "domain" && $subcategory == "template" && $name == "name" ) {
+				echo "		".ucwords($row['domain_setting_value']);
+			}
 			elseif ($category == "email" && $subcategory == "smtp_password" && $name == "var" ) {
 				echo "		******** &nbsp;\n";
 			}
 			elseif ($category == "provision" && $subcategory == "password" && $name == "var" ) {
 				echo "		******** &nbsp;\n";
 			} else {
-				echo 		$row['domain_setting_value'];
+				echo "		".substr($row['domain_setting_value'],0,58);
 			}
 			echo "		&nbsp;\n";
 			echo "	</td>\n";
@@ -169,7 +228,7 @@ require_once "resources/paging.php";
 				echo 	"<a href='domain_setting_edit.php?domain_uuid=".$row['domain_uuid']."&id=".$row['domain_setting_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
 			}
 			if (permission_exists('domain_setting_delete')) {
-				echo 	"<a href='domain_setting_delete.php?domain_uuid=".$row['domain_uuid']."&id=".$row['domain_setting_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
+				echo "<a href='domain_settings.php?domain_uuid=".$row['domain_uuid']."&id[]=".$row['domain_setting_uuid']."&action=delete' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
 			}
 			echo "	</td>\n";
 			echo "</tr>\n";
@@ -180,22 +239,61 @@ require_once "resources/paging.php";
 	} //end if results
 
 	echo "<tr>\n";
-	echo "<td colspan='6' align='left'>\n";
+	if (
+		(permission_exists("domain_select") && permission_exists("domain_setting_add") && count($_SESSION['domains']) > 1) ||
+		permission_exists("domain_delete")
+		) {
+		$colspan = 7;
+	}
+	else {
+		$colspan = 6;
+	}
+	echo "<td colspan='".$colspan."' align='left'>\n";
 	echo "	<table width='100%' cellpadding='0' cellspacing='0'>\n";
 	echo "	<tr>\n";
 	echo "		<td width='33.3%' nowrap>&nbsp;</td>\n";
 	echo "		<td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
 	echo "		<td class='list_control_icons'>";
 	if (permission_exists('domain_setting_add')) {
-		echo 		"<a href='domain_setting_edit.php?domain_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>";
+		echo 		"<a href='domain_setting_edit.php?domain_uuid=".check_str($_GET['id'])."' alt='".$text['button-add']."'>$v_link_label_add</a>";
+	}
+	if (permission_exists('domain_setting_delete')) {
+		echo "<a href='javascript:void(0);' onclick=\"if (confirm('".$text['confirm-delete']."')) { document.getElementById('action').value = 'delete'; document.getElementById('domain_frm').submit(); }\" alt='".$text['button-delete']."'>".$v_link_label_delete."</a>";
 	}
 	echo "		</td>\n";
 	echo "	</tr>\n";
  	echo "	</table>\n";
 	echo "</td>\n";
 	echo "</tr>\n";
+
 	echo "</table>";
+	echo "</div>";
+	echo "<br /><br />";
+	echo "<br /><br />";
 
+	echo "</td>";
+	echo "</tr>";
+	echo "</table>";
+	echo "</div>";
+
+	echo "</form>";
+
+	echo "<br /><br />";
+
+	// check or uncheck all category checkboxes
+	if (sizeof($subcat_ids) > 0) {
+		echo "<script>\n";
+		echo "	function check(what, category) {\n";
+		foreach ($subcat_ids as $domain_setting_category => $checkbox_ids) {
+			echo "if (category == '".$domain_setting_category."') {\n";
+			foreach ($checkbox_ids as $index => $checkbox_id) {
+				echo "document.getElementById('".$checkbox_id."').checked = (what == 'all') ? true : false;\n";
+			}
+			echo "}\n";
+		}
+		echo "	}\n";
+		echo "</script>\n";
+	}
 
 //include the footer
 	//require_once "resources/footer.php";