diff --git a/htdocs/admin/societe.php b/htdocs/admin/societe.php index 46cc9b3c1c6..fb5afb0959e 100644 --- a/htdocs/admin/societe.php +++ b/htdocs/admin/societe.php @@ -22,7 +22,7 @@ * \file htdocs/admin/societe.php * \ingroup company * \brief Third party module setup page - * \version $Id: societe.php,v 1.61 2011/07/31 22:23:23 eldy Exp $ + * \version $Id: societe.php,v 1.62 2011/08/16 16:49:24 simnandez Exp $ */ require("../main.inc.php"); @@ -157,6 +157,20 @@ if ($_GET["action"] == 'setdoc') } } +//Activate ProfId +if ($_GET["action"] == 'setprofid') +{ + $idprof="SOCIETE_IDPROF".$_GET["value"]."_UNIQUE"; + if (dolibarr_set_const($db, $idprof,$_GET["status"],'chaine',0,'',$conf->entity) > 0) + { + Header("Location: ".$_SERVER["PHP_SELF"]); + exit; + } + else + { + dol_print_error($db); + } +} /* @@ -451,6 +465,72 @@ print ''; print '
'; +//IDProf +print_titre($langs->trans("CompanyIdProfChecker")); + +print ''; +print ''; +print ''; +print ''; +print ''; +print "\n"; + +$profid[0][0]=$langs->trans("ProfId1"); +$profid[0][1]=$langs->transcountry('ProfId1' ,$mysoc->pays_code); +$profid[1][0]=$langs->trans("ProfId2"); +$profid[1][1]=$langs->transcountry('ProfId2' ,$mysoc->pays_code); +$profid[2][0]=$langs->trans("ProfId3"); +$profid[2][1]=$langs->transcountry('ProfId3' ,$mysoc->pays_code); +$profid[3][0]=$langs->trans("ProfId4"); +$profid[3][1]=$langs->transcountry('ProfId4' ,$mysoc->pays_code); + +$var = true; +$i=0; + +while ($i < sizeof($profid)) +{ + $var = !$var; + + print ''; + print ''; + + switch($i) + { + case 0: + $verif=(!$conf->global->SOCIETE_IDPROF1_UNIQUE?false:true); + break; + case 1: + $verif=(!$conf->global->SOCIETE_IDPROF2_UNIQUE?false:true); + break; + case 2: + $verif=(!$conf->global->SOCIETE_IDPROF3_UNIQUE?false:true); + break; + case 3: + $verif=(!$conf->global->SOCIETE_IDPROF4_UNIQUE?false:true); + break; + } + + if ($verif) + { + print ''; + } + else + { + print ''; + } + print "\n"; + $i++; +} + +print "
'.$langs->trans("Name").''.$langs->trans("Description").''.$langs->trans("Value").'
'.$profid[$i][0]."\n"; + print $profid[$i][1]; + print ''; + print img_picto($langs->trans("Activated"),'switch_on'); + print ''; + print img_picto($langs->trans("Disabled"),'switch_off'); + print '
\n"; + + print_titre($langs->trans("Other")); // Autres options @@ -498,5 +578,5 @@ dol_fiche_end(); $db->close(); -llxFooter('$Date: 2011/07/31 22:23:23 $ - $Revision: 1.61 $'); +llxFooter('$Date: 2011/08/16 16:49:24 $ - $Revision: 1.62 $'); ?> diff --git a/htdocs/langs/ca_ES/admin.lang b/htdocs/langs/ca_ES/admin.lang index d1b9c55d61e..a4641300009 100644 --- a/htdocs/langs/ca_ES/admin.lang +++ b/htdocs/langs/ca_ES/admin.lang @@ -883,6 +883,7 @@ NotificationsDesc=La funció de les notificacions permet enviar automàticament ModelModules=Models de documents DocumentModelOdt=Generació des dels documents amb format OpenDocument (Arxiu .ODT OpenOffice, KOffice, TextEdit,...) WatermarkOnDraft=Marca d'aigua en els documents esborrany +CompanyIdProfChecker=Id Professional únic ##### Webcal setup ##### WebCalSetup=Configuració d'enllaç amb el calendari webcalendar WebCalSyncro=Integrar els esdeveniments Dolibarr a webcalendar diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index dc3ae8bcd28..9e7fd29575f 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -875,6 +875,7 @@ NotificationsDesc=EMails notifications feature allows you to silently send autom ModelModules=Documents templates DocumentModelOdt=Generate documents from OpenDocuments templates (.ODT files for OpenOffice, KOffice, TextEdit,...) WatermarkOnDraft=Watermark on draft document +CompanyIdProfChecker=Professional Id unique ##### Webcal setup ##### WebCalSetup=Webcalendar link setup WebCalSyncro=Add Dolibarr events to WebCalendar diff --git a/htdocs/langs/es_ES/admin.lang b/htdocs/langs/es_ES/admin.lang index 079659a2385..4ced43d13ee 100644 --- a/htdocs/langs/es_ES/admin.lang +++ b/htdocs/langs/es_ES/admin.lang @@ -883,6 +883,7 @@ NotificationsDesc=La función de las notificaciones permite enviar automáticame ModelModules=Modelos de documentos DocumentModelOdt=Generación desde los documentos OpenDocument (Archivo .ODT OpenOffice, KOffice, TextEdit,...) WatermarkOnDraft=Marca de agua en los documentos borrador +CompanyIdProfChecker=Id Profesional único ##### Webcal setup ##### WebCalSetup=Configuración de enlace con el calendario Webcalendar WebCalSyncro=Integrar los eventos Dolibarr en WebCalendar diff --git a/htdocs/langs/fr_FR/admin.lang b/htdocs/langs/fr_FR/admin.lang index 31fadde05a6..c96825366fc 100644 --- a/htdocs/langs/fr_FR/admin.lang +++ b/htdocs/langs/fr_FR/admin.lang @@ -883,6 +883,7 @@ NotificationsDesc= La fonction des notifications par emails permet d'envoyer aut ModelModules=Modèle de documents DocumentModelOdt=Genération depuis des modèles OpenDocument (Fichier .ODT OpenOffice, KOffice, TextEdit...) WatermarkOnDraft=Filigrane sur les documents brouillons +CompanyIdProfChecker=Id professionel unique ##### Webcal setup ##### WebCalSetup= Configuration du lien vers le calendrier Webcalendar WebCalSyncro= Intégrer les événements Dolibarr dans WebCalendar