File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed
core/modules/security/captcha Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 120120 closedir ($ handle );
121121 }
122122}
123- asort ($ arrayhandler );
124-
123+ dol_sort_array ($ arrayhandler, ' position ' );
124+ var_dump ( $ arrayhandler );
125125
126126
127127print '<form action=" ' .$ _SERVER ["PHP_SELF " ].'" method="POST"> ' ;
134134
135135print '<br> ' ;
136136
137+ print '<div class="div-table-responsive"> ' ;
137138print '<table class="noborder centpercent"> ' ;
138139print '<tr class="liste_titre"> ' ;
139140print '<td> ' .$ langs ->trans ("Captcha " ).'</td> ' ;
223224print '</td></tr> ' ;
224225
225226print '</table> ' ;
227+ print '</div> ' ;
228+
226229// Set if a captcha is used on at least one place
227230$ showavailablecaptcha = 0 ;
228231if (getDolGlobalString ('MAIN_SECURITY_ENABLECAPTCHA ' )) {
249252 print '<br> ' ;
250253
251254 // List of all available captcha
255+ print '<div class="div-table-responsive"> ' ;
252256 print '<table class="noborder centpercent"> ' ;
253257 print '<tr class="liste_titre"> ' ;
254258 print '<td colspan="2"> ' .$ langs ->trans ("Captcha " ).'</td> ' ;
289293 }
290294
291295 print '</table> ' ;
292-
296+ print ' </div> ' ;
293297 //print $form->buttonsSaveCancel("Modify", '');
294298}
295299
Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ class modCaptchaStandard extends ModeleCaptcha
4343 */
4444 public $ picto = 'fa-shield-alt ' ;
4545
46+ /**
47+ * @var int
48+ */
49+ public $ position = 10 ;
50+
51+
4652 /**
4753 * Constructor
4854 *
Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ abstract class ModeleCaptcha
4141 */
4242 public $ version ;
4343
44+ /**
45+ * @var int
46+ */
47+ public $ position = 50 ;
48+
4449 /**
4550 * @var string
4651 */
You can’t perform that action at this time.
0 commit comments