[Weberp-svn] SF.net SVN: weberp:[8719] trunk
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2012-04-28 21:31:54
|
Revision: 8719 http://weberp.svn.sourceforge.net/weberp/?rev=8719&view=rev Author: tim_schofield Date: 2012-04-28 21:31:48 +0000 (Sat, 28 Apr 2012) Log Message: ----------- Layout improvements, new css and buttons Modified Paths: -------------- trunk/SupplierTypes.php trunk/css/silverwolf/default.css Modified: trunk/SupplierTypes.php =================================================================== --- trunk/SupplierTypes.php 2012-04-28 21:31:39 UTC (rev 8718) +++ trunk/SupplierTypes.php 2012-04-28 21:31:48 UTC (rev 8719) @@ -50,7 +50,7 @@ WHERE typename = '" . $_POST['typename'] . "'"; $CheckResult=DB_query($CheckSQL, $db); - if (DB_num_rows($CheckResult)>0) { + if (!isset($_POST['Update']) and DB_num_rows($CheckResult)>0) { $InputError = 1; echo prnMsg(_('You already have a supplier type called').' '.$_POST['typename'],'error'); $Errors[$i] = 'SupplierName'; @@ -150,7 +150,7 @@ echo '<table class="selection">'; echo '<br />'; - echo '<tr><th colspan="4"><font size="2" color="#616161">' . _('Supplier Types') . '</th></tr>'; + echo '<tr><th colspan="4" class="header">' . _('Supplier Types') . '</th></tr>'; echo '<tr> <th>' . _('Type ID') . '</th> <th>' . _('Type Name') . '</th> @@ -193,7 +193,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection">'; //Main table - echo '<tr><th colspan="2"><font size="2" color="#616161">' . _('Supplier Type Details') . '</th></tr>'; + echo '<tr><th colspan="2" class="header">' . _('Supplier Type Details') . '</th></tr>'; // The user wish to EDIT an existing type if ( isset($_GET['Edit']) ) { @@ -222,7 +222,7 @@ echo '</table><br />'; // close main table - echo '<div class="centre"><input type="submit" name="Update" value="' . _('Update') . '" /></div><br />'; + echo '<div class="centre"><button type="submit" name="Update">' . _('Update') . '</button></div><br />'; } else { @@ -233,7 +233,7 @@ echo '</table><br />'; // close main table - echo '<div class="centre"><input type="submit" name="Submit" value="' . _('Insert') . '" /></div><br />'; + echo '<div class="centre"><button type="submit" name="Submit">' . _('Insert') . '</button></div><br />'; } echo '</form>'; Modified: trunk/css/silverwolf/default.css =================================================================== --- trunk/css/silverwolf/default.css 2012-04-28 21:31:39 UTC (rev 8718) +++ trunk/css/silverwolf/default.css 2012-04-28 21:31:48 UTC (rev 8719) @@ -78,7 +78,7 @@ } th.header { - font-weight: bold; + font-weight: normal; background: -moz-linear-gradient(left, #DCDCDC, #8D98A6); background: -webkit-linear-gradient(left, #DCDCDC, #8D98A6); font-size: 16px; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |