Completed
Branch develop (63c0e8)
by
unknown
25:59
created
htdocs/expedition/dispatch.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -188,8 +188,8 @@  discard block
 block discarded – undo
188 188
 						$sql .= " JOIN ".$db->prefix()."product_stock as ps";
189 189
 						$sql .= " ON ps.rowid = pb.fk_product_stock";
190 190
 						$sql .= " WHERE pb.batch = '".$db->escape($lot)."'";
191
-						$sql .= " AND ps.fk_product = ".((int) $prod_id) ;
192
-						$sql .= " AND ps.fk_entrepot = ".((int) $warehouse_id) ;
191
+						$sql .= " AND ps.fk_product = ".((int) $prod_id);
192
+						$sql .= " AND ps.fk_entrepot = ".((int) $warehouse_id);
193 193
 
194 194
 						$resql = $db->query($sql);
195 195
 						if ($resql) {
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 					$qtystart = 0;
217 217
 
218 218
 					if ($idline > 0) {
219
-						$result = $expeditiondispatch->fetch($idline);	// get line from llx_expeditiondet
219
+						$result = $expeditiondispatch->fetch($idline); // get line from llx_expeditiondet
220 220
 						if ($result < 0) {
221 221
 							setEventMessages($expeditiondispatch->error, $expeditiondispatch->errors, 'errors');
222 222
 							$error++;
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 llxHeader('', $title, $help_url, '', 0, 0, $morejs, '', '', 'mod-expedition page-card_dispatch');
392 392
 
393 393
 if ($object->id > 0 || !empty($object->ref)) {
394
-	$lines = $object->lines;	// This is an array of detail of line, on line per source order line found intolines[]->fk_elementdet, then each line may have sub data
394
+	$lines = $object->lines; // This is an array of detail of line, on line per source order line found intolines[]->fk_elementdet, then each line may have sub data
395 395
 	//var_dump($lines[0]->fk_elementdet); exit;
396 396
 
397 397
 	$num_prod = count($lines);
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
 
450 450
 	// Ref customer shipment
451 451
 	$morehtmlref .= $form->editfieldkey("RefCustomer", 'ref_customer', $object->ref_customer, $object, $user->hasRight('expedition', 'creer'), 'string', '', 0, 1);
452
-	$morehtmlref .= $form->editfieldval("RefCustomer", 'ref_customer', $object->ref_customer, $object, $user->hasRight('expedition', 'creer'), 'string'.(isset($conf->global->THIRDPARTY_REF_INPUT_SIZE) ? ':' . getDolGlobalString('THIRDPARTY_REF_INPUT_SIZE') : ''), '', null, null, '', 1);
452
+	$morehtmlref .= $form->editfieldval("RefCustomer", 'ref_customer', $object->ref_customer, $object, $user->hasRight('expedition', 'creer'), 'string'.(isset($conf->global->THIRDPARTY_REF_INPUT_SIZE) ? ':'.getDolGlobalString('THIRDPARTY_REF_INPUT_SIZE') : ''), '', null, null, '', 1);
453 453
 
454 454
 	// Thirdparty
455 455
 	$morehtmlref .= '<br>'.$object->thirdparty->getNomUrl(1);
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
 	print '<center>';
541 541
 
542 542
 	print '<br>';
543
-	$disabled = 0;	// This is used to disable or not the bulk selection of target warehouse. No reason to have it disabled so forced to 0.
543
+	$disabled = 0; // This is used to disable or not the bulk selection of target warehouse. No reason to have it disabled so forced to 0.
544 544
 
545 545
 	if ($object->statut == Expedition::STATUS_DRAFT) {
546 546
 		require_once DOL_DOCUMENT_ROOT.'/product/class/html.formproduct.class.php';
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
 				}
650 650
 				print '<td class="right">'.$langs->trans("QtyOrdered").'</td>';
651 651
 				if ($object->status == Expedition::STATUS_DRAFT) {
652
-					print '<td class="right">'.$langs->trans("QtyToShip");	// Qty to dispatch (sum for all lines of batch detail if there is)
652
+					print '<td class="right">'.$langs->trans("QtyToShip"); // Qty to dispatch (sum for all lines of batch detail if there is)
653 653
 				} else {
654 654
 					print '<td class="right">'.$langs->trans("QtyDispatchedShort").'</td>';
655 655
 				}
Please login to merge, or discard this patch.
htdocs/website/index.php 1 patch
Spacing   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 	}
354 354
 }
355 355
 
356
-$searchkey = GETPOST('searchstring', 'restricthtmlallowunvalid');	// or 'none', must be same then $searchstring
356
+$searchkey = GETPOST('searchstring', 'restricthtmlallowunvalid'); // or 'none', must be same then $searchstring
357 357
 
358 358
 if ($action == 'replacesite' || $mode == 'replacesite') {	// Test on permission not required
359 359
 	$containertype = GETPOST('optioncontainertype', 'aZ09') != '-1' ? GETPOST('optioncontainertype', 'aZ09') : '';
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
 }
368 368
 
369 369
 $usercanedit = $user->hasRight('website', 'write');
370
-$permissiontoadd = $user->hasRight('website', 'write');	// Used by the include of actions_addupdatedelete.inc.php and actions_linkedfiles
370
+$permissiontoadd = $user->hasRight('website', 'write'); // Used by the include of actions_addupdatedelete.inc.php and actions_linkedfiles
371 371
 $permissiontodelete = $user->hasRight('website', 'delete');
372 372
 
373 373
 
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
 if ($sortorder) {
435 435
 	$backtopage .= '&sortorder='.urlencode($sortorder);
436 436
 }
437
-include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php';	// This manage 'sendit', 'confirm_deletefile', 'renamefile' action when submitting new file.
437
+include DOL_DOCUMENT_ROOT.'/core/actions_linkedfiles.inc.php'; // This manage 'sendit', 'confirm_deletefile', 'renamefile' action when submitting new file.
438 438
 
439 439
 $backtopage = $savbacktopage;
440 440
 //var_dump($backtopage);
@@ -599,7 +599,7 @@  discard block
 block discarded – undo
599 599
 
600 600
 // Replacement of string into pages
601 601
 if ($massaction == 'replace' && GETPOST('confirmmassaction', 'alpha') && $usercanedit) {
602
-	$replacestring = GETPOST('replacestring', 'restricthtmlallowunvalid');	// or 'none', must be same then $searchstring
602
+	$replacestring = GETPOST('replacestring', 'restricthtmlallowunvalid'); // or 'none', must be same then $searchstring
603 603
 
604 604
 	$dolibarrdataroot = preg_replace('/([\\/]+)$/i', '', DOL_DATA_ROOT);
605 605
 	$allowimportsite = true;
@@ -1169,7 +1169,7 @@  discard block
 block discarded – undo
1169 1169
 		$objectpage->image = GETPOST('WEBSITE_IMAGE', 'alpha');
1170 1170
 		$objectpage->keywords = str_replace(array('<', '>'), '', GETPOST('WEBSITE_KEYWORDS', 'alphanohtml'));
1171 1171
 		$objectpage->allowed_in_frames = GETPOST('WEBSITE_ALLOWED_IN_FRAMES', 'aZ09') ? 1 : 0;
1172
-		$objectpage->htmlheader = GETPOST('htmlheader', 'none');	// Must accept tags like '<script>' and '<link>'
1172
+		$objectpage->htmlheader = GETPOST('htmlheader', 'none'); // Must accept tags like '<script>' and '<link>'
1173 1173
 		$objectpage->author_alias = GETPOST('WEBSITE_AUTHORALIAS', 'alphanohtml');
1174 1174
 		$objectpage->object_type = GETPOST('WEBSITE_OBJECTCLASS');
1175 1175
 		$objectpage->fk_object = GETPOST('WEBSITE_OBJECTID');
@@ -1202,7 +1202,7 @@  discard block
 block discarded – undo
1202 1202
 		$content = '';
1203 1203
 		if (GETPOSTISSET('content')) {
1204 1204
 			//$content = GETPOST('content', 'restricthtmlallowunvalid');	// @TODO Use a restricthtmlallowunvalidwithphp
1205
-			$content = GETPOST('content', 'none');	// @TODO Use a restricthtmlallowunvalidwithphp
1205
+			$content = GETPOST('content', 'none'); // @TODO Use a restricthtmlallowunvalidwithphp
1206 1206
 
1207 1207
 			$objectpage->content = make_substitutions($content, $substitutionarray);
1208 1208
 		} else {
@@ -1580,7 +1580,7 @@  discard block
 block discarded – undo
1580 1580
 					$error++;
1581 1581
 					setEventMessages($langs->trans('ErrorFaviconMustBeASquaredImage'), array(), 'errors');
1582 1582
 				}
1583
-				if (! $error && ($filesize[0] != 16 && $filesize[0] != 32 && $filesize[0] != 64)) {
1583
+				if (!$error && ($filesize[0] != 16 && $filesize[0] != 32 && $filesize[0] != 64)) {
1584 1584
 					$error++;
1585 1585
 					setEventMessages($langs->trans('ErrorFaviconSize'), array(), 'errors');
1586 1586
 				}
@@ -1592,7 +1592,7 @@  discard block
 block discarded – undo
1592 1592
 				if (!GETPOSTISSET('updateandstay')) {	// If we click on "Save And Stay", we don not make the redirect
1593 1593
 					$action = 'preview';
1594 1594
 					if ($backtopage) {
1595
-						$backtopage = preg_replace('/searchstring=[^&]*/', '', $backtopage);	// Clean backtopage url
1595
+						$backtopage = preg_replace('/searchstring=[^&]*/', '', $backtopage); // Clean backtopage url
1596 1596
 						header("Location: ".$backtopage);
1597 1597
 						exit;
1598 1598
 					}
@@ -1616,7 +1616,7 @@  discard block
 block discarded – undo
1616 1616
 			}
1617 1617
 
1618 1618
 
1619
-			$dataposted = trim(GETPOST('WEBSITE_HTML_HEADER', 'restricthtmlallowlinkscript'));		// Must accept tags like '<script>' and '<link>'
1619
+			$dataposted = trim(GETPOST('WEBSITE_HTML_HEADER', 'restricthtmlallowlinkscript')); // Must accept tags like '<script>' and '<link>'
1620 1620
 
1621 1621
 			$dataposted = preg_replace(array('/<html>\n*/ims', '/<\/html>\n*/ims'), array('', ''), $dataposted);
1622 1622
 			$dataposted = str_replace('<?=', '<?php', $dataposted);
@@ -1626,7 +1626,7 @@  discard block
 block discarded – undo
1626 1626
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1627 1627
 
1628 1628
 			// Security analysis
1629
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1629
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1630 1630
 
1631 1631
 			if (!$errorphpcheck) {
1632 1632
 				$htmlheadercontent = '';
@@ -1664,7 +1664,7 @@  discard block
 block discarded – undo
1664 1664
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1665 1665
 
1666 1666
 			// Security analysis
1667
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1667
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1668 1668
 
1669 1669
 			if (!$errorphpcheck) {
1670 1670
 				$csscontent = '';
@@ -1707,7 +1707,7 @@  discard block
 block discarded – undo
1707 1707
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1708 1708
 
1709 1709
 			// Security analysis
1710
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1710
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1711 1711
 
1712 1712
 			if (!$errorphpcheck) {
1713 1713
 				$jscontent = '';
@@ -1745,7 +1745,7 @@  discard block
 block discarded – undo
1745 1745
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1746 1746
 
1747 1747
 			// Security analysis
1748
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1748
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1749 1749
 
1750 1750
 			if (!$errorphpcheck) {
1751 1751
 				$robotcontent = '';
@@ -1783,7 +1783,7 @@  discard block
 block discarded – undo
1783 1783
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1784 1784
 
1785 1785
 			// Security analysis
1786
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1786
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1787 1787
 
1788 1788
 			if (!$errorphpcheck) {
1789 1789
 				if ($dataposted) {
@@ -1811,7 +1811,7 @@  discard block
 block discarded – undo
1811 1811
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1812 1812
 
1813 1813
 			// Security analysis
1814
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1814
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1815 1815
 
1816 1816
 			if (!$errorphpcheck) {
1817 1817
 				$manifestjsoncontent = '';
@@ -1850,7 +1850,7 @@  discard block
 block discarded – undo
1850 1850
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1851 1851
 
1852 1852
 			// Security analysis
1853
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1853
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1854 1854
 
1855 1855
 			if (!$errorphpcheck) {
1856 1856
 				$readmecontent = '';
@@ -1889,7 +1889,7 @@  discard block
 block discarded – undo
1889 1889
 			$phpfullcodestring = dolKeepOnlyPhpCode($dataposted);
1890 1890
 
1891 1891
 			// Security analysis
1892
-			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring);	// Contains the setEventMessages
1892
+			$errorphpcheck = checkPHPCode($phpfullcodestringold, $phpfullcodestring); // Contains the setEventMessages
1893 1893
 
1894 1894
 			if (!$errorphpcheck) {
1895 1895
 				$licensecontent = '';
@@ -1931,7 +1931,7 @@  discard block
 block discarded – undo
1931 1931
 			if (!GETPOSTISSET('updateandstay')) {	// If we click on "Save And Stay", we don not make the redirect
1932 1932
 				$action = 'preview';
1933 1933
 				if ($backtopage) {
1934
-					$backtopage = preg_replace('/searchstring=[^&]*/', '', $backtopage);	// Clean backtopage url
1934
+					$backtopage = preg_replace('/searchstring=[^&]*/', '', $backtopage); // Clean backtopage url
1935 1935
 					header("Location: ".$backtopage);
1936 1936
 					exit;
1937 1937
 				}
@@ -1988,7 +1988,7 @@  discard block
 block discarded – undo
1988 1988
 			$sourcestring = "";
1989 1989
 			foreach ($sourcekeys as $key => $source) {
1990 1990
 				if (is_array($source)) {
1991
-					$sourcestring .= " data: ". implode(" ", $source);
1991
+					$sourcestring .= " data: ".implode(" ", $source);
1992 1992
 				} else {
1993 1993
 					$directivetype = $directivesarray[$directive]["data-directivetype"];
1994 1994
 					$sourcetype = $sourcesarray[$directivetype][$source]["data-sourcetype"];
@@ -1999,7 +1999,7 @@  discard block
 block discarded – undo
1999 1999
 					}
2000 2000
 				}
2001 2001
 			}
2002
-			$securityspstring .= $directive . $sourcestring;
2002
+			$securityspstring .= $directive.$sourcestring;
2003 2003
 		}
2004 2004
 		$res = dolibarr_set_const($db, 'WEBSITE_'.$object->id.'_SECURITY_FORCECSP', $securityspstring, 'chaine', 0, '', $conf->entity);
2005 2005
 		if ($res <= 0) {
@@ -2044,7 +2044,7 @@  discard block
 block discarded – undo
2044 2044
 	if (!GETPOSTISSET('updateandstay')) {	// If we click on "Save And Stay", we don not make the redirect
2045 2045
 		$action = 'preview';
2046 2046
 		if ($backtopage) {
2047
-			$backtopage = preg_replace('/searchstring=[^&]*/', '', $backtopage);	// Clean backtopage url
2047
+			$backtopage = preg_replace('/searchstring=[^&]*/', '', $backtopage); // Clean backtopage url
2048 2048
 			header("Location: ".$backtopage);
2049 2049
 			exit;
2050 2050
 		}
@@ -2062,7 +2062,7 @@  discard block
 block discarded – undo
2062 2062
 
2063 2063
 	$object->fk_default_home = $pageid;
2064 2064
 	$res = $object->update($user);
2065
-	if (! ($res > 0)) {
2065
+	if (!($res > 0)) {
2066 2066
 		$error++;
2067 2067
 		setEventMessages($object->error, $object->errors, 'errors');
2068 2068
 	}
@@ -2177,7 +2177,7 @@  discard block
 block discarded – undo
2177 2177
 		$objectpage->image = GETPOST('WEBSITE_IMAGE', 'alpha');
2178 2178
 		$objectpage->keywords = str_replace(array('<', '>'), '', GETPOST('WEBSITE_KEYWORDS', 'alphanohtml'));
2179 2179
 		$objectpage->allowed_in_frames = GETPOST('WEBSITE_ALLOWED_IN_FRAMES', 'aZ09') ? 1 : 0;
2180
-		$objectpage->htmlheader = trim(GETPOST('htmlheader', 'restricthtmlallowlinkscript'));		// Must accept tags like '<script>' and '<link>'
2180
+		$objectpage->htmlheader = trim(GETPOST('htmlheader', 'restricthtmlallowlinkscript')); // Must accept tags like '<script>' and '<link>'
2181 2181
 		$objectpage->fk_page = (GETPOSTINT('pageidfortranslation') > 0 ? GETPOSTINT('pageidfortranslation') : 0);
2182 2182
 		$objectpage->author_alias = trim(GETPOST('WEBSITE_AUTHORALIAS', 'alphanohtml'));
2183 2183
 		$objectpage->object_type = GETPOST('WEBSITE_OBJECTCLASS', 'alpha');
@@ -2456,7 +2456,7 @@  discard block
 block discarded – undo
2456 2456
 
2457 2457
 			$phpfullcodestringold = dolKeepOnlyPhpCode($objectpage->content);
2458 2458
 
2459
-			$objectpage->content = GETPOST('PAGE_CONTENT', 'none');	// any HTML content allowed
2459
+			$objectpage->content = GETPOST('PAGE_CONTENT', 'none'); // any HTML content allowed
2460 2460
 
2461 2461
 			$phpfullcodestring = dolKeepOnlyPhpCode($objectpage->content);
2462 2462
 
@@ -2679,7 +2679,7 @@  discard block
 block discarded – undo
2679 2679
 				$fileofzip = '';
2680 2680
 				if (GETPOSTISSET('templateuserfile')) {
2681 2681
 					// Case we selected one template
2682
-					$fileofzip = DOL_DATA_ROOT.'/doctemplates/websites/'.GETPOST('templateuserfile', 'alpha');	// $fileofzip will be sanitized later into the importWebSite()
2682
+					$fileofzip = DOL_DATA_ROOT.'/doctemplates/websites/'.GETPOST('templateuserfile', 'alpha'); // $fileofzip will be sanitized later into the importWebSite()
2683 2683
 				} elseif (!empty($_FILES) && is_array($_FILES['userfile'])) {
2684 2684
 					// Case we upload a new template
2685 2685
 					if (is_array($_FILES['userfile']['tmp_name'])) {
@@ -2761,7 +2761,7 @@  discard block
 block discarded – undo
2761 2761
 	if ($website->virtualhost) {
2762 2762
 		$domainname = $website->virtualhost;
2763 2763
 	}
2764
-	if (! preg_match('/^http/i', $domainname)) {
2764
+	if (!preg_match('/^http/i', $domainname)) {
2765 2765
 		$domainname = 'https://'.$domainname;
2766 2766
 	}
2767 2767
 
@@ -2827,7 +2827,7 @@  discard block
 block discarded – undo
2827 2827
 				$url->appendChild($lastmod);
2828 2828
 				// Add suggested frequency for refresh
2829 2829
 				if (getDolGlobalString('WEBSITE_SITEMAPS_ADD_WEEKLY_FREQ')) {
2830
-					$changefreq = $domtree->createElement('changefreq', 'weekly');	// TODO Manage other values
2830
+					$changefreq = $domtree->createElement('changefreq', 'weekly'); // TODO Manage other values
2831 2831
 					$url->appendChild($changefreq);
2832 2832
 				}
2833 2833
 				// Add higher priority for home page
@@ -2932,7 +2932,7 @@  discard block
 block discarded – undo
2932 2932
 				$url->appendChild($lastmod);
2933 2933
 				// Add suggested frequency for refresh
2934 2934
 				if (getDolGlobalString('WEBSITE_SITEMAPS_ADD_WEEKLY_FREQ')) {
2935
-					$changefreq = $domtree->createElement('changefreq', 'weekly');	// TODO Manage other values
2935
+					$changefreq = $domtree->createElement('changefreq', 'weekly'); // TODO Manage other values
2936 2936
 					$url->appendChild($changefreq);
2937 2937
 				}
2938 2938
 
@@ -3022,7 +3022,7 @@  discard block
 block discarded – undo
3022 3022
 			$sourcestring = "";
3023 3023
 			foreach ($sourcekeys as $key => $source) {
3024 3024
 				if (is_array($source)) {
3025
-					$sourcestring .= " data: ". implode(" ", $source);
3025
+					$sourcestring .= " data: ".implode(" ", $source);
3026 3026
 				} else {
3027 3027
 					$directivetype = $directivesarray[$directive]["data-directivetype"];
3028 3028
 					$sourcetype = $sourcesarray[$directivetype][$source]["data-sourcetype"];
@@ -3033,7 +3033,7 @@  discard block
 block discarded – undo
3033 3033
 					}
3034 3034
 				}
3035 3035
 			}
3036
-			$securityspstring .= $directive . $sourcestring;
3036
+			$securityspstring .= $directive.$sourcestring;
3037 3037
 		}
3038 3038
 		$res = dolibarr_set_const($db, 'WEBSITE_'.$object->id.'_SECURITY_FORCECSP', $securityspstring, 'chaine', 0, '', $conf->entity);
3039 3039
 		if ($res <= 0) {
@@ -3305,11 +3305,11 @@  discard block
 block discarded – undo
3305 3305
 
3306 3306
 			// // Export web site
3307 3307
 			$extraCssClass = getDolGlobalString('WEBSITE_ALLOW_OVERWRITE_GIT_SOURCE') ? 'hideobject' : '';
3308
-			print '<input type="submit" class="button bordertransp ' . $extraCssClass . '" ' . $disabledexport . ' value="' . dol_escape_htmltag($exportlabel) . '" name="exportsite">';
3308
+			print '<input type="submit" class="button bordertransp '.$extraCssClass.'" '.$disabledexport.' value="'.dol_escape_htmltag($exportlabel).'" name="exportsite">';
3309 3309
 
3310 3310
 			if (getDolGlobalString('WEBSITE_ALLOW_OVERWRITE_GIT_SOURCE')) {
3311 3311
 				// Overwrite template in sources
3312
-				$overwriteGitUrl = $_SERVER["PHP_SELF"] . '?action=overwritesite&website=' . urlencode($website->ref);
3312
+				$overwriteGitUrl = $_SERVER["PHP_SELF"].'?action=overwritesite&website='.urlencode($website->ref);
3313 3313
 				print dolButtonToOpenExportDialog('exportpopup', $langs->trans('ExportOptions'), $langs->trans('ExportSite'), 'exportsite', $overwriteGitUrl, $website);
3314 3314
 				//print '<a href="'.$_SERVER["PHP_SELF"].'?action=overwritesite&website='.urlencode($website->ref).'" class="button bordertransp hideobject" title="'.dol_escape_htmltag($langs->trans("ExportIntoGIT").". Directory ".getDolGlobalString('WEBSITE_ALLOW_OVERWRITE_GIT_SOURCE')).'">'.dol_escape_htmltag($langs->trans("ExportIntoGIT")).'</a>';
3315 3315
 			}
@@ -3694,7 +3694,7 @@  discard block
 block discarded – undo
3694 3694
 				print '<!-- button EditInLine and ShowSubcontainers -->'."\n";
3695 3695
 				print '<div class="websiteselectionsection inline-block">';
3696 3696
 
3697
-				print '<div class="inline-block marginrightonly">';	// Button includes dynamic content
3697
+				print '<div class="inline-block marginrightonly">'; // Button includes dynamic content
3698 3698
 				print $langs->trans("ShowSubcontainers");
3699 3699
 				if (!getDolGlobalString('WEBSITE_SUBCONTAINERSINLINE')) {
3700 3700
 					print '<a class="nobordertransp nohoverborder marginleftonlyshort valignmiddle"'.$disabled.' href="'.$_SERVER["PHP_SELF"].'?website='.$object->ref.'&pageid='.$websitepage->id.'&action=setshowsubcontainers&token='.newToken().'">'.img_picto($langs->trans("ShowSubContainersOnOff", $langs->transnoentitiesnoconv("Off")), 'switch_off', '', 0, 0, 0, '', 'nomarginleft').'</a>';
@@ -3703,7 +3703,7 @@  discard block
 block discarded – undo
3703 3703
 				}
3704 3704
 				print '</div>';
3705 3705
 
3706
-				print '<div class="inline-block marginrightonly">';	// Button edit inline
3706
+				print '<div class="inline-block marginrightonly">'; // Button edit inline
3707 3707
 
3708 3708
 				print '<span id="switchckeditorinline">'."\n";
3709 3709
 				// Enable CKEditor inline with js on section and div with conteneditable=true
@@ -3803,15 +3803,15 @@  discard block
 block discarded – undo
3803 3803
 													// Sending data via AJAX to update section
3804 3804
 													$.ajax({
3805 3805
 														type: \'POST\',
3806
-														url: \'' . DOL_URL_ROOT . '/core/ajax/editinline.php\',
3806
+														url: \'' . DOL_URL_ROOT.'/core/ajax/editinline.php\',
3807 3807
 														data: {
3808 3808
 															website_ref: \''.dol_escape_js($website->ref).'\',
3809
-															page_id: \'' . ((int) $websitepage->id) . '\',
3809
+															page_id: \'' . ((int) $websitepage->id).'\',
3810 3810
 															content: content,
3811 3811
 															element_id: elementId,
3812 3812
 															element_type: elementType,
3813 3813
 															action: \'updatedElementContent\',
3814
-															token: \'' . newToken() . '\'
3814
+															token: \'' . newToken().'\'
3815 3815
 														},
3816 3816
 														success: function(response) {
3817 3817
 															console.log(response);
@@ -3902,7 +3902,7 @@  discard block
 block discarded – undo
3902 3902
 				} else {
3903 3903
 					$disabled = '';
3904 3904
 					$title = '';
3905
-					$url = $_SERVER["PHP_SELF"].'?action=delete&token='.newToken().'&pageid='.((int) $websitepage->id).'&website='.urlencode($website->ref);	// action=delete for webpage, deletesite for website
3905
+					$url = $_SERVER["PHP_SELF"].'?action=delete&token='.newToken().'&pageid='.((int) $websitepage->id).'&website='.urlencode($website->ref); // action=delete for webpage, deletesite for website
3906 3906
 				}
3907 3907
 				print '<a href="'.$url.'" class="button buttonDelete bordertransp'.($disabled ? ' disabled' : '').'"'.$disabled.' title="'.dol_escape_htmltag($title).'">'.img_picto('', 'delete', 'class=""').'<span class="hideonsmartphone paddingleft">'.$langs->trans("Delete").'</span></a>';
3908 3908
 				print '</span>';
@@ -4095,7 +4095,7 @@  discard block
 block discarded – undo
4095 4095
 		// Clean the php htmlheader file to remove php code and get only html part
4096 4096
 		$htmlheadercontent = preg_replace('/<\?php \/\/ BEGIN PHP[^\?]*END PHP( \?>)?\n*/ims', '', $htmlheadercontent);
4097 4097
 	} else {
4098
-		$htmlheadercontent = GETPOST('WEBSITE_HTML_HEADER', 'none');		// Must accept tags like '<script>' and '<link>'
4098
+		$htmlheadercontent = GETPOST('WEBSITE_HTML_HEADER', 'none'); // Must accept tags like '<script>' and '<link>'
4099 4099
 	}
4100 4100
 	if (!trim($htmlheadercontent)) {
4101 4101
 		$htmlheadercontent = "<html>\n";
@@ -4126,7 +4126,7 @@  discard block
 block discarded – undo
4126 4126
 		// Clean the php htaccesscontent file to remove php code and get only html part
4127 4127
 		$htaccesscontent = preg_replace('/<\?php \/\/ BEGIN PHP[^\?]*END PHP( \?>)?\n*/ims', '', $htaccesscontent);
4128 4128
 	} else {
4129
-		$htaccesscontent = GETPOST('WEBSITE_HTACCESS', 'nohtml');	// We must use 'nohtml' and not 'alphanohtml' because we must accept "
4129
+		$htaccesscontent = GETPOST('WEBSITE_HTACCESS', 'nohtml'); // We must use 'nohtml' and not 'alphanohtml' because we must accept "
4130 4130
 	}
4131 4131
 
4132 4132
 	if (!GETPOSTISSET('WEBSITE_MANIFEST_JSON')) {
@@ -4226,7 +4226,7 @@  discard block
 block discarded – undo
4226 4226
 	$maxfilesizearray = getMaxFileSizeArray();
4227 4227
 	$maxmin = $maxfilesizearray['maxmin'];
4228 4228
 	if ($maxmin > 0) {
4229
-		print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">';	// MAX_FILE_SIZE must precede the field type=file
4229
+		print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file
4230 4230
 	}
4231 4231
 	print '<input type="file" class="flat minwidth300" name="addedfile" id="addedfile"/>';
4232 4232
 
@@ -4268,7 +4268,7 @@  discard block
 block discarded – undo
4268 4268
 	print '<tr><td class="tdtop">';
4269 4269
 	print $langs->trans('WEBSITE_HTML_HEADER');
4270 4270
 	$htmlhelp = $langs->trans("Example").' :<br>';
4271
-	$htmlhelp .= dol_nl2br(dol_htmlentities($htmlheadercontentdefault));	// do not use dol_htmlentitiesbr here, $htmlheadercontentdefault is HTML with content like <link> and <script> that we want to be html encode as they must be show as doc content not executable instruction.
4271
+	$htmlhelp .= dol_nl2br(dol_htmlentities($htmlheadercontentdefault)); // do not use dol_htmlentitiesbr here, $htmlheadercontentdefault is HTML with content like <link> and <script> that we want to be html encode as they must be show as doc content not executable instruction.
4272 4272
 	$textwithhelp = $form->textwithpicto('', $htmlhelp, 1, 'help', '', 0, 2, 'htmlheadertooltip');
4273 4273
 	$htmlhelp2 = $langs->trans("LinkAndScriptsHereAreNotLoadedInEditor").'<br>';
4274 4274
 	print $form->textwithpicto($textwithhelp, $htmlhelp2, 1, 'warning', '', 0, 2, 'htmlheadertooltip2');
@@ -4635,7 +4635,7 @@  discard block
 block discarded – undo
4635 4635
 		$maxfilesizearray = getMaxFileSizeArray();
4636 4636
 		$maxmin = $maxfilesizearray['maxmin'];
4637 4637
 		if ($maxmin > 0) {
4638
-			print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">';	// MAX_FILE_SIZE must precede the field type=file
4638
+			print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file
4639 4639
 		}
4640 4640
 		print '<input class="flat minwidth400" type="file" name="userfile[]" accept=".zip">';
4641 4641
 		print '<input type="submit" class="button small" name="buttonsubmitimportfile" value="'.dol_escape_htmltag($langs->trans("Upload")).'">';
@@ -5156,7 +5156,7 @@  discard block
 block discarded – undo
5156 5156
 	print '<tr><td class="tdhtmlheader tdtop">';
5157 5157
 	$htmlhelp = $langs->trans("EditTheWebSiteForACommonHeader").'<br><br>';
5158 5158
 	$htmlhelp .= $langs->trans("Example").' :<br>';
5159
-	$htmlhelp .= dol_nl2br(dol_htmlentities($htmlheadercontentdefault));	// do not use dol_htmlentitiesbr here, $htmlheadercontentdefault is HTML with content like <link> and <script> that we want to be html encode as they must be show as doc content not executable instruction.
5159
+	$htmlhelp .= dol_nl2br(dol_htmlentities($htmlheadercontentdefault)); // do not use dol_htmlentitiesbr here, $htmlheadercontentdefault is HTML with content like <link> and <script> that we want to be html encode as they must be show as doc content not executable instruction.
5160 5160
 	print $form->textwithpicto($langs->transnoentitiesnoconv('HtmlHeaderPage'), $htmlhelp, 1, 'help', '', 0, 2, 'htmlheadertooltip');
5161 5161
 	print '</td><td>';
5162 5162
 	$poscursor = array('x' => GETPOST('htmlheader_x'), 'y' => GETPOST('htmlheader_y'));
@@ -5293,7 +5293,7 @@  discard block
 block discarded – undo
5293 5293
 	print '<div class="fiche"><br>';
5294 5294
 
5295 5295
 	$module = 'medias';
5296
-	$formalreadyopen = 2;	// So the form to submit a new file will not be open another time inside the core/tpl/filemanager.tpl.php
5296
+	$formalreadyopen = 2; // So the form to submit a new file will not be open another time inside the core/tpl/filemanager.tpl.php
5297 5297
 	if (empty($url)) {
5298 5298
 		$url = DOL_URL_ROOT.'/website/index.php'; // Must be an url without param
5299 5299
 	}
@@ -5530,8 +5530,8 @@  discard block
 block discarded – undo
5530 5530
 			print getTitleFieldOfList("Categories", 0, $_SERVER['PHP_SELF'], '', '', $param, '', $sortfield, $sortorder, 'center ')."\n";
5531 5531
 			print getTitleFieldOfList("", 0, $_SERVER['PHP_SELF']);
5532 5532
 			print getTitleFieldOfList("UserCreation", 0, $_SERVER['PHP_SELF'], 'fk_user_creat', '', $param, '', $sortfield, $sortorder, '')."\n";
5533
-			print getTitleFieldOfList("DateCreation", 0, $_SERVER['PHP_SELF'], 'date_creation', '', $param, '', $sortfield, $sortorder, 'center ')."\n";		// Date creation
5534
-			print getTitleFieldOfList("DateLastModification", 0, $_SERVER['PHP_SELF'], 'tms', '', $param, '', $sortfield, $sortorder, 'center ')."\n";		// Date last modif
5533
+			print getTitleFieldOfList("DateCreation", 0, $_SERVER['PHP_SELF'], 'date_creation', '', $param, '', $sortfield, $sortorder, 'center ')."\n"; // Date creation
5534
+			print getTitleFieldOfList("DateLastModification", 0, $_SERVER['PHP_SELF'], 'tms', '', $param, '', $sortfield, $sortorder, 'center ')."\n"; // Date last modif
5535 5535
 			print getTitleFieldOfList("", 0, $_SERVER['PHP_SELF']);
5536 5536
 			// Action column
5537 5537
 			if (!getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
Please login to merge, or discard this patch.
htdocs/adherents/type.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 $action = GETPOST('action', 'aZ09');
55 55
 $massaction = GETPOST('massaction', 'alpha');
56 56
 $cancel = GETPOST('cancel', 'alpha');
57
-$toselect 	= GETPOST('toselect', 'array');
57
+$toselect = GETPOST('toselect', 'array');
58 58
 $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : str_replace('_', '', basename(dirname(__FILE__)).basename(__FILE__, '.php')); // To manage different context of search
59 59
 $backtopage = GETPOST('backtopage', 'alpha');
60 60
 $mode = GETPOST('mode', 'alpha');
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 	$object->note_public = trim($comment);
178 178
 	$object->note_private = '';
179 179
 	$object->mail_valid = trim($mail_valid);
180
-	$object->vote = $vote;  // $vote is already int
180
+	$object->vote = $vote; // $vote is already int
181 181
 
182 182
 	// Fill array 'array_options' with data from add form
183 183
 	$ret = $extrafields->setOptionalsFromPost(null, $object);
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 			$urltogo = $backtopage ? str_replace('__ID__', (string) $id, $backtopage) : $backurlforlist;
212 212
 			$urltogo = preg_replace('/--IDFORBACKTOPAGE--/', (string) $object->id, $urltogo); // New method to autoselect field created after a New on another form object creation
213 213
 
214
-			header("Location: " . $urltogo);
214
+			header("Location: ".$urltogo);
215 215
 			exit;
216 216
 		} else {
217 217
 			setEventMessages($object->error, $object->errors, 'errors');
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 	$object->note_public = trim($comment);
239 239
 	$object->note_private = '';
240 240
 	$object->mail_valid = trim($mail_valid);
241
-	$object->vote = $vote;  // $vote is already int.
241
+	$object->vote = $vote; // $vote is already int.
242 242
 
243 243
 	// Fill array 'array_options' with data from add form
244 244
 	$ret = $extrafields->setOptionalsFromPost(null, $object, '@GETPOSTISSET');
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
 		print '<input type="hidden" name="mode" value="'.$mode.'">';
341 341
 
342 342
 		$varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
343
-		$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
343
+		$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
344 344
 		$selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
345 345
 		// $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
346 346
 
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
 	print '<table class="border centpercent">';
535 535
 	print '<tbody>';
536 536
 
537
-	print '<tr><td class="titlefieldcreate fieldrequired">'.$langs->trans("Label").'</td><td><input type="text" class="minwidth200" name="label" value= "'. $label. '" autofocus="autofocus"></td></tr>';
537
+	print '<tr><td class="titlefieldcreate fieldrequired">'.$langs->trans("Label").'</td><td><input type="text" class="minwidth200" name="label" value= "'.$label.'" autofocus="autofocus"></td></tr>';
538 538
 
539 539
 	print '<tr><td>'.$langs->trans("Status").'</td><td>';
540 540
 	print $form->selectarray('status', array('0' => $langs->trans('ActivityCeased'), '1' => $langs->trans('InActivity')), 1, 0, 0, 0, '', 0, 0, 0, '', 'minwidth100');
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
 	print '</td></tr>';
567 567
 
568 568
 	print '<tr><td>'.$langs->trans("Duration").'</td><td colspan="3">';
569
-	print '<input name="duration_value" size="5" value="'. $duration_value .'"> ';
569
+	print '<input name="duration_value" size="5" value="'.$duration_value.'"> ';
570 570
 	print $formproduct->selectMeasuringUnits("duration_unit", "time", GETPOSTISSET("duration_unit") ? GETPOST('duration_unit', 'aZ09') : 'y', 0, 1);
571 571
 	print '</td></tr>';
572 572
 
Please login to merge, or discard this patch.