From: <tim...@us...> - 2010-09-25 21:09:49
|
Revision: 3781 http://web-erp.svn.sourceforge.net/web-erp/?rev=3781&view=rev Author: tim_schofield Date: 2010-09-25 21:09:43 +0000 (Sat, 25 Sep 2010) Log Message: ----------- Add script to show list of open shipments for selected supplier Modified Paths: -------------- trunk/SelectSupplier.php trunk/ShiptsList.php trunk/doc/Change.log.html Modified: trunk/SelectSupplier.php =================================================================== --- trunk/SelectSupplier.php 2010-09-25 13:01:55 UTC (rev 3780) +++ trunk/SelectSupplier.php 2010-09-25 21:09:43 UTC (rev 3781) @@ -160,7 +160,7 @@ echo "<br><a href='$rootpath/PO_SelectOSPurchOrder.php?" . SID . '&SelectedSupplier=' . $_SESSION['SupplierID'] . "'>" . _('Add / Receive / View Outstanding Purchase Orders') . '</a>'; echo "<br><a href='$rootpath/PO_SelectPurchOrder.php?" . SID . '&SelectedSupplier=' . $_SESSION['SupplierID'] . "'>" . _('View All Purchase Orders') . '</a><br>'; wikiLink('Supplier', $_SESSION['SupplierID']); - echo '<br>'; + echo "<br><a href='$rootpath/ShiptsList.php?" . SID . '&SupplierID=' . $_SESSION['SupplierID'] . "&SupplierName=".urlencode($SupplierName)."'>" . _('List all open shipments for') .' '.$SupplierName. '</a>'; echo "<br><a href='$rootpath/Shipt_Select.php?" . SID . '&SelectedSupplier=' . $_SESSION['SupplierID'] . "'>" . _('Search / Modify / Close Shipments') . '</a>'; echo "<br><a href='$rootpath/SuppPriceList.php?" . SID . '&SelectedSupplier=' . $_SESSION['SupplierID'] . "'>" . _('Supplier Price List') . '</a>'; echo '</td><td valign=top class="select">'; /* Supplier Transactions */ Modified: trunk/ShiptsList.php =================================================================== --- trunk/ShiptsList.php 2010-09-25 13:01:55 UTC (rev 3780) +++ trunk/ShiptsList.php 2010-09-25 21:09:43 UTC (rev 3781) @@ -7,9 +7,11 @@ $title = _('Shipments Open Inquiry'); include('includes/header.inc'); +echo '<p class="page_title_text"><img src="' . $rootpath . '/css/' . $theme . '/images/supplier.png" title="' . + _('Supplier') . '" alt="">' . ' ' . _('Open Shipments for').' ' . $_GET['SupplierName']. '.</p>'; -if (!isset($_GET['SupplierID']) OR !isset($_GET['SupplierName'])){ - echo '<p>'; +if (!isset($_GET['SupplierID']) or !isset($_GET['SupplierName'])){ + echo '<br />'; prnMsg( _('This page must be given the supplier code to look for shipments for'), 'error'); include('includes/footer.inc'); exit; @@ -30,10 +32,9 @@ } /*show a table of the shipments returned by the SQL */ -echo '<div class="centre"><font size=4 color=BLUE>'. _('Open Shipments for').' ' . $_GET['SupplierName'] . '</font><br> - </div><table cellpadding=2 colspan=2>'; -$TableHeader = '<tr> - <th>'. _('Reference'). '</th> +echo '<table cellpadding=2 colspan=2 class=selection>'; +echo '<tr> + <th>'. _('Reference'). '</a></th> <th>'. _('Vessel'). '</th> <th>'. _('ETA'). '</th></tr>'; @@ -49,19 +50,11 @@ $k=1; } - printf('<td >%s</td> - <td>%s</td> - <td>%s</td> - </tr>', - $myrow['shiptref'], - $myrow['vessel'], - ConvertSQLDate($myrow['eta'])); + echo '<td><a href="'.$rootpath.'/Shipments.php?' . SID . 'SelectedShipment='.$myrow['shiptref'].'">'.$myrow['shiptref'].'</a></td> + <td>'.$myrow['vessel'].'</td> + <td>'.ConvertSQLDate($myrow['eta']).'</td> + </tr>'; - $j++; - If ($j == 12){ - $j=1; - $TableHeader; - } } //end of while loop Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-09-25 13:01:55 UTC (rev 3780) +++ trunk/doc/Change.log.html 2010-09-25 21:09:43 UTC (rev 3781) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>25/09/10 Tim: ShiptsList.php - Add script to show list of open shipments for selected supplier</p> <p>25/09/10 Tim: Shipt_Select.php - SQL quoting corrections and layout changes and improvements and bug fixes</p> <p>25/09/10 Tim: Shippers.php - SQL quoting corrections and layout changes and improvements and bug fixes</p> <p>25/09/10 Tim: Shipments.php - SQL quoting corrections and layout changes and improvements and bug fixes</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |