From: <tim...@us...> - 2010-06-19 08:15:02
|
Revision: 3505 http://web-erp.svn.sourceforge.net/web-erp/?rev=3505&view=rev Author: tim_schofield Date: 2010-06-19 08:14:56 +0000 (Sat, 19 Jun 2010) Log Message: ----------- Add a field for the supplier code in WWW_Users.php Modified Paths: -------------- trunk/WWW_Users.php trunk/doc/Change.log.html Modified: trunk/WWW_Users.php =================================================================== --- trunk/WWW_Users.php 2010-06-19 08:14:37 UTC (rev 3504) +++ trunk/WWW_Users.php 2010-06-19 08:14:56 UTC (rev 3505) @@ -138,6 +138,7 @@ email='" . $_POST['Email'] ."', " . $UpdatePassword . " branchcode='" . $_POST['BranchCode'] . "', + supplierid='" . $_POST['SupplierID'] . "', salesman='" . $_POST['Salesman'] . "', pagesize='" . $_POST['PageSize'] . "', fullaccess=" . $_POST['Access'] . ", @@ -156,6 +157,7 @@ realname, customerid, branchcode, + supplierid, salesman, password, phone, @@ -172,6 +174,7 @@ '" . $_POST['RealName'] ."', '" . $_POST['Cust'] ."', '" . $_POST['BranchCode'] ."', + '" . $_POST['SupplierID'] ."', '" . $_POST['Salesman'] . "', '" . CryptPass($_POST['Password']) ."', '" . $_POST['Phone'] . "', @@ -197,6 +200,7 @@ unset($_POST['RealName']); unset($_POST['Cust']); unset($_POST['BranchCode']); + unset($_POST['SupplierID']); unset($_POST['Salesman']); unset($_POST['Phone']); unset($_POST['Email']); @@ -248,6 +252,7 @@ email, customerid, branchcode, + supplierid, salesman, lastvisitdate, fullaccess, @@ -264,6 +269,7 @@ <th>" . _('Email') . "</th> <th>" . _('Customer Code') . "</th> <th>" . _('Branch Code') . "</th> + <th>" . _('Supplier Code') . "</th> <th>" . _('Salesperson') . "</th> <th>" . _('Last Visit') . "</th> <th>" . _('Security Role') ."</th> @@ -303,6 +309,7 @@ <td>%s</td> <td>%s</td> <td>%s</td> + <td>%s</td> <td><a href=\"%s&SelectedUser=%s\">" . _('Edit') . "</a></td> <td><a href=\"%s&SelectedUser=%s&delete=1\">" . _('Delete') . "</a></td> </tr>", @@ -313,11 +320,12 @@ $myrow[4], $myrow[5], $myrow[6], + $myrow[7], $LastVisitDate, - $SecurityRoles[($myrow[8])], - $myrow[9], + $SecurityRoles[($myrow[9])], $myrow[10], $myrow[11], + $myrow[12], $_SERVER['PHP_SELF'] . "?" . SID, $myrow[0], $_SERVER['PHP_SELF'] . "?" . SID, @@ -344,6 +352,7 @@ customerid, password, branchcode, + supplierid, salesman, pagesize, fullaccess, @@ -365,6 +374,7 @@ $_POST['Email'] = $myrow['email']; $_POST['Cust'] = $myrow['customerid']; $_POST['BranchCode'] = $myrow['branchcode']; + $_POST['SupplierID'] = $myrow['supplierid']; $_POST['Salesman'] = $myrow['salesman']; $_POST['PageSize'] = $myrow['pagesize']; $_POST['Access'] = $myrow['fullaccess']; @@ -459,12 +469,18 @@ if (!isset($_POST['BranchCode'])) { $_POST['BranchCode']=''; } +if (!isset($_POST['SupplierID'])) { + $_POST['SupplierID']=''; +} echo '<tr><td>' . _('Customer Code') . ':</td> <td><input type="text" name="Cust" size=10 maxlength=10 value="' . $_POST['Cust'] . '"></td></tr>'; echo '<tr><td>' . _('Branch Code') . ':</td> <td><input type="text" name="BranchCode" size=10 maxlength=10 VALUE="' . $_POST['BranchCode'] .'"></td></tr>'; +echo '<tr><td>' . _('Supplier Code') . ':</td> + <td><input type="text" name="SupplierID" size=10 maxlength=10 VALUE="' . $_POST['SupplierID'] .'"></td></tr>'; + echo '<tr><td>' . _('Restrict to Sales Person') . ':</td> <td><select name="Salesman">'; Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-06-19 08:14:37 UTC (rev 3504) +++ trunk/doc/Change.log.html 2010-06-19 08:14:56 UTC (rev 3505) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>18/06/10 Tim: WWW_Users.php - Add a field in for the supplier code</p> <p>18/06/10 Tim: CounterSales.php - Add the first line of address to the sql query</p> <p>18/06/10 Tim: default.css - Use percentages for font sizes</p> <p>18/06/10 Tim: WWW_Users.php - Extend for Contracts module</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |