function active_offers_table() { return trade::get_deals_by_type_table(5); }
$this->a('procurements.php'); $back_names[] = "cl_call"; $back_names[] = "cl_call2"; $back_names[] = "cl_call3"; $back_names[] = "cl_call4"; $back_names[] = "cl_call5"; // create tree navigation $basemng = new basemng(); $basemng->mysqli = $this->mysqli; $basemng->user = $this->user; $js_include[] = 'js/treeNavigation.js'; $string_out .= $basemng->show_map(); $string_out .= $basemng->show_div_selectors(); $string_out .= "<div id='tree_selector' class='div_outer_tree'>" . $basemng->product_tree(0, 1) . "</div>"; // trade class $trade = new trade(); $trade->mysqli = $this->mysqli; $js_functions[] = $trade->show_js(); $js_include[] = 'js/trade.js'; // procurement product select event ; $js_functions[] = $trade->show_js_sel_prod_event_procurement(); // detect deal calling if (isset($this->request['deal'])) { $main = $trade->edit_deal_selector($this->request['deal']); } else { $main = $trade->get_deals_by_type_table(2); } // first action $string_out .= "<div id='action_buttons' class='divactionbuttons'>Закупки :" . $trade->procurement_buttons() . "</div>"; $string_out .= "<div id ='main_div' class='divmain'>" . $main . "</div>";
$trade = new trade(); $trade->sp = $this->sp; $trade->mysqli = $this->mysqli; $trade->user = $this->user; $js_functions[] = $trade->show_js(); $js_include[] = 'js/trade.js'; // procurement product select event ; $js_functions[] = $trade->show_js_sel_prod_event_list(); $js_functions[] = $trade->show_js_sel_cat_event_list(); //deal settings if ($todo == "settings") { $main = $trade->deal_settings($d_id); } //detect deals table calling if (isset($dt_id) and $dt_id != '') { $main = $main ? $main : $trade->get_deals_by_type_table($this->request['deal_type']); } // detect deal calling if (isset($d_id) and $d_id != '') { $main = $main ? $main : $trade->edit_deal_selector($this->request['deal']); } else { //default form $main = $main ? $main : $trade->get_deals_by_type_table(4); // current lists //$main=($main)?$main:$trade->edit_list_form(0); // new list form } // create tree navigation $basemng = new basemng(); $basemng->mysqli = $this->mysqli; $basemng->user = $this->user; //$js_functions[]=$basemng->js_for_tree_navigation();
function active_lists_table() { return trade::get_deals_by_type_table(4); }