Completed
Branch develop (80d269)
by
unknown
22:48
created
htdocs/variants/admin/product_attribute_extrafields.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
  * View
71 71
  */
72 72
 
73
-$title =  $langs->trans("ProductAttributeExtrafieldsSetup");
73
+$title = $langs->trans("ProductAttributeExtrafieldsSetup");
74 74
 llxHeader('', $title);
75 75
 
76 76
 $linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.img_picto($langs->trans("BackToModuleList"), 'back', 'class="pictofixedwidth"').'<span class="hideonsmartphone">'.$langs->trans("BackToModuleList").'</span></a>';
Please login to merge, or discard this patch.
htdocs/admin/mailing.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
 
28 28
 // Load Dolibarr environment
29 29
 require '../main.inc.php';
30
-require_once DOL_DOCUMENT_ROOT . '/core/lib/admin.lib.php';
31
-require_once DOL_DOCUMENT_ROOT . '/core/lib/security2.lib.php';
30
+require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
31
+require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
32 32
 
33 33
 /**
34 34
  * @var Conf $conf
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	$batchlimit = GETPOSTINT('MAILING_LIMIT_SENDBYWEB');
68 68
 
69 69
 	if (GETPOST('MAILING_DELAY', 'alpha') != '') {
70
-		$mailingdelay = price2num(GETPOST('MAILING_DELAY', 'alpha'), 3);		// Not less than 1 millisecond.
70
+		$mailingdelay = price2num(GETPOST('MAILING_DELAY', 'alpha'), 3); // Not less than 1 millisecond.
71 71
 	} else {
72 72
 		$mailingdelay = '';
73 73
 	}
@@ -142,12 +142,12 @@  discard block
 block discarded – undo
142 142
 $constname = 'MAILING_EMAIL_UNSUBSCRIBE_KEY';
143 143
 
144 144
 // Add button to autosuggest a key
145
-include_once DOL_DOCUMENT_ROOT . '/core/lib/security2.lib.php';
145
+include_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
146 146
 print dolJSToSetRandomPassword($constname);
147 147
 
148 148
 print '<br>';
149
-print '<form method="post" action="' . $_SERVER["PHP_SELF"] . '">';
150
-print '<input type="hidden" name="token" value="' . newToken() . '">';
149
+print '<form method="post" action="'.$_SERVER["PHP_SELF"].'">';
150
+print '<input type="hidden" name="token" value="'.newToken().'">';
151 151
 print '<input type="hidden" name="action" value="setvalue">';
152 152
 
153 153
 print '<table class="noborder centpercent">';
@@ -160,28 +160,28 @@  discard block
 block discarded – undo
160 160
 
161 161
 print '<tr class="oddeven"><td>';
162 162
 $help = img_help(1, $langs->trans("EMailHelpMsgSPFDKIM"));
163
-print $langs->trans("MailingEMailFrom") . ' ' . $help . '</td><td>';
164
-print '<input class="minwidth100" type="text" name="MAILING_EMAIL_FROM" value="' . getDolGlobalString('MAILING_EMAIL_FROM') . '">';
163
+print $langs->trans("MailingEMailFrom").' '.$help.'</td><td>';
164
+print '<input class="minwidth100" type="text" name="MAILING_EMAIL_FROM" value="'.getDolGlobalString('MAILING_EMAIL_FROM').'">';
165 165
 if (getDolGlobalString('MAILING_EMAIL_FROM') && !isValidEmail($conf->global->MAILING_EMAIL_FROM)) {
166
-	print ' ' . img_warning($langs->trans("BadEMail"));
166
+	print ' '.img_warning($langs->trans("BadEMail"));
167 167
 }
168 168
 print '</td>';
169
-print '<td class="hideonsmartphone"><span class="opacitymedium">' . dol_escape_htmltag(($mysoc->name ? $mysoc->name : 'MyName') . ' <[email protected]>') . '</span></td>';
169
+print '<td class="hideonsmartphone"><span class="opacitymedium">'.dol_escape_htmltag(($mysoc->name ? $mysoc->name : 'MyName').' <[email protected]>').'</span></td>';
170 170
 print '</tr>';
171 171
 
172 172
 print '<tr class="oddeven"><td>';
173
-print $langs->trans("MailingEMailError") . '</td><td>';
174
-print '<input class="minwidth100" type="text" name="MAILING_EMAIL_ERRORSTO" value="' . getDolGlobalString('MAILING_EMAIL_ERRORSTO') . '">';
173
+print $langs->trans("MailingEMailError").'</td><td>';
174
+print '<input class="minwidth100" type="text" name="MAILING_EMAIL_ERRORSTO" value="'.getDolGlobalString('MAILING_EMAIL_ERRORSTO').'">';
175 175
 if (getDolGlobalString('MAILING_EMAIL_ERRORSTO') && !isValidEmail(getDolGlobalString('MAILING_EMAIL_ERRORSTO'))) {
176
-	print ' ' . img_warning($langs->trans("BadEMail"));
176
+	print ' '.img_warning($langs->trans("BadEMail"));
177 177
 }
178 178
 print '</td>';
179
-print '<td class="hideonsmartphone"><span class="opacitymedium">' . dol_escape_htmltag('<[email protected]>') . '</span></td>';
179
+print '<td class="hideonsmartphone"><span class="opacitymedium">'.dol_escape_htmltag('<[email protected]>').'</span></td>';
180 180
 print '</tr>';
181 181
 
182 182
 print '<tr class="oddeven"><td>';
183
-print $form->textwithpicto($langs->trans("MailingDelay"), $langs->trans("IfDefinedUseAValueBeetween", '0.001', '10')) . '</td><td>';
184
-print '<input class="width75" type="text" name="MAILING_DELAY" value="' . getDolGlobalString('MAILING_DELAY') . '">';
183
+print $form->textwithpicto($langs->trans("MailingDelay"), $langs->trans("IfDefinedUseAValueBeetween", '0.001', '10')).'</td><td>';
184
+print '<input class="width75" type="text" name="MAILING_DELAY" value="'.getDolGlobalString('MAILING_DELAY').'">';
185 185
 print '</td>';
186 186
 print '<td class="hideonsmartphone"></td>';
187 187
 print '</tr>';
@@ -191,10 +191,10 @@  discard block
 block discarded – undo
191 191
 // It is also used as a security key parameter.
192 192
 
193 193
 print '<tr class="oddeven"><td>';
194
-print $langs->trans("ActivateCheckReadKey") . '</td><td>';
195
-print '<input class="minwidth100 maxwdith250 widthcentpercentminusx" type="text" name="MAILING_EMAIL_UNSUBSCRIBE_KEY" id="MAILING_EMAIL_UNSUBSCRIBE_KEY" value="' . getDolGlobalString('MAILING_EMAIL_UNSUBSCRIBE_KEY') . '">';
194
+print $langs->trans("ActivateCheckReadKey").'</td><td>';
195
+print '<input class="minwidth100 maxwdith250 widthcentpercentminusx" type="text" name="MAILING_EMAIL_UNSUBSCRIBE_KEY" id="MAILING_EMAIL_UNSUBSCRIBE_KEY" value="'.getDolGlobalString('MAILING_EMAIL_UNSUBSCRIBE_KEY').'">';
196 196
 if (!empty($conf->use_javascript_ajax)) {
197
-	print '&nbsp;' . img_picto($langs->trans('Generate'), 'refresh', 'id="generate_token" class="linkobject"');
197
+	print '&nbsp;'.img_picto($langs->trans('Generate'), 'refresh', 'id="generate_token" class="linkobject"');
198 198
 }
199 199
 print '</td>';
200 200
 print '<td class="hideonsmartphone"></td>';
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
 // default blacklist from mailing
204 204
 print '<tr class="oddeven">';
205
-print '<td>' . $langs->trans("DefaultBlacklistMailingStatus", $langs->transnoentitiesnoconv("No_Email")) . '</td>';
205
+print '<td>'.$langs->trans("DefaultBlacklistMailingStatus", $langs->transnoentitiesnoconv("No_Email")).'</td>';
206 206
 print '<td>';
207 207
 $blacklist_setting = array(0 => $langs->trans('No'), 1 => $langs->trans('Yes'), 2 => $langs->trans('DefaultStatusEmptyMandatory'));
208 208
 print $form->selectarray("MAILING_CONTACT_DEFAULT_BULK_STATUS", $blacklist_setting, getDolGlobalString('MAILING_CONTACT_DEFAULT_BULK_STATUS'));
@@ -213,10 +213,10 @@  discard block
 block discarded – undo
213 213
 // Limit number for each mailing batch, displayed only if this value is not defined in the conf.php file
214 214
 print '<tr class="oddeven">';
215 215
 $help = img_help(1, $langs->trans("MailingNumberOfEmailsPerBatchHelp"));
216
-print '<td>' . $langs->trans("MailingNumberOfEmailsPerBatch") . ' ' . $help . '</td>';
216
+print '<td>'.$langs->trans("MailingNumberOfEmailsPerBatch").' '.$help.'</td>';
217 217
 print '<td>';
218 218
 if (empty($conf->file->mailing_limit_sendbyweb)) {
219
-	print '<input class="width75 right" type="number" name="MAILING_LIMIT_SENDBYWEB" id="MAILING_LIMIT_SENDBYWEB" value="' . getDolGlobalString('MAILING_LIMIT_SENDBYWEB') . '">';
219
+	print '<input class="width75 right" type="number" name="MAILING_LIMIT_SENDBYWEB" id="MAILING_LIMIT_SENDBYWEB" value="'.getDolGlobalString('MAILING_LIMIT_SENDBYWEB').'">';
220 220
 } else {
221 221
 	print $conf->file->mailing_limit_sendbyweb;
222 222
 }
Please login to merge, or discard this patch.
htdocs/admin/subtotals.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
 
29 29
 // Load Dolibarr environment
30 30
 require '../main.inc.php';
31
-require_once DOL_DOCUMENT_ROOT . '/core/lib/admin.lib.php';
32
-require_once DOL_DOCUMENT_ROOT . '/core/lib/doleditor.lib.php';
33
-require_once DOL_DOCUMENT_ROOT . '/core/class/doleditor.class.php';
34
-require_once DOL_DOCUMENT_ROOT . '/core/class/html.formother.class.php';
31
+require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
32
+require_once DOL_DOCUMENT_ROOT.'/core/lib/doleditor.lib.php';
33
+require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
34
+require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
35 35
 
36 36
 /**
37 37
  * @var Conf $conf
@@ -73,14 +73,14 @@  discard block
 block discarded – undo
73 73
 $max_depth = 0;
74 74
 
75 75
 foreach ($modules as $const => $desc) {
76
-	$const_depth = getDolGlobalString('SUBTOTAL_' . $const . '_MAX_DEPTH');
76
+	$const_depth = getDolGlobalString('SUBTOTAL_'.$const.'_MAX_DEPTH');
77 77
 	$max_depth = max($const_depth, $max_depth);
78 78
 }
79 79
 
80 80
 $colors = array();
81 81
 
82 82
 for ($i = 0; $i < $max_depth; $i++) {
83
-	$colors['SUBTOTAL_BACK_COLOR_LEVEL_' . ($i + 1)] = array('level' => $i + 1, 'color' => getDolGlobalString('SUBTOTAL_BACK_COLOR_LEVEL_' . ($i + 1), $default));
83
+	$colors['SUBTOTAL_BACK_COLOR_LEVEL_'.($i + 1)] = array('level' => $i + 1, 'color' => getDolGlobalString('SUBTOTAL_BACK_COLOR_LEVEL_'.($i + 1), $default));
84 84
 }
85 85
 
86 86
 /*
@@ -90,14 +90,14 @@  discard block
 block discarded – undo
90 90
 if (preg_match('/^SUBTOTAL_.*$/', $action)) {
91 91
 	if (preg_match('/^.*_MAX_DEPTH$/', $action)) {
92 92
 		dolibarr_set_const($db, $action, GETPOSTINT($action), 'int', 0, '', $conf->entity);
93
-		header("Location: " . $_SERVER['PHP_SELF']);
93
+		header("Location: ".$_SERVER['PHP_SELF']);
94 94
 		setEventMessages($langs->trans("SetupSaved"), null);
95 95
 		exit;
96 96
 	} else {
97 97
 		$value = getDolGlobalInt($action, 0);
98 98
 		$value == 0 ? $value = 1 : $value = 0;
99 99
 		dolibarr_set_const($db, $action, $value, 'chaine', 0, '', $conf->entity);
100
-		header("Location: " . $_SERVER['PHP_SELF']);
100
+		header("Location: ".$_SERVER['PHP_SELF']);
101 101
 		setEventMessages($langs->trans("SetupSaved"), null);
102 102
 		exit;
103 103
 	}
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 		}
112 112
 	}
113 113
 
114
-	header("Location: " . $_SERVER["PHP_SELF"]);
114
+	header("Location: ".$_SERVER["PHP_SELF"]);
115 115
 	exit;
116 116
 }
117 117
 
@@ -131,10 +131,10 @@  discard block
 block discarded – undo
131 131
 } else {
132 132
 	print '<table class="noborder centpercent">';
133 133
 	print '<tr class="liste_titre">';
134
-	print '<td width="1100">' . $langs->trans("Settings") . '</td>';
135
-	print '<td class="center">' . $langs->trans("Title") . '</td>';
136
-	print '<td class="center">' . $langs->trans("Subtotal") . '</td>';
137
-	print '<td class="center">' . $langs->trans("MaxSubtotalLevel") . '</td>';
134
+	print '<td width="1100">'.$langs->trans("Settings").'</td>';
135
+	print '<td class="center">'.$langs->trans("Title").'</td>';
136
+	print '<td class="center">'.$langs->trans("Subtotal").'</td>';
137
+	print '<td class="center">'.$langs->trans("MaxSubtotalLevel").'</td>';
138 138
 	print "</tr>\n";
139 139
 
140 140
 	// Modules
@@ -146,9 +146,9 @@  discard block
 block discarded – undo
146 146
 
147 147
 		$langs->load($desc['lang']);
148 148
 
149
-		$constante_title = 'SUBTOTAL_TITLE_' . $const;
150
-		$constante_subtotal = 'SUBTOTAL_' . $const;
151
-		print '<!-- constant = ' . $constante_subtotal . ' -->' . "\n";
149
+		$constante_title = 'SUBTOTAL_TITLE_'.$const;
150
+		$constante_subtotal = 'SUBTOTAL_'.$const;
151
+		print '<!-- constant = '.$constante_subtotal.' -->'."\n";
152 152
 		print '<tr class="oddeven">';
153 153
 		print '<td>';
154 154
 		if (isset($desc['old_pdf'])) {
@@ -160,25 +160,25 @@  discard block
 block discarded – undo
160 160
 
161 161
 		print '<td class="center">';
162 162
 		$value_title = getDolGlobalInt($constante_title, 0);
163
-		print '<a class="reposition" href="' . $_SERVER['PHP_SELF'] . '?action=' . $constante_title . '&token=' . newToken() . '">';
164
-		print $value_title == 0 ? img_picto($langs->trans("Disabled"), 'switch_off') : img_picto($langs->trans("Enabled"), 'switch_on') . '</a>';
163
+		print '<a class="reposition" href="'.$_SERVER['PHP_SELF'].'?action='.$constante_title.'&token='.newToken().'">';
164
+		print $value_title == 0 ? img_picto($langs->trans("Disabled"), 'switch_off') : img_picto($langs->trans("Enabled"), 'switch_on').'</a>';
165 165
 		print '</td>';
166 166
 
167 167
 		print '<td class="center">';
168 168
 		$value_subtotal = getDolGlobalInt($constante_subtotal, 0);
169
-		print '<a class="reposition" href="' . $_SERVER['PHP_SELF'] . '?action=' . $constante_subtotal . '&token=' . newToken() . '">';
170
-		print $value_subtotal == 0 ? img_picto($langs->trans("Disabled"), 'switch_off') : img_picto($langs->trans("Enabled"), 'switch_on') . '</a>';
169
+		print '<a class="reposition" href="'.$_SERVER['PHP_SELF'].'?action='.$constante_subtotal.'&token='.newToken().'">';
170
+		print $value_subtotal == 0 ? img_picto($langs->trans("Disabled"), 'switch_off') : img_picto($langs->trans("Enabled"), 'switch_on').'</a>';
171 171
 		print '</td>';
172 172
 
173 173
 		print '<td class="center">';
174 174
 		$can_modify = !($value_subtotal == 0 && $value_title == 0);
175
-		print '<form method="POST" action="' . $_SERVER["PHP_SELF"] . '" >';
176
-		print '<input type="hidden" name="token" value="' . newToken() . '">';
177
-		print '<input type="hidden" name="action" value="SUBTOTAL_' . $const . '_MAX_DEPTH">';
175
+		print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'" >';
176
+		print '<input type="hidden" name="token" value="'.newToken().'">';
177
+		print '<input type="hidden" name="action" value="SUBTOTAL_'.$const.'_MAX_DEPTH">';
178 178
 		print '<input size="3" type="text"';
179 179
 		print $can_modify ? '' : ' disabled="disabled" ';
180
-		print 'name="SUBTOTAL_' . $const . '_MAX_DEPTH" value="' . getDolGlobalString('SUBTOTAL_' . $const . '_MAX_DEPTH', $can_modify ? 2 : 0) . '">';
181
-		print $can_modify ? '<input type="submit" class="button button-edit reposition smallpaddingimp" name="Button"value="' . $langs->trans("Modify") . '">' : '';
180
+		print 'name="SUBTOTAL_'.$const.'_MAX_DEPTH" value="'.getDolGlobalString('SUBTOTAL_'.$const.'_MAX_DEPTH', $can_modify ? 2 : 0).'">';
181
+		print $can_modify ? '<input type="submit" class="button button-edit reposition smallpaddingimp" name="Button"value="'.$langs->trans("Modify").'">' : '';
182 182
 		print '</form>';
183 183
 		print '</td>';
184 184
 
@@ -189,33 +189,33 @@  discard block
 block discarded – undo
189 189
 
190 190
 	// Other options
191 191
 
192
-	print '<form method="POST" action="' . $_SERVER["PHP_SELF"] . '">';
193
-	print '<input type="hidden" name="token" value="' . newToken() . '">';
192
+	print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
193
+	print '<input type="hidden" name="token" value="'.newToken().'">';
194 194
 	print '<input type="hidden" name="action" value="update_colors">';
195 195
 
196 196
 	print '<table class="noborder centpercent">';
197 197
 	print '<tr class="liste_titre">';
198
-	print '<td>' . $langs->trans("Other") . '</td>';
198
+	print '<td>'.$langs->trans("Other").'</td>';
199 199
 	print '<td></td>';
200 200
 	print "</tr>\n";
201 201
 
202 202
 	foreach ($colors as $key => $value) {
203 203
 		print '<tr class="oddeven">';
204
-		print '<td>' . $langs->trans("SubtotalLineBackColor", $value['level']) . '</td>';
204
+		print '<td>'.$langs->trans("SubtotalLineBackColor", $value['level']).'</td>';
205 205
 		print '<td class="center width250">';
206
-		print $formother->selectColor(colorArrayToHex(colorStringToArray($value['color'], array()), $default), $key, '', 1, array(), '', '', $default) . ' ';
207
-		print ' &nbsp; <span class="nowraponall opacitymedium">' . $langs->trans("Default") . '</span>: <strong>' . $default . '</strong>';
208
-		print $form->textwithpicto('', $langs->trans("NotSupportedByAllThemes") . ', ' . $langs->trans("PressF5AfterChangingThis"));
206
+		print $formother->selectColor(colorArrayToHex(colorStringToArray($value['color'], array()), $default), $key, '', 1, array(), '', '', $default).' ';
207
+		print ' &nbsp; <span class="nowraponall opacitymedium">'.$langs->trans("Default").'</span>: <strong>'.$default.'</strong>';
208
+		print $form->textwithpicto('', $langs->trans("NotSupportedByAllThemes").', '.$langs->trans("PressF5AfterChangingThis"));
209 209
 		print '</td>';
210 210
 		print '</tr>';
211 211
 	}
212 212
 
213
-	print '</table>' . "\n";
213
+	print '</table>'."\n";
214 214
 }
215 215
 
216 216
 print '<div class="center">';
217
-print '<input class="button button-save reposition buttonforacesave" type="submit" name="submit" value="' . $langs->trans("Save") . '">';
218
-print '<input class="button button-cancel reposition" type="submit" name="cancel" value="' . $langs->trans("Cancel") . '">';
217
+print '<input class="button button-save reposition buttonforacesave" type="submit" name="submit" value="'.$langs->trans("Save").'">';
218
+print '<input class="button button-cancel reposition" type="submit" name="cancel" value="'.$langs->trans("Cancel").'">';
219 219
 print '</div>';
220 220
 
221 221
 // End of page
Please login to merge, or discard this patch.
htdocs/admin/expensereport_rules.php 1 patch
Spacing   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 $langs->loadLangs(array("admin", "other", "trips", "errors", "dict"));
46 46
 
47 47
 // Initialize a technical object to manage hooks of page. Note that conf->hooks_modules contains an array of hook context
48
-$hookmanager->initHooks(array('admin', 'dictionaryadmin','expensereport_rules'));
48
+$hookmanager->initHooks(array('admin', 'dictionaryadmin', 'expensereport_rules'));
49 49
 
50 50
 $object = new ExpenseReportRule($db);
51 51
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 			}
157 157
 
158 158
 			if (!$error) {
159
-				header('Location: ' . $_SERVER['PHP_SELF']);
159
+				header('Location: '.$_SERVER['PHP_SELF']);
160 160
 				exit;
161 161
 			} else {
162 162
 				$action = '';
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 			dol_print_error($object->db);
171 171
 		}
172 172
 
173
-		header('Location: ' . $_SERVER['PHP_SELF']);
173
+		header('Location: '.$_SERVER['PHP_SELF']);
174 174
 		exit;
175 175
 	}
176 176
 
@@ -205,41 +205,41 @@  discard block
 block discarded – undo
205 205
 $head = expensereport_admin_prepare_head();
206 206
 print dol_get_fiche_head($head, 'expenserules', $langs->trans("ExpenseReportsRules"), -1, 'trip');
207 207
 
208
-echo '<span class="opacitymedium">' . $langs->trans('ExpenseReportRulesDesc') . '</span>';
208
+echo '<span class="opacitymedium">'.$langs->trans('ExpenseReportRulesDesc').'</span>';
209 209
 print '<br><br>';
210 210
 
211 211
 if ($action != 'edit') {
212
-	echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">';
213
-	echo '<input type="hidden" name="token" value="' . newToken() . '" />';
212
+	echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post">';
213
+	echo '<input type="hidden" name="token" value="'.newToken().'" />';
214 214
 	echo '<input type="hidden" name="action" value="save" />';
215 215
 
216 216
 	echo '<table class="noborder centpercent">';
217 217
 
218 218
 	echo '<tr class="liste_titre headerexpensereportrules">';
219
-	echo '<th class="linecolapplyto">' . $langs->trans('ExpenseReportApplyTo') . '</th>';
220
-	echo '<th class="linecoltype">' . $langs->trans('Type') . '</th>';
221
-	echo '<th class="linecollimiton">' . $langs->trans('ExpenseReportLimitOn') . '</th>';
222
-	echo '<th class="linecoldatestart">' . $langs->trans('ExpenseReportDateStart') . '</th>';
223
-	echo '<th class="linecoldateend">' . $langs->trans('ExpenseReportDateEnd') . '</th>';
224
-	echo '<th class="linecollimitamount">' . $langs->trans('ExpenseReportLimitAmount') . '</th>';
225
-	echo '<th class="linecolrestrictive">' . $langs->trans('ExpenseReportRestrictive') . '</th>';
219
+	echo '<th class="linecolapplyto">'.$langs->trans('ExpenseReportApplyTo').'</th>';
220
+	echo '<th class="linecoltype">'.$langs->trans('Type').'</th>';
221
+	echo '<th class="linecollimiton">'.$langs->trans('ExpenseReportLimitOn').'</th>';
222
+	echo '<th class="linecoldatestart">'.$langs->trans('ExpenseReportDateStart').'</th>';
223
+	echo '<th class="linecoldateend">'.$langs->trans('ExpenseReportDateEnd').'</th>';
224
+	echo '<th class="linecollimitamount">'.$langs->trans('ExpenseReportLimitAmount').'</th>';
225
+	echo '<th class="linecolrestrictive">'.$langs->trans('ExpenseReportRestrictive').'</th>';
226 226
 	echo '<th>&nbsp;</th>';
227 227
 	echo '</tr>';
228 228
 
229 229
 	echo '<tr class="oddeven">';
230 230
 	echo '<td>';
231
-	echo '<div class="float linecolapplyto">' . $form->selectarray('apply_to', $tab_apply, '', 0) . '</div>';
232
-	echo '<div id="user" class="float linecoluser">' . $form->select_dolusers('', 'fk_user') . '</div>';
233
-	echo '<div id="group" class="float linecolgroup">' . $form->select_dolgroups(0, 'fk_usergroup') . '</div>';
231
+	echo '<div class="float linecolapplyto">'.$form->selectarray('apply_to', $tab_apply, '', 0).'</div>';
232
+	echo '<div id="user" class="float linecoluser">'.$form->select_dolusers('', 'fk_user').'</div>';
233
+	echo '<div id="group" class="float linecolgroup">'.$form->select_dolgroups(0, 'fk_usergroup').'</div>';
234 234
 	echo '</td>';
235 235
 
236
-	echo '<td class="linecoltype">' . $form->selectExpense('', 'fk_c_type_fees', 0, 1, 1) . '</td>';
237
-	echo '<td class="linecoltyperule">' . $form->selectarray('code_expense_rules_type', $tab_rules_type, '', 0) . '</td>';
238
-	echo '<td class="linecoldatestart">' . $form->selectDate(strtotime(date('Y-m-01', dol_now())), 'start', 0, 0, 0, '', 1, 0) . '</td>';
239
-	echo '<td class="linecoldateend">' . $form->selectDate(strtotime(date('Y-m-t', dol_now())), 'end', 0, 0, 0, '', 1, 0) . '</td>';
236
+	echo '<td class="linecoltype">'.$form->selectExpense('', 'fk_c_type_fees', 0, 1, 1).'</td>';
237
+	echo '<td class="linecoltyperule">'.$form->selectarray('code_expense_rules_type', $tab_rules_type, '', 0).'</td>';
238
+	echo '<td class="linecoldatestart">'.$form->selectDate(strtotime(date('Y-m-01', dol_now())), 'start', 0, 0, 0, '', 1, 0).'</td>';
239
+	echo '<td class="linecoldateend">'.$form->selectDate(strtotime(date('Y-m-t', dol_now())), 'end', 0, 0, 0, '', 1, 0).'</td>';
240 240
 	echo '<td class="linecolamount"><input type="text" value="" class="maxwidth100" name="amount" class="amount right" /></td>';
241
-	echo '<td class="linecolrestrictive">' . $form->selectyesno('restrictive', 0, 1) . '</td>';
242
-	echo '<td class="right linecolbutton"><input type="submit" class="button button-add" value="' . $langs->trans('Add') . '" /></td>';
241
+	echo '<td class="linecolrestrictive">'.$form->selectyesno('restrictive', 0, 1).'</td>';
242
+	echo '<td class="right linecolbutton"><input type="submit" class="button button-add" value="'.$langs->trans('Add').'" /></td>';
243 243
 	echo '</tr>';
244 244
 
245 245
 	echo '</table>';
@@ -247,11 +247,11 @@  discard block
 block discarded – undo
247 247
 }
248 248
 
249 249
 
250
-echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">';
251
-echo '<input type="hidden" name="token" value="' . newToken() . '" />';
250
+echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post">';
251
+echo '<input type="hidden" name="token" value="'.newToken().'" />';
252 252
 
253 253
 if ($action == 'edit') {
254
-	echo '<input type="hidden" name="id" value="' . $object->id . '" />';
254
+	echo '<input type="hidden" name="id" value="'.$object->id.'" />';
255 255
 	echo '<input type="hidden" name="action" value="save" />';
256 256
 }
257 257
 
@@ -261,13 +261,13 @@  discard block
 block discarded – undo
261 261
 echo '<table class="noborder centpercent">';
262 262
 
263 263
 echo '<tr class="liste_titre expensereportrules">';
264
-echo '<th class="linecolapplyto">' . $langs->trans('ExpenseReportApplyTo') . '</th>';
265
-echo '<th class="linecoltype">' . $langs->trans('Type') . '</th>';
266
-echo '<th class="linecollimiton">' . $langs->trans('ExpenseReportLimitOn') . '</th>';
267
-echo '<th class="linecoldatestart">' . $langs->trans('ExpenseReportDateStart') . '</th>';
268
-echo '<th class="linecoldateend">' . $langs->trans('ExpenseReportDateEnd') . '</th>';
269
-echo '<th class="linecollimitamount">' . $langs->trans('ExpenseReportLimitAmount') . '</th>';
270
-echo '<th class="linecolrestrictive">' . $langs->trans('ExpenseReportRestrictive') . '</th>';
264
+echo '<th class="linecolapplyto">'.$langs->trans('ExpenseReportApplyTo').'</th>';
265
+echo '<th class="linecoltype">'.$langs->trans('Type').'</th>';
266
+echo '<th class="linecollimiton">'.$langs->trans('ExpenseReportLimitOn').'</th>';
267
+echo '<th class="linecoldatestart">'.$langs->trans('ExpenseReportDateStart').'</th>';
268
+echo '<th class="linecoldateend">'.$langs->trans('ExpenseReportDateEnd').'</th>';
269
+echo '<th class="linecollimitamount">'.$langs->trans('ExpenseReportLimitAmount').'</th>';
270
+echo '<th class="linecolrestrictive">'.$langs->trans('ExpenseReportRestrictive').'</th>';
271 271
 echo '<th>&nbsp;</th>';
272 272
 echo '</tr>';
273 273
 
@@ -277,16 +277,16 @@  discard block
 block discarded – undo
277 277
 	echo '<td class="linecolusergroup">';
278 278
 	if ($action == 'edit' && $object->id == $rule->id) {
279 279
 		$selected = ($object->is_for_all > 0) ? 'A' : ($object->fk_usergroup > 0 ? 'G' : 'U');
280
-		echo '<div class="float">' . $form->selectarray('apply_to', $tab_apply, $selected, 0) . '</div>';
281
-		echo '<div id="user" class="float">' . $form->select_dolusers($object->fk_user, 'fk_user') . '</div>';
282
-		echo '<div id="group" class="float">' . $form->select_dolgroups($object->fk_usergroup, 'fk_usergroup') . '</div>';
280
+		echo '<div class="float">'.$form->selectarray('apply_to', $tab_apply, $selected, 0).'</div>';
281
+		echo '<div id="user" class="float">'.$form->select_dolusers($object->fk_user, 'fk_user').'</div>';
282
+		echo '<div id="group" class="float">'.$form->select_dolgroups($object->fk_usergroup, 'fk_usergroup').'</div>';
283 283
 	} else {
284 284
 		if ($rule->is_for_all > 0) {
285 285
 			echo $tab_apply['A'];
286 286
 		} elseif ($rule->fk_usergroup > 0) {
287
-			echo $tab_apply['G'] . ' (' . $rule->getGroupLabel() . ')';
287
+			echo $tab_apply['G'].' ('.$rule->getGroupLabel().')';
288 288
 		} elseif ($rule->fk_user > 0) {
289
-			echo $tab_apply['U'] . ' (' . $rule->getUserName() . ')';
289
+			echo $tab_apply['U'].' ('.$rule->getUserName().')';
290 290
 		}
291 291
 	}
292 292
 	echo '</td>';
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 	// Amount
340 340
 	echo '<td class="linecolamount">';
341 341
 	if ($action == 'edit' && $object->id == $rule->id) {
342
-		echo '<input type="text" value="' . price2num($object->amount) . '" name="amount" class="amount width50 right" />';
342
+		echo '<input type="text" value="'.price2num($object->amount).'" name="amount" class="amount width50 right" />';
343 343
 	} else {
344 344
 		echo price($rule->amount, 0, $langs, 1, -1, -1, $conf->currency);
345 345
 	}
@@ -357,11 +357,11 @@  discard block
 block discarded – undo
357 357
 
358 358
 	echo '<td class="center">';
359 359
 	if ($object->id != $rule->id) {
360
-		echo '<a class="editfielda paddingright paddingleft" href="' . $_SERVER['PHP_SELF'] . '?action=edit&token=' . newToken() . '&id=' . $rule->id . '">' . img_edit() . '</a>&nbsp;';
361
-		echo '<a class="paddingright paddingleft" href="' . $_SERVER['PHP_SELF'] . '?action=delete&token=' . newToken() . '&id=' . $rule->id . '">' . img_delete() . '</a>';
360
+		echo '<a class="editfielda paddingright paddingleft" href="'.$_SERVER['PHP_SELF'].'?action=edit&token='.newToken().'&id='.$rule->id.'">'.img_edit().'</a>&nbsp;';
361
+		echo '<a class="paddingright paddingleft" href="'.$_SERVER['PHP_SELF'].'?action=delete&token='.newToken().'&id='.$rule->id.'">'.img_delete().'</a>';
362 362
 	} else {
363
-		echo '<input type="submit" class="button button-edit" value="' . $langs->trans('Update') . '" />&nbsp;';
364
-		echo '<a href="' . $_SERVER['PHP_SELF'] . '" class="button button-cancel">' . $langs->trans("Cancel") . '</a>';
363
+		echo '<input type="submit" class="button button-edit" value="'.$langs->trans('Update').'" />&nbsp;';
364
+		echo '<a href="'.$_SERVER['PHP_SELF'].'" class="button button-cancel">'.$langs->trans("Cancel").'</a>';
365 365
 	}
366 366
 	echo '</td>';
367 367
 
Please login to merge, or discard this patch.
htdocs/admin/bomline_extrafields.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
  */
30 30
 
31 31
 require '../main.inc.php';
32
-require_once DOL_DOCUMENT_ROOT . '/bom/lib/bom.lib.php';
33
-require_once DOL_DOCUMENT_ROOT . '/core/class/extrafields.class.php';
32
+require_once DOL_DOCUMENT_ROOT.'/bom/lib/bom.lib.php';
33
+require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
34 34
 
35 35
 /**
36 36
  * @var Conf $conf
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
  * Actions
63 63
  */
64 64
 
65
-require DOL_DOCUMENT_ROOT . '/core/actions_extrafields.inc.php';
65
+require DOL_DOCUMENT_ROOT.'/core/actions_extrafields.inc.php';
66 66
 
67 67
 
68 68
 /*
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
 print dol_get_fiche_head($head, 'bomline_extrafields', $langs->trans("ExtraFields"), -1, 'account');
87 87
 
88
-require DOL_DOCUMENT_ROOT . '/core/tpl/admin_extrafields_view.tpl.php';
88
+require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
89 89
 
90 90
 print dol_get_fiche_end();
91 91
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 // Buttons
94 94
 if ($action != 'create' && $action != 'edit') {
95 95
 	print '<div class="tabsAction">';
96
-	print '<a class="butAction reposition" href="' . $_SERVER["PHP_SELF"] . '?action=create">' . $langs->trans("NewAttribute") . '</a>';
96
+	print '<a class="butAction reposition" href="'.$_SERVER["PHP_SELF"].'?action=create">'.$langs->trans("NewAttribute").'</a>';
97 97
 	print "</div>";
98 98
 }
99 99
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 	print '<br><div id="newattrib"></div>';
106 106
 	print load_fiche_titre($langs->trans('NewAttribute'));
107 107
 
108
-	require DOL_DOCUMENT_ROOT . '/core/tpl/admin_extrafields_add.tpl.php';
108
+	require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_add.tpl.php';
109 109
 }
110 110
 
111 111
 /*
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	print "<br>";
116 116
 	print load_fiche_titre($langs->trans("FieldEdition", $attrname));
117 117
 
118
-	require DOL_DOCUMENT_ROOT . '/core/tpl/admin_extrafields_edit.tpl.php';
118
+	require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_edit.tpl.php';
119 119
 }
120 120
 
121 121
 // End of page
Please login to merge, or discard this patch.
htdocs/core/ajax/mailtemplate.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -101,9 +101,9 @@  discard block
 block discarded – undo
101 101
 		'__MYCOMPANY_PHONE_MOBILE__' => $mysoc->phone_mobile,
102 102
 		'__MYCOMPANY_FAX__' => $mysoc->fax,
103 103
 
104
-		'__MYCOMPANY_ADDRESS_WITH_PICTO__' => $mycompanyaddress ? '<img src="data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iNCIgdmlld0JveD0iMCAwIDI0IDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxwYXRoIGQ9Ik0xMiAyMmM1LjUyIDAgMTAtNC40OCAxMC0xMFMxNy41MiAyIDEyIDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMHoiLz4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIzIi8+Cjwvc3ZnPg==" style="height: 20px; width: 20px; display: inline-block; vertical-align: middle;"> ' . $mycompanyaddress : '',
105
-		'__MYCOMPANY_EMAIL_WITH_PICTO__' => $mysoc->email ? '<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCIgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0Ij4KICA8cmVjdCB4PSI0IiB5PSIxMiIgd2lkdGg9IjU2IiBoZWlnaHQ9IjQwIiByeD0iNCIgcnk9IjQiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSI0Ii8+CiAgPHBvbHlsaW5lIHBvaW50cz0iNiwxNCAzMiwzNiA1OCwxNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+" style="height: 20px; width: 20px; display: inline-block; vertical-align: middle;"> ' . $mysoc->email : '',
106
-		'__MYCOMPANY_PHONE_PRO_WITH_PICTO__' => $mysoc->phone ? '<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIHY3LjAuMCBieSBAYm9udGF3ZXNvbWUgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbSBMaWNlbnNlIC0gaHR0cHM6Ly9mb250YXdlc29tZS5jb20vbGljZW5zZS9mcmVlIENvcHlyaWdodCAyMDI1IEZvbnRjb25zLCBJbmMuLS0+PHBhdGggZD0iTTE2MC4yIDI1QzE1Mi4zIDYuMSAxMzEuNy0zLjkgMTEyLjEgMS40bC01LjUgMS41Yy02NC42IDE3LjYtMTE5LjggODAuMi0xMDMuNyAxNTYuNCAzNy4xIDE3NSA3NC44IDMxMi43IDM0OS44IDM0OS44IDc2LjMgMTYuMiAxMzguOC0zOS4xIDE1Ni40LTEwMy43bDEuNS01LjVjNS40LTE5LjctNC43LTQwLjMtMjMuNS00OC4xbC05Ny4zLTQwLjVjLTE2LjUtNi45LTM1LjYtMi4xLTQ3IDExLjhsLTM4LjYgNDcuMkMyMzMuOSAzMzUuNCAxNzcuMyAyNzcgMTQ0LjggMjA1LjNMMTg5IDE2OS4zYzEzLjktMTEuMyAxOC42LTMwLjQgMTEuOC00N0wxNjAuMiAyNXoiLz48L3N2Zz4=" style="height: 20px; width: 20px; display: inline-block; vertical-align: middle;"> ' . $mysoc->phone : '',
104
+		'__MYCOMPANY_ADDRESS_WITH_PICTO__' => $mycompanyaddress ? '<img src="data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iNCIgdmlld0JveD0iMCAwIDI0IDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxwYXRoIGQ9Ik0xMiAyMmM1LjUyIDAgMTAtNC40OCAxMC0xMFMxNy41MiAyIDEyIDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMHoiLz4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIzIi8+Cjwvc3ZnPg==" style="height: 20px; width: 20px; display: inline-block; vertical-align: middle;"> '.$mycompanyaddress : '',
105
+		'__MYCOMPANY_EMAIL_WITH_PICTO__' => $mysoc->email ? '<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCIgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0Ij4KICA8cmVjdCB4PSI0IiB5PSIxMiIgd2lkdGg9IjU2IiBoZWlnaHQ9IjQwIiByeD0iNCIgcnk9IjQiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSI0Ii8+CiAgPHBvbHlsaW5lIHBvaW50cz0iNiwxNCAzMiwzNiA1OCwxNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+" style="height: 20px; width: 20px; display: inline-block; vertical-align: middle;"> '.$mysoc->email : '',
106
+		'__MYCOMPANY_PHONE_PRO_WITH_PICTO__' => $mysoc->phone ? '<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIHY3LjAuMCBieSBAYm9udGF3ZXNvbWUgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbSBMaWNlbnNlIC0gaHR0cHM6Ly9mb250YXdlc29tZS5jb20vbGljZW5zZS9mcmVlIENvcHlyaWdodCAyMDI1IEZvbnRjb25zLCBJbmMuLS0+PHBhdGggZD0iTTE2MC4yIDI1QzE1Mi4zIDYuMSAxMzEuNy0zLjkgMTEyLjEgMS40bC01LjUgMS41Yy02NC42IDE3LjYtMTE5LjggODAuMi0xMDMuNyAxNTYuNCAzNy4xIDE3NSA3NC44IDMxMi43IDM0OS44IDM0OS44IDc2LjMgMTYuMiAxMzguOC0zOS4xIDE1Ni40LTEwMy43bDEuNS01LjVjNS40LTE5LjctNC43LTQwLjMtMjMuNS00OC4xbC05Ny4zLTQwLjVjLTE2LjUtNi45LTM1LjYtMi4xLTQ3IDExLjhsLTM4LjYgNDcuMkMyMzMuOSAzMzUuNCAxNzcuMyAyNzcgMTQ0LjggMjA1LjNMMTg5IDE2OS4zYzEzLjktMTEuMyAxOC42LTMwLjQgMTEuOC00N0wxNjAuMiAyNXoiLz48L3N2Zz4=" style="height: 20px; width: 20px; display: inline-block; vertical-align: middle;"> '.$mysoc->phone : '',
107 107
 	);
108 108
 
109 109
 	$listsocialnetworks = '';
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 		 * @param 	array<int,string> $matches	Array of matches
150 150
 		 * @return 	string 						Translated string for the key
151 151
 		 */
