Sel_cmp_init(); $Sel_Cmp->Sel_cmp_init_fields(); $Sel_Cmp->Sel_cmp_process(); } class grid_movimentacao_sel_cmp { function Sel_cmp_init($bol_sel_campos_include = false, $sc_init = '', $path_img = '', $path_btn = '', $path_fields = '',$embbed = true, $tbar_pos = '') { $this->proc_ajax = false; if (isset($_POST['script_case_init'])) { $this->sc_init = filter_input(INPUT_POST, 'script_case_init', FILTER_SANITIZE_NUMBER_INT); $this->path_img = (isset($_POST['path_img'])) ? strip_tags($_POST['path_img']) : ""; $this->path_btn = (isset($_POST['path_btn'])) ? strip_tags($_POST['path_btn']) : ""; $this->path_fields = (isset($_POST['path_fields'])) ? strip_tags($_POST['path_fields']) : ""; $this->embbed = isset($_POST['embbed_groupby']) && 'Y' == $_POST['embbed_groupby']; $this->tbar_pos = filter_input(INPUT_POST, 'toolbar_pos', FILTER_SANITIZE_SPECIAL_CHARS); } elseif (isset($_GET['script_case_init'])) { $this->sc_init = filter_input(INPUT_GET, 'script_case_init', FILTER_SANITIZE_NUMBER_INT); $this->path_img = (isset($_GET['path_img'])) ? strip_tags($_GET['path_img']) : ""; $this->path_btn = (isset($_GET['path_btn'])) ? strip_tags($_GET['path_btn']) : ""; $this->path_fields = (isset($_GET['path_fields'])) ? strip_tags($_GET['path_fields']) : ""; $this->embbed = isset($_GET['embbed_groupby']) && 'Y' == $_GET['embbed_groupby']; $this->tbar_pos = filter_input(INPUT_GET, 'toolbar_pos', FILTER_SANITIZE_SPECIAL_CHARS); } else { $this->sc_init = $sc_init; $this->path_img = $path_img; $this->path_btn = $path_btn; $this->path_fields = $path_fields; $this->embbed = $embbed; $this->tbar_pos = $tbar_pos; } $this->bol_sel_campos_include = $bol_sel_campos_include; if(isset($_REQUEST['embbed_export']) && $_REQUEST['embbed_export'] == 'Y') { $this->bol_sel_campos_include = true; } if (isset($_POST['ajax_ctrl']) && $_POST['ajax_ctrl'] == "proc_ajax") { $this->proc_ajax = true; } $this->ajax_return = array(); $this->campos_sel = isset($_POST['campos_sel']) ? $_POST['campos_sel'] : array(); $this->restore = isset($_POST['restore']) ? true : false; if ($this->restore && !class_exists('Services_JSON')) { include_once("grid_movimentacao_json.php"); } $this->Arr_result = array(); $STR_lang = (isset($_SESSION['scriptcase']['str_lang']) && !empty($_SESSION['scriptcase']['str_lang'])) ? $_SESSION['scriptcase']['str_lang'] : "pt_br"; $NM_arq_lang = "../_lib/lang/" . $STR_lang . ".lang.php"; $this->Nm_lang = array(); if (is_file($NM_arq_lang)) { include_once($NM_arq_lang); } $_SESSION['scriptcase']['charset'] = "UTF-8"; foreach ($this->Nm_lang as $ind => $dados) { if ($_SESSION['scriptcase']['charset'] != "UTF-8" && NM_is_utf8($ind)) { $ind = sc_convert_encoding($ind, $_SESSION['scriptcase']['charset'], "UTF-8"); $this->Nm_lang[$ind] = $dados; } if ($_SESSION['scriptcase']['charset'] != "UTF-8" && NM_is_utf8($dados)) { $this->Nm_lang[$ind] = sc_convert_encoding($dados, $_SESSION['scriptcase']['charset'], "UTF-8"); } $this->Nm_lang[$ind] = str_replace('"', '"', $this->Nm_lang[$ind]); } } function Sel_cmp_process() { if (isset($_POST['fsel_ok']) && $_POST['fsel_ok'] == "OK" && !empty($this->campos_sel) && !$this->restore) { $this->Sel_processa_out(); } else { if ($this->embbed) { ob_start(); $this->Sel_processa_form(); $Temp = ob_get_clean(); echo NM_charset_to_utf8($Temp); } else { $this->Sel_processa_form(); } } exit;} function Sel_css($bol_include_all = false) { if($bol_include_all) { ?> $NM_cada_opc) { if ($NM_cada_opc == "off") { $tab_ger_campos[$NM_cada_field] = "none"; } } } if (isset($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['php_cmp_sel']) && !empty($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['php_cmp_sel'])) { foreach ($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['php_cmp_sel'] as $NM_cada_field => $NM_cada_opc) { if ($NM_cada_opc == "off") { $tab_ger_campos[$NM_cada_field] = "none"; } } } if ($this->restore) { if (isset($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel_orig']) && !empty($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel_orig'])) { foreach ($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel_orig'] as $NM_cada_field => $NM_cada_opc) { $tab_ger_campos[$NM_cada_field] = $NM_cada_opc; } } } else { if (isset($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel']) && !empty($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel'])) { foreach ($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel'] as $NM_cada_field => $NM_cada_opc) { $tab_ger_campos[$NM_cada_field] = $NM_cada_opc; } } } } function Sel_processa_out() { global $tab_ger_campos; $arr_temp = array(); if (!isset($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel'])) { $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel'] = array(); } if($this->bol_sel_campos_include) { $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['export_sel_columns']['field_order'] = $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order']; $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['export_sel_columns']['usr_cmp_sel'] = $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel']; } $arr_order = $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order']; $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order'] = array(); $campos_sel = explode("@?@", $this->campos_sel); foreach ($campos_sel as $campo_order) { if (isset($tab_ger_campos[$campo_order])) { $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order'][] = $campo_order; } } foreach ($arr_order as $campo_order) { if (!in_array($campo_order, $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order'])) { $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order'][] = $campo_order; } } foreach ($tab_ger_campos as $campo_cons => $opc) { if (!in_array($campo_cons, $campos_sel) && $opc != "none") { $arr_temp[$campo_cons] = "off"; } } $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel'] = $arr_temp; if($this->bol_sel_campos_include) { return; } ?> Sel_css($bol_css_all); if(isset($bol_sel_campos_include) && $bol_sel_campos_include && $_SESSION['scriptcase']['proc_mobile']) { ?>

Nm_lang['lang_othr_groupby_available_fld']; ?>

...' />
    proc_ajax) { ob_end_clean(); ob_start(); } $prep_combo = array(); foreach ($tab_ger_campos as $NM_cada_field => $NM_cada_opc) { if ($NM_cada_opc != "none") { if ($NM_cada_opc != "on") { $prep_combo[strtolower($NM_cada_field)] = $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['labels'][$NM_cada_field]; } } } if ($this->restore) { ob_end_clean(); ob_start(); } foreach ($prep_combo as $ind => $cada_field) { ?>
'; } ?> restore) { $this->Arr_result['fldsel_available'] = NM_charset_to_utf8(ob_get_clean()); } ?> proc_ajax) { $this->ajax_return['setHtml'][] = array('field' => 'select_orig', 'value' => ob_get_contents()); } ?>

Nm_lang['lang_othr_groupby_selected_fld']; ?>

?>
    restore) { ob_end_clean(); ob_start(); } if ($this->restore && isset($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order_orig'])) { foreach ($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order_orig'] as $NM_cada_field) { if ($tab_ger_campos[$NM_cada_field] == "on") { $str_class = "scAppDivSelectFieldsDisabled"; if (!in_array($NM_cada_field, $tab_blk_campos)) { $str_class = "scAppDivSelectFieldsEnabled"; } ?>
  • sc_init]['grid_movimentacao']['labels'][$NM_cada_field]; if ($_SESSION['scriptcase']['proc_mobile']) { echo '
    '; } ?>
  • restore) { $this->Arr_result['fldsel_selected'] = NM_charset_to_utf8(ob_get_clean()); $oJson = new Services_JSON(); echo $oJson->encode($this->Arr_result); exit; } if (!$this->restore && isset($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order'])) { foreach ($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order'] as $NM_cada_field) { if ($tab_ger_campos[$NM_cada_field] == "on") { $str_class = "scAppDivSelectFieldsDisabled"; if (!in_array($NM_cada_field, $tab_blk_campos)) { $str_class = "scAppDivSelectFieldsEnabled"; } ?>
  • sc_init]['grid_movimentacao']['labels'][$NM_cada_field]; if ($_SESSION['scriptcase']['proc_mobile']) { echo '
    '; } ?>
proc_ajax) { $this->ajax_return['setHtml'][] = array('field' => 'select_dest', 'value' => ob_get_contents()); } ?>
proc_ajax) { ob_end_clean(); ob_start(); } echo $this->Nm_lang['lang_othr_groupby_available_fld']; ?>
    $NM_cada_opc) { if ($NM_cada_opc != "none") { if ($NM_cada_opc != "on") { $prep_combo[strtolower($NM_cada_field)] = $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['labels'][$NM_cada_field]; } } } if ($this->restore) { ob_end_clean(); ob_start(); } foreach ($prep_combo as $ind => $cada_field) { ?>
  • restore) { $this->Arr_result['fldsel_available'] = NM_charset_to_utf8(ob_get_clean()); } ?>
proc_ajax) { $this->ajax_return['setHtml'][] = array('field' => 'select_orig', 'value' => ob_get_contents()); } ?>
proc_ajax) { ob_end_clean(); ob_start(); } echo $this->Nm_lang['lang_othr_groupby_selected_fld']; ?>
    restore) { ob_end_clean(); ob_start(); } if ($this->restore && isset($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order_orig'])) { foreach ($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order_orig'] as $NM_cada_field) { if ($tab_ger_campos[$NM_cada_field] == "on") { $str_class = "scAppDivSelectFieldsDisabled"; if (!in_array($NM_cada_field, $tab_blk_campos)) { $str_class = "scAppDivSelectFieldsEnabled"; } ?>
  • sc_init]['grid_movimentacao']['labels'][$NM_cada_field]; ?>
  • restore) { $this->Arr_result['fldsel_selected'] = NM_charset_to_utf8(ob_get_clean()); $oJson = new Services_JSON(); echo $oJson->encode($this->Arr_result); exit; } if (!$this->restore && isset($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order'])) { foreach ($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order'] as $NM_cada_field) { if ($tab_ger_campos[$NM_cada_field] == "on") { $str_class = "scAppDivSelectFieldsDisabled"; if (!in_array($NM_cada_field, $tab_blk_campos)) { $str_class = "scAppDivSelectFieldsEnabled"; } ?>
  • sc_init]['grid_movimentacao']['labels'][$NM_cada_field]; ?>
proc_ajax) { $this->ajax_return['setHtml'][] = array('field' => 'select_dest', 'value' => ob_get_contents()); } ?>
sc_init]['grid_movimentacao']['usr_cmp_sel']) && isset($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel_orig']) && $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel'] != $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel_orig']) { $disp_rest = ""; } else { $order_orig = array(); $order_atu = array(); foreach ($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order_orig'] as $ix => $cmp) { if (!isset($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel_orig'][$cmp]) || $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel_orig'][$cmp] != "off") { $order_orig[] = $cmp; } } foreach ($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['field_order'] as $ix => $cmp) { if (!isset($_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel'][$cmp]) || $_SESSION['sc_session'][$this->sc_init]['grid_movimentacao']['usr_cmp_sel'][$cmp] != "off") { $order_atu[] = $cmp; } } if ($order_orig != $order_atu) { $disp_rest = ""; } } if ($display_btn) { if (!$this->embbed) { ?> arr_buttons, "bok_appdiv", "proc_btn_sel('f_sel_sub_sel','submit_form_Fsel()')", "proc_btn_sel('f_sel_sub_sel','submit_form_Fsel()')", "f_sel_sub_sel", "", "", "", "absmiddle", "", "0px", $this->path_btn, "", "", "", "", "", "only_text", "text_right", "", "", "", "", "", "", ""); ?> arr_buttons, "bapply_appdiv", "proc_btn_sel('f_sel_sub_sel', 'scSubmitSelCampos(\\'" . NM_encode_input($this->tbar_pos) . "\\')')", "proc_btn_sel('f_sel_sub_sel', 'scSubmitSelCampos(\\'" . NM_encode_input($this->tbar_pos) . "\\')')", "f_sel_sub_sel", "", "", "", "absmiddle", "", "0px", $this->path_btn, "", "", "", "", "", "only_text", "text_right", "", "", "", "", "", "", ""); ?>     embbed) { ?> arr_buttons, "brestore_appdiv", "proc_btn_sel('Brestore_sel','restore_sel()')", "proc_btn_sel('Brestore_sel','restore_sel()')", "Brestore_sel", "", "", "", "absmiddle", "", "0px", $this->path_btn, "", "", "", "", "", "only_text", "text_right", "", "", "", "", "", "", ""); ?> arr_buttons, "brestore_appdiv", "proc_btn_sel('Brestore_sel','restore_sel()')", "proc_btn_sel('Brestore_sel','restore_sel()')", "Brestore_sel", "", "", "", "absmiddle", "", "0px", $this->path_btn, "", "", "", "", "", "only_text", "text_right", "", "", "", "", "", "", ""); ?>     embbed) { ?> arr_buttons, "bsair_appdiv", "self.parent.tb_remove(); buttonunselectedSF();", "self.parent.tb_remove(); buttonunselectedSF();", "Bsair", "", "", "", "absmiddle", "", "0px", $this->path_btn, "", "", "", "", "", "only_text", "text_right", "", "", "", "", "", "", ""); ?> arr_buttons, "bcancelar_appdiv", "closeAllModalPanes();", "closeAllModalPanes();", "Bsair", "", "", "", "absmiddle", "", "0px", $this->path_btn, "", "", "", "", "", "only_text", "text_right", "", "", "", "", "", "", ""); ?> arr_buttons, "bcancelar_appdiv", "scBtnSelCamposHide('" . NM_encode_input($this->tbar_pos) . "'); buttonunselectedSF();", "scBtnSelCamposHide('" . NM_encode_input($this->tbar_pos) . "'); buttonunselectedSF();", "Bsair", "", "", "", "absmiddle", "", "0px", $this->path_btn, "", "", "", "", "", "only_text", "text_right", "", "", "", "", "", "", ""); ?>
proc_ajax || $this->restore) { ob_start(); } $size = 10; $str_schema_all = (isset($_SESSION['scriptcase']['str_schema_all']) && !empty($_SESSION['scriptcase']['str_schema_all'])) ? $_SESSION['scriptcase']['str_schema_all'] : "Sc9_SoftCloud_sm/Sc9_SoftCloud_sm"; include("../_lib/css/" . $str_schema_all . "_grid.php"); $Str_btn_grid = trim($str_button) . "/" . trim($str_button) . $_SESSION['scriptcase']['reg_conf']['css_dir'] . ".php"; include("../_lib/buttons/" . $Str_btn_grid); if (!function_exists("nmButtonOutput")) { include_once("../_lib/lib/php/nm_gp_config_btn.php"); } if (!$this->embbed) { ?> > Movimentação GMT"/>
embbed) { echo "
"; echo " "; } elseif ($_SESSION['scriptcase']['reg_conf']['html_dir'] == " DIR='RTL'") { echo "
"; } else { echo "
"; } ?> embbed) { ?>
embbed) { ?>
Nm_lang['lang_btns_clmn_hint']; ?>
displayHtml(!$this->embbed); ?>
embbed) { ?>
embbed) { ?> proc_ajax) { ob_end_clean(); $oJson = new Services_JSON(); echo $oJson->encode($this->ajax_return); exit; } } }