Skip to content

Commit d3c0106

Browse files
author
vvs2012
committed
git-svn-id: https://svn.code.sf.net/p/web-erp/code/trunk@4836 09516a42-71f9-43be-811f-9b821cf0d246
1 parent 3d781dd commit d3c0106

File tree

135 files changed

+646
-645
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+646
-645
lines changed

AddCustomerTypeNotes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
</tr>
199199
<tr>
200200
<td>'. _('Date').':</td>
201-
<td><input type="text" name="date" class=date alt="'.$_SESSION['DefaultDateFormat'].'" value="'. $_POST['date']. '" size="10" maxlength="10" /></td>
201+
<td><input type="text" name="date" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" value="'. $_POST['date']. '" size="10" maxlength="10" /></td>
202202
</tr>
203203
<tr>
204204
<td>'. _('Priority').':</td>

Areas.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
echo '<table class="selection">
214214
<tr>
215215
<td>' . _('Area Code') . ':</td>
216-
<td><input tabindex="1" ' . (in_array('AreaCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="AreaCode" value="' . $_POST['AreaCode'] . '" size="3" maxlength=3 /></td>
216+
<td><input tabindex="1" ' . (in_array('AreaCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="AreaCode" value="' . $_POST['AreaCode'] . '" size="3" maxlength="3"/></td>
217217
</tr>';
218218
}
219219

AuditTrail.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
echo '<table class="selection">';
4040

4141
echo '<tr><td>'. _('From Date') . ' ' . $_SESSION['DefaultDateFormat'] .'</td>
42-
<td><input tabindex="1" type="text" class=date alt="'.$_SESSION['DefaultDateFormat'].'" name="FromDate" size="11" maxlength="10" value="' .$_POST['FromDate']. '" /></td></tr>';
42+
<td><input tabindex="1" type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="FromDate" size="11" maxlength="10" value="' .$_POST['FromDate']. '" /></td></tr>';
4343
echo '<tr><td>'. _('To Date') . ' ' . $_SESSION['DefaultDateFormat'] .'</td>
44-
<td><input tabindex="2" type="text" class=date alt="'.$_SESSION['DefaultDateFormat'].'" name="ToDate" size="11" maxlength="10" value="' . $_POST['ToDate'] . '" /></td></tr>';
44+
<td><input tabindex="2" type="text" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" name="ToDate" size="11" maxlength="10" value="' . $_POST['ToDate'] . '" /></td></tr>';
4545

4646
// Show user selections
4747
echo '<tr><td>'. _('User ID'). '</td>
@@ -159,7 +159,7 @@ function DeleteQueryInfo($SQLString) {
159159
}
160160
$result = DB_query($sql,$db);
161161

162-
echo '<table border=0 width="98%" class=selection>';
162+
echo '<table border="0" width="98%" class="selection">';
163163
echo '<tr><th>' . _('Date/Time') . '</th>
164164
<th>' . _('User') . '</th>
165165
<th>' . _('Type') . '</th>
@@ -206,7 +206,7 @@ function DeleteQueryInfo($SQLString) {
206206
echo '</tr>';
207207
}
208208
}
209-
echo '<tr bgcolor=black> <td colspan="6"></td> </tr>';
209+
echo '<tr bgcolor="black"> <td colspan="6"></td> </tr>';
210210
}
211211
unset($_SESSION['SQLString']);
212212
}

BOMs.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ function DisplayBOMItems($UltimateParent, $Parent, $Component,$Level, $db) {
418418
break;
419419
}
420420

