Completed
Branch develop (ac231f)
by
unknown
20:12
created
htdocs/adherents/card.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 $action = GETPOST('action', 'aZ09');
58 58
 $cancel = GETPOST('cancel', 'alpha');
59 59
 $backtopage = GETPOST('backtopage', 'alpha');
60
-$backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');	// if not set, $backtopage will be used
60
+$backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); // if not set, $backtopage will be used
61 61
 $confirm = GETPOST('confirm', 'alpha');
62 62
 $rowid = GETPOSTINT('rowid');
63 63
 $id = GETPOST('id') ? GETPOSTINT('id') : $rowid;
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 			$object->gender      = trim(GETPOST("gender", 'alphanohtml'));
302 302
 			$object->login       = trim(GETPOST("login", 'alphanohtml'));
303 303
 			if (GETPOSTISSET('pass')) {
304
-				$object->pass        = trim(GETPOST("pass", 'password'));	// For password, we must use 'none'
304
+				$object->pass = trim(GETPOST("pass", 'password')); // For password, we must use 'none'
305 305
 			}
306 306
 
307 307
 			$object->societe     = trim(GETPOST("societe", 'alphanohtml')); // deprecated
@@ -356,10 +356,10 @@  discard block
 block discarded – undo
356 356
 			}
357 357
 
358 358
 			// Check if we need to also synchronize password information
