Improved layout.
[fa-stable.git] / manufacturing / inquiry / bom_cost_inquiry.php
index 1621a27e768e452d0f39ecb7f97d3b56d0c3ab64..4f62c5bf36ff024776c2a677d15e9d478e3d3d41 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 /**********************************************************************
     Copyright (C) FrontAccounting, LLC.
-       Released under the terms of the GNU Affero General Public License,
-       AGPL, as published by the Free Software Foundation, either version 
-       of the License, or (at your option) any later version.
+       Released under the terms of the GNU General Public License, GPL, 
+       as published by the Free Software Foundation, either version 3 
+       of the License, or (at your option) any later version.
     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
-    See the License here <http://www.gnu.org/licenses/agpl-3.0.html>.
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
 $page_security = 2;
 $path_to_root="../..";
@@ -15,6 +15,7 @@ include_once($path_to_root . "/includes/session.inc");
 
 page(_("Costed Bill Of Material Inquiry"));
 
+include_once($path_to_root . "/manufacturing/includes/manufacturing_ui.inc");
 include_once($path_to_root . "/includes/manufacturing.inc");
 include_once($path_to_root . "/includes/ui.inc");
 include_once($path_to_root . "/includes/banking.inc");
@@ -26,22 +27,22 @@ if (isset($_GET['stock_id']))
 {
        $_POST['stock_id'] = $_GET['stock_id'];
 } 
-
-start_form(false, true));
-echo "<center> " . _("Item:") . " ";   
-stock_bom_items_list('stock_id', $_POST['stock_id'], false, true);
-
-echo "<hr>";
-
-if ($_POST['stock_id'] != "")
-{
-       echo "<center>" . _("All Costs Are In:") . " " . get_company_currency() . "<br><br>";
+if (list_updated('stock_id'))
+               $Ajax->activate('_page_body');
+
+start_form();
+    start_table("class='tablestyle_noborder'");
+       start_row();
+       echo '<td>';
+       stock_bom_items_list('stock_id', null, false, true);
+       echo '</td>';
+       end_table();
+       
+       echo "<hr>";
+
+       display_heading(_("All Costs Are In:") . " " . get_company_currency());
        display_bom($_POST['stock_id']);
-} 
-else 
-{ //no item entered
-       echo "<p>" ._("Enter an item code above, to view the costed bill of material for.") . "</p>";
-}      
+
 end_form();
 
 end_page();