421-
echo '<br /><div class=centre><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Select a Different BOM') . '</a></div><br />';
421+
echo '<br /><div class="centre"><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('Select a Different BOM') . '</a></div><br />';
422422
echo '<table class="selection">';
423423
// Display Manufatured Parent Items
424424
$sql = "SELECT bom.parent,
@@ -834,7 +834,7 @@ function DisplayBOMItems($UltimateParent, $Parent, $Component,$Level, $db) {
834834
'<div class="page_help_text">'. _('Select a manufactured part') . ' (' . _('or Assembly or Kit part') . ') ' . _('to maintain the bill of material for using the options below') . '<br /><font size="1">' . _('Parts must be defined in the stock item entry') . '/' . _('modification screen as manufactured') . ', ' . _('kits or assemblies to be available for construction of a bill of material') .'</div>'. '</font>
835835
<br />
836836
<table class="selection" cellpadding="3" colspan="4">
837-
<tr><td><font size=1>' . _('Enter text extracts in the') . ' <b>' . _('description') . '</b>:</font></td>
837+
<tr><td><font size="1">' . _('Enter text extracts in the') . ' <b>' . _('description') . '</b>:</font></td>
838838
<td><input tabindex="1" type="text" name="Keywords" size="20" maxlength="25" /></td>
839839
<td><font size="3"><b>' . _('OR') . '</b></font></td>
840840
<td><font size="1">' . _('Enter extract of the') . ' <b>' . _('Stock Code') . '</b>:</font></td>

BankAccounts.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
} elseif ($myrow['invoice']==2) {
214214
$DefaultBankAccount=_('Currency Default');
215215
}
216-
printf('<td>%s<br /><font size=2>%s</font></td>
216+
printf('<td>%s<br /><font size="2">%s</font></td>
217217
<td>%s</td>
218218
<td>%s</td>
219219
<td>%s</td>
@@ -324,9 +324,9 @@
324324
}
325325

326326
echo '<tr><td>' . _('Bank Account Name') . ': </td>
327-
<td><input tabindex="2" ' . (in_array('AccountName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountName" value="' . $_POST['BankAccountName'] . '" size=40 maxlength=50 /></td></tr>
327+
<td><input tabindex="2" ' . (in_array('AccountName',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountName" value="' . $_POST['BankAccountName'] . '" size="40" maxlength="50" /></td></tr>
328328
<tr><td>' . _('Bank Account Code') . ': </td>
329-
<td><input tabindex="3" ' . (in_array('AccountCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountCode" value="' . $_POST['BankAccountCode'] . '" size=40 maxlength=50 /></td></tr>
329+
<td><input tabindex="3" ' . (in_array('AccountCode',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountCode" value="' . $_POST['BankAccountCode'] . '" size="40" maxlength="50" /></td></tr>
330330
<tr><td>' . _('Bank Account Number') . ': </td>
331331
<td><input tabindex="3" ' . (in_array('AccountNumber',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="BankAccountNumber" value="' . $_POST['BankAccountNumber'] . '" size="40" maxlength="50" /></td></tr>
332332
<tr><td>' . _('Bank Address') . ': </td>

BankMatching.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282

8383
echo '<div class="page_help_text">' . _('Use this screen to match webERP Receipts and Payments to your Bank Statement. Check your bank statement and click the check-box when you find the matching transaction.') . '</div><br />';
8484

85-
echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>';
85+
echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">';
8686
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
8787

8888
echo '<input type="hidden" name="Type" value="' . $Type . '" />';

COGSGLPostings.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@
258258
FROM areas";
259259
$result = DB_query($sql,$db);
260260

261-
echo '<table class=selection>
261+
echo '<table class="selection">
262262
<tr><td>' . _('Area') . ':</td>
263-
<td><select tabindex=1 name="Area">
263+
<td><select tabindex="1" name="Area">
264264
<option value="AN">' . _('Any Other') . '</option>';
265265

266266
while ($myrow = DB_fetch_array($result)) {
@@ -281,7 +281,7 @@
281281
</tr>
282282
<tr>
283283
<td>' . _('Stock Category') . ':</td>
284-
<td><select tabindex=2 name="StkCat">
284+
<td><select tabindex="2" name="StkCat">
285285
<option value="ANY">' . _('Any Other') . '</option>';
286286

287287
while ($myrow = DB_fetch_array($result)) {
@@ -303,7 +303,7 @@
303303
</tr>
304304
<tr>
305305
<td>' . _('Sales Type') . ' / ' . _('Price List') . ':</td>
306-
<td><select tabindex=3 name="SalesType">
306+
<td><select tabindex="3" name="SalesType">
307307
<option value="AN">' . _('Any Other') . '</option>';
308308

309309
while ($myrow = DB_fetch_array($result)) {

CreditItemsControlled.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
echo '<br /><a href="' . $rootpath . '/' . $CreditLink . '">'. _('Back to Credit Note Entry'). '</a>';
7777

78-
echo '<br /><font size=2><b>'. _('Credit of Controlled Item'). ' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription . ' '. _('from') .' '. $_SESSION['CreditItems']->CustomerName . '</b></font></div>';
78+
echo '<br /><font size="2"<b>'. _('Credit of Controlled Item'). ' ' . $LineItem->StockID . ' - ' . $LineItem->ItemDescription . ' '. _('from') .' '. $_SESSION['CreditItems']->CustomerName . '</b></font></div>';
7979

8080
/** vars needed by InputSerialItem : **/
8181
$LocationOut = $_SESSION['CreditItems']->Location;

CreditStatus.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
echo '<td><input tabindex="3" type="checkbox" checked name="DisallowInvoices" /></td>
249249
</tr>';
250250
} else {
251-
echo '<td><input tabindex=3 type="checkbox" name="DisallowInvoices" /></td>
251+
echo '<td><input tabindex="3" type="checkbox" name="DisallowInvoices" /></td>
252252
</tr>';
253253
}
254254
echo '</table>

Credit_Invoice.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,9 @@
262262

263263
echo '<table cellpadding="2" colspan="7" class="selection"><tr>';
264264
echo '<tr><th colspan="13">';
265-
echo '<div class="centre"><font color=blue size=4><b>' . _('Credit Invoice') . ' ' . $_SESSION['ProcessingCredit'] . '</b>
266-
<b>'.' - ' . $_SESSION['CreditItems']->CustomerName . '</b></font>
267-
<font size=3 color=blue> - ' . _('Credit Note amounts stated in') . ' ' . $_SESSION['CreditItems']->DefaultCurrency . '</div></font>';
265+
echo '<div class="centre"><b>' . _('Credit Invoice') . ' ' . $_SESSION['ProcessingCredit'] . '</b>
266+
<b>'.' - ' . $_SESSION['CreditItems']->CustomerName . '</b>
267+
- ' . _('Credit Note amounts stated in') . ' ' . $_SESSION['CreditItems']->DefaultCurrency . '</div>';
268268
echo '</th></tr>';
269269
echo '<th>' . _('Item Code') . '</th>
270270
<th>' . _('Item Description') . '</th>
@@ -315,19 +315,19 @@
315315

316316
if ($LnItm->Controlled==1){
317317

318-
echo '<td><input type="hidden" name="Quantity_' . $LnItm->LineNumber .'" value=' . $LnItm->QtyDispatched . '><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LnItm->LineNumber . '&CreditInvoice=Yes">' . $LnItm->QtyDispatched . '</a></td>';
318+
echo '<td><input type="hidden" name="Quantity_' . $LnItm->LineNumber .'" value="' . $LnItm->QtyDispatched . '"><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LnItm->LineNumber . '&CreditInvoice=Yes">' . $LnItm->QtyDispatched . '</a></td>';
319319

320320
} else {
321321

322-
echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Quantity_' . $LnItm->LineNumber .'" maxlength=6 size=6 value=' . $LnItm->QtyDispatched . '></td>';
322+
echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Quantity_' . $LnItm->LineNumber .'" maxlength="6" size="6" value="' . $LnItm->QtyDispatched . '"></td>';
323323

324324
}
325325

326326
$DisplayLineTotal = locale_number_format($LineTotal,$_SESSION['CreditItems']->CurrDecimalPlaces);
327327

328328
$j++;
329-
echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Price_' . $LnItm->LineNumber . '" maxlength=12 size=6 value=' . $LnItm->Price . '></td>
330-
<td><input tabindex=' . $j . ' type="text" class="number" name="Discount_' . $LnItm->LineNumber . '" maxlength=3 size=3 value=' . ($LnItm->DiscountPercent * 100) . '></td>
329+
echo '<td><input tabindex=' . $j . ' type="text" class="number" name="Price_' . $LnItm->LineNumber . '" maxlength="12" size="6" value="' . $LnItm->Price . '"></td>
330+
<td><input tabindex=' . $j . ' type="text" class="number" name="Discount_' . $LnItm->LineNumber . '" maxlength="3" size="3" value="' . ($LnItm->DiscountPercent * 100) . '"></td>
331331
<td class="number">' . $DisplayLineTotal . '</td>';
332332

333333
/*Need to list the taxes applicable to this line */
@@ -355,7 +355,7 @@
355355
}
356356
if (!isset($_POST['ProcessCredit'])) {
357357
echo '<input type="text" class="number" name="' . $LnItm->LineNumber . $Tax->TaxCalculationOrder .
358-
'_TaxRate" maxlength=4 size=4 value="' . $Tax->TaxRate*100 . '">';
358+
'_TaxRate" maxlength="4" size="4" value="' . $Tax->TaxRate*100 . '">';
359359
}
360360
$i++;
361361
if ($Tax->TaxOnTax ==1){
@@ -380,7 +380,7 @@
380380
<td class="number">' . $DisplayGrossLineTotal . '</td>
381381
<td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?Delete=' . $LnItm->LineNumber . '" onclick="return confirm(\'' . _('Are you sure you wish to delete this item from the credit?') . '\');">' . _('Delete') . '</a></td></tr>';
382382

383-
echo '<tr' . $RowStarter . '><td colspan="12"><textarea tabindex=' . $j .' name="Narrative_' . $LnItm->LineNumber . '" cols=100% rows=1>' . $LnItm->Narrative . '</textarea><br /><hr></td></tr>';
383+
echo '<tr' . $RowStarter . '><td colspan="12"><textarea tabindex=' . $j .' name="Narrative_' . $LnItm->LineNumber . '" cols="100%" rows="1">' . $LnItm->Narrative . '</textarea><br /><hr></td></tr>';
384384
$j++;
385385
}
386386
} /*end foreach loop displaying the invoice lines to credit */
@@ -875,7 +875,7 @@
875875

876876
$StkMoveNo = DB_Last_Insert_ID($db,'stockmoves','stkmoveno');
877877
/*Insert the StockSerialMovements and update the StockSerialItems for controlled items*/
878-
//echo "<div align=left><pre>"; var_dump($CreditLine); echo "</pre> </div>";
878+
//echo "<div align="left"><pre>"; var_dump($CreditLine); echo "</pre> </div>";
879879
if ($CreditLine->Controlled ==1){
880880
foreach($CreditLine->SerialItems as $Item){
881881
/*We need to add the StockSerialItem record and The StockSerialMoves as well */

Currencies.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231

232232
while ($myrow = DB_fetch_array($result)) {
233233
if ($myrow[1]==$FunctionalCurrency){
234-
echo '<tr bgcolor=#FFbbbb>';
234+
echo '<tr bgcolor="#FFbbbb">';
235235
} elseif ($k==1){
236236
echo '<tr class="EvenTableRows">';
237237
$k=0;

CustEDISetup.php

+16-16
Original file line numberDiff line numberDiff line change
@@ -97,41 +97,41 @@
9797
<td>' . $myrow['name'] . '</td>
9898
</tr>';
9999
echo '<tr><td>'._('Enable Sending of EDI Invoices').':</td>
100-
<td><select tabindex=1 name="EDIInvoices">';
100+
<td><select tabindex="1" name="EDIInvoices">';
101101

102102
if ($myrow['ediinvoices']==0){
103103

104-
echo '<option selected value=0>'._('Disabled') . '</option>';
105-
echo '<option value=1>'._('Enabled'). '</option>';
104+
echo '<option selected value="0">'._('Disabled') . '</option>';
105+
echo '<option value="1">'._('Enabled'). '</option>';
106106
} else {
107-
echo '<option value=0>'._('Disabled') . '</option>';
108-
echo '<option selected value=1>'._('Enabled') . '</option>';
107+
echo '<option value="0">'._('Disabled') . '</option>';
108+
echo '<option selected value="1">'._('Enabled') . '</option>';
109109
}
110110

111111
echo '</select><a href="' . $rootpath . '/EDIMessageFormat.php?MessageType=INVOIC&PartnerCode=' . $_SESSION['CustomerID'] . '">'._('Create') . '/' . _('Edit Invoice Message Format').'</a></td>
112112
</tr>';
113113

114114
echo '<tr><td>'._('Enable Receiving of EDI Orders') . ':</td>
115-
<td><select tabindex=2 name="EDIOrders">';
115+
<td><select tabindex="2" name="EDIOrders">';
116116

117117
if ($myrow['ediorders']==0){
118118

119-
echo '<option selected value=0>'._('Disabled') . '</option>';
120-
echo '<option value=1>'._('Enabled') . '</option>';
119+
echo '<option selected value="0">'._('Disabled') . '</option>';
120+
echo '<option value="1">'._('Enabled') . '</option>';
121121
} else {
122-
echo '<option value=0>'._('Disabled') . '</option>';
123-
echo '<option selected value=1>'._('Enabled') . '</option>';
122+
echo '<option value="0">'._('Disabled') . '</option>';
123+
echo '<option selected value="1">'._('Enabled') . '</option>';
124124
}
125125

126126
echo '</select></td>
127127
</tr>';
128128

129129
echo '<tr><td>'._('Customer EDI Reference') . ':</td>
130130
<td><input ' . (in_array('EDIReference',$Errors) ? 'class="inputerror"' : '' ) .
131-
' tabindex=3 type="text" name="EDIReference" size=20 maxlength=20 value="' . $myrow['edireference'] . '"></td></tr>';
131+
' tabindex=3 type="text" name="EDIReference" size="20" maxlength="20" value="' . $myrow['edireference'] . '"></td></tr>';
132132

133133
echo '<tr><td>'._('EDI Communication Method') . ':</td>
134-
<td><select tabindex=4 name="EDITransport" >';
134+
<td><select tabindex="4" name="EDITransport" >';
135135

136136
if ($myrow['editransport']=='email'){
137137
echo '<option selected value="email">'._('Email Attachments') . '</option>';
@@ -145,18 +145,18 @@
145145

146146
echo '<tr><td>'._('FTP Server or Email Address') . ':</td>
147147
<td><input ' . (in_array('EDIAddress',$Errors) ? 'class="inputerror"' : '' ) .
148-
' tabindex=5 type="text" name="EDIAddress" size=42 maxlength=40 value="' . $myrow['ediaddress'] . '"></td></tr>';
148+
' tabindex=5 type="text" name="EDIAddress" size="42" maxlength="40" value="' . $myrow['ediaddress'] . '"></td></tr>';
149149

150150
if ($myrow['editransport']=='ftp'){
151151

152152
echo '<tr><td>'._('FTP Server User Name') . ':</td>
153-
<td><input tabindex=6 type="text" name="EDIServerUser" size=20 maxlength=20 value="' . $myrow['ediserveruser'] . '" /></td></tr>';
153+
<td><input tabindex="6" type="text" name="EDIServerUser" size="20" maxlength="20" value="' . $myrow['ediserveruser'] . '" /></td></tr>';
154154
echo '<tr><td>'._('FTP Server Password') . ':</td>
155-
<td><input tabindex=7 type="text" name="EDIServerPwd" size=20 maxlength=20 value="' . $myrow['ediserverpwd'] . '" /></td></tr>';
155+
<td><input tabindex="7" type="text" name="EDIServerPwd" size="20" maxlength="20" value="' . $myrow['ediserverpwd'] . '" /></td></tr>';
156156
}
157157

158158
echo '</table>
159-
<br /><div class="centre"><input tabindex=8 type="submit" name="submit" value="' ._('Update EDI Configuration'). '" /></div>
159+
<br /><div class="centre"><input tabindex="8" type="submit" name="submit" value="' ._('Update EDI Configuration'). '" /></div>
160160
</form>';
161161

162162
include('includes/footer.inc');

CustomerAllocations.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@
336336

337337
if (isset($_POST['AllocTrans'])) {
338338
// Page called with trans number
339-
echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>';
339+
echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">';
340340
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
341341
echo '<input type="hidden" name="AllocTrans" value="' . $_POST['AllocTrans'] . '" />';
342342

CustomerBranches.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -659,14 +659,14 @@
659659
if (!isset($_POST['EstDeliveryDays'])) {
660660
$_POST['EstDeliveryDays']=0;
661661
}
662-
echo '<td><input ' .(in_array('EstDeliveryDays',$Errors) ? 'class="inputerror"' : '' ) .' tabindex="11" type="text" class=number name="EstDeliveryDays" size="4" maxlength="2" value='. $_POST['EstDeliveryDays'].' /></td>
662+
echo '<td><input ' .(in_array('EstDeliveryDays',$Errors) ? 'class="inputerror"' : '' ) .' tabindex="11" type="text" class="number" name="EstDeliveryDays" size="4" maxlength="2" value="'. $_POST['EstDeliveryDays'].'" /></td>
663663
</tr>
664664
<tr>
665665
<td>'._('Forward Date After (day in month)').':</td>';
666666
if (!isset($_POST['FwdDate'])) {
667667
$_POST['FwdDate']=0;
668668
}
669-
echo '<td><input ' .(in_array('FwdDate',$Errors) ? 'class="inputerror"' : '' ) .' tabindex="12" type="text" class=number name="FwdDate" size="4" maxlength="2" value='. $_POST['FwdDate'].' /></td>
669+
echo '<td><input ' .(in_array('FwdDate',$Errors) ? 'class="inputerror"' : '' ) .' tabindex="12" type="text" class="number" name="FwdDate" size="4" maxlength="2" value="'. $_POST['FwdDate'].'" /></td>
670670
</tr>';
671671

672672

@@ -814,11 +814,11 @@
814814
<td>'._('Transactions on this branch') . ':</td>
815815
<td><select tabindex="20" name="DisableTrans">';
816816
if ($_POST['DisableTrans']==0){
817-
echo '<option selected value=0>' . _('Enabled') . '</option>
818-
<option value=1>' . _('Disabled') . '</option>';
817+
echo '<option selected value="0">' . _('Enabled') . '</option>
818+
<option value="1">' . _('Disabled') . '</option>';
819819
} else {
820-
echo '<option selected value=1>' . _('Disabled') . '</option>
821-
<option value=0>' . _('Enabled') . '</option>';
820+
echo '<option selected value="1">' . _('Disabled') . '</option>
821+
<option value="0">' . _('Enabled') . '</option>';
822822
}
823823

824824
echo ' </select></td></tr>';

CustomerInquiry.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@
135135

136136
echo '<table class="selection" width="70%">
137137
<tr>
138-
<th width=20%>' . _('Total Balance') . '</th>
139-
<th width=20%>' . _('Current') . '</th>
140-
<th width=20%>' . _('Now Due') . '</th>
141-
<th width=20%>' . $_SESSION['PastDueDays1'] . '-' . $_SESSION['PastDueDays2'] . ' ' . _('Days Overdue') . '</th>
142-
<th width=20%>' . _('Over') . ' ' . $_SESSION['PastDueDays2'] . ' ' . _('Days Overdue') . '</th></tr>';
138+
<th width="20%">' . _('Total Balance') . '</th>
139+
<th width="20%">' . _('Current') . '</th>
140+
<th width="20%">' . _('Now Due') . '</th>
141+
<th width="20%">' . $_SESSION['PastDueDays1'] . '-' . $_SESSION['PastDueDays2'] . ' ' . _('Days Overdue') . '</th>
142+
<th width="20%">' . _('Over') . ' ' . $_SESSION['PastDueDays2'] . ' ' . _('Days Overdue') . '</th></tr>';
143143

144144
echo '<tr>
145145
<td class="number">' . locale_number_format($CustomerRecord['balance'],$CustomerRecord['decimalplaces']) . '</td>
@@ -152,7 +152,7 @@
152152

153153
echo '<br />
154154
<div class="centre">
155-
<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>
155+
<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">
156156
<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'
157157
. _('Show all transactions after') . ': <input tabindex="1" type="text" class="date" alt="' .$_SESSION['DefaultDateFormat']. '" id="datepicker" name="TransAfterDate" value="' . $_POST['TransAfterDate'] . '" maxlength="10" size="12" />
158158
<input tabindex="2" type="submit" name="Refresh Inquiry" value="' . _('Refresh Inquiry') . '" />

0 commit comments

Comments
 (0)