@@ -374,7 +374,7 @@ |
||
| 374 | 374 | echo <<<EOF |
| 375 | 375 | <script type="text/javascript"> |
| 376 | 376 | (function(){var d=document.domain;while (true){try{var A=window.parent.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;try{document.domain=d;}catch (e){break;}}})(); |
| 377 | -EOF; |
|
| 377 | +eof; |
|
| 378 | 378 | |
| 379 | 379 | if ($errorNumber && $errorNumber != 201) { |
| 380 | 380 | $fileUrl = ""; |
@@ -1213,7 +1213,7 @@ |
||
| 1213 | 1213 | |
| 1214 | 1214 | // TODO prendre en compte le filtre |
| 1215 | 1215 | foreach($pragmas as $var) { |
| 1216 | - $sql = "PRAGMA $var"; |
|
| 1216 | + $sql = "pragma $var"; |
|
| 1217 | 1217 | $resql=$this->query($sql); |
| 1218 | 1218 | if ($resql) |
| 1219 | 1219 | { |
@@ -993,7 +993,7 @@ |
||
| 993 | 993 | $message = $langs->transnoentities("ExpenseReportPaidMessage", $object->ref, $destinataire->getFullName($langs), $expediteur->getFullName($langs), $link); |
| 994 | 994 | |
| 995 | 995 | // CONTENT |
| 996 | - $message = "Bonjour {$destinataire->firstname},\n\n"; |
|
| 996 | + $message = "bonjour {$destinataire->firstname},\n\n"; |
|
| 997 | 997 | $message.= "Votre note de frais \"{$object->ref}\" vient d'être payée.\n"; |
| 998 | 998 | $message.= "- Payeur : {$expediteur->firstname} {$expediteur->lastname}\n"; |
| 999 | 999 | $message.= "- Lien : {$dolibarr_main_url_root}/expensereport/card.php?id={$object->id}\n\n"; |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | llxHeader('',$langs->trans('SalariesSetup')); |
| 77 | 77 | |
| 78 | 78 | $form = new Form($db); |
| 79 | -if (! empty($conf->accounting->enabled)) $formaccounting = New FormAccounting($db); |
|
| 79 | +if (! empty($conf->accounting->enabled)) $formaccounting = new FormAccounting($db); |
|
| 80 | 80 | |
| 81 | 81 | $linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToModuleList").'</a>'; |
| 82 | 82 | print load_fiche_titre($langs->trans('SalariesSetup'),$linkback,'title_setup'); |
@@ -415,7 +415,7 @@ |
||
| 415 | 415 | { |
| 416 | 416 | while($obj = $this->db->fetch_object($resql)) |
| 417 | 417 | { |
| 418 | - $line = New LoanSchedule($this->db); |
|
| 418 | + $line = new LoanSchedule($this->db); |
|
| 419 | 419 | $line->id = $obj->rowid; |
| 420 | 420 | $line->ref = $obj->rowid; |
| 421 | 421 | |
@@ -146,11 +146,11 @@ |
||
| 146 | 146 | print '</tr>'; |
| 147 | 147 | |
| 148 | 148 | print '<tr class="liste_titre">'; |
| 149 | -Print '<th width="10%" align="center"> Echéance </th>'; |
|
| 150 | -Print '<th width="10%" align="center"> Date </th>'; |
|
| 151 | -Print '<th width="10%" align="center"> Montant </th>'; |
|
| 152 | -Print '<th width="20%" align="center"> Intérêts </th>'; |
|
| 153 | -Print '<th width="40%" align="center"> Capital restant du </th>'; |
|
| 149 | +print '<th width="10%" align="center"> Echéance </th>'; |
|
| 150 | +print '<th width="10%" align="center"> Date </th>'; |
|
| 151 | +print '<th width="10%" align="center"> Montant </th>'; |
|
| 152 | +print '<th width="20%" align="center"> Intérêts </th>'; |
|
| 153 | +print '<th width="40%" align="center"> Capital restant du </th>'; |
|
| 154 | 154 | print '</tr>'; |
| 155 | 155 | |
| 156 | 156 | if ($object->nbterm > 0 && count($echeance->lines)==0) |
@@ -238,7 +238,7 @@ |
||
| 238 | 238 | |
| 239 | 239 | $form = new Form($db); |
| 240 | 240 | $formproject = new FormProjets($db); |
| 241 | -if (! empty($conf->accounting->enabled)) $formaccounting = New FormAccounting($db); |
|
| 241 | +if (! empty($conf->accounting->enabled)) $formaccounting = new FormAccounting($db); |
|
| 242 | 242 | |
| 243 | 243 | $title = $langs->trans("Loan") . ' - ' . $langs->trans("Card"); |
| 244 | 244 | $help_url = 'EN:Module_Loan|FR:Module_Emprunt'; |
@@ -218,7 +218,7 @@ |
||
| 218 | 218 | llxHeader("",$langs->trans("VariousPayment")); |
| 219 | 219 | |
| 220 | 220 | $form = new Form($db); |
| 221 | -if (! empty($conf->accounting->enabled)) $formaccounting = New FormAccounting($db); |
|
| 221 | +if (! empty($conf->accounting->enabled)) $formaccounting = new FormAccounting($db); |
|
| 222 | 222 | if (! empty($conf->projet->enabled)) $formproject = new FormProjets($db); |
| 223 | 223 | |
| 224 | 224 | if ($id) |
@@ -280,7 +280,7 @@ |
||
| 280 | 280 | $form = new Form($db); |
| 281 | 281 | $formbank = new FormBank($db); |
| 282 | 282 | $formcompany = new FormCompany($db); |
| 283 | -if (! empty($conf->accounting->enabled)) $formaccounting = New FormAccounting($db); |
|
| 283 | +if (! empty($conf->accounting->enabled)) $formaccounting = new FormAccounting($db); |
|
| 284 | 284 | |
| 285 | 285 | $countrynotdefined=$langs->trans("ErrorSetACountryFirst").' ('.$langs->trans("SeeAbove").')'; |
| 286 | 286 | |