|
122 | 122 | } |
123 | 123 | $arrayofsuffixfound[$tmpservice] = $suffix; |
124 | 124 | } |
| 125 | +if (empty($arrayofsuffixfound)) { |
| 126 | + $arrayofsuffixfound[] = ''; |
| 127 | +} |
125 | 128 | // $arrayofsuffixfound should be now array('mysaasdomain'=>'', mysaasdomainalt'=>'_MYSAASDOMAINALT_COM', ...) |
126 | 129 | //var_dump($arrayofsuffixfound); |
127 | 130 |
|
|
312 | 315 | print '<table class="noborder centpercent">'; |
313 | 316 | print '<tr class="liste_titre">'; |
314 | 317 | print '<td class="titlefieldmiddle">'.$langs->trans("Parameters").'</td><td></td>'; |
315 | | -print '<td><div class="float">'.$langs->trans("Examples").'</div><div class="floatright"><input type="submit" class="button buttongen" value="'.$langs->trans("Save").'"></div></td>'; |
| 318 | +print '<td><div class="float">'.$langs->trans("Examples").'</div><div class="floatright">'; |
| 319 | +print '</div></td>'; |
316 | 320 | print "</tr>\n"; |
317 | 321 |
|
318 | 322 | print '<tr class="oddeven"><td>'.$langs->trans("SellYourSaasStatusUrl").'</td>'; |
|
371 | 375 | print '<tr class="oddeven"><td><label for="logo">'.$service.' - '.$langs->trans("LogoWhiteBackground").' (png,jpg)</label></td><td>'; |
372 | 376 | print '<table width="100%" class="nobordernopadding"><tr class="nocellnopadd"><td valign="middle" class="nocellnopadd">'; |
373 | 377 | print '<input type="file" class="flat class=minwidth200" name="logo'.$suffix.'" id="logo'.$suffix.'">'; |
374 | | - print '</td><td class="nocellnopadd" valign="middle">'; |
| 378 | + print '</td><td class="nocellnopadd valignmiddle">'; |
375 | 379 | $constname = 'SELLYOURSAAS_LOGO_MINI'.$suffix; |
376 | 380 | print '<!-- constname = '.$constname.' -->'; |
377 | 381 | if (getDolGlobalString($constname)) { |
378 | 382 | print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=removelogo&suffix='.urlencode($suffix).'">'.img_delete($langs->trans("Delete")).'</a>'; |
379 | 383 | if (file_exists($conf->mycompany->dir_output.'/logos/thumbs/' . getDolGlobalString($constname))) { |
380 | | - print ' '; |
| 384 | + print '</td></td>'; |
381 | 385 | print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=mycompany&file='.urlencode('logos/thumbs/' . getDolGlobalString($constname)).'">'; |
382 | 386 | } |
383 | 387 | } else { |
|
391 | 395 | print '<tr class="oddeven"><td><label for="logo">'.$service.' - '.$langs->trans("LogoBlackBackground").' (png,jpg)</label></td><td>'; |
392 | 396 | print '<table width="100%" class="nobordernopadding"><tr class="nocellnopadd"><td valign="middle" class="nocellnopadd">'; |
393 | 397 | print '<input type="file" class="flat class=minwidth200" name="logoblack'.$suffix.'" id="logoblack'.$suffix.'">'; |
394 | | - print '</td><td class="nocellnopadd" valign="middle">'; |
| 398 | + print '</td><td class="nocellnopadd valignmiddle">'; |
395 | 399 | $constname = 'SELLYOURSAAS_LOGO_MINI_BLACK'.$suffix; |
396 | 400 | if (getDolGlobalString($constname)) { |
397 | 401 | print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=removelogoblack&suffix='.urlencode($suffix).'">'.img_delete($langs->trans("Delete")).'</a>'; |
398 | 402 | if (file_exists($conf->mycompany->dir_output.'/logos/thumbs/' . getDolGlobalString($constname))) { |
399 | | - print ' '; |
| 403 | + print '</td></td>'; |
400 | 404 | print '<img src="'.DOL_URL_ROOT.'/viewimage.php?modulepart=mycompany&file='.urlencode('logos/thumbs/' . getDolGlobalString($constname)).'">'; |
401 | 405 | } |
402 | 406 | } else { |
|
521 | 525 |
|
522 | 526 | print '<tr class="liste_titre">'; |
523 | 527 | print '<td>'.$langs->trans("SupportFeatures").'</td><td></td>'; |
524 | | -print '<td></td>'; |
| 528 | +print '<td>'; |
| 529 | +print '</td>'; |
525 | 530 | print "</tr>\n"; |
526 | 531 |
|
527 | 532 | foreach ($arrayofsuffixfound as $service => $suffix) { |
|
559 | 564 | print '</table>'; |
560 | 565 | print '</div>'; |
561 | 566 |
|
562 | | -print '</table>'; |
563 | | -print '</div>'; |
| 567 | +print '<center><input type="submit" class="button buttongen" value="'.$langs->trans("Save").'"></center>'; |
564 | 568 |
|
565 | 569 | print "</form>\n"; |
566 | 570 |
|
|
0 commit comments