152
-		function ($matches) {
152
+		function($matches) {
153 153
 			global $langs;
154 154
 			return $langs->trans($matches[1]);
155 155
 		},
@@ -180,14 +180,14 @@  discard block
 block discarded – undo
180 180
 
181 181
 			$newsList .= '<div style="display: flex; align-items: flex-start; justify-content: flex-start; width: 100%; max-width: 800px; margin-top: 20px;margin-bottom: 50px; padding: 20px;">
182 182
                             <div style="flex-grow: 1; margin-right: 30px; max-width: 600px; margin-left: 100px;">
183
-                                <h2 style="margin: 0; font-size: 1.5em;">' . htmlentities(empty($post['title']) ? '' : $post['title']) . '</h2>
184
-                                <p style="margin: 10px 0; color: #555;">' . htmlentities(empty($post['description']) ? '' : $post['description']) . '</p>
185
-                                <span style="display: block; margin-bottom: 5px; color: #888;">Created By: <strong>' . htmlentities(empty($post['user_fullname']) ? '' : $post['user_fullname']) . '</strong></span>
183
+                                <h2 style="margin: 0; font-size: 1.5em;">' . htmlentities(empty($post['title']) ? '' : $post['title']).'</h2>
184
+                                <p style="margin: 10px 0; color: #555;">' . htmlentities(empty($post['description']) ? '' : $post['description']).'</p>
185
+                                <span style="display: block; margin-bottom: 5px; color: #888;">Created By: <strong>' . htmlentities(empty($post['user_fullname']) ? '' : $post['user_fullname']).'</strong></span>
186 186
                                 <br>
187
-                                <span style="display: block; color: #888;">' . dol_print_date((empty($post['date_creation']) ? dol_now() : $post['date_creation']), 'daytext', 'tzserver', $langs) . '</span>
187
+                                <span style="display: block; color: #888;">' . dol_print_date((empty($post['date_creation']) ? dol_now() : $post['date_creation']), 'daytext', 'tzserver', $langs).'</span>
188 188
                             </div>
189 189
                             <div style="flex-shrink: 0; margin-left: 100px; float: right;">
190
-                                ' . (!empty($post['image']) ? '<img alt="Image" width="130px" height="130px" style="border-radius: 10px;" src="' . DOL_URL_ROOT . '/viewimage.php?modulepart=medias&file=' . htmlentities($post['image']) . '">' : '<img alt="Gray rectangle" width="130px" height="130px" style="border-radius: 10px;" src="__GRAY_RECTANGLE__">') . '
190
+                                ' . (!empty($post['image']) ? '<img alt="Image" width="130px" height="130px" style="border-radius: 10px;" src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=medias&file='.htmlentities($post['image']).'">' : '<img alt="Gray rectangle" width="130px" height="130px" style="border-radius: 10px;" src="__GRAY_RECTANGLE__">').'
191 191
                             </div>
192 192
                         </div>';
193 193
 		}
Please login to merge, or discard this patch.
htdocs/core/boxes/box_funnel_of_prospection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
 			$sql .= " WHERE p.entity IN (".getEntity('project').")";
149 149
 			$sql .= " AND p.fk_opp_status = cls.rowid";
150 150
 			$sql .= " AND p.fk_statut = 1"; // Opened projects only
151
-			$sql .= " AND cls.active = 1"; 	// Active opportunities status only
151
+			$sql .= " AND cls.active = 1"; // Active opportunities status only
152 152
 			$sql .= " AND cls.code NOT IN ('LOST', 'WON')";
153 153
 			$sql .= " GROUP BY p.fk_opp_status, cls.code, cls.position";
154 154
 			$sql .= " ORDER BY cls.position, p.fk_opp_status, cls.code";
Please login to merge, or discard this patch.