Пример #1
0
 function save_deal_description($d_id, $d_desc)
 {
     $sql = "UPDATE `DEALS` SET `D_DESC` ='" . page::u2w($d_desc) . "' WHERE D_ID=" . $d_id . ";";
     $result = $this->mysqli->query($sql);
     return trade::edit_deal_selector($d_id, '');
 }
Пример #2
0
$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();
$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>";