else { $ss->assign('DESTINATION', get_select_options_with_id($app_list_strings['destination_dom_list'], '')); }*/ if (!empty($focus->type)) { $ss->assign('TYPE', get_select_options_with_id($app_list_strings['tourprogram_type_dom'], $focus->type)); } else { $ss->assign('TYPE', get_select_options_with_id($app_list_strings['tourprogram_type_dom'], '')); } if (!empty($focus->picture)) { $ss->assign('PICTURE', "<img src='modules/images/" . $focus->picture . "' width='300' height='300'/>"); } else { $ss->assign('PICTURE', ''); } $ss->assign('PICTURE_NAME', $focus->picture); $ss->assign("TOURPROGRAM", $focus->getEditViewHTMLTourProgramLines()); $ss->assign("TOURPROGRAM_LINE_COUNT", $focus->get_tour_program_line_count()); $ss->assign("NEW", "0"); //IS TEMPLATE $ss->assign("IS_TEMPLATE", $focus->is_template); //TEMPLATE NAME $ss->assign("TEMPLATE_NAME", $focus->template_name); // load dat nuoc //$ss->assign("COUNTRIES", get_select_options_with_id(Country::get_list_countries(), '')); $popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'EditView', 'field_to_name_array' => array('id' => 'assigned_user_id', 'user_name' => 'assigned_user_name')); $ss->assign('encoded_users_popup_request_data', $json->encode($popup_request_data)); // operator $encoded_operator_popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'EditView', 'field_to_name_array' => array('id' => 'operator_id', 'user_name' => 'operator')); $ss->assign('encoded_operator_popup_request_data', $json->encode($encoded_operator_popup_request_data)); // view change log $view_chang_log_data = array("call_back_function" => "set_return", "form_name" => "EditView", "field_to_name_array" => '[]'); $ss->assign('view_change_log', $json->encode($view_chang_log_data));