359
-			$nosyncuserpass = 1;	// no by default
359
+			$nosyncuserpass = 1; // no by default
360 360
 			if (GETPOSTISSET('pass')) {
361 361
 				if ($object->user_id) {	// If member is linked to a user
362
-					$nosyncuserpass = 0;	// We may try to sync password
362
+					$nosyncuserpass = 0; // We may try to sync password
363 363
 					if ($user->id == $object->user_id) {
364 364
 						if (!$user->hasRight('user', 'self', 'password')) {
365 365
 							$nosyncuserpass = 1; // Disable synchronizing
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
 		$email = preg_replace('/\s+/', '', GETPOST("member_email", 'aZ09arobase'));
470 470
 		$url = trim(GETPOST('url', 'custom', 0, FILTER_SANITIZE_URL));
471 471
 		$login = GETPOST("member_login", 'alphanohtml');
472
-		$pass = GETPOST("password", 'password');	// For password, we use 'none'
472
+		$pass = GETPOST("password", 'password'); // For password, we use 'none'
473 473
 		$photo = GETPOST("photo", 'alphanohtml');
474 474
 		$morphy = GETPOST("morphy", 'alphanohtml');
475 475
 		$public = GETPOSTINT("public");
@@ -1291,7 +1291,7 @@  discard block
 block discarded – undo
1291 1291
 			$maxfilesizearray = getMaxFileSizeArray();
1292 1292
 			$maxmin = $maxfilesizearray['maxmin'];
1293 1293
 			if ($maxmin > 0) {
1294
-				print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">';	// MAX_FILE_SIZE must precede the field type=file
1294
+				print '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file
1295 1295
 			}
1296 1296
 			print '<input type="file" class="flat" name="photo" id="photoinput">';
1297 1297
 			print '</td></tr>';
Please login to merge, or discard this patch.
htdocs/core/class/html.formticket.class.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
  *    \brief      File of class to generate the form for creating a new ticket.
29 29
  */
30 30
 
31
-require_once DOL_DOCUMENT_ROOT . '/core/class/html.form.class.php';
32
-require_once DOL_DOCUMENT_ROOT . '/core/class/html.formmail.class.php';
33
-require_once DOL_DOCUMENT_ROOT . '/core/class/html.formprojet.class.php';
31
+require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php';
32
+require_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php';
33
+require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php';
34 34
 
35 35
 if (!class_exists('FormCompany')) {
36 36
 	include DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 	/**
112 112
 	 * @var int<0,1>
113 113
 	 */
114
-	public $ispublic;  // to show information or not into public form
114
+	public $ispublic; // to show information or not into public form
115 115
 
116 116
 	/**
117 117
 	 * @var int<0,1>
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 	/**
130 130
 	 * @var int<0,1>
131 131
 	 */
132
-	public $withcompany;  // to show company drop-down list
132
+	public $withcompany; // to show company drop-down list
133 133
 	/**
134 134
 	 * @var int<0,1>
135 135
 	 */
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 	/**
146 146
 	 * @var int<0,1>
147 147
 	 */
148
-	public $withusercreate;  // to show name of creating user in form
148
+	public $withusercreate; // to show name of creating user in form
149 149
 	/**
150 150
 	 * @var int<0,1>
151 151
 	 */
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 	/**
160 160
 	 * @var int<0,1>
161 161
 	 */
162
-	public $withref;  // to show ref field
162
+	public $withref; // to show ref field
163 163
 	/**
164 164
 	 * @var int<0,1>
165 165
 	 */
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 		$this->withcreatereadonly = 1;
223 223
 		$this->withemail = 0;
224 224
 		$this->withref = 0;
225
-		$this->withextrafields = 0;  // to show extrafields or not
225
+		$this->withextrafields = 0; // to show extrafields or not
226 226
 		//$this->withtopicreadonly=0;
227 227
 	}
228 228
 
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
 		print '<input type="hidden" name="token" value="'.newToken().'">';
311 311
 		print '<input type="hidden" name="action" value="'.$this->action.'">';
312 312
 		if (!empty($object->id)) {
313
-			print '<input type="hidden" name="id" value="'. $object->id .'">';
313
+			print '<input type="hidden" name="id" value="'.$object->id.'">';
314 314
 		}
315 315
 		print '<input type="hidden" name="trackid" value="'.$this->trackid.'">';
316 316
 		foreach ($this->param as $key => $value) {
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 		// Title
336 336
 		if ($this->withemail) {
337 337
 			print '<tr><td class="titlefield"><label for="email"><span class="fieldrequired">'.$langs->trans("Email").'</span></label></td><td>';
338
-			print '<input class="text minwidth200" id="email" name="email" value="'.$email.'" autofocus>';	// Do not use "required", it breaks button cancel
338
+			print '<input class="text minwidth200" id="email" name="email" value="'.$email.'" autofocus>'; // Do not use "required", it breaks button cancel
339 339
 			print '</td></tr>';
340 340
 
341 341
 			if ($with_contact) {
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 				$html_contact_search = '';
344 344
 				$html_contact_search .= '<tr id="contact_search_line">';
345 345
 				$html_contact_search .= '<td class="titlefield">';
346
-				$html_contact_search .= '<label for="contact"><span class="fieldrequired">' . $langs->trans('Contact') . '</span></label>';
346
+				$html_contact_search .= '<label for="contact"><span class="fieldrequired">'.$langs->trans('Contact').'</span></label>';
347 347
 				$html_contact_search .= '<input type="hidden" id="contact_id" name="contact_id" value="" />';
348 348
 				$html_contact_search .= '</td>';
349 349
 				$html_contact_search .= '<td id="contact_search_result"></td>';
@@ -351,26 +351,26 @@  discard block
 block discarded – undo
351 351
 				print $html_contact_search;
352 352
 				// contact lastname
353 353
 				$html_contact_lastname = '';
354
-				$html_contact_lastname .= '<tr id="contact_lastname_line" class="contact_field"><td class="titlefield"><label for="contact_lastname"><span class="fieldrequired">' . $langs->trans('Lastname') . '</span></label></td><td>';
355
-				$html_contact_lastname .= '<input type="text" id="contact_lastname" name="contact_lastname" value="' . dol_escape_htmltag(GETPOSTISSET('contact_lastname') ? GETPOST('contact_lastname', 'alphanohtml') : '') . '" />';
354
+				$html_contact_lastname .= '<tr id="contact_lastname_line" class="contact_field"><td class="titlefield"><label for="contact_lastname"><span class="fieldrequired">'.$langs->trans('Lastname').'</span></label></td><td>';
355
+				$html_contact_lastname .= '<input type="text" id="contact_lastname" name="contact_lastname" value="'.dol_escape_htmltag(GETPOSTISSET('contact_lastname') ? GETPOST('contact_lastname', 'alphanohtml') : '').'" />';
356 356
 				$html_contact_lastname .= '</td></tr>';
357 357
 				print $html_contact_lastname;
358 358
 				// contact firstname
359 359
 				$html_contact_firstname = '';
360
-				$html_contact_firstname .= '<tr id="contact_firstname_line" class="contact_field"><td class="titlefield"><label for="contact_firstname"><span class="fieldrequired">' . $langs->trans('Firstname') . '</span></label></td><td>';
361
-				$html_contact_firstname .= '<input type="text" id="contact_firstname" name="contact_firstname" value="' . dol_escape_htmltag(GETPOSTISSET('contact_firstname') ? GETPOST('contact_firstname', 'alphanohtml') : '') . '" />';
360
+				$html_contact_firstname .= '<tr id="contact_firstname_line" class="contact_field"><td class="titlefield"><label for="contact_firstname"><span class="fieldrequired">'.$langs->trans('Firstname').'</span></label></td><td>';
361
+				$html_contact_firstname .= '<input type="text" id="contact_firstname" name="contact_firstname" value="'.dol_escape_htmltag(GETPOSTISSET('contact_firstname') ? GETPOST('contact_firstname', 'alphanohtml') : '').'" />';
362 362
 				$html_contact_firstname .= '</td></tr>';
363 363
 				print $html_contact_firstname;
364 364
 				// company name
365 365
 				$html_company_name = '';
366
-				$html_company_name .= '<tr id="contact_company_name_line" class="contact_field"><td><label for="company_name"><span>' . $langs->trans('Company') . '</span></label></td><td>';
367
-				$html_company_name .= '<input type="text" id="company_name" name="company_name" value="' . dol_escape_htmltag(GETPOSTISSET('company_name') ? GETPOST('company_name', 'alphanohtml') : '') . '" />';
366
+				$html_company_name .= '<tr id="contact_company_name_line" class="contact_field"><td><label for="company_name"><span>'.$langs->trans('Company').'</span></label></td><td>';
367
+				$html_company_name .= '<input type="text" id="company_name" name="company_name" value="'.dol_escape_htmltag(GETPOSTISSET('company_name') ? GETPOST('company_name', 'alphanohtml') : '').'" />';
368 368
 				$html_company_name .= '</td></tr>';
369 369
 				print $html_company_name;
370 370
 				// contact phone
371 371
 				$html_contact_phone = '';
372
-				$html_contact_phone .= '<tr id="contact_phone_line" class="contact_field"><td><label for="contact_phone"><span>' . $langs->trans('Phone') . '</span></label></td><td>';
373
-				$html_contact_phone .= '<input type="text" id="contact_phone" name="contact_phone" value="' . dol_escape_htmltag(GETPOSTISSET('contact_phone') ? GETPOST('contact_phone', 'alphanohtml') : '') . '" />';
372
+				$html_contact_phone .= '<tr id="contact_phone_line" class="contact_field"><td><label for="contact_phone"><span>'.$langs->trans('Phone').'</span></label></td><td>';
373
+				$html_contact_phone .= '<input type="text" id="contact_phone" name="contact_phone" value="'.dol_escape_htmltag(GETPOSTISSET('contact_phone') ? GETPOST('contact_phone', 'alphanohtml') : '').'" />';
374 374
 				$html_contact_phone .= '</td></tr>';
375 375
 				print $html_contact_phone;
376 376
 
@@ -560,7 +560,7 @@  discard block
 block discarded – undo
560 560
 		// If public form, display more information
561 561
 		$toolbarname = 'dolibarr_notes';
562 562
 		if ($this->ispublic) {
563
-			$toolbarname = 'dolibarr_details';	// TODO Allow image so use can do paste of image into content but disallow file manager
563
+			$toolbarname = 'dolibarr_details'; // TODO Allow image so use can do paste of image into content but disallow file manager
564 564
 			print '<div class="warning hideonsmartphone">'.(getDolGlobalString("TICKET_PUBLIC_TEXT_HELP_MESSAGE", $langs->trans('TicketPublicPleaseBeAccuratelyDescribe'))).'</div>';
565 565
 		}
566 566
 		include_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
 				$maxfilesizearray = getMaxFileSizeArray();
627 627
 				$maxmin = $maxfilesizearray['maxmin'];
628 628
 				if ($maxmin > 0) {
629
-					$out .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">';	// MAX_FILE_SIZE must precede the field type=file
629
+					$out .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.($maxmin * 1024).'">'; // MAX_FILE_SIZE must precede the field type=file
630 630
 				}
631 631
 				$out .= '<input type="file" class="flat" id="addedfile" name="addedfile" value="'.$langs->trans("Upload").'" />';
632 632
 				$out .= ' ';
@@ -817,7 +817,7 @@  discard block
 block discarded – undo
817 817
 					'@phan-var-force ModeleCaptcha $captchaobj';
818 818
 
819 819
 					if (is_object($captchaobj) && method_exists($captchaobj, 'getCaptchaCodeForForm')) {
820
-						print $captchaobj->getCaptchaCodeForForm('');  // @phan-suppress-current-line PhanUndeclaredMethod
820
+						print $captchaobj->getCaptchaCodeForForm(''); // @phan-suppress-current-line PhanUndeclaredMethod
821 821
 					} else {
822 822
 						print 'Error, the captcha handler '.get_class($captchaobj).' does not have any method getCaptchaCodeForForm()';
823 823
 					}
@@ -884,7 +884,7 @@  discard block
 block discarded – undo
884 884
 		$selected = is_array($selected) ? $selected : (!empty($selected) ? explode(',', $selected) : array());
885 885
 		$ticketstat = new Ticket($this->db);
886 886
 
887
-		dol_syslog(get_class($this) . "::select_types_tickets " . implode(';', $selected) . ", " . $htmlname . ", " . $filtertype . ", " . $format . ", " . $multiselect, LOG_DEBUG);
887
+		dol_syslog(get_class($this)."::select_types_tickets ".implode(';', $selected).", ".$htmlname.", ".$filtertype.", ".$format.", ".$multiselect, LOG_DEBUG);
888 888
 
889 889
 		$filterarray = array();
890 890
 
@@ -992,7 +992,7 @@  discard block
 block discarded – undo
992 992
 		$publicgroups = ($filtertype == 'public=1' || $filtertype == '(public:=:1)');
993 993
 
994 994
 		$ticketstat = new Ticket($this->db);
995
-		$ticketstat->loadCacheCategoriesTickets($publicgroups ? 1 : -1);	// get list of active ticket groups
995
+		$ticketstat->loadCacheCategoriesTickets($publicgroups ? 1 : -1); // get list of active ticket groups
996 996
 
997 997
 		if ($use_multilevel <= 0) {	// Only one combo list to select the group of ticket (default)
998 998
 			print '<select id="select'.$htmlname.'" class="flat minwidth100'.($morecss ? ' '.$morecss : '').'" name="'.$htmlname.'">';
@@ -1165,7 +1165,7 @@  discard block
 block discarded – undo
1165 1165
 			}
1166 1166
 			$stringtoprint .= '</select>&nbsp;';
1167 1167
 
1168
-			$levelid = 1;	// The first combobox
1168
+			$levelid = 1; // The first combobox
1169 1169
 			while ($levelid <= $use_multilevel) {	// Loop to take the child of the combo
1170 1170
 				$tabscript = array();
1171 1171
 				$stringtoprint .= '<select id="'.$htmlname.'_child_'.$levelid.'" class="maxwidth500 minwidth400 groupticketchild" child_id="'.$levelid.'">';
@@ -1242,7 +1242,7 @@  discard block
 block discarded – undo
1242 1242
 				$stringtoprint .= '</select>';
1243 1243
 
1244 1244
 				$stringtoprint .= '<script nonce="'.getNonce().'">';
1245
-				$stringtoprint .= 'arraynotparents = '.json_encode($arraycodenotparent).';';	// when the last visible combo list is number x, this is the array of group
1245
+				$stringtoprint .= 'arraynotparents = '.json_encode($arraycodenotparent).';'; // when the last visible combo list is number x, this is the array of group
1246 1246
 				$stringtoprint .= 'if (arraynotparents.includes($("#'.$htmlname.($levelid > 1 ? '_child_'.($levelid - 1) : '').'").val())){
1247 1247
 					console.log("'.$htmlname.'_child_'.$levelid.'")
1248 1248
 					if($("#'.$htmlname.'_child_'.$levelid.'").val() == "" && ($("#'.$htmlname.'_child_'.$levelid.'").attr("child_id")>'.$child_id.')){
@@ -1682,7 +1682,7 @@  discard block
 block discarded – undo
1682 1682
 			}
1683 1683
 			print '<tr class="email_line"><td>'.$langs->trans('Subject').'</td>';
1684 1684
 			if (empty($topic)) {
1685
-				print '<td><input type="text" class="text minwidth500" name="subject" value="['.getDolGlobalString('MAIN_INFO_SOCIETE_NOM').' - '.$langs->trans("Ticket").' '.$ticketstat->ref.'] '. $ticketstat->subject .'" />';
1685
+				print '<td><input type="text" class="text minwidth500" name="subject" value="['.getDolGlobalString('MAIN_INFO_SOCIETE_NOM').' - '.$langs->trans("Ticket").' '.$ticketstat->ref.'] '.$ticketstat->subject.'" />';
1686 1686
 			} else {
1687 1687
 				print '<td><input type="text" class="text minwidth500" name="subject" value="'.make_substitutions($topic, $this->substit).'" />';
1688 1688
 			}
Please login to merge, or discard this patch.