diff --git a/htdocs/categories/categorie.php b/htdocs/categories/categorie.php index a930637f627..2d33607c092 100644 --- a/htdocs/categories/categorie.php +++ b/htdocs/categories/categorie.php @@ -261,20 +261,20 @@ if ($socid) print ''; } + // EMail + print ''.$langs->trans('EMail').''; + print dol_print_email($soc->email,0,$soc->id,'AC_EMAIL'); + print ''; + + // Web + print ''.$langs->trans('Web').''; + print dol_print_url($soc->url); + print ''; + // Phone print ''.$langs->trans('Phone').''.dol_print_phone($soc->tel,$soc->country_code,0,$soc->id,'AC_TEL').''; print ''.$langs->trans('Fax').''.dol_print_phone($soc->fax,$soc->country_code,0,$soc->id,'AC_FAX').''; - // EMail - print ''.$langs->trans('EMail').''; - print dol_print_email($soc->email,0,$soc->id,'AC_EMAIL'); - print ''; - - // Web - print ''.$langs->trans('Web').''; - print dol_print_url($soc->url); - print ''; - // Assujeti a TVA ou pas print ''; print ''.$langs->trans('VATIsUsed').''; diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index 377c06fd8d8..f8091fa8fa6 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -241,11 +241,8 @@ class Categorie $this->db->begin(); $sql = "UPDATE ".MAIN_DB_PREFIX."categorie"; - $sql.= " SET label = '".$this->db->escape($this->label)."'"; - if (! empty($this->description)) - { - $sql .= ", description = '".$this->db->escape($this->description)."'"; - } + $sql.= " SET label = '".$this->db->escape($this->label)."',"; + $sql.= " description = '".$this->db->escape($this->description)."'"; if (! empty($conf->global->CATEGORY_ASSIGNED_TO_A_CUSTOMER)) { $sql .= ", fk_soc = ".($this->socid != -1 ? $this->socid : 'null'); diff --git a/htdocs/categories/edit.php b/htdocs/categories/edit.php index 79ac19ff189..388cf47436a 100644 --- a/htdocs/categories/edit.php +++ b/htdocs/categories/edit.php @@ -27,6 +27,7 @@ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php'; +$langs->load("categories"); $id=GETPOST('id','int'); $ref=GETPOST('ref'); @@ -62,7 +63,7 @@ if ($action == 'update' && $user->rights->categorie->creer) $result=$categorie->fetch($id); $categorie->label = $nom; - $categorie->description = $description; + $categorie->description = dol_htmlcleanlastbr($description); $categorie->socid = ($socid ? $socid : 'null'); $categorie->visible = $visible; diff --git a/htdocs/categories/fiche.php b/htdocs/categories/fiche.php index 8aa2bb8df0c..34a036156a3 100644 --- a/htdocs/categories/fiche.php +++ b/htdocs/categories/fiche.php @@ -108,7 +108,7 @@ if ($action == 'add' && $user->rights->categorie->creer) $object = new Categorie($db); $object->label = $label; - $object->description = $description; + $object->description = dol_htmlcleanlastbr($description); $object->socid = ($socid ? $socid : 'null'); $object->visible = $visible; $object->type = $type; @@ -192,7 +192,7 @@ if ($user->rights->categorie->creer) if ($action == 'create' || $_POST["addcat"] == 'addcat') { dol_set_focus('#label'); - + print '
'; print ''; print ''; diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index fd95ced8746..50c8bf903fb 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -247,18 +247,18 @@ if ($id > 0) else print ($img?$img.' ':'').$object->country; print ''; - // Phone - print ''.$langs->trans('Phone').''.dol_print_phone($object->tel,$object->country_code,0,$object->id,'AC_TEL').''; - - // Fax - print ''.$langs->trans('Fax').''.dol_print_phone($object->fax,$object->country_code,0,$object->id,'AC_FAX').''; - // EMail print ''.$langs->trans('EMail').''.dol_print_email($object->email,0,$object->id,'AC_EMAIL').''; // Web print ''.$langs->trans("Web").''.dol_print_url($object->url,'_blank').''; + // Phone + print ''.$langs->trans('Phone').''.dol_print_phone($object->tel,$object->country_code,0,$object->id,'AC_TEL').''; + + // Fax + print ''.$langs->trans('Fax').''.dol_print_phone($object->fax,$object->country_code,0,$object->id,'AC_FAX').''; + // Assujeti a TVA ou pas print ''; print ''.$langs->trans('VATIsUsed').''; diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php index a6108ab9e8e..505992341de 100755 --- a/htdocs/contact/list.php +++ b/htdocs/contact/list.php @@ -369,7 +369,7 @@ if ($result) print ''; print ''.img_object($langs->trans("AddAction"),"action").''; print '   '; - print ''; + print ''; print img_picto($langs->trans("VCard"),'vcard.png').' '; print ''; diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 9093f3be8ee..5d2fbf4f225 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -391,11 +391,11 @@ class FormFile - +
-'; -*/ +';*/ + if (empty($noform)) $out.= '
'; $out.= ''; $out.= ''; diff --git a/htdocs/core/get_menudiv.php b/htdocs/core/get_menudiv.php index 51bda89ffd0..0f1da52c46e 100644 --- a/htdocs/core/get_menudiv.php +++ b/htdocs/core/get_menudiv.php @@ -48,6 +48,8 @@ $left=($langs->trans("DIRECTION")=='rtl'?'right':'left'); // URL http://mydolibarr/core/get_menudiv.php?dol_use_jmobile=1 can be used for tests $arrayofjs=array(); $arrayofcss=array(); +$arrayofjs=array('/includes/jquery/plugins/jquerytreeview/jquery.treeview.js', '/includes/jquery/plugins/jquerytreeview/lib/jquery.cookie.js'); +$arrayofcss=array('/includes/jquery/plugins/jquerytreeview/jquery.treeview.css'); top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss); print ''."\n"; diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 51754bd4814..70ad6de03d6 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -1149,7 +1149,7 @@ function dol_print_email($email,$cid=0,$socid=0,$addlink=0,$max=64,$showinvalid= if (! empty($addlink)) { - $newemail=''; diff --git a/htdocs/core/search_page.php b/htdocs/core/search_page.php index 65e2df4d088..aab798d1301 100644 --- a/htdocs/core/search_page.php +++ b/htdocs/core/search_page.php @@ -99,7 +99,7 @@ $reshook=$hookmanager->executeHooks('printSearchForm',$parameters); if (empty($reshook)) $searchform.=$hookmanager->resPrint; else $searchform=$hookmanager->resPrint; -print ''; +print ''; print "\n"; print "\n"; diff --git a/htdocs/fourn/fiche.php b/htdocs/fourn/fiche.php index e182639775c..3fcfa4b7a86 100644 --- a/htdocs/fourn/fiche.php +++ b/htdocs/fourn/fiche.php @@ -134,18 +134,18 @@ if ($object->fetch($id)) else print ($img?$img.' ':'').$object->country; print ''; + // EMail + print ''.$langs->trans('EMail').''.dol_print_email($object->email,0,$object->id,'AC_EMAIL').''; + + // Web + print ''.$langs->trans("Web").''.dol_print_url($object->url).''; + // Phone print ''.$langs->trans("Phone").''.dol_print_phone($object->tel,$object->country_code,0,$object->id,'AC_TEL').''; // Fax print ''.$langs->trans("Fax").''.dol_print_phone($object->fax,$object->country_code,0,$object->id,'AC_FAX').''; - // EMail - print ''.$langs->trans('EMail').''.dol_print_email($object->email,0,$object->id,'AC_EMAIL').''; - - // Web - print ''.$langs->trans("Web")."".dol_print_url($object->url).""; - // Assujetti a TVA ou pas print ''; print ''.$langs->trans('VATIsUsed').''; @@ -178,14 +178,14 @@ if ($object->fetch($id)) print yn($object->localtax2_assuj); print ''; } - + if ($mysoc->localtax2_assuj!="1") { print ''.$langs->transcountry("LocalTax2IsUsed",$mysoc->country_code).''; print yn($object->localtax2_assuj); print ''; } - + } // TVA Intra @@ -217,11 +217,11 @@ if ($object->fetch($id)) print ''; - + print '
'; //print ''; - + $var=true; $MAXLIST=5; @@ -376,7 +376,7 @@ if ($object->fetch($id)) print '
'; //print ''; //print '' . "\n"; - + dol_fiche_end(); diff --git a/htdocs/langs/en_US/categories.lang b/htdocs/langs/en_US/categories.lang index da1fd9fe147..e0557e5f117 100644 --- a/htdocs/langs/en_US/categories.lang +++ b/htdocs/langs/en_US/categories.lang @@ -96,7 +96,7 @@ CatSupLinks=Links between suppliers and categories CatCusLinks=Links between customers/prospects and categories CatProdLinks=Links between products/services and categories CatMemberLinks=Links between members and categories -# Imports CatProdLinks=Products CatCusLinks=Customer/Prospects -CatSupLinks=Suppliers \ No newline at end of file +CatSupLinks=Suppliers +DeleteFromCat=Remove from category diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang index c0e2f94d7f5..5f140d5ef72 100644 --- a/htdocs/langs/en_US/main.lang +++ b/htdocs/langs/en_US/main.lang @@ -644,6 +644,8 @@ NoResults=No results ModulesSystemTools=Modules tools Test=Test Element=Element +NoPhotoYet=No pictures available yet +HomeDashboard=Home summary # Week day Monday=Monday diff --git a/htdocs/langs/en_US/products.lang b/htdocs/langs/en_US/products.lang index 19b1afc3a3f..95e60410fef 100644 --- a/htdocs/langs/en_US/products.lang +++ b/htdocs/langs/en_US/products.lang @@ -91,14 +91,12 @@ AddToOtherBills=Add to other bills CorrectStock=Correct stock AddPhoto=Add photo ListOfStockMovements=List of stock movements -NoPhotoYet=No pictures available yet BuiingPrice=Buying price SupplierCard=Supplier card CommercialCard=Commercial card AllWays=Path to find your product in stock NoCat=Your product is not in any category PrimaryWay=Primary path -DeleteFromCat=Remove from category PriceRemoved=Price removed BarCode=Barcode BarcodeType=Barcode type diff --git a/htdocs/langs/fr_FR/categories.lang b/htdocs/langs/fr_FR/categories.lang index 49043d2e1a2..5c090f63796 100644 --- a/htdocs/langs/fr_FR/categories.lang +++ b/htdocs/langs/fr_FR/categories.lang @@ -96,7 +96,7 @@ CatSupLinks=Liens entre les fournisseurs et les catégories CatCusLinks=Liens entre les clients/prospects et les catégories CatProdLinks=Liens entre les produits/services et les catégories CatMemberLinks=Links entre les adhérents et les catégories -# Imports CatProdLinks=Produits CatCusLinks=Clients/Prospects -CatSupLinks=Fournisseurs \ No newline at end of file +CatSupLinks=Fournisseurs +DeleteFromCat=Supprimer de la catégorie diff --git a/htdocs/langs/fr_FR/main.lang b/htdocs/langs/fr_FR/main.lang index bad84a57548..b15ea321c51 100644 --- a/htdocs/langs/fr_FR/main.lang +++ b/htdocs/langs/fr_FR/main.lang @@ -648,6 +648,8 @@ ModulesSystemTools=Outils Modules View=Voir Test=Test Element=Élément +NoPhotoYet=Pas de photo disponible pour l'instant +HomeDashboard=Synthèse accueil # Week day Monday=Lundi diff --git a/htdocs/langs/fr_FR/products.lang b/htdocs/langs/fr_FR/products.lang index 1b81787e88d..4fa3edf278d 100644 --- a/htdocs/langs/fr_FR/products.lang +++ b/htdocs/langs/fr_FR/products.lang @@ -91,14 +91,12 @@ AddToOtherBills=Ajouter aux autres factures CorrectStock=Corriger stock AddPhoto=Ajouter une photo ListOfStockMovements=Liste des mouvements de stock -NoPhotoYet=Pas de photo disponible pour l'instant BuiingPrice=Prix d'achat SupplierCard=Fiche fournisseur CommercialCard=Fiche commerciale AllWays=Chemin pour trouver votre produit dans le stock NoCat=Votre produit n'appartient à aucune catégorie PrimaryWay=Chemin Primaire: -DeleteFromCat=Supprimer de la catégorie PriceRemoved=Prix supprimé BarCode=Code-barres BarcodeType=Type de code-barres diff --git a/htdocs/societe/agenda.php b/htdocs/societe/agenda.php index d6539f917cc..6c1387bc35b 100644 --- a/htdocs/societe/agenda.php +++ b/htdocs/societe/agenda.php @@ -131,19 +131,20 @@ if ($socid) print ''; } - print ''.$langs->trans('Phone').''.dol_print_phone($soc->tel,$soc->country_code,0,$soc->id,'AC_TEL').''; - print ''.$langs->trans('Fax').''.dol_print_phone($soc->fax,$soc->country_code,0,$soc->id,'AC_FAX').''; - // EMail - print ''.$langs->trans('EMail').''; + print ''.$langs->trans('EMail').''; print dol_print_email($soc->email,0,$soc->id,'AC_EMAIL'); - print ''; + print ''; // Web - print ''.$langs->trans('Web').''; + print ''.$langs->trans('Web').''; print dol_print_url($soc->url); print ''; + // Phone / Fax + print ''.$langs->trans('Phone').''.dol_print_phone($soc->tel,$soc->country_code,0,$soc->id,'AC_TEL').''; + print ''.$langs->trans('Fax').''.dol_print_phone($soc->fax,$soc->country_code,0,$soc->id,'AC_FAX').''; + print ''; print '
'; diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index d58352c96cc..4fc8caa37ee 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -832,13 +832,14 @@ else print ''; } + // Email web + print ''.$langs->trans('EMail').(! empty($conf->global->SOCIETE_MAIL_REQUIRED)?'*':'').''; + print ''.$langs->trans('Web').''; + // Phone / Fax print ''.$langs->trans('Phone').''; print ''.$langs->trans('Fax').''; - print ''.$langs->trans('EMail').(! empty($conf->global->SOCIETE_MAIL_REQUIRED)?'*':'').''; - print ''.$langs->trans('Web').''; - // Prof ids $i=1; $j=0; while ($i <= 6) @@ -1257,14 +1258,14 @@ else print ''; } + // EMail / Web + print ''.$langs->trans('EMail').(! empty($conf->global->SOCIETE_MAIL_REQUIRED)?'*':'').''; + print ''.$langs->trans('Web').''; + // Phone / Fax print ''.$langs->trans('Phone').''; print ''.$langs->trans('Fax').''; - // EMail / Web - print ''.$langs->trans('EMail').(! empty($conf->global->SOCIETE_MAIL_REQUIRED)?'*':'').''; - print ''.$langs->trans('Web').''; - // Prof ids $i=1; $j=0; while ($i <= 6) @@ -1558,19 +1559,20 @@ else // State if (empty($conf->global->SOCIETE_DISABLE_STATE)) print ''.$langs->trans('State').''.$object->state.''; - print ''.$langs->trans('Phone').''.dol_print_phone($object->phone,$object->country_code,0,$object->id,'AC_TEL').''; - print ''.$langs->trans('Fax').''.dol_print_phone($object->fax,$object->country_code,0,$object->id,'AC_FAX').''; - // EMail - print ''.$langs->trans('EMail').''; + print ''.$langs->trans('EMail').''; print dol_print_email($object->email,0,$object->id,'AC_EMAIL'); - print ''; + print ''; // Web - print ''.$langs->trans('Web').''; + print ''.$langs->trans('Web').''; print dol_print_url($object->url); print ''; + // Phone / Fax + print ''.$langs->trans('Phone').''.dol_print_phone($object->phone,$object->country_code,0,$object->id,'AC_TEL').''; + print ''.$langs->trans('Fax').''.dol_print_phone($object->fax,$object->country_code,0,$object->id,'AC_FAX').''; + // Prof ids $i=1; $j=0; while ($i <= 6) @@ -1794,7 +1796,7 @@ else print '
'.$langs->trans('Delete').'
'."\n"; } else - { + { print '
'."\n"; } } diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 5653d1ffcb5..91e7d045256 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -137,8 +137,9 @@ if (empty($conf->global->THEME_ELDY_ENABLE_PERSONALIZED)) $conf->global->THEME_ELDY_TEXT='50,50,130'; if ($dol_use_jmobile) { - $conf->global->THEME_ELDY_BACKTABCARD1='255,255,255'; // topmenu - $conf->global->THEME_ELDY_BACKTABCARD2='255,255,255'; + $conf->global->THEME_ELDY_BACKTABCARD1='245,245,245'; // topmenu + $conf->global->THEME_ELDY_BACKTABCARD2='245,245,245'; + $conf->global->THEME_ELDY_BACKTABACTIVE='245,245,245'; } } @@ -236,8 +237,10 @@ input, input.flat, textarea, textarea.flat, form.flat select, select.flat { font-family: ; background: #FDFDFD; border: 1px solid #C0C0C0; + padding: 1px 1px 1px 1px; margin: 0px 0px 0px 0px; + } input, textarea, select { border-radius:4px; @@ -767,7 +770,7 @@ foreach($mainmenuusedarray as $val) /* Login */ form#login { - margin-top: 60px; + margin-top: px; margin-bottom: 30px; font-size: 13px; vertical-align: middle; @@ -1311,7 +1314,7 @@ div.tabBar { border-bottom: 1px solid #CCCCCC; border-left: 1px solid #D0D0D0; border-top: 1px solid #D8D8D8; - + width: auto; background-image: -o-linear-gradient(bottom, rgb() 25%, rgb() 100%); background-image: -moz-linear-gradient(bottom, rgb() 25%, rgb() 100%); @@ -2581,9 +2584,10 @@ div.dolEventError h1, div.dolEventError h2 { li.ui-li-divider .ui-link { color: #FFF !important; } -a.ui-link, a.ui-link:hover { - text-decoration: none; +a.ui-link, a.ui-link:hover, .ui-btn:hover, span.ui-btn-text:hover, span.ui-btn-inner:hover { + text-decoration: none !important; } + .ui-btn-inner { padding-left: 10px; padding-right: 10px; @@ -2634,9 +2638,9 @@ a.ui-link { } /* Warning: setting this make screen not beeing refreshed after a combo selection */ -/*.ui-body-c { +.ui-body-c { background: #fff; -}*/ +}