|
From: <dai...@us...> - 2012-01-22 07:33:57
|
Revision: 4831
http://web-erp.svn.sourceforge.net/web-erp/?rev=4831&view=rev
Author: daintree
Date: 2012-01-22 07:33:48 +0000 (Sun, 22 Jan 2012)
Log Message:
-----------
Modified Paths:
--------------
trunk/CustomerTypes.php
trunk/DeliveryDetails.php
trunk/EmailCustTrans.php
trunk/ExchangeRateTrend.php
trunk/FixedAssetTransfer.php
trunk/GLAccountReport.php
trunk/GoodsReceived.php
trunk/MRPReschedules.php
trunk/MRPShortages.php
trunk/PDFChequeListing.php
trunk/PDFOrderStatus.php
trunk/PDFPriceList.php
trunk/PDFRemittanceAdvice.php
trunk/PO_AuthorisationLevels.php
trunk/PO_Header.php
trunk/PO_PDFPurchOrder.php
trunk/PcAuthorizeExpenses.php
trunk/PcExpenses.php
trunk/PcExpensesTypeTab.php
trunk/PcReportTab.php
trunk/PcTypeTabs.php
trunk/SelectAsset.php
trunk/SelectCreditItems.php
trunk/SelectGLAccount.php
trunk/SelectProduct.php
Modified: trunk/CustomerTypes.php
===================================================================
--- trunk/CustomerTypes.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/CustomerTypes.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -239,8 +239,8 @@
$_POST['typeid'] = $myrow['typeid'];
$_POST['typename'] = $myrow['typename'];
- echo '<input type="hidden" name="SelectedType" value="' . $SelectedType . '">';
- echo '<input type="hidden" name="typeid" value=' . $_POST['typeid'] . '">';
+ echo '<input type="hidden" name="SelectedType" value="' . $SelectedType . '" />';
+ echo '<input type="hidden" name="typeid" value=' . $_POST['typeid'] . '" />';
echo '<table class="selection">';
// We dont allow the user to change an existing type code
@@ -256,12 +256,12 @@
$_POST['typename']='';
}
echo '<tr><td>' . _('Type Name') . ':</td>
- <td><input type="Text" name="typename" value="' . $_POST['typename'] . '"></td></tr>';
+ <td><input type="Text" name="typename" value="' . $_POST['typename'] . '" /></td></tr>';
echo '</td></tr>
</table>'; // close main table
- echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"></div>';
+ echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '" /></div>';
echo '</form>';
Modified: trunk/DeliveryDetails.php
===================================================================
--- trunk/DeliveryDetails.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/DeliveryDetails.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -996,7 +996,7 @@
// The estimated Dispatch date or Delivery date for this order
echo '<tr>
<td>'. _('Estimated Delivery Date') .':</td>
- <td><input class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" size=15 maxlength=14 name="DeliveryDate" value="' . $_SESSION['Items'.$identifier]->DeliveryDate . '"></td>
+ <td><input class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" size=15 maxlength=14 name="DeliveryDate" value="' . $_SESSION['Items'.$identifier]->DeliveryDate . '" /></td>
</tr>';
// The date when a quote was issued to the customer
echo '<tr>
@@ -1034,14 +1034,14 @@
</tr>
<tr>
<td>'. _('Contact Phone Number') .':</td>
- <td><input type="text" size=25 maxlength=25 name="PhoneNo" value="' . $_SESSION['Items'.$identifier]->PhoneNo . '"></td>
+ <td><input type="text" size=25 maxlength=25 name="PhoneNo" value="' . $_SESSION['Items'.$identifier]->PhoneNo . '" /></td>
</tr>
<tr>
- <td>' . _('Contact Email') . ':</td><td><input type="text" size=40 maxlength=38 name="Email" value="' . $_SESSION['Items'.$identifier]->Email . '"></td>
+ <td>' . _('Contact Email') . ':</td><td><input type="text" size=40 maxlength=38 name="Email" value="' . $_SESSION['Items'.$identifier]->Email . '" /></td>
</tr>
<tr>
<td>'. _('Customer Reference') .':</td>
- <td><input type="text" size=25 maxlength=25 name="CustRef" value="' . $_SESSION['Items'.$identifier]->CustRef . '"></td>
+ <td><input type="text" size=25 maxlength=25 name="CustRef" value="' . $_SESSION['Items'.$identifier]->CustRef . '" /></td>
</tr>
<tr>
<td>'. _('Comments') .':</td>
@@ -1072,7 +1072,7 @@
echo '<option selected value=1>' . _('No') . '</option>';
echo '</select> '. _('Last printed') .': ' . ConvertSQLDate($_SESSION['DatePackingSlipPrinted']) . '</td></tr>';
} else {
- echo '<input type="hidden" name="ReprintPackingSlip" value=0>';
+ echo '<input type="hidden" name="ReprintPackingSlip" value=0 />';
}
echo '<tr>
@@ -1122,13 +1122,13 @@
echo '</table>';
-echo '<br /><div class="centre"><input type="submit" name="BackToLineDetails" value="' . _('Modify Order Lines') . '"><br />';
+echo '<br /><div class="centre"><input type="submit" name="BackToLineDetails" value="' . _('Modify Order Lines') . '" /><br />';
if ($_SESSION['ExistingOrder'.$identifier]==0){
- echo '<br /><br /><input type="submit" name="ProcessOrder" value="' . _('Place Order') . '">';
- echo '<br /><br /><input type="submit" name="MakeRecurringOrder" value="' . _('Create Recurring Order') . '">';
+ echo '<br /><br /><input type="submit" name="ProcessOrder" value="' . _('Place Order') . '" />';
+ echo '<br /><br /><input type="submit" name="MakeRecurringOrder" value="' . _('Create Recurring Order') . '" />';
} else {
- echo '<br /><input type="submit" name="ProcessOrder" value="' . _('Commit Order Changes') . '">';
+ echo '<br /><input type="submit" name="ProcessOrder" value="' . _('Commit Order Changes') . '" />';
}
echo '</div></form>';
Modified: trunk/EmailCustTrans.php
===================================================================
--- trunk/EmailCustTrans.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/EmailCustTrans.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -38,8 +38,8 @@
echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method=post>';
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
-echo '<input type="hidden" name="TransNo" value="' . $_GET['FromTransNo'] . '">';
-echo '<input type="hidden" name="InvOrCredit" value="' . $_GET['InvOrCredit'] . '">';
+echo '<input type="hidden" name="TransNo" value="' . $_GET['FromTransNo'] . '" />';
+echo '<input type="hidden" name="InvOrCredit" value="' . $_GET['InvOrCredit'] . '" />';
echo '<br /><table>';
@@ -61,10 +61,10 @@
}
echo '<tr><td>' . _('Email') . ' ' . $_GET['InvOrCredit'] . ' ' . _('number') . ' ' . $_GET['FromTransNo'] . ' ' . _('to') . ':</td>
- <td><input type="text" name="EmailAddr" maxlength=60 size=60 value="' . $EmailAddress . '"></td>
+ <td><input type="text" name="EmailAddr" maxlength=60 size=60 value="' . $EmailAddress . '" /></td>
</table>';
-echo '<br /><div class="centre"><input type="submit" name="DoIt" value="' . _('OK') . '">';
+echo '<br /><div class="centre"><input type="submit" name="DoIt" value="' . _('OK') . '" />';
echo '</div></form>';
include ('includes/footer.inc');
?>
\ No newline at end of file
Modified: trunk/ExchangeRateTrend.php
===================================================================
--- trunk/ExchangeRateTrend.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/ExchangeRateTrend.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -48,7 +48,7 @@
echo '</table>'; /*close off the table in the third column */
- echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"></div>';
+ echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '" /></div>';
echo '</form>';
// **************
@@ -59,9 +59,9 @@
$graph = $CurrencyToShow. '/' . $FunctionalCurrency . $graph;
$image = 'http://www.x-rates.com/d/' . $graph;
- echo '<p></div><table class=selection>';
- echo '<tr><th><div class="centre"><font size=4 color=BLUE><b><U>' . $FunctionalCurrency . ' / ' . $CurrencyToShow . '</b></U></font></th></tr>';
- echo '<tr><td><img src=' . $image . ' alt="' ._('Trend Currently Unavailable') . '"></td></tr>';
+ echo '<p></div><table class="selection">';
+ echo '<tr><th><div class="centre"><b><U>' . $FunctionalCurrency . ' / ' . $CurrencyToShow . '</b></U></th></tr>';
+ echo '<tr><td><img src=' . $image . ' alt="' ._('Trend Currently Unavailable') . '" /></td></tr>';
echo '</table>';
Modified: trunk/FixedAssetTransfer.php
===================================================================
--- trunk/FixedAssetTransfer.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/FixedAssetTransfer.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -51,25 +51,25 @@
if (isset($_POST['Keywords'])) {
- echo '<input type="text" name="Keywords" value="' . trim($_POST['Keywords'],'%') . '" size=20 maxlength=25>';
+ echo '<input type="text" name="Keywords" value="' . trim($_POST['Keywords'],'%') . '" size="20" maxlength="25" />';
} else {
- echo '<input type="text" name="Keywords" size=20 maxlength=25>';
+ echo '<input type="text" name="Keywords" size="20" maxlength="25" />';
}
echo '</td></tr><tr><td></td>';
- echo '<td><font size 3><b>' . _('OR').' ' . '</b></font>' . _('Enter partial') .' <b>'. _('Asset Code') . '</b>:</td>';
+ echo '<td><b>' . _('OR').' ' . '</b>' . _('Enter partial') .' <b>'. _('Asset Code') . '</b>:</td>';
echo '<td>';
if (isset($_POST['AssetID'])) {
- echo '<input type="text" name="AssetID" value="'. trim($_POST['AssetID'],'%') . '" size=15 maxlength=18>';
+ echo '<input type="text" name="AssetID" value="'. trim($_POST['AssetID'],'%') . '" size="15" maxlength="18" />';
} else {
- echo '<input type="text" name="AssetID" size=15 maxlength=18>';
+ echo '<input type="text" name="AssetID" size="15" maxlength="18" />';
}
echo '</td></tr></table><br />';
- echo '<div class="centre"><input type="submit" name="Search" value="'. _('Search Now') . '"></div></form><br />';
+ echo '<div class="centre"><input type="submit" name="Search" value="'. _('Search Now') . '" /></div></form><br />';
}
if (isset($_POST['Search'])) {
@@ -104,23 +104,26 @@
AND fixedassets.assetid " . LIKE . "'".$_POST['AssetID']."'
AND fixedassets.serialno " . LIKE . "'".$_POST['SerialNumber']."'";
$Result=DB_query($sql, $db);
- echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID .'" method=post><table class=selection>';
+ echo '<form action="'. htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">
+ <table class="selection">';
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
- echo '<tr><th>'._('Asset ID') . '</th>
+ echo '<tr>
+ <th>'._('Asset ID') . '</th>
<th>' . _('Description') . '</th>
<th>' . _('Serial number') . '</th>
<th>' . _('Purchase Cost') . '</th>
<th>' . _('Total Depreciation') . '</th>
<th>' . _('Current Location') . '</th>
<th>' . _('Move To :') . '</th>
- </tr>';
+ </tr>';
$locationsql="SELECT locationid, locationdescription from fixedassetlocations";
$LocationResult=DB_query($locationsql, $db);
while ($myrow=DB_fetch_array($Result)) {
- echo '<tr><td>'.$myrow['assetid'].'</td>
+ echo '<tr>
+ <td>'.$myrow['assetid'].'</td>
<td>'.$myrow['description'].'</td>
<td>'.$myrow['serialno'].'</td>
<td class="number">'.locale_number_format($myrow['cost'],$_SESSION['CompanyRecord']['decimalplaces']).'</td>
@@ -137,11 +140,11 @@
}
DB_data_seek($LocationResult,0);
echo '</select></td>';
- echo '<input type="hidden" name="AssetCat" value="' . $_POST['AssetCat'].'"';
- echo '<input type="hidden" name="Keywords" value="' . $_POST['Keywords'].'"';
- echo '<input type="hidden" name="AssetID" value="' . $_POST['AssetID'].'"';
- echo '<input type="hidden" name="Search" value="' . $_POST['Search'].'"';
- echo '<td><input type="submit" name="Move'.$myrow['assetid'].'" value="Move"></td>';
+ echo '<input type="hidden" name="AssetCat" value="' . $_POST['AssetCat'].'" />';
+ echo '<input type="hidden" name="Keywords" value="' . $_POST['Keywords'].'" />';
+ echo '<input type="hidden" name="AssetID" value="' . $_POST['AssetID'].'" />';
+ echo '<input type="hidden" name="Search" value="' . $_POST['Search'].'" />';
+ echo '<td><input type="submit" name="Move'.$myrow['assetid'].'" value="Move" /></td>';
echo '</tr>';
}
echo '</table></form>';
Modified: trunk/GLAccountReport.php
===================================================================
--- trunk/GLAccountReport.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/GLAccountReport.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -283,10 +283,12 @@
echo '</select></td></tr>';
// End select tag
- echo '</table><p>
+ echo '</table>
+ <br />
<div class="centre">
- <input type="submit" name="RunReport" value="' ._('Run Report'). '"></div>
- </form>';
+ <input type="submit" name="RunReport" value="' ._('Run Report'). '" />
+ </div>
+ </form>';
include ('includes/footer.inc');
exit;
Modified: trunk/GoodsReceived.php
===================================================================
--- trunk/GoodsReceived.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/GoodsReceived.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -84,7 +84,7 @@
<tr>
<td>'. _('Date Goods/Service Received'). ':</td>
<td><input type="text" class="date" alt="'. $_SESSION['DefaultDateFormat'] .'" maxlength="10" size="10" onChange="return isDate(this, this.value, '."'".
- $_SESSION['DefaultDateFormat']."'".')" name="DefaultReceivedDate" value="' . $_POST['DefaultReceivedDate'] . '"></td>
+ $_SESSION['DefaultDateFormat']."'".')" name="DefaultReceivedDate" value="' . $_POST['DefaultReceivedDate'] . '" /></td>
</tr>
</table>
<br />';
@@ -246,20 +246,20 @@
if ($_SESSION['PO'.$identifier]->SomethingReceived()==0 AND isset($_POST['ProcessGoodsReceived'])){ /*Then dont bother proceeding cos nothing to do ! */
prnMsg(_('There is nothing to process') . '. ' . _('Please enter valid quantities greater than zero'),'warn');
- echo '<div class="centre"><input type="submit" name="Update" Value=' . _('Update') . '></div>';
+ echo '<div class="centre"><input type="submit" name="Update" value="' . _('Update') . '" /></div>';
} elseif ($NegativesFound){
prnMsg(_('Negative stocks would result by processing a negative delivery - quantities must be changed or the stock quantity of the item going negative corrected before this delivery will be processed.'),'error');
- echo '<div class="centre"><input type="submit" name=Update Value=' . _('Update') . '>';
+ echo '<div class="centre"><input type="submit" name="Update" value="' . _('Update') . '" />';
}elseif ($DeliveryQuantityTooLarge==1 AND isset($_POST['ProcessGoodsReceived'])){
prnMsg(_('Entered quantities cannot be greater than the quantity entered on the purchase invoice including the allowed over-receive percentage'). ' ' . '(' . $_SESSION['OverReceiveProportion'] .'%)','error');
echo '<br />';
prnMsg(_('Modify the ordered items on the purchase invoice if you wish to increase the quantities'),'info');
- echo '<div class="centre"><input type="submit" name=Update Value=' . _('Update') . '>';
+ echo '<div class="centre"><input type="submit" name="Update" value="' . _('Update') . '" />';
} elseif (isset($_POST['ProcessGoodsReceived']) AND $_SESSION['PO'.$identifier]->SomethingReceived()==1 AND $InputError == false){
Modified: trunk/MRPReschedules.php
===================================================================
--- trunk/MRPReschedules.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/MRPReschedules.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -149,7 +149,7 @@
</table>
<br />
<div class="centre">
- <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '">
+ <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" />
</div>';
include('includes/footer.inc');
Modified: trunk/MRPShortages.php
===================================================================
--- trunk/MRPShortages.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/MRPShortages.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -299,7 +299,7 @@
echo '</table>
<br />
<div class="centre">
- <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '">
+ <input type="submit" name="PrintPDF" value="' . _('Print PDF') . '" />
</div>';
include('includes/footer.inc');
Modified: trunk/PDFChequeListing.php
===================================================================
--- trunk/PDFChequeListing.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/PDFChequeListing.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -39,7 +39,7 @@
<td><input type="text" name="FromDate" maxlength="10" size="10" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" value="' . Date($_SESSION['DefaultDateFormat']) . '" /></td>
</tr>';
echo '<tr><td>' . _('Enter the date to which cheques are to be listed') . ':</td>
- <td><input type="text" name="ToDate" maxlength="10" size="10" class=date alt="' . $_SESSION['DefaultDateFormat'] . '" value="' . Date($_SESSION['DefaultDateFormat']) . '"></td>
+ <td><input type="text" name="ToDate" maxlength="10" size="10" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" value="' . Date($_SESSION['DefaultDateFormat']) . '" /></td>
</tr>';
echo '<tr><td>' . _('Bank Account') . '</td><td>';
@@ -66,7 +66,7 @@
</table>
<br />
<div class="centre">
- <input type="submit" name="Go" value="' . _('Create PDF') . '">
+ <input type="submit" name="Go" value="' . _('Create PDF') . '" />
</div>';
include('includes/footer.inc');
Modified: trunk/PDFOrderStatus.php
===================================================================
--- trunk/PDFOrderStatus.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/PDFOrderStatus.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -37,7 +37,7 @@
<td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="FromDate" maxlength=10 size=10 value="' . Date($_SESSION['DefaultDateFormat'], Mktime(0,0,0,Date('m'),Date('d')-1,Date('y'))) . '" /></td>
</tr>';
echo '<tr><td>' . _('Enter the date to which orders are to be listed') . ':</td><td>';
- echo '<input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="ToDate" maxlength=10 size=10 value="' . Date($_SESSION['DefaultDateFormat']) . '"></td></tr>';
+ echo '<input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="ToDate" maxlength=10 size=10 value="' . Date($_SESSION['DefaultDateFormat']) . '" /></td></tr>';
echo '<tr><td>' . _('Inventory Category') . '</td><td>';
$sql = "SELECT categorydescription, categoryid FROM stockcategory WHERE stocktype<>'D' AND stocktype<>'L'";
@@ -70,7 +70,7 @@
</table>
<br />
<div class="centre">
- <input type="submit" name="Go" value="' . _('Create PDF') . '">
+ <input type="submit" name="Go" value="' . _('Create PDF') . '" />
</div>';
include('includes/footer.inc');
Modified: trunk/PDFPriceList.php
===================================================================
--- trunk/PDFPriceList.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/PDFPriceList.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -306,7 +306,7 @@
echo '<td><input type="text" size="11" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="EffectiveDate" value="' . Date($_SESSION['DefaultDateFormat']) . '" />';
echo '</td></tr>';
- echo '</table><br /><div class="centre"><input type="submit" Name="PrintPDF" Value="'. _('Print PDF'). '"></div>';
+ echo '</table><br /><div class="centre"><input type="submit" Name="PrintPDF" Value="'. _('Print PDF'). '" /></div>';
}
include('includes/footer.inc');
Modified: trunk/PDFRemittanceAdvice.php
===================================================================
--- trunk/PDFRemittanceAdvice.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/PDFRemittanceAdvice.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -167,7 +167,7 @@
echo '</table>
<div class="centre">
- <input type="submit" Name="PrintPDF" Value="' . _('Print PDF') . '">
+ <input type="submit" Name="PrintPDF" Value="' . _('Print PDF') . '" />
</div>';
include ('includes/footer.inc');
Modified: trunk/PO_AuthorisationLevels.php
===================================================================
--- trunk/PO_AuthorisationLevels.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/PO_AuthorisationLevels.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -209,7 +209,7 @@
<td>'._('Currency').'</td>
<td>' . $myrow['currency'] . '</td>
</tr>';
- echo '<input type="hidden" name="CurrCode" value="'.$Currency.'"';
+ echo '<input type="hidden" name="CurrCode" value="'.$Currency.'" />';
} else {
echo '<tr><td>'._('Currency').'</td><td><select name="CurrCode">';
$currencysql="SELECT currabrev,currency FROM currencies";
@@ -224,28 +224,44 @@
echo '</select></td></tr>';
}
-echo '<tr><td>'._('User can create orders').'</td>';
+echo '<tr>
+ <td>'._('User can create orders').'</td>';
if ($CanCreate==1) {
- echo '<td><input type="checkbox" name="CanCreate"></td></tr>';
+ echo '<td><input type="checkbox" name="CanCreate"></td>
+ </tr>';
} else {
- echo '<td><input type="checkbox" checked name="CanCreate"></td></tr>';
+ echo '<td><input type="checkbox" checked name="CanCreate"></td>
+ </tr>';
}
-echo '<tr><td>'._('User can release invoices').'</td>';
+echo '<tr>
+ <td>'._('User can release invoices').'</td>';
if ($OffHold==1) {
- echo '<td><input type="checkbox" name="OffHold"></td></tr>';
+ echo '<td><input type="checkbox" name="OffHold"></td>
+ </tr>';
} else {
- echo '<td><input type="checkbox" checked name="OffHold"></td></tr>';
+ echo '<td><input type="checkbox" checked name="OffHold"></td>
+ </tr>';
}
-echo '<tr><td>'._('User can authorise orders up to :').'</td>';
-echo '<td><input type=input name="AuthLevel" size=11 class="number" value="' . locale_number_format($AuthLevel,$CurrDecimalPlaces) . '"></td</tr>';
-echo '</table>';
+echo '<tr>
+ <td>'._('User can authorise orders up to :').'</td>';
+echo '<td><input type="text" name="AuthLevel" size="11" class="number" value="' . locale_number_format($AuthLevel,$CurrDecimalPlaces) . '" /></td>
+ </tr>
+ </table>';
if (isset($_GET['Edit'])) {
- echo '<br /><div class="centre"><input type="submit" name="Update" value="'._('Update Information').'"></div></form>';
+ echo '<br />
+ <div class="centre">
+ <input type="submit" name="Update" value="'._('Update Information').'" />
+ </div>
+ </form>';
} else {
- echo '<br /><div class="centre"><input type="submit" name="Submit" value="'._('Enter Information').'"></div></form>';
+ echo '<br />
+ <div class="centre">
+ <input type="submit" name="Submit" value="'._('Enter Information').'" />
+ </div>
+ </form>';
}
include('includes/footer.inc');
?>
\ No newline at end of file
Modified: trunk/PO_Header.php
===================================================================
--- trunk/PO_Header.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/PO_Header.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -755,8 +755,7 @@
}
echo '<tr><td>' . _('Initiated By') . ':</td>
- <td><input type="hidden" name="Initiator" size="11" maxlength="10" value="' .
- $_POST['Initiator'] . '" />' . $_POST['Initiator'] . '</td></tr>';
+ <td><input type="hidden" name="Initiator" size="11" maxlength="10" value="' . $_POST['Initiator'] . '" />' . $_POST['Initiator'] . '</td></tr>';
echo '<tr><td>' . _('Requisition Ref') . ':</td>
<td><input type="text" name="Requisition" size="16" maxlength="15" value="' . $_POST['Requisition'] . '" /></td></tr>';
@@ -782,7 +781,7 @@
<option selected value="0">' . _('No') . '</option>
<option value="1">' . _('Yes') . '</option>
</select></td>';
- echo '<td><input type="submit" name="AllowRePrint" value="Update"></td></tr>';
+ echo '<td><input type="submit" name="AllowRePrint" value="Update" /></td></tr>';
} elseif ($Printed) {
echo '<tr><td colspan=2><a target="_blank" href="' . $rootpath . '/PO_PDFPurchOrder.php?OrderNo=' . $_SESSION['ExistingOrder'] . '&identifier='.$identifier. '">' . _('Reprint Now') . '</a></td></tr>';
}
@@ -798,7 +797,7 @@
$_SESSION['PO'.$identifier]->OrderNo . '&identifier=' . $identifier . '">'._('Receive this order').'</a></td></tr>';
}
if ($_SESSION['PO'.$identifier]->Status==''){ //then its a new order
- echo '<input type="hidden" name="Status" value="NewOrder">';
+ echo '<input type="hidden" name="Status" value="NewOrder" />';
echo '<tr><td>' . _('New Purchase Order') . '</td></tr>';
} else {
echo '<tr><td>' . _('Status') . ' : </td>
@@ -845,7 +844,7 @@
</tr>';
echo '<input type="hidden" name="StatusCommentsComplete" value="' . htmlentities($_SESSION['PO'.$identifier]->StatusComments, ENT_QUOTES,'UTF-8') .'" />';
- echo '<tr><td><input type="submit" name="UpdateStatus" value="' . _('Status Update') .'"></td>';
+ echo '<tr><td><input type="submit" name="UpdateStatus" value="' . _('Status Update') .'" /></td>';
} //end its not a new order
echo '</tr></table></td>';
@@ -879,7 +878,7 @@
}
echo '</select>
- <input type="submit" name="LookupDeliveryAddress" value="' ._('Select') . '"></td>
+ <input type="submit" name="LookupDeliveryAddress" value="' ._('Select') . '" /></td>
</tr>';
/* If this is the first time
@@ -969,28 +968,28 @@
echo '<tr><td>' . _('Delivery Contact') . ':</td>
- <td><input type="text" name="Contact" size="41" value="' . $_SESSION['PO'.$identifier]->Contact . '"></td>
+ <td><input type="text" name="Contact" size="41" value="' . $_SESSION['PO'.$identifier]->Contact . '" /></td>
</tr>';
echo '<tr><td>' . _('Address') . ' 1 :</td>
- <td><input type="text" name="DelAdd1" size="41" maxlength="40" value="' . $_POST['DelAdd1'] . '"></td>
+ <td><input type="text" name="DelAdd1" size="41" maxlength="40" value="' . $_POST['DelAdd1'] . '" /></td>
</tr>';
echo '<tr><td>' . _('Address') . ' 2 :</td>
- <td><input type="text" name="DelAdd2" size="41" maxlength="40" value="' . $_POST['DelAdd2'] . '"></td>
+ <td><input type="text" name="DelAdd2" size="41" maxlength="40" value="' . $_POST['DelAdd2'] . '" /></td>
</tr>';
echo '<tr><td>' . _('Address') . ' 3 :</td>
- <td><input type="text" name="DelAdd3" size="41" maxlength="40" value="' . $_POST['DelAdd3'] . '"></td>
+ <td><input type="text" name="DelAdd3" size="41" maxlength="40" value="' . $_POST['DelAdd3'] . '" /></td>
</tr>';
echo '<tr><td>' . _('Address') . ' 4 :</td>
- <td><input type="text" name="DelAdd4" size="21" maxlength="20" value="' . $_POST['DelAdd4'] . '"></td>
+ <td><input type="text" name="DelAdd4" size="21" maxlength="20" value="' . $_POST['DelAdd4'] . '" /></td>
</tr>';
echo '<tr><td>' . _('Address') . ' 5 :</td>
- <td><input type="text" name="DelAdd5" size="16" maxlength="15" value="' . $_POST['DelAdd5'] . '"></td>
+ <td><input type="text" name="DelAdd5" size="16" maxlength="15" value="' . $_POST['DelAdd5'] . '" /></td>
</tr>';
echo '<tr><td>' . _('Address') . ' 6 :</td>
- <td><input type="text" name="DelAdd6" size="16" maxlength=15 value="' . $_POST['DelAdd6'] . '"></td>
+ <td><input type="text" name="DelAdd6" size="16" maxlength=15 value="' . $_POST['DelAdd6'] . '" /></td>
</tr>';
echo '<tr><td>' . _('Phone') . ':</td>
- <td><input type="text" name="Tel" size="31" maxlength="30" value="' . $_SESSION['PO'.$identifier]->Tel . '"></td>
+ <td><input type="text" name="Tel" size="31" maxlength="30" value="' . $_SESSION['PO'.$identifier]->Tel . '" /></td>
</tr>';
echo '<tr><td>' . _('Delivery By') . ':</td><td><select name="DeliveryBy">';
@@ -1098,7 +1097,7 @@
echo '<tr>
<td>' . _('Delivery To') . ':</td>
- <td><input type="text" name="Port" size="31" value="' . $_POST['Port'] . '"></td>
+ <td><input type="text" name="Port" size="31" value="' . $_POST['Port'] . '" /></td>
</tr>';
if ($_SESSION['PO'.$identifier]->CurrCode != $_SESSION['CompanyRecord']['currencydefault']) {
@@ -1127,7 +1126,7 @@
echo '</td></tr></table><br />'; /* end of main table */
echo '<div class="centre">
- <input type="submit" name="EnterLines" value="' . _('Enter Line Items') . '">
+ <input type="submit" name="EnterLines" value="' . _('Enter Line Items') . '" />
</div>';
} /*end of if supplier selected */
Modified: trunk/PO_PDFPurchOrder.php
===================================================================
--- trunk/PO_PDFPurchOrder.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/PO_PDFPurchOrder.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -351,10 +351,10 @@
echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">';
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
if ($ViewingOnly==1){
- echo '<input type="hidden" name="ViewingOnly" value=1>';
+ echo '<input type="hidden" name="ViewingOnly" value=1 />';
}
echo '<br /><br />';
- echo '<input type="hidden" name="OrderNo" value="'. $OrderNo. '">';
+ echo '<input type="hidden" name="OrderNo" value="'. $OrderNo. '" />';
echo '<table>
<tr>
<td>'. _('Print or Email the Order'). '</td>
Modified: trunk/PcAuthorizeExpenses.php
===================================================================
--- trunk/PcAuthorizeExpenses.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/PcAuthorizeExpenses.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -53,11 +53,11 @@
if(!isset ($Days)){
$Days=30;
}
- echo '<input type="hidden" name="SelectedTabs" value="' . $SelectedTabs . '">';
+ echo '<input type="hidden" name="SelectedTabs" value="' . $SelectedTabs . '" />';
echo '<br /><table class=selection>';
echo '<tr><th colspan=7>' . _('Detail Of Movement For Last ') .': ';
echo '<input type="text" class="number" name="Days" value="' . $Days . '" maxlength="3" size="4" />' . _('Days');
- echo '<input type="submit" name="Go" value="' . _('Go') . '"></tr></th>';
+ echo '<input type="submit" name="Go" value="' . _('Go') . '" /></tr></th>';
echo '</form>';
$sql = "SELECT pcashdetails.counterindex,
@@ -285,7 +285,7 @@
// Do the postings
include ('includes/GLPostings.inc');
- echo'</table><br /><div class="centre"><input type="submit" name="Submit" value=' . _('Update') . '></div></form>';
+ echo'</table><br /><div class="centre"><input type="submit" name="Submit" value="' . _('Update') . '" /></div></form>';
} else { /*The option to submit was not hit so display form */
@@ -319,8 +319,8 @@
echo '</td></tr></table>'; // close main table
- echo '<p><div class="centre"><input type="submit" name="Process" value="' . _('Accept') . '">
- <input type="submit" name="Cancel" value="' . _('Cancel') . '"></div>';
+ echo '<p><div class="centre"><input type="submit" name="Process" value="' . _('Accept') . '" />
+ <input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>';
echo '</form>';
} /*end of else not submit */
Modified: trunk/PcExpenses.php
===================================================================
--- trunk/PcExpenses.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/PcExpenses.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -264,13 +264,14 @@
$_POST['GLAccount'] = $myrow['glaccount'];
$_POST['Tag'] = $myrow['tag'];
- echo '<input type="hidden" name="SelectedExpense" value="' . $SelectedExpense . '">';
- echo '<input type="hidden" name="CodeExpense" VALUE="' . $_POST['CodeExpense']. '">';
+ echo '<input type="hidden" name="SelectedExpense" value="' . $SelectedExpense . '" />';
+ echo '<input type="hidden" name="CodeExpense" value="' . $_POST['CodeExpense']. '" />';
// We dont allow the user to change an existing type code
echo '<table class="selection">
<tr>
- <td>' . _('Code Of Expense') . ':</td>
- <td>' . $_POST['CodeExpense'] . '</td></tr>';
+ <td>' . _('Code Of Expense') . ':</td>
+ <td>' . $_POST['CodeExpense'] . '</td>
+ </tr>';
} else {
@@ -278,8 +279,8 @@
echo '<table class="selection">
<tr>
- <td>' . _('Code Of Expense') . ':</td>
- <td><input type="text"' . (in_array('CodeExpense',$Errors) ? 'class="inputerror"' : '' ) .' name="CodeExpense"></td>
+ <td>' . _('Code Of Expense') . ':</td>
+ <td><input type="text"' . (in_array('CodeExpense',$Errors) ? 'class="inputerror"' : '' ) .' name="CodeExpense" /></td>
</tr>';
}
@@ -289,7 +290,7 @@
}
echo '<tr>
<td>' . _('Description') . ':</td>
- <td><input type="text" ' . (in_array('Description',$Errors) ? 'class="inputerror"' : '' ) . ' name="Description" size=50 maxlength=49 value="' . $_POST['Description'] . '"></td>
+ <td><input type="text" ' . (in_array('Description',$Errors) ? 'class="inputerror"' : '' ) . ' name="Description" size="50" maxlength="49" value="' . $_POST['Description'] . '" /></td>
</tr>';
echo '<tr>
@@ -340,8 +341,11 @@
echo '</td></tr></table>'; // close main table
- echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '" />
- <input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>';
+ echo '<br />
+ <div class="centre">
+ <input type="submit" name="submit" value="' . _('Accept') . '" />
+ <input type="submit" name="Cancel" value="' . _('Cancel') . '" />
+ </div>';
echo '</form>';
Modified: trunk/PcExpensesTypeTab.php
===================================================================
--- trunk/PcExpensesTypeTab.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/PcExpensesTypeTab.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -136,8 +136,8 @@
echo '</table>'; // close table in first column
echo '</td></tr></table>'; // close main table
- echo '<p><div class="centre"><input type="submit" name="Process" value="' . _('Accept') . '">
- <input type="submit" name="Cancel" value="' . _('Cancel') . '"></div>';
+ echo '<p><div class="centre"><input type="submit" name="Process" value="' . _('Accept') . '" />
+ <input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>';
echo '</form>';
@@ -150,7 +150,7 @@
echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">';
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
- echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '">';
+ echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '" />';
$sql = "SELECT pctabexpenses.codeexpense,
pcexpenses.description
@@ -224,8 +224,8 @@
echo '</td></tr></table>'; // close main table
- echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '">
- <input type="submit" name="Cancel" value="' . _('Cancel') . '"></div>';
+ echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '" />
+ <input type="submit" name="Cancel" value="' . _('Cancel') . '" /></div>';
echo '</form>';
Modified: trunk/PcReportTab.php
===================================================================
--- trunk/PcReportTab.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/PcReportTab.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -20,7 +20,7 @@
echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/money_add.png" title="' . _('Payment Entry')
. '" alt="" />' . ' ' . $title . '</p>';
- echo '<form method="POST" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">';
+ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">';
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
if (!isset($_POST['FromDate'])){
@@ -62,13 +62,13 @@
echo '</select></td></tr>';
echo'<tr><td>' . _('From Date :') . '</td><td>';
- echo '<input tabindex="2" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" name="FromDate" maxlength="10" size="11" value="' . $_POST['FromDate'] . '">';
+ echo '<input tabindex="2" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" name="FromDate" maxlength="10" size="11" value="' . $_POST['FromDate'] . '" />';
echo '</td></tr>';
echo '<tr><td>' . _('To Date:') .'</td><td>';
- echo '<input tabindex="3" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" name="ToDate" maxlength="10" size="11" value="' . $_POST['ToDate'] . '">';
+ echo '<input tabindex="3" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" name="ToDate" maxlength="10" size="11" value="' . $_POST['ToDate'] . '" />';
echo '</td></tr></table><br />';
- echo '<div class="centre"><input type="submit" Name="ShowTB" Value="' . _('Show HTML') .'">';
- echo '<input type="submit" name="PrintPDF" value="' . _('PrintPDF') . '"></div>';
+ echo '<div class="centre"><input type="submit" Name="ShowTB" Value="' . _('Show HTML') .'" />';
+ echo '<input type="submit" name="PrintPDF" value="' . _('PrintPDF') . '" /></div>';
} else if (isset($_POST['PrintPDF'])) {
@@ -235,8 +235,8 @@
echo '<form method="POST" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">';
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
- echo '<input type="hidden" name="FromDate" VALUE="' . $_POST['FromDate'] . '">
- <input type="hidden" name="ToDate" value="' . $_POST['ToDate'] . '">';
+ echo '<input type="hidden" name="FromDate" value="' . $_POST['FromDate'] . '" />
+ <input type="hidden" name="ToDate" value="' . $_POST['ToDate'] . '" />';
$SqlTabs = "SELECT * FROM pctabs
WHERE tabcode='".$SelectedTabs."'";
@@ -400,7 +400,7 @@
<td>'.locale_number_format($Amount[0],$_SESSION['CompanyRecord']['decimalplaces']).' </td><td>'.$Tabs['currency'].'</td></tr>';
echo '</table>';
- echo '<br /><div class="centre"><input type="submit" name="SelectDifferentDate" value="' . _('Select A Different Date') . '"></div>';
+ echo '<br /><div class="centre"><input type="submit" name="SelectDifferentDate" value="' . _('Select A Different Date') . '" /></div>';
}
echo '</form>';
include('includes/footer.inc');
Modified: trunk/PcTypeTabs.php
===================================================================
--- trunk/PcTypeTabs.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/PcTypeTabs.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -123,7 +123,7 @@
echo '<br />';
echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">';
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
- echo '<p><div class="centre"><input type="submit" name=return value="' . _('Return to list of tab types') . '"></div>';
+ echo '<p><div class="centre"><input type="submit" name="Return" value="' . _('Return to list of tab types') . '" /></div>';
echo '</form>';
include('includes/footer.inc');
exit;
@@ -206,12 +206,12 @@
$_POST['TypeTabCode'] = $myrow['typetabcode'];
$_POST['TypeTabDescription'] = $myrow['typetabdescription'];
- echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '">';
- echo '<input type="hidden" name="TypeTabCode" value="' . $_POST['TypeTabCode']. '">';
- echo '<table class=selection>
+ echo '<input type="hidden" name="SelectedTab" value="' . $SelectedTab . '" />';
+ echo '<input type="hidden" name="TypeTabCode" value="' . $_POST['TypeTabCode']. '" />';
+ echo '<table class="selection">
<tr><td>' . _('Code Of Type Of Tab') . ':</td>
- <td>' . $_POST['TypeTabCode'] . '</td><
- /tr>';
+ <td>' . $_POST['TypeTabCode'] . '</td>
+ </tr>';
// We dont allow the user to change an existing type code
@@ -221,22 +221,33 @@
// This is a new type so the user may volunteer a type code
- echo '<table class="selection"><tr><td>' . _('Code Of Type Of Tab') . ':</td><td><input type="text"
- ' . (in_array('TypeTabCode',$Errors) ? 'class="inputerror"' : '' ) .' name="TypeTabCode"></td></tr>';
+ echo '<table class="selection">
+ <tr>
+ <td>' . _('Code Of Type Of Tab') . ':</td>
+ <td><input type="text" ' . (in_array('TypeTabCode',$Errors) ? 'class="inputerror"' : '' ) .' name="TypeTabCode" /></td>
+ </tr>';
}
if (!isset($_POST['TypeTabDescription'])) {
$_POST['TypeTabDescription']='';
}
- echo '<tr><td>' . _('Description Of Type of Tab') . ':</td><td><input type="text" name="TypeTabDescription" size="50" maxlength="49" value="' . $_POST['TypeTabDescription'] . '"></td></tr>';
+ echo '<tr>
+ <td>' . _('Description Of Type of Tab') . ':</td>
+ <td><input type="text" name="TypeTabDescription" size="50" maxlength="49" value="' . $_POST['TypeTabDescription'] . '" /></td>
+ </tr>';
- echo '</td></tr></table>'; // close main table
+ echo '</td>
+ </tr>
+ </table>'; // close main table
- echo '<p><div class="centre"><input type="submit" name="submit" value="' . _('Accept') . '"><input type="submit" name="Cancel" VALUE="' . _('Cancel') . '"></div>';
+ echo '<br />
+ <div class="centre">
+ <input type="submit" name="submit" value="' . _('Accept') . '" />
+ <input type="submit" name="Cancel" value="' . _('Cancel') . '" />
+ </div>
+ </form>';
- echo '</form>';
-
} // end if user wish to delete
include('includes/footer.inc');
Modified: trunk/SelectAsset.php
===================================================================
--- trunk/SelectAsset.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/SelectAsset.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -67,11 +67,16 @@
echo '<td>' . _('Enter partial description') . '</b>:</td><td>';
if (isset($_POST['Keywords'])) {
- echo '<input type="text" name="Keywords" value="' . $_POST['Keywords'] . '" size=20 maxlength=25>';
+ echo '<input type="text" name="Keywords" value="' . $_POST['Keywords'] . '" size="20" maxlength="25" />';
} else {
- echo '<input type="text" name="Keywords" size=20 maxlength=25>';
+ echo '<input type="text" name="Keywords" size="20" maxlength="25"> /';
}
-echo '</td></tr><tr><td>' . _('Asset Location') . ':</td><td><select name="AssetLocation">';
+echo '</td>
+ </tr>
+ <tr>
+ <td>' . _('Asset Location') . ':</td>
+ <td><select name="AssetLocation">';
+
if (!isset($_POST['AssetLocation'])) {
$_POST['AssetLocation'] = 'ALL';
}
@@ -80,7 +85,7 @@
} else {
echo '<option value="ALL">' . _('Any asset location') . '</option>';
}
-$result = DB_query('SELECT locationid, locationdescription FROM fixedassetlocations',$db);
+$result = DB_query("SELECT locationid, locationdescription FROM fixedassetlocations",$db);
while ($myrow = DB_fetch_array($result)) {
if ($myrow['locationid'] == $_POST['AssetLocation']) {
@@ -94,14 +99,18 @@
echo ' </td><td><b>' . _('OR') . ' ' . '</b>' . _('Enter partial asset code') . '</b>:</td>';
echo '<td>';
if (isset($_POST['AssetCode'])) {
- echo '<input type="text" class="number" name="AssetCode" value="' . $_POST['AssetCode'] . '" size=15 maxlength=13>';
+ echo '<input type="text" class="number" name="AssetCode" value="' . $_POST['AssetCode'] . '" size="15" maxlength="13" />';
} else {
- echo '<input type="text" name="AssetCode" size=15 maxlength=13>';
+ echo '<input type="text" name="AssetCode" size="15" maxlength="13" />';
}
echo '</td></tr></table><br />';
-echo '<div class="centre"><input type="submit" name="Search" value="' . _('Search Now') . '"></div><br /></form>';
+echo '<div class="centre">
+ <input type="submit" name="Search" value="' . _('Search Now') . '" />
+ </div>
+ <br />
+ </form>';
echo '<script type="text/javascript">defaultControl(document.forms[0].Keywords);</script>';
-echo '</form>';
+
// query for list of record(s)
if(isset($_POST['Go']) OR isset($_POST['Next']) OR isset($_POST['Previous'])) {
$_POST['Search']='Search';
@@ -231,13 +240,13 @@
$ListPage++;
}
echo '</select>
- <input type="submit" name="Go" value="' . _('Go') . '">
- <input type="submit" name="Previous" value="' . _('Previous') . '">
- <input type="submit" name="Next" value="' . _('Next') . '">';
+ <input type="submit" name="Go" value="' . _('Go') . '" />
+ <input type="submit" name="Previous" value="' . _('Previous') . '" />
+ <input type="submit" name="Next" value="' . _('Next') . '" />';
echo '<p></div>';
}
- echo '<table cellpadding=2 colspan=7 class=selection>';
+ echo '<table class="selection">';
$tableheader = '<tr>
<th>' . _('Asset Code') . '</th>
<th>' . _('Description') . '</th>
@@ -259,7 +268,7 @@
echo '<tr class="OddTableRows">';
$k++;
}
- echo '<td><input type="submit" name="Select" value="' . $myrow['assetid'] .'"></td>
+ echo '<td><input type="submit" name="Select" value="' . $myrow['assetid'] .'" /></td>
<td>' . $myrow['description'] . '</td>
<td>' . $myrow['locationdescription'] . '</td>
<td>' . ConvertSQLDate($myrow['datepurchased']) . '</td>
Modified: trunk/SelectCreditItems.php
===================================================================
--- trunk/SelectCreditItems.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/SelectCreditItems.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -261,8 +261,8 @@
} else {
echo '<td></td>';
}
- echo '<td><input tabindex='.($j+5).' type="submit" name="SubmitCustomerSelection' . $j .'" value="' . htmlentities($myrow['brname'], ENT_QUOTES,'UTF-8'). '"></td>
- <input type="hidden" name="SelectedCustomer' . $j .'" value="'.$myrow['debtorno'].'">
+ echo '<td><input tabindex='.($j+5).' type="submit" name="SubmitCustomerSelection' . $j .'" value="' . htmlentities($myrow['brname'], ENT_QUOTES,'UTF-8'). '" /></td>
+ <input type="hidden" name="SelectedCustomer' . $j .'" value="'.$myrow['debtorno'].'" />
<input type="hidden" name="SelectedBranch' . $j .'" value="'. $myrow['branchcode'].'" />
<td>'.$myrow['contactname'].'</td>
<td>'.$myrow['phoneno'].'</td>
@@ -709,16 +709,16 @@
<td>' . $LineItem->ItemDescription . '</td>';
if ($LineItem->Controlled==0){
- echo '<td><input type="text" class="number" name="Quantity_' . $LineItem->LineNumber . '" maxlength="6" size="6" value=' . locale_number_format(round($LineItem->Quantity,$LineItem->DecimalPlaces),$LineItem->DecimalPlaces) . '></td>';
+ echo '<td><input type="text" class="number" name="Quantity_' . $LineItem->LineNumber . '" maxlength="6" size="6" value="' . locale_number_format(round($LineItem->Quantity,$LineItem->DecimalPlaces),$LineItem->DecimalPlaces) . '" /></td>';
} else {
echo '<td class="number"><a href="' . $rootpath . '/CreditItemsControlled.php?LineNo=' . $LineItem->LineNumber . '">' . locale_number_format($LineItem->Quantity,$LineItem->DecimalPlaces) . '</a>
- <input type="hidden" name="Quantity_' . $LineItem->LineNumber . '" value=' . locale_number_format(round($LineItem->Quantity,$LineItem->DecimalPlaces),$LineItem->DecimalPlaces) . '></td>';
+ <input type="hidden" name="Quantity_' . $LineItem->LineNumber . '" value="' . locale_number_format(round($LineItem->Quantity,$LineItem->DecimalPlaces),$LineItem->DecimalPlaces) . '" /></td>';
}
echo '<td>' . $LineItem->Units . '</td>
- <td><input type="text" class="number" name="Price_' . $LineItem->LineNumber . '" size=10 maxlength=12 value=' . locale_number_format($LineItem->Price,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '></td>
- <td><input type="CheckBox" name="Gross" value=False></td>
- <td><input type="text" class="number" name="Discount_' . $LineItem->LineNumber . '" size=3 maxlength=3 value=' . locale_number_format(($LineItem->DiscountPercent * 100),'Variable') . '>%</td>
+ <td><input type="text" class="number" name="Price_' . $LineItem->LineNumber . '" size="10" maxlength="12" value="' . locale_number_format($LineItem->Price,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '" /></td>
+ <td><input type="CheckBox" name="Gross" value=False /></td>
+ <td><input type="text" class="number" name="Discount_' . $LineItem->LineNumber . '" size="3" maxlength="3" value="' . locale_number_format(($LineItem->DiscountPercent * 100),'Variable') . '" />%</td>
<td class="number">' . $DisplayLineTotal . '</td>';
@@ -742,7 +742,7 @@
if ($i>0){
echo '<br />';
}
- echo '<input type="text" class="number" name="' . $LineItem->LineNumber . $Tax->TaxCalculationOrder . '_TaxRate" maxlength=4 size="4" value="' . locale_number_format($Tax->TaxRate*100,'Variable') . '">';
+ echo '<input type="text" class="number" name="' . $LineItem->LineNumber . $Tax->TaxCalculationOrder . '_TaxRate" maxlength=4 size="4" value="' . locale_number_format($Tax->TaxRate*100,'Variable') . '" />';
$i++;
if ($Tax->TaxOnTax ==1){
$TaxTotals[$Tax->TaxAuthID] += ($Tax->TaxRate * ($LineTotal + $TaxLineTotal));
@@ -782,7 +782,7 @@
<td colspan="5"></td>';
echo '<td colspan="2" class="number">'. _('Credit Freight').'</td>
- <td><input type="text" class="number" size=6 maxlength=6 name="ChargeFreightCost" value="' . locale_number_format($_SESSION['CreditItems'.$identifier]->FreightCost,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '" /></td>';
+ <td><input type="text" class="number" size="6" maxlength="6" name="ChargeFreightCost" value="' . locale_number_format($_SESSION['CreditItems'.$identifier]->FreightCost,$_SESSION['CreditItems'.$identifier]->CurrDecimalPlaces) . '" /></td>';
$FreightTaxTotal =0; //initialise tax total
@@ -977,8 +977,8 @@
<div class="centre">';
echo '<input type="submit" name="Search" value="' . _('Search Now') .'" />
- <input type="submit" Name="ChangeCustomer" value="' . _('Change Customer') . '" />
- <input type="submit" Name="Quick" value="' . _('Quick Entry') . '" />
+ <input type="submit" name="ChangeCustomer" value="' . _('Change Customer') . '" />
+ <input type="submit" name="Quick" value="' . _('Quick Entry') . '" />
</div>';
if (isset($SearchResult)) {
@@ -1003,7 +1003,7 @@
$k++;
}
if(file_exists($_SESSION['part_pics_dir'] . '/' .mb_strtoupper($myrow['stockid']).'.jpg') ) {
- printf('<td><font size=1><input type="submit" name="NewItem" value="%s"></font></td>
+ printf('<td><font size=1><input type="submit" name="NewItem" value="%s" /></font></td>
<td><font size=1>%s</font></td>
<td><font size=1>%s</font></td>
<td><img src="GetStockImage.php?automake=1&textcolor=FFFFFF&bgcolor=CCCCCC&StockID=%s&text=&width=120&height=120"></td></tr>',
@@ -1012,7 +1012,7 @@
$myrow['units'],
$myrow['stockid']);
} else { //don't try to show the image
- printf('<td><font size=1><input type="submit" name="NewItem" value="%s"></font></td>
+ printf('<td><font size=1><input type="submit" name="NewItem" value="%s" /></font></td>
<td><font size=1>%s</font></td>
<td><font size=1>%s</font></td>
<td>' . _('No Image') . '</td></tr>',
@@ -1046,8 +1046,8 @@
echo '</table>
<br />
<div class="centre">
- <input type="submit" name="QuickEntry" value="' . _('Process Entries') . '">
- <input type="submit" name="PartSearch" value="' . _('Search Parts') . '">
+ <input type="submit" name="QuickEntry" value="' . _('Process Entries') . '" />
+ <input type="submit" name="PartSearch" value="' . _('Search Parts') . '" />
</div>';
}
Modified: trunk/SelectGLAccount.php
===================================================================
--- trunk/SelectGLAccount.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/SelectGLAccount.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -20,9 +20,13 @@
$AccountID = $_POST['Select'];
$_POST['Select'] = NULL;
- echo '<br /><div class="centre"><a href="' . $rootpath . '/GLAccounts.php?' . SID . '&SelectedAccount=' . $AccountID . '">' . _('Edit Account') . '</a>';
- echo '<br /><a href="' . $rootpath . '/GLAccountInquiry.php?' . SID . '&Account=' . $AccountID . '">' . _('Account Inquiry') . '</a>';
- echo '<br /><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID . '">' . _('New Search') . '</a></div>';
+ echo '<br />
+ <div class="centre">
+ <a href="' . $rootpath . '/GLAccounts.php?SelectedAccount=' . $AccountID . '">' . _('Edit Account') . '</a>';
+ echo '<br />
+ <a href="' . $rootpath . '/GLAccountInquiry.php?Account=' . $AccountID . '">' . _('Account Inquiry') . '</a>';
+ echo '<br />
+ <a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">' . _('New Search') . '</a></div>';
} elseif (isset($_POST['Search'])){
@@ -76,34 +80,40 @@
echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/magnifier.png" title="' . _('Search') .
'" alt="" />' . ' ' . _('Search for General Ledger Accounts') . '</p>';
- echo "<br /><form action='" . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID . "' method=post>";
+ echo '<br />
+ <form action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '" method="post">';
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
if(mb_strlen($msg)>1){
prnMsg($msg,'info');
}
- echo '<table cellpadding=3 colspan=4 class=selection>
+ echo '<table class="selection">
<tr>
- <td><font size=1>' . _('Enter extract of text in the Account name') .":</font></td>
- <td><input type='Text' name='Keywords' size=20 maxlength=25></td>
- <td><font size=3><b>" . _('OR') . "</b></font></td>
- <td><font size=1>" . _('Enter Account No. to search from') . ":</font></td>
- <td><input type='Text' name='GLCode' size=15 maxlength=18 class=number ></td>
+ <td><font size=1>' . _('Enter extract of text in the Account name') .':</font></td>
+ <td><input type="text" name="Keywords" size="20" maxlength="25" /></td>
+ <td><font size="3"><b>' . _('OR') . '</b></font></td>
+ <td><font size="1">' . _('Enter Account No. to search from') . ':</font></td>
+ <td><input type="text" name="GLCode" size="15" maxlength="18" class="number" /></td>
</tr>
- </table><br />";
+ </table>
+ <br />';
- echo '<div class="centre"><input type="submit" name="Search" value=' . _('Search Now') . '">
- <input type="submit" action=reset value="' . _('Reset') .'"></div>';
+ echo '<div class="centre">
+ <input type="submit" name="Search" value=' . _('Search Now') . '" />
+ <input type="submit" action=reset value="' . _('Reset') .'" />
+ </div>';
if (isset($result) and DB_num_rows($result)>0) {
- echo '<br /><table cellpadding=2 colspan=7 class=selection>';
+ echo '<br /><table class="selection">';
- $TableHeader = '<tr><th>' . _('Code') . '</th>
- <th>' . _('Account Name') . '</th>
- <th>' . _('Group') . '</th>
- <th>' . _('Account Type') . '</th></tr>';
+ $TableHeader = '<tr>
+ <th>' . _('Code') . '</th>
+ <th>' . _('Account Name') . '</th>
+ <th>' . _('Group') . '</th>
+ <th>' . _('Account Type') . '</th>
+ </tr>';
echo $TableHeader;
@@ -111,15 +121,16 @@
while ($myrow=DB_fetch_array($result)) {
- printf('<tr><td><font size=1><input type="submit" name="Select" value="%s" /></font></td>
- <td><font size=1>%s</font></td>
- <td><font size=1>%s</font></td>
- <td><font size=1>%s</font></td>
- </tr>',
- $myrow['accountcode'],
- $myrow['accountname'],
- $myrow['group_'],
- $myrow['pl']);
+ printf('<tr>
+ <td><font size=1><input type="submit" name="Select" value="%s" /></font></td>
+ <td><font size=1>%s</font></td>
+ <td><font size=1>%s</font></td>
+ <td><font size=1>%s</font></td>
+ </tr>',
+ $myrow['accountcode'],
+ $myrow['accountname'],
+ $myrow['group_'],
+ $myrow['pl']);
$j++;
if ($j == 12){
Modified: trunk/SelectProduct.php
===================================================================
--- trunk/SelectProduct.php 2012-01-22 02:57:49 UTC (rev 4830)
+++ trunk/SelectProduct.php 2012-01-22 07:33:48 UTC (rev 4831)
@@ -36,7 +36,7 @@
ORDER BY categorydescription";
$result1 = DB_query($SQL, $db);
if (DB_num_rows($result1) == 0) {
- echo '<p><font size=4 color=red>' . _('Problem Report') . ':</font><br />' . _('There are no stock categories currently defined please use the link below to set them up').'</p>';
+ echo '<p><font size="4" color="red">' . _('Problem Report') . ':</font><br />' . _('There are no stock categories currently defined please use the link below to set them up').'</p>';
echo '<br /><a href="' . $rootpath . '/StockCategories.php">' . _('Define Stock Categories') . '</a>';
exit;
}
@@ -75,9 +75,13 @@
} else {
$ItemStatus = '';
}
- echo '<table width="90%"><tr><th colspan="3"><img src="' . $rootpath . '/css/' . $theme . '/images/inventory.png" title="' . _('Inventory') . '" alt="" /><b>' . ' ' . $StockID . ' - ' . $myrow['description'] . ' ' . $ItemStatus . '</b></th></tr>';
+ echo '<table width="90%">
+ <tr>
+ <th colspan="3"><img src="' . $rootpath . '/css/' . $theme . '/images/inventory.png" title="' . _('Inventory') . '" alt="" /><b>' . ' ' . $StockID . ' - ' . $myrow['description'] . ' ' . $ItemStatus . '</b></th>
+ </tr>';
- echo '<tr><td width="40%" valign="top">
+ echo '<tr>
+ <td width="40%" valign="top">
<table align="left">'; //nested table
echo '<tr><th class="number">' . _('Item Type:') . '</th>
<td colspan="2" class="select">';
@@ -718,24 +722,24 @@
$ListPage++;
}
echo '</select>
- <input type="submit" name="Go" value="' . _('Go') . '">
- <input type="submit" name="Previous" value="' . _('Previous') . '">
+ <input type="submit" name="Go" value="' . _('Go') . '" />
+ <input type="submit" name="Previous" value="' . _('Previous') . '" />
<input type="submit" name="Next" value="' . _('Next') . '">';
- echo '<input type="hidden" name=Keywords value="'.$_POST['Keywords'].'">';
- echo '<input type="hidden" name=StockCat value="'.$_POST['StockCat'].'">';
- echo '<input type="hidden" name=StockCode value="'.$_POST['StockCode'].'">';
+ echo '<input type="hidden" name=Keywords value="'.$_POST['Keywords'].'" />';
+ echo '<input type="hidden" name=StockCat value="'.$_POST['StockCat'].'" />';
+ echo '<input type="hidden" name=StockCode value="'.$_POST['StockCode'].'" />';
// echo '<input type="hidden" name=Search value="Search">';
echo '<p></div>';
}
- echo '<table cellpadding="2" colspan="7">';
- $tableheader = '<tr>
- <th>' . _('Code') . '</th>
- <th>' . _('Description') . '</th>
- <th>' . _('Total Qty On Hand') . '</th>
- <th>' . _('Units') . '</th>
- <th>' . _('Stock Status') . '</th>
- </tr>';
- echo $tableheader;
+ echo '<table class="selection">';
+ $TableHeader = '<tr>
+ <th>' . _('Code') . '</th>
+ <th>' . _('Description') . '</th>
+ <th>' . _('Total Qty On Hand') . '</th>
+ <th>' . _('Units') . '</th>
+ <th>' . _('Stock Status') . '</th>
+ </tr>';
+ echo $TableHeader;
$j = 1;
$k = 0; //row counter to determine background colour
$RowIndex = 0;
@@ -771,7 +775,7 @@
$j++;
if ($j == 20 AND ($RowIndex + 1 != $_SESSION['DisplayRecordsMax'])) {
$j = 1;
- echo $tableheader;
+ echo $TableHeader;
}
$RowIndex = $RowIndex + 1;
//end of page full new headings if
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|