From: <tim...@us...> - 2010-07-06 22:00:55
|
Revision: 3580 http://web-erp.svn.sourceforge.net/web-erp/?rev=3580&view=rev Author: tim_schofield Date: 2010-07-06 22:00:49 +0000 (Tue, 06 Jul 2010) Log Message: ----------- Layout improvements Modified Paths: -------------- trunk/DiscountMatrix.php trunk/doc/Change.log.html Modified: trunk/DiscountMatrix.php =================================================================== --- trunk/DiscountMatrix.php 2010-07-06 22:00:30 UTC (rev 3579) +++ trunk/DiscountMatrix.php 2010-07-06 22:00:49 UTC (rev 3580) @@ -59,11 +59,12 @@ discountrate) VALUES('" . $_POST['SalesType'] . "', '" . $_POST['DiscountCategory'] . "', - " . $_POST['QuantityBreak'] . ", - " . ($_POST['DiscountRate']/100) . ')'; + '" . $_POST['QuantityBreak'] . "', + '" . ($_POST['DiscountRate']/100) . "')"; $result = DB_query($sql,$db); prnMsg( _('The discount matrix record has been added'),'success'); + echo '<br>'; unset($_POST['DiscountCategory']); unset($_POST['SalesType']); unset($_POST['QuantityBreak']); @@ -75,16 +76,17 @@ $sql="DELETE FROM discountmatrix WHERE discountcategory='" .$_GET['DiscountCategory'] . "' AND salestype='" . $_GET['SalesType'] . "' - AND quantitybreak=" . $_GET['QuantityBreak']; + AND quantitybreak='" . $_GET['QuantityBreak']."'"; $result = DB_query($sql,$db); prnMsg( _('The discount matrix record has been deleted'),'success'); + echo '<br>'; } echo "<form method='post' action=" . $_SERVER['PHP_SELF'] . '?' . SID . '>'; -echo '<table>'; +echo '<table class=selection>'; $sql = 'SELECT typeabbrev, sales_type @@ -133,7 +135,7 @@ "type='text' name='DiscountRate' size=4 maxlength=4></td></tr>"; echo '</table><br>'; -echo "<div class='centre'><input tabindex=5 type='submit' name='submit' value='" . _('Enter Information') . "'></div><hr>"; +echo "<div class='centre'><input tabindex=5 type='submit' name='submit' value='" . _('Enter Information') . "'></div><br>"; $sql = 'SELECT sales_type, salestype, @@ -148,7 +150,7 @@ $result = DB_query($sql,$db); -echo '<table>'; +echo '<table class=selection>'; echo "<tr><th>" . _('Sales Type') . "</th> <th>" . _('Discount Category') . "</th> <th>" . _('Quantity Break') . "</th> @@ -185,4 +187,4 @@ echo '</form>'; include('includes/footer.inc'); -?> +?> \ No newline at end of file Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-07-06 22:00:30 UTC (rev 3579) +++ trunk/doc/Change.log.html 2010-07-06 22:00:49 UTC (rev 3580) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>05/07/10 Tim: DiscountMatrix.php - Layout improvements</p> <p>05/07/10 Tim: DiscountCategories.php - Layout improvements</p> <p>05/07/10 Tim: DemandWorkOrders.php - Remove redundant file</p> <p>05/07/10 Tim: DeliveryDetails.php - sql corrections</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |