Exemplo n.º 1
0
 function edit_deal_selector($d_id, $d_type_id, $dil_checked)
 {
     //if no deal type- get it !
     if (!$d_type_id) {
         $deal = trade::get_deal_properties($d_id);
         $d_type_id = $deal['type_id'];
     }
     if ($d_type_id == 1) {
         $ans = trade::active_procurement_form($d_id);
     }
     if ($d_type_id == 2) {
         $ans = trade::edit_procurement_form($d_id);
     }
     if ($d_type_id == 3) {
         $ans = trade::debit_proc_form($d_id);
     }
     if ($d_type_id == 4) {
         $ans = trade::edit_list_form($d_id, $dil_checked);
     }
     if ($d_type_id == 5) {
         $ans = trade::active_offer_form($d_id, $dil_checked);
     }
     if ($d_type_id == 6) {
         $ans = trade::saled_deal_form($d_id, $dil_checked);
     }
     return $ans;
 }