[Weberp-svn] SF.net SVN: weberp:[8721] trunk
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2012-04-28 21:32:13
|
Revision: 8721 http://weberp.svn.sourceforge.net/weberp/?rev=8721&view=rev Author: tim_schofield Date: 2012-04-28 21:32:07 +0000 (Sat, 28 Apr 2012) Log Message: ----------- Layout improvements, new css and buttons Modified Paths: -------------- trunk/SupplierTenderCreate.php trunk/SupplierTenders.php Modified: trunk/SupplierTenderCreate.php =================================================================== --- trunk/SupplierTenderCreate.php 2012-04-28 21:31:57 UTC (rev 8720) +++ trunk/SupplierTenderCreate.php 2012-04-28 21:32:07 UTC (rev 8721) @@ -229,7 +229,7 @@ echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<table class="selection">'; echo '<tr> - <th colspan="4"><font size="3" color="#616161">' . _('Tender header details') . '</font></th> + <th colspan="4" class="header">' . _('Tender header details') . '</th> </tr>'; echo '<tr> <td>' . _('Delivery Must Be Made Before') . '</td> @@ -336,7 +336,7 @@ } echo '</select> - <input type="submit" name="LookupDeliveryAddress" value="' ._('Select') . '" /></td> + <button type="submit" name="LookupDeliveryAddress">' ._('Select') . '</button></td> </tr>'; /* Display the details of the delivery location @@ -385,7 +385,7 @@ <td valign="top"> <table class="selection">'; echo '<tr> - <th colspan="4"><font size="3" color="#616161">' . _('Suppliers To Send Tender') . '</font></th> + <th colspan="4" class="header">' . _('Suppliers To Send Tender') . '</th> </tr>'; echo '<tr> <th>'. _('Supplier Code') . '</th> @@ -404,7 +404,7 @@ /* Item Details */ echo '<td valign="top"><table class="selection">'; - echo '<tr><th colspan="6"><font size="3" color="#616161">' . _('Items in Tender') . '</font></th></tr>'; + echo '<tr><th colspan="6" class="header">' . _('Items in Tender') . '</th></tr>'; echo '<tr> <th>'._('Stock ID').'</th> <th>'._('Description').'</th> @@ -433,15 +433,15 @@ echo '</table></td></tr></table><br />'; echo '<div class="centre"> - <input type="submit" name="Suppliers" value="' . _('Select Suppliers') . '" /> - <input type="submit" name="Items" value="' . _('Select Item Details') . '" /> + <button type="submit" name="Suppliers">' . _('Select Suppliers') . '</button> + <button type="submit" name="Items">' . _('Select Item Details') . '</button> </div> <br />'; if ($_SESSION['tender'.$identifier]->LinesOnTender > 0 and $_SESSION['tender'.$identifier]->SuppliersOnTender > 0) { echo '<div class="centre"> - <input type="submit" name="Save" value="' . _('Save Tender') . '" /> + <button type="submit" name="Save">' . _('Save Tender') . '</button> </div>'; } echo '</form>'; @@ -533,7 +533,7 @@ } else { echo '<input type="text" name="SupplierCode" size="15" maxlength="18" />'; } - echo '</td></tr></table><br /><div class="centre"><input type="submit" name="SearchSupplier" value="' . _('Search Now') . '" /></div>'; + echo '</td></tr></table><br /><div class="centre"><button type="submit" name="SearchSupplier">' . _('Search Now') . '</button></div>'; echo '</form>'; } @@ -565,16 +565,14 @@ $ListPage++; } echo '</select> - <input type="submit" name="Go" value="' . _('Go') . '" /> - <input type="submit" name="Previous" value="' . _('Previous') . '" /> - <input type="submit" name="Next" value="' . _('Next') . '" />'; + <button type="submit" name="Go">' . _('Go') . '</button> + <button type="submit" name="Previous">' . _('Previous') . '</button> + <button type="submit" name="Next">' . _('Next') . '</button>'; echo '<br />'; } echo '<input type="hidden" name="Search" value="' . _('Search Now') . '" />'; echo '<br /> - <br /> - <br /> - <table cellpadding="2" colspan="7">'; + <table cellpadding="2" colspan="7" class="selection">'; echo '<tr> <th>' . _('Code') . '</th> <th>' . _('Supplier Name') . '</th> @@ -598,7 +596,7 @@ echo '<tr class="OddTableRows">'; $k = 1; } - echo '<td><input type="submit" name="SelectedSupplier" value="'.$myrow['supplierid'].'" /></td> + echo '<td><button type="submit" name="SelectedSupplier" value="'.$myrow['supplierid'].'" />'.$myrow['supplierid'].'</button></td> <td>'.$myrow['suppname'].'</td> <td>'.$myrow['currcode'].'</td> <td>'.$myrow['address1'].'</td> @@ -671,7 +669,7 @@ </table> <br /> <div class="centre"> - <input type="submit" name="Search" value="' . _('Search Now') . '" /> + <button type="submit" name="Search">' . _('Search Now') . '</button> </div> <br /> </form>'; @@ -803,7 +801,7 @@ if (isset($SearchResult)) { - echo '<table cellpadding="1">'; + echo '<table cellpadding="1" class="selection">'; echo '<tr> <th>' . _('Code') . '</th> <th>' . _('Description') . '</th> @@ -852,7 +850,7 @@ echo '<a name="end"></a> <br /> <div class="centre"> - <input type="submit" name="NewItem" value="' . _('Add to Tender') . '" /> + <button type="submit" name="NewItem">' . _('Add to Tender') . '</button> </div>'; }#end if SearchResults to show Modified: trunk/SupplierTenders.php =================================================================== --- trunk/SupplierTenders.php 2012-04-28 21:31:57 UTC (rev 8720) +++ trunk/SupplierTenders.php 2012-04-28 21:32:07 UTC (rev 8721) @@ -132,8 +132,8 @@ echo '<td>' . $LineItem->ExpiryDate . '</td>'; } echo '</table><br />'; - echo '<div class="centre"><input type="submit" name="Confirm" value="' . _('Confirm and Send Email') . '" /><br />'; - echo '<br /><input type="submit" name="Cancel" value="' . _('Cancel Offer') . '" /></div>'; + echo '<div class="centre"><button type="submit" name="Confirm">' . _('Confirm and Send Email') . '</button><br />'; + echo '<button type="submit" name="Cancel">' . _('Cancel Offer') . '</button></div>'; echo '</form>'; include('includes/footer.inc'); exit; @@ -157,7 +157,7 @@ echo '<option value="3">'._('View any open tenders without an offer from').' '.$Supplier .'</option>'; echo '</select></td></tr>'; echo '<input type="hidden" name="SupplierID" value="'.$_POST['SupplierID'].'" />'; - echo '<tr><td colspan="2"><div class="centre"><input type="submit" name="submit" value="' . _('Select') . '" /></div></td></tr>'; + echo '<tr><td colspan="2"><div class="centre"><button type="submit" name="submit">' . _('Select') . '</button></div></td></tr>'; echo '</table></form>'; } @@ -298,7 +298,7 @@ echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'].'?identifier='.$identifier) . '">'; echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; echo '<p class="page_title_text"><img src="' . $rootpath . '/css/' . $theme . '/images/supplier.png" title="' . _('Search') . '" alt="" />' . ' ' . _('Items to offer from').' '.$Supplier .'</p>'; - echo '<table>'; + echo '<table class="selection">'; echo '<tr> <th>'._('Stock ID').'</th> <th>'._('Description').'</th> @@ -336,11 +336,11 @@ echo '</table>'; echo '<input type="hidden" name="TenderType" value="'.$_POST['TenderType'].'" />'; if ($_POST['TenderType']==1) { - echo '<br /><div class="centre"><input type="submit" name="Update" value="Update offer" />'; - echo '<input type="submit" name="Refresh" value="Refresh screen" /></div>'; + echo '<br /><div class="centre"><button type="submit" name="Update">' . _('Update offer') . '</button>'; + echo '<button type="submit" name="Refresh">' . _('Refresh screen') . '</button></div>'; } else if ($_POST['TenderType']==2) { - echo '<br /><div class="centre"><input type="submit" name="Save" value="Save offer">'; - echo '<input type="submit" name="Refresh" value="Refresh screen" /></div>'; + echo '<br /><div class="centre"><button type="submit" name="Save">' . _('Save offer') . '</button>'; + echo '<button type="submit" name="Refresh">' . _('Refresh screen') . '</button></div>'; } echo '</form>'; } @@ -356,9 +356,9 @@ echo '<p class="page_title_text"><img src="' . $rootpath . '/css/' . $theme . '/images/magnifier.png" title="' . _('Search') . '" alt="" />' . ' ' . _('Search for Inventory Items') . '</p>'; $sql = "SELECT categoryid, - categorydescription - FROM stockcategory - ORDER BY categorydescription"; + categorydescription + FROM stockcategory + ORDER BY categorydescription"; $result = DB_query($sql, $db); if (DB_num_rows($result) == 0) { @@ -403,7 +403,7 @@ echo '<input type="text" name="StockCode" size="15" maxlength="18" />'; } echo '</td></tr></table><br />'; - echo '<div class="centre"><input type="submit" name="Search" value="' . _('Search Now') . '" /></div><br /></form>'; + echo '<div class="centre"><button type="submit" name="Search">' . _('Search Now') . '</button></div><br /></form>'; echo '<script type="text/javascript">defaultControl(document.forms[0].StockCode);</script>'; echo '</form>'; } @@ -455,7 +455,7 @@ echo '</td>'; echo '<th colspan="8" style="vertical-align:top"><font size="2" color="#616161">' . _('Tender Number') . ': ' .$myrow['tenderid'] . '</font></th>'; echo '<input type="hidden" value="' . $myrow['tenderid'] . '" name="Tender" />'; - echo '<th><input type="submit" value="' . _('Process') . "\n" . _('Tender') . '" name="Process" /></th></tr>'; + echo '<th><button type="submit" value="" name="Process">' . _('Process') . "\n" . _('Tender') . '</button></th></tr>'; $ItemSQL="SELECT tenderitems.tenderid, tenderitems.stockid, stockmaster.description, @@ -625,7 +625,7 @@ if (isset($SearchResult)) { - echo '<table cellpadding="1">'; + echo '<table cellpadding="1" class="selection">'; $tableheader = '<tr> <th>' . _('Code') . '</th> @@ -704,7 +704,7 @@ prnMsg( _('Only the first') . ' ' . $Maximum_Number_Of_Parts_To_Show . ' ' . _('can be displayed') . '. ' . _('Please restrict your search to only the parts required'),'info'); } - echo '<a name="end"></a><br /><div class="centre"><input type="submit" name="NewItem" value="Add to Offer" /></div>'; + echo '<a name="end"></a><br /><div class="centre"><button type="submit" name="NewItem" value="" />' . _('Add to Offer') . '</button></div>'; }#end if SearchResults to show echo '<input type="hidden" name="TenderType" value="'.$_POST['TenderType'].'" />'; echo '<input type="hidden" name="SupplierID" value="'.$_POST['SupplierID'].'" />'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |