diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs index 959e5a9d314..0f42acecfbd 100644 --- a/.settings/org.eclipse.core.resources.prefs +++ b/.settings/org.eclipse.core.resources.prefs @@ -1,13 +1,9 @@ -#Tue Jul 28 19:24:41 CEST 2009 +#Fri Jul 31 00:34:31 CEST 2009 eclipse.preferences.version=1 encoding//dev/initdemo/initdemo.sql=UTF-8 encoding//dev/skeletons/modMyModule.class.php=ISO-8859-1 encoding//htdocs/about.php=ISO-8859-1 encoding//htdocs/adherents/adherent.class.php=ISO-8859-1 -encoding//htdocs/admin/adherent.php=ISO-8859-1 -encoding//htdocs/admin/company.php=ISO-8859-1 -encoding//htdocs/admin/fckeditor.php=ISO-8859-1 -encoding//htdocs/admin/index.php=UTF-8 encoding//htdocs/admin/menus/index.php=ISO-8859-1 encoding//htdocs/admin/security.php=ISO-8859-1 encoding//htdocs/admin/system/database-tables-contraintes.php=ISO-8859-1 @@ -626,12 +622,7 @@ encoding//htdocs/product/templates/livrecontrat/livrecontrat-edit.tpl=UTF-8 encoding//htdocs/product/templates/livrecontrat/livrecontrat-view.tpl=UTF-8 encoding//htdocs/product/templates/livrecouverture/livrecouverture-edit.tpl=UTF-8 encoding//htdocs/product/templates/livrecouverture/livrecouverture-view.tpl=UTF-8 -encoding//htdocs/product/fiche.php=ISO-8859-1 -encoding//htdocs/product/reassort.php=ISO-8859-1 -encoding//htdocs/product/stats/fiche.php=ISO-8859-1 encoding//htdocs/projet/tasks/fiche.php=ISO-8859-1 -encoding//htdocs/soc.php=ISO-8859-1 -encoding//htdocs/societe.class.php=ISO-8859-1 encoding//htdocs/societe/ajaxcompanies.php=ISO-8859-1 encoding//htdocs/stats.class.php=ISO-8859-1 encoding//htdocs/theme/auguria/auguria.css.php=ISO-8859-1 diff --git a/htdocs/admin/adherent.php b/htdocs/admin/adherent.php index ecc1e3157ac..ebe51afd5d3 100644 --- a/htdocs/admin/adherent.php +++ b/htdocs/admin/adherent.php @@ -230,111 +230,106 @@ $constantes=array( 'ADHERENT_CARD_FOOTER_TEXT', 'ADHERENT_ETIQUETTE_TYPE' ); - print_fiche_titre($langs->trans("Other"),'',''); +print_fiche_titre($langs->trans("Other"),'',''); - print $langs->trans("FollowingConstantsWillBeSubstituted").'
'; - print '%DOL_MAIN_URL_ROOT%, %ID%, %PRENOM%, %NOM%, %LOGIN%, %PASSWORD%,'; - print '%SOCIETE%, %ADRESSE%, %CP%, %VILLE%, %PAYS%, %EMAIL%, %NAISS%, %PHOTO%, %TYPE%,'; - //print '%INFOS%'; Deprecated - print '
'; +print $langs->trans("FollowingConstantsWillBeSubstituted").'
'; +print '%DOL_MAIN_URL_ROOT%, %ID%, %PRENOM%, %NOM%, %LOGIN%, %PASSWORD%,'; +print '%SOCIETE%, %ADRESSE%, %CP%, %VILLE%, %PAYS%, %EMAIL%, %NAISS%, %PHOTO%, %TYPE%,'; +//print '%INFOS%'; Deprecated +print '
'; - form_constantes($constantes); +form_constantes($constantes); +$db->close(); - $db->close(); +print '
'; - print '
'; +llxFooter('$Date$ - $Revision$'); +function form_constantes($tableau) +{ + global $db,$bc,$langs; + + $form = new Form($db); - llxFooter('$Date$ - $Revision$'); + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; + print "\n"; + $var=true; - - function form_constantes($tableau) + foreach($tableau as $const) + { + $sql = "SELECT rowid, name, value, type, note FROM ".MAIN_DB_PREFIX."const WHERE name='".$const."'"; + $result = $db->query($sql); + if ($result) { - // Variables globales - global $db,$bc,$langs; - $form = new Form($db); - print '
'.$langs->trans("Description").''.$langs->trans("Value").''.$langs->trans("Type").''.$langs->trans("Action").'
'; - print ''; - print ''; - print ''; - print ''; - print ''; - print "\n"; - $var=true; + $obj = $db->fetch_object($result); + $var=!$var; + print ''; + print ''; + print ''; + print ''; + print ''; + print ''; - foreach($tableau as $const) + print ""; + + // Affiche nom constante + print '\n"; + + if ($const == 'ADHERENT_ETIQUETTE_TYPE') { - $sql = "SELECT rowid, name, value, type, note FROM ".MAIN_DB_PREFIX."const WHERE name='".$const."'"; - $result = $db->query($sql); - if ($result) - { - $obj = $db->fetch_object($result); - $var=!$var; - print ''; - print ''; - print ''; - print ''; - print ''; - print ''; + print '"; - - // Affiche nom constante - print '\n"; - - if ($const == 'ADHERENT_ETIQUETTE_TYPE') - { - print ''; - } - - print '\n"; - - print ''; - $i++; - } + $form->select_array('constvalue',$arrayoflabels,$obj->value,1,0,1); + print '
'.$langs->trans("Description").''.$langs->trans("Value").''.$langs->trans("Type").''.$langs->trans("Action").'
'; + print $langs->trans("Desc".$const) != ("Desc".$const) ? $langs->trans("Desc".$const) : $obj->note; + print "'; + // List of possible labels. Values must exists in + // file htdocs/adherents/PDF_Card.class.php + require_once(DOL_DOCUMENT_ROOT.'/includes/modules/member/PDF_card.class.php'); + $pdfcardstatic=new PDF_card('5160',1,1,'mm'); + $arrayoflabels=array_keys($pdfcardstatic->_Avery_Labels); - print "
'; - print $langs->trans("Desc".$const) != ("Desc".$const) ? $langs->trans("Desc".$const) : $obj->note; - print "'; - // List of possible labels. Values must exists in - // file htdocs/adherents/PDF_Card.class.php - require_once(DOL_DOCUMENT_ROOT.'/includes/modules/member/PDF_card.class.php'); - $pdfcardstatic=new PDF_card('5160',1,1,'mm'); - $arrayoflabels=array_keys($pdfcardstatic->_Avery_Labels); - - $form->select_array('constvalue',$arrayoflabels,$obj->value,1,0,1); - print ''; - $form->select_array('consttype',array('yesno','texte','chaine'),1); - } - else - { - print ''; - if ($obj->type == 'yesno') - { - print $form->selectyesno('constvalue',$obj->value,1); - print ''; - $form->select_array('consttype',array('yesno','texte','chaine'),0); - } - elseif ($obj->type == 'texte') - { - print '\n"; - print ''; - $form->select_array('consttype',array('yesno','texte','chaine'),1); - } - else - { - print ''; - print ''; - $form->select_array('consttype',array('yesno','texte','chaine'),2); - } - print ''; - - print '  '; - // print ''.img_delete().''; - print "
'; + $form->select_array('consttype',array('yesno','texte','chaine'),1); } - print '
'; + else + { + print ''; + if ($obj->type == 'yesno') + { + print $form->selectyesno('constvalue',$obj->value,1); + print ''; + $form->select_array('consttype',array('yesno','texte','chaine'),0); + } + else if ($obj->type == 'texte') + { + print '\n"; + print ''; + $form->select_array('consttype',array('yesno','texte','chaine'),1); + } + else + { + print ''; + print ''; + $form->select_array('consttype',array('yesno','texte','chaine'),2); + } + print ''; + } + print ''; + print '  '; + // print ''.img_delete().''; + print "\n"; + print ''; + $i++; } + } + print ''; +} - ?> +?> \ No newline at end of file diff --git a/htdocs/admin/company.php b/htdocs/admin/company.php index 904cd9d2fdb..190d040c6c7 100644 --- a/htdocs/admin/company.php +++ b/htdocs/admin/company.php @@ -84,7 +84,7 @@ if ( (isset($_POST["action"]) && $_POST["action"] == 'update') } else dol_syslog($imgThumbSmall); - // Création de la vignette de la page "Société/Institution" + // Creation de la vignette de la page "Societe/Institution" $imgThumbMini = vignette($conf->mycompany->dir_output.'/logos/'.$original_file, 100, 30, '_mini', $quality); if (eregi('([^\\\/:]+)$',$imgThumbMini,$reg)) { @@ -135,7 +135,7 @@ if ($_GET["action"] == 'addthumb') // Create thumbs of logo if ($isimage > 0) { - // Création de la vignette de la page login + // Creation de la vignette de la page login $imgThumbSmall = vignette($conf->mycompany->dir_output.'/logos/'.$_GET["file"], 200, 100, '_small',80); if (image_format_supported($imgThumbSmall) >= 0 && eregi('([^\\\/:]+)$',$imgThumbSmall,$reg)) { @@ -144,7 +144,7 @@ if ($_GET["action"] == 'addthumb') } else dol_syslog($imgThumbSmall); - // Création de la vignette de la page "Société/Institution" + // Creation de la vignette de la page "Societe/Institution" $imgThumbMini = vignette($conf->mycompany->dir_output.'/logos/'.$_GET["file"], 100, 30, '_mini',80); if (image_format_supported($imgThumbSmall) >= 0 && eregi('([^\\\/:]+)$',$imgThumbMini,$reg)) { @@ -207,7 +207,7 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit') || (isset($_POST["action"]) && $_POST["action"] == 'updateedit') ) { /** - * Edition des paramètres + * Edition des parametres */ print '
'; @@ -306,7 +306,7 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit') print '
'; - // Identifiants de la société (propre au pays) + // Identifiants de la societe (propre au pays) print ''; print ''; $var=true; @@ -421,7 +421,7 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit') /* - * Début d'année fiscale + * Debut d'annee fiscale */ print '
'; print '
'.$langs->trans("CompanyIds").''.$langs->trans("Value").'
'; @@ -457,12 +457,12 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit') print "
"; print "\n"; - /* Je désactive cette option "facturation" car ce statut fiscal n'existe pas. Seul le réel et franchise existe. + /* Je desactive cette option "facturation" car ce statut fiscal n'existe pas. Seul le reel et franchise existe. Cette option ne doit donc pas etre en "exclusif" avec l'option fiscale de gestion de tva. Peut etre faut-il - une option a part qui n'entre pas en conflit avec les choix "assujéti TVA" ou "non". + une option a part qui n'entre pas en conflit avec les choix "assujeti TVA" ou "non". $var=!$var; print ""; - print "L'option 'facturation' est utilisée par les entreprises qui payent la TVA à facturation (vente de matériel).\n"; + print "L'option 'facturation' est utilisee par les entreprises qui payent la TVA a facturation (vente de materiel).\n"; */ $var=!$var; @@ -486,7 +486,7 @@ if ((isset($_GET["action"]) && $_GET["action"] == 'edit') else { /* - * Affichage des paramètres + * Affichage des parametres */ if ($message) print $message.'
'; @@ -549,7 +549,7 @@ else print $mysoc->logo; print ''; - // On propose la génération de la vignette si elle n'existe pas + // On propose la generation de la vignette si elle n'existe pas if (!is_file($conf->mycompany->dir_output.'/logos/thumbs/'.$mysoc->logo_mini) && eregi('(\.jpg|\.jpeg|\.png)$',$mysoc->logo)) { print 'logo).'">'.img_refresh($langs->trans('GenerateThumb')).'  '; @@ -575,7 +575,7 @@ else print '
'; - // Identifiants de la société (propre au pays) + // Identifiants de la societe (propre au pays) print ''; print ''; print ''; @@ -702,7 +702,7 @@ else print ''; /* - * Début d'année fiscale + * Debut d'annee fiscale */ print '
'; print '
'; @@ -769,18 +769,19 @@ llxFooter('$Date$ - $Revision$'); * \param code_iso Code iso de la devise * \param withcode 1=affiche code + nom * \return string Nom traduit de la devise + * TODO deplacer dans une classe */ function currency_name($code_iso,$withcode=0) { global $langs,$db; - // Si il existe une traduction, on peut renvoyer de suite le libellé + // Si il existe une traduction, on peut renvoyer de suite le libelle if ($langs->trans("Currency".$code_iso)!="Currency".$code_iso) { return $langs->trans("Currency".$code_iso); } - // Si pas de traduction, on consulte le libellé par défaut en table + // Si pas de traduction, on consulte le libelle par defaut en table $sql = "SELECT label FROM ".MAIN_DB_PREFIX."c_currencies"; $sql.= " WHERE code_iso='".$code_iso."'"; @@ -804,4 +805,4 @@ function currency_name($code_iso,$withcode=0) } } -?> +?> \ No newline at end of file diff --git a/htdocs/admin/fckeditor.php b/htdocs/admin/fckeditor.php index d690cea67b1..514c75b0732 100644 --- a/htdocs/admin/fckeditor.php +++ b/htdocs/admin/fckeditor.php @@ -44,7 +44,7 @@ $modules = array( 'MAILING' => 'FCKeditorForMailing', 'DETAILS' => 'FCKeditorForProductDetails', ); -// Conditions pour que l'option soit proposée +// Conditions pour que l'option soit proposee $conditions = array( 'USER' => 1, 'SOCIETE' => $conf->societe->enabled, @@ -69,7 +69,7 @@ foreach($modules as $const => $desc) if ($_GET["action"] == 'activate_'.strtolower($const)) { dolibarr_set_const($db, "FCKEDITOR_ENABLE_".$const, "1",'chaine',0,'',$conf->entity); - // Si fckeditor est activé dans la description produit/service, on l'active dans les formulaires + // Si fckeditor est active dans la description produit/service, on l'active dans les formulaires if ($const == 'PRODUCTDESC' && $conf->global->PRODUIT_DESC_IN_FORM) { dolibarr_set_const($db, "FCKEDITOR_ENABLE_DETAILS", "1",'chaine',0,'',$conf->entity); @@ -96,7 +96,7 @@ $linkback=''.$langs->trans("BackToM print_fiche_titre($langs->trans("FCKEditor"),$linkback,'setup'); print '
'; /* - * Activation/désactivation de FCKeditor + * Activation/desactivation de FCKeditor */ $var=true; @@ -147,4 +147,4 @@ print '
'; $db->close(); llxFooter('$Date$ - $Revision$'); -?> +?> \ No newline at end of file diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 5b9a7e9e440..a82faf508cd 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -133,9 +133,9 @@ if ($_POST["action"] == 'add' && ($user->rights->produit->creer || $user->rights if ( $value != $current_lang ) $e_product = $product; - // Produit spécifique + // Specific product // $_POST n'est pas utilise dans la classe Product - // mais dans des classes qui hérite de Product + // mais dans des classes qui herite de Product $id = $product->create($user); if ($id > 0) @@ -202,7 +202,7 @@ if ($_POST["action"] == 'update' && ($user->rights->produit->creer || $user->rig $mesg = $langs->trans("ErrorProductBadRefOrLabel"); } - // Produit spécifique + // Specific product if ($product->canvas <> '' && file_exists('templates/product.'.$product->canvas.'.class.php') ) { $class = 'Product'.ucfirst($product->canvas); @@ -564,7 +564,7 @@ $formproduct = new FormProduct($db); /* - * Fiche création du produit + * Fiche creation du produit */ if ($_GET["action"] == 'create' && ($user->rights->produit->creer || $user->rights->service->creer)) { @@ -639,7 +639,7 @@ if ($_GET["action"] == 'create' && ($user->rights->produit->creer || $user->righ print ''; } - // Description (utilisé dans facture, propale...) + // Description (used in invoice, propal...) print ''.$langs->trans("Description").''; if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC) @@ -1042,7 +1042,7 @@ if ($_GET["id"] || $_GET["ref"]) print ''; print ''; - // Description (utilisé dans facture, propale...) + // Description (used in invoice, propal...) print ''.$langs->trans("Description").''; print "\n"; if ($conf->fckeditor->enabled && $conf->global->FCKEDITOR_ENABLE_PRODUCTDESC) @@ -1616,6 +1616,7 @@ llxFooter('$Date$ - $Revision$'); /** * \brief Load tva_taux_value and tva_taux_libelle array * \remarks Ne sert que pour smarty + * \ TODO deplacer dans une classe */ function load_tva($db,$name='tauxtva', $defaulttx='', $societe_vendeuse='', $societe_acheteuse='', $taux_produit='') { @@ -1651,10 +1652,10 @@ function load_tva($db,$name='tauxtva', $defaulttx='', $societe_vendeuse='', $soc } } - // Définition du taux à pré-sélectionner + // Definition du taux a pre-selectionner if ($defaulttx == '') $defaulttx=get_default_tva($societe_vendeuse,$societe_acheteuse,$taux_produit); - // Si taux par defaut n'a pu etre trouvé, on prend dernier. - // Comme ils sont triés par ordre croissant, dernier = plus élevé = taux courant + // Si taux par defaut n'a pu etre trouve, on prend dernier. + // Comme ils sont tries par ordre croissant, dernier = plus eleve = taux courant if ($defaulttx == '') $defaulttx = $txtva[sizeof($txtva)-1]; $nbdetaux = sizeof($txtva); diff --git a/htdocs/product/reassort.php b/htdocs/product/reassort.php index 541c466ab3d..9f4f6ec0855 100644 --- a/htdocs/product/reassort.php +++ b/htdocs/product/reassort.php @@ -300,4 +300,4 @@ else $db->close(); llxFooter('$Date$ - $Revision$'); -?> +?> \ No newline at end of file diff --git a/htdocs/product/stats/fiche.php b/htdocs/product/stats/fiche.php index 71c50b68fbb..c2e24136e3a 100644 --- a/htdocs/product/stats/fiche.php +++ b/htdocs/product/stats/fiche.php @@ -175,7 +175,7 @@ if ($_GET["id"] || $_GET["ref"]) $graph_data = array(); - // \todo Test si deja existant et recent, on ne genere pas + // TODO Test si deja existant et recent, on ne genere pas if ($key == 'propal') $graph_data = $product->get_nb_propal($socid,$mode); if ($key == 'orders') $graph_data = $product->get_nb_order($socid,$mode); if ($key == 'invoices') $graph_data = $product->get_nb_vente($socid,$mode); @@ -232,7 +232,7 @@ if ($_GET["id"] || $_GET["ref"]) //print $url; print ''.$graphfiles[$key]['label'].''; print ''; - // Date génération + // Date generation print ''; if (file_exists($dir."/".$graphfiles[$key]['file']) && filemtime($dir."/".$graphfiles[$key]['file']) && ! $px->isGraphKo()) { @@ -272,4 +272,4 @@ else $db->close(); llxFooter('$Date$ - $Revision$'); -?> +?> \ No newline at end of file diff --git a/htdocs/soc.php b/htdocs/soc.php index 75c98a5389d..2ef282f2814 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -54,13 +54,13 @@ $soc = new Societe($db); if ($_POST["getcustomercode"]) { - // On défini valeur pour code_client + // On defini valeur pour code_client $_POST["code_client"]="aa"; } if ($_POST["getsuppliercode"]) { - // On défini valeur pour code_fournisseur + // On defini valeur pour code_fournisseur $_POST["code_fournisseur"]="aa"; } @@ -112,7 +112,7 @@ if ((! $_POST["getcustomercode"] && ! $_POST["getsuppliercode"]) $soc->effectif_id = $_POST["effectif_id"]; if ($_REQUEST["private"] == 1) { - $soc->typent_id = 8; // TODO prévoir autre méthode si le champs "particulier" change de rowid + $soc->typent_id = 8; // TODO prevoir autre methode si le champs "particulier" change de rowid } else { @@ -301,7 +301,7 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create') $modCodeFournisseur = new $module; /* - * Fiche societe en mode création + * Fiche societe en mode creation */ if ($_GET["type"]=='f') { $soc->fournisseur=1; } if ($_GET["type"]=='c') { $soc->client=1; } @@ -564,7 +564,7 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create') $html = new Form($db); print ''.$langs->trans('VATIsUsed').''; print ''; - print $html->selectyesno('assujtva_value',1,1); // Assujeti par défaut en creation + print $html->selectyesno('assujtva_value',1,1); // Assujeti par defaut en creation print ''; // Code TVA @@ -634,7 +634,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit') } require_once(DOL_DOCUMENT_ROOT ."/includes/modules/societe/".$module.".php"); $modCodeClient = new $module; - // On vérifie si la balise préfix est utilisée + // On verifie si la balise prefix est utilisee if ($modCodeClient->code_auto) { $prefixCustomerIsUsed = $modCodeClient->verif_prefixIsUsed(); @@ -647,7 +647,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit') } require_once(DOL_DOCUMENT_ROOT ."/includes/modules/societe/".$module.".php"); $modCodeFournisseur = new $module; - // On vérifie si la balise préfix est utilisée + // On verifie si la balise prefix est utilisee if ($modCodeFournisseur->code_auto) { $prefixSupplierIsUsed = $modCodeFournisseur->verif_prefixIsUsed(); @@ -722,7 +722,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit') print ''.$langs->trans('Name').''; print ''.$langs->trans("Prefix").''; - // On ne permet pas la modification du préfix en mode de numérotation auto utilisant le prefix + // On ne permet pas la modification du prefix en mode de numerotation auto utilisant le prefix if (($prefixCustomerIsUsed || $prefixSupplierIsUsed) && $soc->prefix_comm) { print ''; @@ -945,7 +945,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit') else { /* - * Fiche société en mode visu + * Fiche societe en mode visu */ $soc = new Societe($db); $soc->id = $socid; diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index 196f18d3bb7..f3b0f7efa9d 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -1874,9 +1874,9 @@ class Societe extends CommonObject 'LV', // Latvia 'LT', // Lithuania 'LU', // Luxembourg - 'MO', // Monaco + 'MO', // Monaco ? TODO verify vat rules 'MT', // Malta - 'NO', // Norway + 'NO', // Norway ? TODO verify vat rules 'PL', // Poland 'PT', // Portugal 'RO', // Romania @@ -1884,7 +1884,7 @@ class Societe extends CommonObject 'SI', // Slovenia 'ES', // Spain 'SE', // Sweden - 'CH', // Switzerland + 'CH', // Switzerland ? TODO verify vat rules ); //print "dd".$this->pays_code; return in_array($this->pays_code,$country_code_in_EEC);