Laurent Destailleur 3 éve
szülő
commit
0cae464bfa
41 módosított fájl, 71 hozzáadás és 57 törlés
  1. 1 1
      htdocs/admin/emailcollector_list.php
  2. 2 0
      htdocs/admin/events.php
  3. 2 0
      htdocs/admin/ihm.php
  4. 1 1
      htdocs/admin/mails_senderprofile_list.php
  5. 1 0
      htdocs/admin/proxy.php
  6. 2 1
      htdocs/admin/security.php
  7. 1 1
      htdocs/admin/security_file.php
  8. 1 0
      htdocs/admin/security_other.php
  9. 1 1
      htdocs/admin/stock.php
  10. 1 1
      htdocs/asset/list.php
  11. 1 1
      htdocs/bom/bom_list.php
  12. 1 1
      htdocs/compta/cashcontrol/cashcontrol_list.php
  13. 9 4
      htdocs/core/lib/functions.lib.php
  14. 1 1
      htdocs/core/tpl/extrafields_list_print_fields.tpl.php
  15. 1 1
      htdocs/eventorganization/conferenceorbooth_list.php
  16. 1 1
      htdocs/eventorganization/conferenceorboothattendee_list.php
  17. 1 1
      htdocs/hrm/evaluation_list.php
  18. 1 1
      htdocs/hrm/job_list.php
  19. 1 1
      htdocs/hrm/position.php
  20. 1 1
      htdocs/hrm/position_list.php
  21. 1 1
      htdocs/hrm/skill_card.php
  22. 1 1
      htdocs/hrm/skill_list.php
  23. 1 1
      htdocs/knowledgemanagement/knowledgerecord_list.php
  24. 1 1
      htdocs/modulebuilder/template/class/myobject.class.php
  25. 1 1
      htdocs/modulebuilder/template/myobject_list.php
  26. 1 1
      htdocs/mrp/mo_list.php
  27. 4 4
      htdocs/opensurvey/card.php
  28. 7 0
      htdocs/opensurvey/css/style.css
  29. 5 10
      htdocs/opensurvey/results.php
  30. 1 1
      htdocs/partnership/partnership_list.php
  31. 1 1
      htdocs/product/inventory/list.php
  32. 1 1
      htdocs/product/stock/list.php
  33. 1 1
      htdocs/product/stock/productlot_list.php
  34. 1 1
      htdocs/public/opensurvey/studs.php
  35. 1 1
      htdocs/recruitment/recruitmentcandidature_list.php
  36. 1 1
      htdocs/recruitment/recruitmentjobposition_list.php
  37. 4 4
      htdocs/societe/website.php
  38. 1 1
      htdocs/theme/eldy/global.inc.php
  39. 3 3
      htdocs/ticket/class/ticket.class.php
  40. 2 2
      htdocs/ticket/list.php
  41. 1 1
      htdocs/workstation/workstation_list.php

+ 1 - 1
htdocs/admin/emailcollector_list.php

@@ -530,7 +530,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 2 - 0
htdocs/admin/events.php

@@ -107,6 +107,8 @@ $head = security_prepare_head();
 
 
 print dol_get_fiche_head($head, 'audit', '', -1);
 print dol_get_fiche_head($head, 'audit', '', -1);
 
 
+print '<br>';
+
 print '<table class="noborder" width="100%">';
 print '<table class="noborder" width="100%">';
 print "<tr class=\"liste_titre\">";
 print "<tr class=\"liste_titre\">";
 print getTitleFieldOfList("LogEvents", 0, $_SERVER["PHP_SELF"], '', '', '', '', $sortfield, $sortorder, '')."\n";
 print getTitleFieldOfList("LogEvents", 0, $_SERVER["PHP_SELF"], '', '', '', '', $sortfield, $sortorder, '')."\n";

+ 2 - 0
htdocs/admin/ihm.php

@@ -299,6 +299,8 @@ $head = ihm_prepare_head();
 
 
 print dol_get_fiche_head($head, $mode, '', -1, '');
 print dol_get_fiche_head($head, $mode, '', -1, '');
 
 
+print '<br>';
+
 clearstatcache();
 clearstatcache();
 
 
 if ($mode == 'template') {
 if ($mode == 'template') {

+ 1 - 1
htdocs/admin/mails_senderprofile_list.php

@@ -597,7 +597,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 0
htdocs/admin/proxy.php

@@ -95,6 +95,7 @@ $head = security_prepare_head();
 
 
 print dol_get_fiche_head($head, 'proxy', '', -1);
 print dol_get_fiche_head($head, 'proxy', '', -1);
 
 
+print '<br>';
 
 
 if ($conf->use_javascript_ajax) {
 if ($conf->use_javascript_ajax) {
 	print "\n".'<script type="text/javascript" language="javascript">';
 	print "\n".'<script type="text/javascript" language="javascript">';

+ 2 - 1
htdocs/admin/security.php

@@ -188,8 +188,9 @@ $head = security_prepare_head();
 
 
 print dol_get_fiche_head($head, 'passwords', '', -1);
 print dol_get_fiche_head($head, 'passwords', '', -1);
 
 
+print '<br>';
 
 
-// Choix du gestionnaire du generateur de mot de passe
+// Select manager to generate passwords
 print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
 print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
 print '<input type="hidden" name="token" value="'.newToken().'">';
 print '<input type="hidden" name="token" value="'.newToken().'">';
 print '<input type="hidden" name="action" value="update">';
 print '<input type="hidden" name="action" value="update">';

+ 1 - 1
htdocs/admin/security_file.php

@@ -101,9 +101,9 @@ $head = security_prepare_head();
 
 
 print dol_get_fiche_head($head, 'file', '', -1);
 print dol_get_fiche_head($head, 'file', '', -1);
 
 
+print '<br>';
 
 
 // Upload options
 // Upload options
-$var = false;
 
 
 print '<div class="div-table-responsive-no-min">';
 print '<div class="div-table-responsive-no-min">';
 print '<table class="noborder centpercent">';
 print '<table class="noborder centpercent">';

+ 1 - 0
htdocs/admin/security_other.php

@@ -94,6 +94,7 @@ $head = security_prepare_head();
 
 
 print dol_get_fiche_head($head, 'misc', '', -1);
 print dol_get_fiche_head($head, 'misc', '', -1);
 
 
+print '<br>';
 
 
 // Other Options
 // Other Options
 print '<table class="noborder centpercent">';
 print '<table class="noborder centpercent">';

+ 1 - 1
htdocs/admin/stock.php

@@ -644,7 +644,7 @@ print '<tr class="oddeven">';
 print '<td>'.$langs->trans("MainDefaultWarehouse").'</td>';
 print '<td>'.$langs->trans("MainDefaultWarehouse").'</td>';
 print '<td class="right">';
 print '<td class="right">';
 print $formproduct->selectWarehouses($conf->global->MAIN_DEFAULT_WAREHOUSE, 'default_warehouse', '', 1, 0, 0, '', 0, 0, array(), 'left reposition');
 print $formproduct->selectWarehouses($conf->global->MAIN_DEFAULT_WAREHOUSE, 'default_warehouse', '', 1, 0, 0, '', 0, 0, array(), 'left reposition');
-print '<input type="submit" class="button button-edit" value="'.$langs->trans("Modify").'">';
+print '<input type="submit" class="button button-edit small" value="'.$langs->trans("Modify").'">';
 print "</td>";
 print "</td>";
 print "</tr>\n";
 print "</tr>\n";
 
 

+ 1 - 1
htdocs/asset/list.php

@@ -523,7 +523,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 1
htdocs/bom/bom_list.php

@@ -655,7 +655,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 1
htdocs/compta/cashcontrol/cashcontrol_list.php

@@ -578,7 +578,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 9 - 4
htdocs/core/lib/functions.lib.php

@@ -9108,11 +9108,12 @@ function getAdvancedPreviewUrl($modulepart, $relativepath, $alldata = 0, $param
 /**
 /**
  * Make content of an input box selected when we click into input field.
  * Make content of an input box selected when we click into input field.
  *
  *
- * @param string	$htmlname	Id of html object ('#idvalue' or '.classvalue')
- * @param string	$addlink	Add a 'link to' after
+ * @param string	$htmlname		Id of html object ('#idvalue' or '.classvalue')
+ * @param string	$addlink		Add a 'link to' after
+ * @param string	$textonlink		Text to show on link or 'image'
  * @return string
  * @return string
  */
  */
-function ajax_autoselect($htmlname, $addlink = '')
+function ajax_autoselect($htmlname, $addlink = '', $textonlink = 'Link')
 {
 {
 	global $langs;
 	global $langs;
 	$out = '<script>
 	$out = '<script>
@@ -9121,7 +9122,11 @@ function ajax_autoselect($htmlname, $addlink = '')
 				});
 				});
 		    </script>';
 		    </script>';
 	if ($addlink) {
 	if ($addlink) {
-		$out .= ' <a href="'.$addlink.'" target="_blank">'.$langs->trans("Link").'</a>';
+		if ($textonlink === 'image') {
+			$out .= ' <a href="'.$addlink.'" target="_blank">'.img_picto('', 'globe').'</a>';
+		} else {
+			$out .= ' <a href="'.$addlink.'" target="_blank">'.$langs->trans("Link").'</a>';
+		}
 	}
 	}
 	return $out;
 	return $out;
 }
 }

+ 1 - 1
htdocs/core/tpl/extrafields_list_print_fields.tpl.php

@@ -62,7 +62,7 @@ if (!empty($extrafieldsobjectkey) && !empty($extrafields->attributes[$extrafield
 						$totalarray['totalizable'][$key]['total'] += $obj->$tmpkey;
 						$totalarray['totalizable'][$key]['total'] += $obj->$tmpkey;
 					}
 					}
 				}
 				}
-				if (!empty($val['isameasure'])) {
+				if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 					if (!$i) {
 					if (!$i) {
 						$totalarray['pos'][$totalarray['nbfield']] = $extrafieldsobjectprefix.$tmpkey;
 						$totalarray['pos'][$totalarray['nbfield']] = $extrafieldsobjectprefix.$tmpkey;
 					}
 					}

+ 1 - 1
htdocs/eventorganization/conferenceorbooth_list.php

@@ -830,7 +830,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 1
htdocs/eventorganization/conferenceorboothattendee_list.php

@@ -889,7 +889,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 1
htdocs/hrm/evaluation_list.php

@@ -641,7 +641,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 1
htdocs/hrm/job_list.php

@@ -643,7 +643,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 1
htdocs/hrm/position.php

@@ -812,7 +812,7 @@ function DisplayPositionList()
 				if (!$i) {
 				if (!$i) {
 					$totalarray['nbfield']++;
 					$totalarray['nbfield']++;
 				}
 				}
-				if (!empty($val['isameasure'])) {
+				if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 					if (!$i) {
 					if (!$i) {
 						$totalarray['pos'][$totalarray['nbfield']] = 't.' . $key;
 						$totalarray['pos'][$totalarray['nbfield']] = 't.' . $key;
 					}
 					}

+ 1 - 1
htdocs/hrm/position_list.php

@@ -642,7 +642,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 1
htdocs/hrm/skill_card.php

@@ -790,7 +790,7 @@ if ($action != "create" && $action != "edit") {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['nbfield']++;
 					$totalarray['nbfield']++;
 				}
 				}
-				if (!empty($val['isameasure'])) {
+				if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 					if (!$i) {
 					if (!$i) {
 						$totalarray['pos'][$totalarray['nbfield']] = 't.' . $key;
 						$totalarray['pos'][$totalarray['nbfield']] = 't.' . $key;
 					}
 					}

+ 1 - 1
htdocs/hrm/skill_list.php

@@ -643,7 +643,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 1
htdocs/knowledgemanagement/knowledgerecord_list.php

@@ -612,7 +612,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 1
htdocs/modulebuilder/template/class/myobject.class.php

@@ -83,7 +83,7 @@ class MyObject extends CommonObject
 	 *  'index' if we want an index in database.
 	 *  'index' if we want an index in database.
 	 *  'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommanded to name the field fk_...).
 	 *  'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommanded to name the field fk_...).
 	 *  'searchall' is 1 if we want to search in this field when making a search from the quick search button.
 	 *  'searchall' is 1 if we want to search in this field when making a search from the quick search button.
-	 *  'isameasure' must be set to 1 if you want to have a total on list for this field. Field type must be summable like integer or double(24,8).
+	 *  'isameasure' must be set to 1 or 2 if field can be used for measure. Field type must be summable like integer or double(24,8). Use 1 in most cases, or 2 if you don't want to see the column total into list (for example for percentage)
 	 *  'css' and 'cssview' and 'csslist' is the CSS style to use on field. 'css' is used in creation and update. 'cssview' is used in view mode. 'csslist' is used for columns in lists. For example: 'css'=>'minwidth300 maxwidth500 widthcentpercentminusx', 'cssview'=>'wordbreak', 'csslist'=>'tdoverflowmax200'
 	 *  'css' and 'cssview' and 'csslist' is the CSS style to use on field. 'css' is used in creation and update. 'cssview' is used in view mode. 'csslist' is used for columns in lists. For example: 'css'=>'minwidth300 maxwidth500 widthcentpercentminusx', 'cssview'=>'wordbreak', 'csslist'=>'tdoverflowmax200'
 	 *  'help' is a 'TranslationString' to use to show a tooltip on field. You can also use 'TranslationString:keyfortooltiponlick' for a tooltip on click.
 	 *  'help' is a 'TranslationString' to use to show a tooltip on field. You can also use 'TranslationString:keyfortooltiponlick' for a tooltip on click.
 	 *  'showoncombobox' if value of the field must be visible into the label of the combobox that list record
 	 *  'showoncombobox' if value of the field must be visible into the label of the combobox that list record

+ 1 - 1
htdocs/modulebuilder/template/myobject_list.php

@@ -662,7 +662,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 1
htdocs/mrp/mo_list.php

@@ -567,7 +567,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 4 - 4
htdocs/opensurvey/card.php

@@ -229,7 +229,7 @@ print '<table class="border tableforfield centpercent">';
 
 
 // Type
 // Type
 $type = ($object->format == "A") ? 'classic' : 'date';
 $type = ($object->format == "A") ? 'classic' : 'date';
-print '<tr><td class="titlefield">'.$langs->trans("Type").'</td><td>';
+print '<tr><td class="titlefieldmax45">'.$langs->trans("Type").'</td><td>';
 print img_picto('', dol_buildpath('/opensurvey/img/'.($type == 'classic' ? 'chart-32.png' : 'calendar-32.png'), 1), 'width="16"', 1);
 print img_picto('', dol_buildpath('/opensurvey/img/'.($type == 'classic' ? 'chart-32.png' : 'calendar-32.png'), 1), 'width="16"', 1);
 print ' '.$langs->trans($type == 'classic' ? "TypeClassic" : "TypeDate").'</td></tr>';
 print ' '.$langs->trans($type == 'classic' ? "TypeClassic" : "TypeDate").'</td></tr>';
 
 
@@ -323,7 +323,7 @@ if ($object->fk_user_creat > 0) {
 print '</td></tr>';
 print '</td></tr>';
 
 
 // Link
 // Link
-print '<tr><td>'.img_picto('', 'globe').' '.$langs->trans("UrlForSurvey", '').'</td><td>';
+print '<tr><td>'.$langs->trans("UrlForSurvey", '').'</td><td>';
 
 
 // Define $urlwithroot
 // Define $urlwithroot
 $urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
 $urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
@@ -331,9 +331,9 @@ $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT; // This is to use external domai
 //$urlwithroot=DOL_MAIN_URL_ROOT;					// This is to use same domain name than current
 //$urlwithroot=DOL_MAIN_URL_ROOT;					// This is to use same domain name than current
 
 
 $url = $urlwithroot.'/public/opensurvey/studs.php?sondage='.$object->id_sondage;
 $url = $urlwithroot.'/public/opensurvey/studs.php?sondage='.$object->id_sondage;
-print '<input type="text" style="width: 60%" '.($action == 'edit' ? 'disabled' : '').' id="opensurveyurl" name="opensurveyurl" value="'.$url.'">';
+print '<input type="text" class="quatrevingtpercent" '.($action == 'edit' ? 'disabled' : '').' id="opensurveyurl" name="opensurveyurl" value="'.$url.'">';
 if ($action != 'edit') {
 if ($action != 'edit') {
-	print ajax_autoselect("opensurveyurl", $url);
+	print ajax_autoselect("opensurveyurl", $url, 'image');
 }
 }
 
 
 print '</td></tr>';
 print '</td></tr>';

+ 7 - 0
htdocs/opensurvey/css/style.css

@@ -342,6 +342,13 @@ div.cadre table.resultats {
 td.nom {
 td.nom {
 	min-width: 160px;
 	min-width: 160px;
 }
 }
+@media only screen and (max-width: 767px)
+{
+	td.nom {
+		min-width: 100px;
+	}
+}
+
 td.vide {
 td.vide {
 	min-width: 60px;
 	min-width: 60px;
 }
 }

+ 5 - 10
htdocs/opensurvey/results.php

@@ -531,7 +531,7 @@ if ($object->fk_user_creat) {
 print '</td></tr>';
 print '</td></tr>';
 
 
 // Link
 // Link
-print '<tr><td>'.img_picto('', 'globe').' '.$langs->trans("UrlForSurvey", '').'</td><td>';
+print '<tr><td>'.$langs->trans("UrlForSurvey", '').'</td><td>';
 
 
 // Define $urlwithroot
 // Define $urlwithroot
 $urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
 $urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
@@ -539,15 +539,10 @@ $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT; // This is to use external domai
 //$urlwithroot=DOL_MAIN_URL_ROOT;					// This is to use same domain name than current
 //$urlwithroot=DOL_MAIN_URL_ROOT;					// This is to use same domain name than current
 
 
 $url = $urlwithouturlroot.dol_buildpath('/public/opensurvey/studs.php', 1).'?sondage='.$object->id_sondage;
 $url = $urlwithouturlroot.dol_buildpath('/public/opensurvey/studs.php', 1).'?sondage='.$object->id_sondage;
-$urllink = '<input type="text" style="width: 60%" '.($action == 'edit' ? 'disabled' : '').' id="opensurveyurl" name="opensurveyurl" value="'.$url.'">';
+$urllink = '<input type="text" class="quatrevingtpercent" '.($action == 'edit' ? 'disabled' : '').' id="opensurveyurl" name="opensurveyurl" value="'.$url.'">';
 print $urllink;
 print $urllink;
 if ($action != 'edit') {
 if ($action != 'edit') {
-	print '<script type="text/javascript">
-               jQuery(document).ready(function () {
-				    jQuery("#opensurveyurl").click(function() { jQuery(this).select(); } );
-				});
-		    </script>';
-	print ' <a href="'.$url.'" target="_blank">'.$langs->trans("Link").'</a>';
+	print ajax_autoselect("opensurveyurl", $url, 'image');
 }
 }
 
 
 print '</td></tr>';
 print '</td></tr>';
@@ -669,7 +664,7 @@ $nbcolonnes = substr_count($object->sujet, ',') + 1;
 print '<form name="formulaire" action="" method="POST">'."\n";
 print '<form name="formulaire" action="" method="POST">'."\n";
 print '<input type="hidden" name="token" value="'.newToken().'">';
 print '<input type="hidden" name="token" value="'.newToken().'">';
 
 
-print '<div class="cadre"> '."\n";
+print '<div class="cadre div-table-responsive-no-min"> '."\n";
 
 
 // Start to show survey result
 // Start to show survey result
 print '<table class="resultats">'."\n";
 print '<table class="resultats">'."\n";
@@ -1041,7 +1036,7 @@ if (empty($testligneamodifier)) {
 	print '<tr>'."\n";
 	print '<tr>'."\n";
 	print '<td></td>'."\n";
 	print '<td></td>'."\n";
 	print '<td class="nom">'."\n";
 	print '<td class="nom">'."\n";
-	print '<input type="text" placeholder="'.dol_escape_htmltag($langs->trans("Name")).'" name="nom" maxlength="64">'."\n";
+	print '<input type="text" class="maxwidthonsmartphone" placeholder="'.dol_escape_htmltag($langs->trans("Name")).'" name="nom" maxlength="64">'."\n";
 	print '</td>'."\n";
 	print '</td>'."\n";
 
 
 	for ($i = 0; $i < $nbcolonnes; $i++) {
 	for ($i = 0; $i < $nbcolonnes; $i++) {

+ 1 - 1
htdocs/partnership/partnership_list.php

@@ -652,7 +652,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 1
htdocs/product/inventory/list.php

@@ -561,7 +561,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 1
htdocs/product/stock/list.php

@@ -624,7 +624,7 @@ while ($i < min($num, $limit)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 1
htdocs/product/stock/productlot_list.php

@@ -537,7 +537,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 1
htdocs/public/opensurvey/studs.php

@@ -298,7 +298,7 @@ print '</div>'."\n";
 
 
 //The survey has expired, users can't vote or do any action
 //The survey has expired, users can't vote or do any action
 if (!$canbemodified) {
 if (!$canbemodified) {
-	print '<div style="text-align: center"><p>'.$langs->trans('SurveyExpiredInfo').'</p></div>';
+	print '<br><center><div class="quatrevingtpercent center warning">'.$langs->trans('SurveyExpiredInfo').'</div></center>';
 	llxFooterSurvey();
 	llxFooterSurvey();
 
 
 	$db->close();
 	$db->close();

+ 1 - 1
htdocs/recruitment/recruitmentcandidature_list.php

@@ -571,7 +571,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 1 - 1
htdocs/recruitment/recruitmentjobposition_list.php

@@ -611,7 +611,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}

+ 4 - 4
htdocs/societe/website.php

@@ -493,8 +493,8 @@ while ($i < min($num, $limit)) {
 	$objectwebsiteaccount->login = $obj->login;
 	$objectwebsiteaccount->login = $obj->login;
 	$objectwebsiteaccount->ref = $obj->login;
 	$objectwebsiteaccount->ref = $obj->login;
 	foreach ($objectwebsiteaccount->fields as $key => $val) {
 	foreach ($objectwebsiteaccount->fields as $key => $val) {
-		if (property_exists($obj, $key)) {
-			$object->$key = $obj->$key;
+		if (property_exists($objectwebsiteaccount, $key)) {
+			$objectwebsiteaccount->$key = $obj->$key;
 		}
 		}
 	}
 	}
 
 
@@ -526,7 +526,7 @@ while ($i < min($num, $limit)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}
@@ -536,7 +536,7 @@ while ($i < min($num, $limit)) {
 				if (!isset($totalarray['val']['t.'.$key])) {
 				if (!isset($totalarray['val']['t.'.$key])) {
 					$totalarray['val']['t.'.$key] = 0;
 					$totalarray['val']['t.'.$key] = 0;
 				}
 				}
-				$totalarray['val']['t.'.$key] += $obj->$key;
+				$totalarray['val']['t.'.$key] += $objectwebsiteaccount->$key;
 			}
 			}
 		}
 		}
 	}
 	}

+ 1 - 1
htdocs/theme/eldy/global.inc.php

@@ -3290,7 +3290,7 @@ tr.nocellnopadd td.nobordernopadding, tr.nocellnopadd td.nocellnopadd
 	padding-right: 7px !important;
 	padding-right: 7px !important;
 }
 }
 input.button[name="upload"] {
 input.button[name="upload"] {
-	padding: 4px !important;
+	padding: 5px !important;
 	font-size: 0.9em;
 	font-size: 0.9em;
 }
 }
 input.button.smallpaddingimp {
 input.button.smallpaddingimp {

+ 3 - 3
htdocs/ticket/class/ticket.class.php

@@ -263,7 +263,7 @@ class Ticket extends CommonObject
 		'fk_soc' => array('type'=>'integer:Societe:societe/class/societe.class.php', 'label'=>'ThirdParty', 'visible'=>1, 'enabled'=>'$conf->societe->enabled', 'position'=>50, 'notnull'=>-1, 'index'=>1, 'searchall'=>1, 'help'=>"LinkToThirparty", 'css'=>'tdoverflowmax150 maxwidth150onsmartphone'),
 		'fk_soc' => array('type'=>'integer:Societe:societe/class/societe.class.php', 'label'=>'ThirdParty', 'visible'=>1, 'enabled'=>'$conf->societe->enabled', 'position'=>50, 'notnull'=>-1, 'index'=>1, 'searchall'=>1, 'help'=>"LinkToThirparty", 'css'=>'tdoverflowmax150 maxwidth150onsmartphone'),
 		'notify_tiers_at_create' => array('type'=>'integer', 'label'=>'NotifyThirdparty', 'visible'=>-1, 'enabled'=>0, 'position'=>51, 'notnull'=>1, 'index'=>1),
 		'notify_tiers_at_create' => array('type'=>'integer', 'label'=>'NotifyThirdparty', 'visible'=>-1, 'enabled'=>0, 'position'=>51, 'notnull'=>1, 'index'=>1),
 		'fk_project' => array('type'=>'integer:Project:projet/class/project.class.php', 'label'=>'Project', 'visible'=>-1, 'enabled'=>1, 'position'=>52, 'notnull'=>-1, 'index'=>1, 'help'=>"LinkToProject"),
 		'fk_project' => array('type'=>'integer:Project:projet/class/project.class.php', 'label'=>'Project', 'visible'=>-1, 'enabled'=>1, 'position'=>52, 'notnull'=>-1, 'index'=>1, 'help'=>"LinkToProject"),
-		'timing' => array('type'=>'varchar(20)', 'label'=>'Timing', 'visible'=>-1, 'enabled'=>1, 'position'=>42, 'notnull'=>-1, 'help'=>""),
+		//'timing' => array('type'=>'varchar(20)', 'label'=>'Timing', 'visible'=>-1, 'enabled'=>1, 'position'=>42, 'notnull'=>-1, 'help'=>""),	// what is this ?
 		'datec' => array('type'=>'datetime', 'label'=>'DateCreation', 'visible'=>1, 'enabled'=>1, 'position'=>500, 'notnull'=>1),
 		'datec' => array('type'=>'datetime', 'label'=>'DateCreation', 'visible'=>1, 'enabled'=>1, 'position'=>500, 'notnull'=>1),
 		'date_read' => array('type'=>'datetime', 'label'=>'TicketReadOn', 'visible'=>-1, 'enabled'=>1, 'position'=>501, 'notnull'=>1),
 		'date_read' => array('type'=>'datetime', 'label'=>'TicketReadOn', 'visible'=>-1, 'enabled'=>1, 'position'=>501, 'notnull'=>1),
 		'fk_user_assign' => array('type'=>'integer:User:user/class/user.class.php', 'label'=>'AssignedTo', 'visible'=>1, 'enabled'=>1, 'position'=>505, 'notnull'=>1, 'css'=>'tdoverflowmax125'),
 		'fk_user_assign' => array('type'=>'integer:User:user/class/user.class.php', 'label'=>'AssignedTo', 'visible'=>1, 'enabled'=>1, 'position'=>505, 'notnull'=>1, 'css'=>'tdoverflowmax125'),
@@ -271,7 +271,7 @@ class Ticket extends CommonObject
 		'tms' => array('type'=>'timestamp', 'label'=>'DateModification', 'visible'=>-1, 'enabled'=>1, 'position'=>520, 'notnull'=>1),
 		'tms' => array('type'=>'timestamp', 'label'=>'DateModification', 'visible'=>-1, 'enabled'=>1, 'position'=>520, 'notnull'=>1),
 		'message' => array('type'=>'text', 'label'=>'Message', 'visible'=>-2, 'enabled'=>1, 'position'=>540, 'notnull'=>-1,),
 		'message' => array('type'=>'text', 'label'=>'Message', 'visible'=>-2, 'enabled'=>1, 'position'=>540, 'notnull'=>-1,),
 		'email_msgid' => array('type'=>'varchar(255)', 'label'=>'EmailMsgID', 'visible'=>-2, 'enabled'=>1, 'position'=>540, 'notnull'=>-1, 'help'=>'EmailMsgIDDesc'),
 		'email_msgid' => array('type'=>'varchar(255)', 'label'=>'EmailMsgID', 'visible'=>-2, 'enabled'=>1, 'position'=>540, 'notnull'=>-1, 'help'=>'EmailMsgIDDesc'),
-		'progress' => array('type'=>'varchar(100)', 'label'=>'Progression', 'visible'=>-1, 'enabled'=>1, 'position'=>540, 'notnull'=>-1, 'css'=>'right', 'help'=>"", 'isameasure'=>1),
+		'progress' => array('type'=>'varchar(100)', 'label'=>'Progression', 'visible'=>-1, 'enabled'=>1, 'position'=>540, 'notnull'=>-1, 'css'=>'right', 'help'=>"", 'isameasure'=>2),
 		'resolution' => array('type'=>'integer', 'label'=>'Resolution', 'visible'=>-1, 'enabled'=>'$conf->global->TICKET_ENABLE_RESOLUTION', 'position'=>550, 'notnull'=>1),
 		'resolution' => array('type'=>'integer', 'label'=>'Resolution', 'visible'=>-1, 'enabled'=>'$conf->global->TICKET_ENABLE_RESOLUTION', 'position'=>550, 'notnull'=>1),
 		'fk_statut' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>600, 'notnull'=>1, 'index'=>1, 'arrayofkeyval'=>array(0 => 'Unread', 1 => 'Read', 3 => 'Answered', 4 => 'Assigned', 5 => 'InProgress', 6 => 'Waiting', 8 => 'SolvedClosed', 9 => 'Deleted')),
 		'fk_statut' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>600, 'notnull'=>1, 'index'=>1, 'arrayofkeyval'=>array(0 => 'Unread', 1 => 'Read', 3 => 'Answered', 4 => 'Assigned', 5 => 'InProgress', 6 => 'Waiting', 8 => 'SolvedClosed', 9 => 'Deleted')),
 		'import_key' =>array('type'=>'varchar(14)', 'label'=>'ImportId', 'enabled'=>1, 'visible'=>-2, 'position'=>900),
 		'import_key' =>array('type'=>'varchar(14)', 'label'=>'ImportId', 'enabled'=>1, 'visible'=>-2, 'position'=>900),
@@ -1102,7 +1102,7 @@ class Ticket extends CommonObject
 		$this->status = 0;
 		$this->status = 0;
 		$this->resolution = '1';
 		$this->resolution = '1';
 		$this->progress = '10';
 		$this->progress = '10';
-		$this->timing = '30';
+		//$this->timing = '30';
 		$this->type_code = 'TYPECODE';
 		$this->type_code = 'TYPECODE';
 		$this->category_code = 'CATEGORYCODE';
 		$this->category_code = 'CATEGORYCODE';
 		$this->severity_code = 'SEVERITYCODE';
 		$this->severity_code = 'SEVERITYCODE';

+ 2 - 2
htdocs/ticket/list.php

@@ -1027,7 +1027,7 @@ while ($i < min($num, $limit)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}
@@ -1037,7 +1037,7 @@ while ($i < min($num, $limit)) {
 				if (!isset($totalarray['val']['t.'.$key])) {
 				if (!isset($totalarray['val']['t.'.$key])) {
 					$totalarray['val']['t.'.$key] = 0;
 					$totalarray['val']['t.'.$key] = 0;
 				}
 				}
-				$totalarray['val']['t.'.$key] += $obj->$key;
+				$totalarray['val']['t.'.$key] += $object->$key;
 			}
 			}
 		}
 		}
 	}
 	}

+ 1 - 1
htdocs/workstation/workstation_list.php

@@ -616,7 +616,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
 			if (!$i) {
 			if (!$i) {
 				$totalarray['nbfield']++;
 				$totalarray['nbfield']++;
 			}
 			}
-			if (!empty($val['isameasure'])) {
+			if (!empty($val['isameasure']) && $val['isameasure'] == 1) {
 				if (!$i) {
 				if (!$i) {
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 					$totalarray['pos'][$totalarray['nbfield']] = 't.'.$key;
 				}
 				}