Cleanup: removed all closing tags in php files.
[fa-stable.git] / manufacturing / manage / bom_edit.php
index e963d5634f53192d22aaf161ad1e68b6e8f3ab88..aee79dd9b2c2de101d2efb3afa407bf5ed36c2d8 100644 (file)
@@ -64,11 +64,9 @@ else
 
 function display_bom_items($selected_parent)
 {
-       global $table_style;
-
        $result = get_bom($selected_parent);
        div_start('bom');
-       start_table("$table_style width=60%");
+       start_table(TABLESTYLE, "width=60%");
        $th = array(_("Code"), _("Description"), _("Location"),
                _("Work Centre"), _("Quantity"), _("Units"),'','');
        table_header($th);
@@ -167,8 +165,10 @@ if ($Mode == 'RESET')
 start_form();
 
 start_form(false, true);
-start_table("class='tablestyle_noborder'");
-stock_manufactured_items_list_row(_("Select a manufacturable item:"), 'stock_id', null, false, true);
+start_table(TABLESTYLE_NOBORDER);
+start_row();
+stock_manufactured_items_list_cells(_("Select a manufacturable item:"), 'stock_id', null, false, true);
+end_row();
 if (list_updated('stock_id'))
        $Ajax->activate('_page_body');
 end_table();
@@ -189,7 +189,7 @@ start_form();
        //--------------------------------------------------------------------------------------
        echo '<br>';
 
-       start_table($table_style2);
+       start_table(TABLESTYLE2);
 
        if ($selected_id != -1)
        {
@@ -208,7 +208,7 @@ start_form();
        else
        {
                start_row();
-               label_cell(_("Component:"));
+               label_cell(_("Component:"), "class='label'");
 
                echo "<td>";
                echo stock_component_items_list('component', $selected_parent, null, false, true);
@@ -235,4 +235,3 @@ start_form();
 
 end_page();
 
-?>