From: <ex...@us...> - 2013-08-21 08:34:42
|
Revision: 6279 http://sourceforge.net/p/web-erp/reponame/6279 Author: exsonqu Date: 2013-08-21 08:34:37 +0000 (Wed, 21 Aug 2013) Log Message: ----------- 21/8/2013 Exson: Fixed the notice error of undefined index Status and and space for some string. Modified Paths: -------------- trunk/PO_SelectOSPurchOrder.php Modified: trunk/PO_SelectOSPurchOrder.php =================================================================== --- trunk/PO_SelectOSPurchOrder.php 2013-08-21 03:23:57 UTC (rev 6278) +++ trunk/PO_SelectOSPurchOrder.php 2013-08-21 08:34:37 UTC (rev 6279) @@ -166,26 +166,28 @@ } else { echo '<option value="Pending_Authorised">' . _('Pending and Authorised') . '</option>'; } - if ($_POST['Status'] == 'Pending') { - echo '<option selected="selected" value="Pending">' . _('Pending') . '</option>'; - } else { - echo '<option value="Pending">' . _('Pending') . '</option>'; + if(isset($_POST['Status'])){ + if ($_POST['Status'] == 'Pending') { + echo '<option selected="selected" value="Pending">' . _('Pending') . '</option>'; + } else { + echo '<option value="Pending">' . _('Pending') . '</option>'; + } + if ($_POST['Status'] == 'Authorised') { + echo '<option selected="selected" value="Authorised">' . _('Authorised') . '</option>'; + } else { + echo '<option value="Authorised">' . _('Authorised') . '</option>'; + } + if ($_POST['Status'] == 'Cancelled') { + echo '<option selected="selected" value="Cancelled">' . _('Cancelled') . '</option>'; + } else { + echo '<option value="Cancelled">' . _('Cancelled') . '</option>'; + } + if ($_POST['Status'] == 'Rejected') { + echo '<option selected="selected" value="Rejected">' . _('Rejected') . '</option>'; + } else { + echo '<option value="Rejected">' . _('Rejected') . '</option>'; + } } - if ($_POST['Status'] == 'Authorised') { - echo '<option selected="selected" value="Authorised">' . _('Authorised') . '</option>'; - } else { - echo '<option value="Authorised">' . _('Authorised') . '</option>'; - } - if ($_POST['Status'] == 'Cancelled') { - echo '<option selected="selected" value="Cancelled">' . _('Cancelled') . '</option>'; - } else { - echo '<option value="Cancelled">' . _('Cancelled') . '</option>'; - } - if ($_POST['Status'] == 'Rejected') { - echo '<option selected="selected" value="Rejected">' . _('Rejected') . '</option>'; - } else { - echo '<option value="Rejected">' . _('Rejected') . '</option>'; - } echo '</select> <input type="submit" name="SearchOrders" value="' . _('Search Purchase Orders') . '" /> </td> </tr> @@ -211,11 +213,11 @@ } } //end loop through categories echo '</select></td>'; -echo '<td>' . _('Enter text extracts in the') . '<b>' . _('description') . '</b>:</td>'; +echo '<td>' . _('Enter text extracts in the') .' '. '<b>' . _('description') . '</b>:</td>'; echo '<td><input type="text" name="Keywords" size="20" maxlength="25" /></td> </tr> <tr><td></td>'; -echo '<td><b>' . _('OR') . '</b>' . _('Enter extract of the') . '<b>' . _('Stock Code') . '</b>:</td>'; +echo '<td><b>' . _('OR').' '. '</b>' . _('Enter extract of the') .' '. '<b>' . _('Stock Code') . '</b>:</td>'; echo '<td><input type="text" name="StockCode" size="15" maxlength="18" /></td> </tr> </table> |