6f076140977391679876cfa784fc81a8d3eb3334
[order_line_extra.git] / order_lines_view.php
1 <?php
2 /**********************************************************************
3     Copyright (C) FrontAccounting, LLC.
4         Released under the terms of the GNU General Public License, GPL, 
5         as published by the Free Software Foundation, either version 3 
6         of the License, or (at your option) any later version.
7     This program is distributed in the hope that it will be useful,
8     but WITHOUT ANY WARRANTY; without even the implied warranty of
9     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
10     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
11 ***********************************************************************/
12 $path_to_root = "../..";
13
14 include_once($path_to_root . "/includes/db_pager.inc");
15 include_once($path_to_root . "/includes/session.inc");
16 include_once($path_to_root . "/sales/includes/sales_ui.inc");
17 include_once($path_to_root . "/reporting/includes/reporting.inc");
18
19 include_once("includes/order_lines.inc");
20
21 $page_security = 'SA_ORDERLINEX_EDIT';
22 add_access_extensions();
23
24 $_SESSION['page_title'] = _($help_context = "Edit lines extra parameters");
25
26 $js = "";
27 page($_SESSION['page_title'], false, false, "", $js);
28
29 //---------------------------------------------------------------------------------------------
30
31 start_form();
32
33 start_table(TABLESTYLE_NOBORDER);
34 start_row();
35
36 customer_list_cells(_("Select a customer: "), 'customer_id', false, false, true);
37
38
39
40
41
42 //submit_cells('SearchOrders', _("Search"),'',_('Select documents'), 'default');
43
44 end_row();
45
46 end_table(1);
47
48 //---------------------------------------------------------------------------------------------
49 //      Orders inquiry table
50 //
51 $customer_id = $_POST['customer_id'];
52 if(isset($customer_id)) {
53 label_cell($customer_id);
54         $sql = get_order_details_extra($customer_id);
55
56
57         $cols = array(
58                 _("Order #")
59         );
60 }
61 else {
62 }
63
64
65 $table =& new_db_pager('orders_tbl', $sql, $cols);
66
67 $table->width = "80%";
68
69 display_db_pager($table);
70 submit_center('Update', _("Update"), true, '', null);
71
72         end_form();
73         end_page();
74 ?>