[Weberp-svn] SF.net SVN: weberp:[9405] trunk/Customers.php
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2012-07-11 08:31:05
|
Revision: 9405 http://weberp.svn.sourceforge.net/weberp/?rev=9405&view=rev Author: tim_schofield Date: 2012-07-11 08:30:54 +0000 (Wed, 11 Jul 2012) Log Message: ----------- Improvements for new interface Modified Paths: -------------- trunk/Customers.php Modified: trunk/Customers.php =================================================================== --- trunk/Customers.php 2012-07-11 08:17:16 UTC (rev 9404) +++ trunk/Customers.php 2012-07-11 08:30:54 UTC (rev 9405) @@ -345,7 +345,7 @@ } //end if Delete Customer } -if(isset($reset)){ +if(isset($_POST['reset'])){ unset($_POST['CustName']); unset($_POST['Address1']); unset($_POST['Address2']); @@ -444,7 +444,15 @@ $DataError =0; - echo '<table class="selection" cellspacing="4"><tr><td valign="top"><table style="background: transparent">'; + echo '<br /><table class="selection" cellspacing="4"> + <tr> + <th colspan="4" class="header"> + <img width="24px" src="' . $rootpath . '/css/' . $theme . '/images/customer.png" title="' . _('Customer Details') . '" alt="" />' . _('Customer Details') . ' + </th> + </tr> + <tr> + <td valign="top"> + <table style="background: transparent">'; /* if $AutoDebtorNo in config.php has not been set or if it has been set to a number less than one, then provide an input box for the DebtorNo to manually assigned */ @@ -588,8 +596,15 @@ echo'</table></td></tr></table>'; if ($DataError ==0){ - echo '<br /><div class="centre"><button tabindex="20" type="submit" name="submit">' . _('Add New Customer') . '</button> - <button tabindex="21" type="submit" action="reset">' . _('Reset') . '</button></div>'; + echo '<br /> + <div class="centre"> + <button tabindex="20" type="submit" name="submit"> + <img src="'.$rootpath.'/css/'.$theme.'/images/tick.png" title="' . _('Save') . '" alt="" class="ButtonIcon" />' . _('Add New Customer') . ' + </button> + <button tabindex="21" type="submit" name="reset"> + <img src="'.$rootpath.'/css/'.$theme.'/images/cross.png" title="' . _('Save') . '" alt="" class="ButtonIcon" />' . _('Cancel') . ' + </button> + </div>'; } echo '</form>'; @@ -599,7 +614,6 @@ echo '<form onsubmit="return SubmitForm(this)" method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; - echo '<table class="selection" cellspacing="4"><tr><td valign="top"><table style="background: transparent">'; if (!isset($_POST['New'])) { $sql = "SELECT debtorsmaster.debtorno, @@ -637,9 +651,16 @@ $myrow = DB_fetch_array($result); /* if $AutoDebtorNo in config.php has not been set or if it has been set to a number less than one, then display the DebtorNo */ + echo '<br /> + <table class="selection" cellspacing="4">'; + echo '<tr> + <th colspan="4" class="header">' . _('Customer Details for') . ' ' . $myrow['debtorno'] . ' - ' . $myrow['name'] . '</th> + </tr>'; + echo '<tr><td valign="top"><table style="background: transparent">'; if ($_SESSION['AutoDebtorNo']== 0 ) { - echo '<tr><td>' . _('Customer Code') . ':</td> - <td>' . $DebtorNo. '</td></tr>'; + echo '<tr> + <td>' . _('Customer Code') . ':</td> + <td>' . $DebtorNo. '</td></tr>'; } $_POST['CustName'] = $myrow['name']; $_POST['Address1'] = $myrow['address1']; @@ -674,8 +695,10 @@ /* if $AutoDebtorNo in config.php has not been set or if it has been set to a number less than one, then provide an input box for the DebtorNo to manually assigned */ if ($_SESSION['AutoDebtorNo']== 0 ) { - echo '<tr><td>' . _('Customer Code') . ':</td> - <td><input ' . (in_array('DebtorNo',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="DebtorNo" value="' . $DebtorNo . '" size="12" maxlength="10" /></td></tr>'; + echo '<tr> + <td>' . _('Customer Code') . ':</td> + <td><input ' . (in_array('DebtorNo',$Errors) ? 'class="inputerror"' : '' ) .' type="text" name="DebtorNo" value="' . $DebtorNo . '" size="12" maxlength="10" /></td> + </tr>'; } } if (isset($_GET['Modify'])) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |