Fix Remove syntax warnings
This commit is contained in:
parent
750443040a
commit
40269c3c70
@ -80,7 +80,7 @@
|
|||||||
* <dol_print_customer_points> Print customer points
|
* <dol_print_customer_points> Print customer points
|
||||||
* <dol_print_order_points> Print number of points for this order
|
* <dol_print_order_points> Print number of points for this order
|
||||||
*
|
*
|
||||||
* Conditional code at line start (if…then Print)
|
* Conditional code at line start (if<EFBFBD>then Print)
|
||||||
* <dol_print_if_customer> Print the line IF a customer is affected to the order
|
* <dol_print_if_customer> Print the line IF a customer is affected to the order
|
||||||
* <dol_print_if_vendor> Print the line IF a vendor is affected to the order
|
* <dol_print_if_vendor> Print the line IF a vendor is affected to the order
|
||||||
* <dol_print_if_happy_hour> Print the line IF Happy Hour
|
* <dol_print_if_happy_hour> Print the line IF Happy Hour
|
||||||
@ -520,8 +520,12 @@ class dolReceiptPrinter extends Escpos
|
|||||||
$ret = $this->InitPrinter($printerid);
|
$ret = $this->InitPrinter($printerid);
|
||||||
if ($ret>0) {
|
if ($ret>0) {
|
||||||
setEventMessages($this->error, $this->errors, 'errors');
|
setEventMessages($this->error, $this->errors, 'errors');
|
||||||
} else {
|
}
|
||||||
for ($line=0; $line < count($vals); $line++) {
|
else
|
||||||
|
{
|
||||||
|
$nboflines = count($vals);
|
||||||
|
for ($line=0; $line < $nboflines; $line++)
|
||||||
|
{
|
||||||
switch ($vals[$line]['tag']) {
|
switch ($vals[$line]['tag']) {
|
||||||
case 'DOL_ALIGN_CENTER':
|
case 'DOL_ALIGN_CENTER':
|
||||||
$this->printer->setJustification(Escpos::JUSTIFY_CENTER);
|
$this->printer->setJustification(Escpos::JUSTIFY_CENTER);
|
||||||
|
|||||||
@ -940,7 +940,7 @@ function confirmConstantAction(action, url, code, input, box, entity, yesButton,
|
|||||||
function copyToClipboard(text,text2)
|
function copyToClipboard(text,text2)
|
||||||
{
|
{
|
||||||
text = text.replace(/<br>/g,"\n");
|
text = text.replace(/<br>/g,"\n");
|
||||||
var newElem = "<textarea id=\"coords\" style=\"border: none; width: 90%; height: 120px;\">"+text+"</textarea><br><br>"+text2;
|
var newElem = '<textarea id="coords" style="border: none; width: 90%; height: 120px;">'+text+'</textarea><br><br>'+text2;
|
||||||
$("#dialog").html(newElem);
|
$("#dialog").html(newElem);
|
||||||
$("#dialog").dialog();
|
$("#dialog").dialog();
|
||||||
$("#coords").select();
|
$("#coords").select();
|
||||||
|
|||||||
@ -151,8 +151,8 @@
|
|||||||
(1) ou n'indiquez que les renseignements concernant l'organisme
|
(1) ou n'indiquez que les renseignements concernant l'organisme
|
||||||
<br>
|
<br>
|
||||||
(2) dons effectués par les entreprises
|
(2) dons effectués par les entreprises
|
||||||
</div>
|
|
||||||
</font>
|
</font>
|
||||||
|
</div>
|
||||||
<div style="height: 297mm; width: 210mm; page-break-inside: avoid;">
|
<div style="height: 297mm; width: 210mm; page-break-inside: avoid;">
|
||||||
<table width="100%" border="1" cellspacing="0" cellpadding="1" bgcolor="#000000">
|
<table width="100%" border="1" cellspacing="0" cellpadding="1" bgcolor="#000000">
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@ -65,8 +65,8 @@ else
|
|||||||
|
|
||||||
<h1>
|
<h1>
|
||||||
This page is a sample of page using tables. It is designed to make test with<br>
|
This page is a sample of page using tables. It is designed to make test with<br>
|
||||||
- css (add parameter &theme=newtheme to test another theme or edit css of current theme)<br>
|
- css (add parameter &theme=newtheme to test another theme or edit css of current theme)<br>
|
||||||
- jmobile (add parameter <a href="<?php echo $_SERVER["PHP_SELF"].'?dol_use_jmobile=1&dol_optimize_smallscreen=1'; ?>">dol_use_jmobile=1&dol_optimize_smallscreen=1</a> to enable view with jmobile)<br>
|
- jmobile (add parameter <a href="<?php echo $_SERVER["PHP_SELF"].'?dol_use_jmobile=1&dol_optimize_smallscreen=1'; ?>">dol_use_jmobile=1&dol_optimize_smallscreen=1</a> to enable view with jmobile)<br>
|
||||||
- no javascript / usage for bind people (add parameter <a href="<?php echo $_SERVER["PHP_SELF"].'?nojs=1'; ?>">nojs=1</a> to force disable javascript)<br>
|
- no javascript / usage for bind people (add parameter <a href="<?php echo $_SERVER["PHP_SELF"].'?nojs=1'; ?>">nojs=1</a> to force disable javascript)<br>
|
||||||
- dataTables<br>
|
- dataTables<br>
|
||||||
- tablednd<br>
|
- tablednd<br>
|
||||||
@ -181,8 +181,8 @@ if (! empty($moreforfilter))
|
|||||||
print '</div>';
|
print '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<table class="tagtable liste'.($moreforfilter?" listwithfilterbefore":"").'" id="tablelines3">';
|
|
||||||
?>
|
?>
|
||||||
|
<table class="tagtable liste<?php echo $moreforfilter?" listwithfilterbefore":""; ?>" id="tablelines3">
|
||||||
<tr class="liste_titre">
|
<tr class="liste_titre">
|
||||||
<?php print getTitleFieldOfList($langs->trans('title1'),0,$_SERVER["PHP_SELF"],'aaa','','','align="left"',$sortfield,$sortorder); ?>
|
<?php print getTitleFieldOfList($langs->trans('title1'),0,$_SERVER["PHP_SELF"],'aaa','','','align="left"',$sortfield,$sortorder); ?>
|
||||||
<?php print getTitleFieldOfList($langs->trans('title2'),0,$_SERVER["PHP_SELF"],'bbb','','','align="right"',$sortfield,$sortorder); ?>
|
<?php print getTitleFieldOfList($langs->trans('title2'),0,$_SERVER["PHP_SELF"],'bbb','','','align="right"',$sortfield,$sortorder); ?>
|
||||||
@ -190,9 +190,7 @@ print '<table class="tagtable liste'.($moreforfilter?" listwithfilterbefore":"")
|
|||||||
</tr>
|
</tr>
|
||||||
<tr class="pair"><td><?php echo $productspecimen->getNomUrl(1); ?></td><td align="right">b1</td><td class="tdlineupdown" align="left">c1</td></tr>
|
<tr class="pair"><td><?php echo $productspecimen->getNomUrl(1); ?></td><td align="right">b1</td><td class="tdlineupdown" align="left">c1</td></tr>
|
||||||
<tr class="impair"><td>a2</td><td align="right">b2</td><td class="tdlineupdown" align="left">c2</td></tr>
|
<tr class="impair"><td>a2</td><td align="right">b2</td><td class="tdlineupdown" align="left">c2</td></tr>
|
||||||
<?php
|
</table>
|
||||||
print '</table>';
|
|
||||||
?>
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -16,8 +16,8 @@ llxHeader();
|
|||||||
|
|
||||||
<h1>
|
<h1>
|
||||||
This page is a sample of page using Dolibarr HTML widget methods. It is designed to make test with<br>
|
This page is a sample of page using Dolibarr HTML widget methods. It is designed to make test with<br>
|
||||||
- css (add parameter &theme=newtheme to test another theme or edit css of current theme)<br>
|
- css (add parameter &theme=newtheme to test another theme or edit css of current theme)<br>
|
||||||
- jmobile (add parameter <a href="<?php echo $_SERVER["PHP_SELF"].'?dol_use_jmobile=1&dol_optimize_smallscreen=1'; ?>">dol_use_jmobile=1&dol_optimize_smallscreen=1</a> to enable view with jmobile)<br>
|
- jmobile (add parameter <a href="<?php echo $_SERVER["PHP_SELF"].'?dol_use_jmobile=1&dol_optimize_smallscreen=1'; ?>">dol_use_jmobile=1&dol_optimize_smallscreen=1</a> to enable view with jmobile)<br>
|
||||||
- no javascript / usage for bind people (add parameter <a href="<?php echo $_SERVER["PHP_SELF"].'?nojs=1'; ?>">nojs=1</a> to force disable javascript)<br>
|
- no javascript / usage for bind people (add parameter <a href="<?php echo $_SERVER["PHP_SELF"].'?nojs=1'; ?>">nojs=1</a> to force disable javascript)<br>
|
||||||
</h1>
|
</h1>
|
||||||
<br>
|
<br>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user