|
402 | 402 | print '<font size="+2">'.$totalresellers.'</font>'; |
403 | 403 | print '</td></tr>'; |
404 | 404 | print '<tr class="oddeven"><td class="wordwrap wordbreak">'; |
405 | | -$texthelp = $langs->trans("NbOfInstancesActivePayingDesc"); |
| 405 | + |
| 406 | +$transkeyforactivepayinghelp = "NbOfInstancesActivePayingDesc"; |
| 407 | +$transkeyfornbinstanceactivepaying = "NbOfInstancesActivePaying"; |
| 408 | +$transkeyfornbinstanceactivepayingall = "NbOfInstancesActivePayingAll"; |
| 409 | +if (getDolGlobalString('SELLYOURSAAS_ENABLE_FREE_PAYMENT_MODE')) { |
| 410 | + $transkeyfornbinstanceactivepaying = "NbOfInstancesActiveFree"; |
| 411 | + $transkeyfornbinstanceactivepayingall = "NbOfInstancesActiveFreeAll"; |
| 412 | +} |
| 413 | + |
| 414 | +$texthelp = $langs->trans($transkeyforactivepayinghelp); |
406 | 415 | $stringlistofinstancespayingwithoutrecinvoice = ''; |
407 | 416 | $nboflistofinstancespayingwithoutrecinvoice = 0; |
408 | 417 | if (!empty($rep) && is_array($rep['listofinstancespayingwithoutrecinvoice'])) { |
|
412 | 421 | $stringlistofinstancespayingwithoutrecinvoice .= ($stringlistofinstancespayingwithoutrecinvoice ? ', ' : '').$arrayofcontract['thirdparty_name'].' - '.$arrayofcontract['contract_ref']."\n"; |
413 | 422 | } |
414 | 423 | } |
415 | | -print $form->textwithpicto($langs->trans("NbOfInstancesActivePaying"), $texthelp); |
| 424 | +print $form->textwithpicto($langs->trans($transkeyfornbinstanceactivepaying), $texthelp); |
416 | 425 | if ($mode == 'refreshstats') { // Info not saved into session (too large), so we show it only after a refresh |
417 | 426 | $texthelp = $langs->trans("NbOfInstancesActivePayingWithoutRecInvoice", $nboflistofinstancespayingwithoutrecinvoice); |
418 | 427 | if ($stringlistofinstancespayingwithoutrecinvoice) { |
419 | 428 | $texthelp .= '<br>'; |
420 | 429 | $texthelp .= $stringlistofinstancespayingwithoutrecinvoice; |
421 | 430 | } |
422 | 431 | } |
423 | | -print ' | '.$form->textwithpicto($langs->trans("NbOfInstancesActivePayingAll"), $texthelp).' | '.$langs->trans("NbOfActiveInstances").' '; |
| 432 | +print ' | '.$form->textwithpicto($langs->trans($transkeyfornbinstanceactivepayingall), $texthelp).' | '.$langs->trans("NbOfActiveInstances").' '; |
424 | 433 | print '</td><td align="right">'; |
425 | 434 | if (! empty($_SESSION['stats_totalusers'])) { |
426 | 435 | print '<font size="+2">'.$totalinstancespaying.' | '.$totalinstancespayingall.' | '.$totalinstances.'</font>'; |
|
501 | 510 | print '</div></div></div>'; |
502 | 511 |
|
503 | 512 | //$servicetouse='old'; |
504 | | -$servicetouse=strtolower($conf->global->SELLYOURSAAS_NAME); |
| 513 | +$servicetouse=strtolower(getDolGlobalString('SELLYOURSAAS_NAME')); |
505 | 514 | $regs = array(); |
506 | 515 |
|
507 | 516 | // array(array(0=>'labelxA',1=>yA1,...,n=>yAn), array('labelxB',yB1,...yBn)) |
|
0 commit comments