/
home
/
suroeste
/
public_html
/
gorbus.transportessuroeste.com
/
suroeste
/
app2_Login
/
/home/suroeste/public_html/gorbus.transportessuroeste.com/suroeste/app2_Login
mkdir
upload
Name
Size
Mode
Actions
app2_Login.htm
125
0644
edit
dl
rm
app2_Login.php
58
0644
edit
dl
rm
app2_Login_apl.php
444560
0644
edit
dl
rm
app2_Login_captcha_play.php
422
0644
edit
dl
rm
app2_Login_captcha_show.php
1423
0644
edit
dl
rm
app2_Login_doc_name.php
16097
0644
edit
dl
rm
app2_Login_empty.htm
193
0644
edit
dl
rm
app2_Login_erro.class.php
1446
0644
edit
dl
rm
app2_Login_erro.php
10243
0644
edit
dl
rm
app2_Login_fim.php
10977
0644
edit
dl
rm
app2_Login_form0.php
118655
0644
edit
dl
rm
app2_Login_jquery.php
37687
0644
edit
dl
rm
app2_Login_js0.php
16528
0644
edit
dl
rm
app2_Login_json.php
37028
0644
edit
dl
rm
app2_Login_ltr.css
4937
0644
edit
dl
rm
app2_Login_mob.htm
268
0644
edit
dl
rm
app2_Login_mob.php
305628
0644
edit
dl
rm
app2_Login_mob_apl.php
447394
0644
edit
dl
rm
app2_Login_mob_captcha_play.php
426
0644
edit
dl
rm
app2_Login_mob_captcha_show.php
1427
0644
edit
dl
rm
app2_Login_mob_doc_name.php
16097
0644
edit
dl
rm
app2_Login_mob_empty.htm
197
0644
edit
dl
rm
app2_Login_mob_erro.class.php
1454
0644
edit
dl
rm
app2_Login_mob_erro.php
10347
0644
edit
dl
rm
app2_Login_mob_fim.php
11077
0644
edit
dl
rm
app2_Login_mob_form0.php
120761
0644
edit
dl
rm
app2_Login_mob_jquery.php
33142
0644
edit
dl
rm
app2_Login_mob_js0.php
13449
0644
edit
dl
rm
app2_Login_mob_json.php
37028
0644
edit
dl
rm
app2_Login_mob_ltr.css
5153
0644
edit
dl
rm
app2_Login_mob_rtl.css
0
0644
edit
dl
rm
app2_Login_mob_sajax.php
17897
0644
edit
dl
rm
app2_Login_mob_sajax_js.php
168337
0644
edit
dl
rm
app2_Login_mob_securimage.php
124930
0644
edit
dl
rm
app2_Login_mob_session.php
3065
0644
edit
dl
rm
app2_Login_mob_ul_save.php
4092
0644
edit
dl
rm
app2_Login_rtl.css
1315
0644
edit
dl
rm
app2_Login_sajax.php
17897
0644
edit
dl
rm
app2_Login_sajax_js.php
167637
0644
edit
dl
rm
app2_Login_securimage.php
124930
0644
edit
dl
rm
app2_Login_session.php
3065
0644
edit
dl
rm
app2_Login_teste.php
46
0644
edit
dl
rm
app2_Login_ul_save.php
4076
0644
edit
dl
rm
index.php
294886
0644
edit
dl
rm
Edit:
/home/suroeste/public_html/gorbus.transportessuroeste.com/suroeste/app2_Login/app2_Login_form0.php
(118655B)
<?php if (!isset($this->NM_ajax_info['param']['buffer_output']) || !$this->NM_ajax_info['param']['buffer_output']) { $sOBContents = ob_get_contents(); ob_end_clean(); } header("X-XSS-Protection: 1; mode=block"); header("X-Frame-Options: SAMEORIGIN"); header("X-Content-Type-Options: nosniff"); header("Referrer-Policy: same-origin"); ?> <!DOCTYPE html> <html<?php echo $_SESSION['scriptcase']['reg_conf']['html_dir'] ?>> <HEAD> <TITLE><?php if ('novo' == $this->nmgp_opcao) { echo strip_tags(""); } else { echo strip_tags(""); } ?></TITLE> <META http-equiv="Content-Type" content="text/html; charset=<?php echo $_SESSION['scriptcase']['charset_html'] ?>" /> <META http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT" /> <META http-equiv="Last-Modified" content="<?php echo gmdate('D, d M Y H:i:s') ?> GMT" /> <META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate" /> <META http-equiv="Pragma" content="no-cache" /> <link rel="shortcut icon" href="../_lib/img/grp__NM__bg__NM__bus0004.png"> <?php if (isset($_SESSION['scriptcase']['device_mobile']) && $_SESSION['scriptcase']['device_mobile'] && $_SESSION['scriptcase']['display_mobile']) { ?> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <?php } ?> <meta name="viewport" content="minimal-ui, width=300, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> <meta name="mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <link rel="apple-touch-icon" sizes="57x57" href=""> <link rel="apple-touch-icon" sizes="60x60" href=""> <link rel="apple-touch-icon" sizes="72x72" href=""> <link rel="apple-touch-icon" sizes="76x76" href=""> <link rel="apple-touch-icon" sizes="114x114" href=""> <link rel="apple-touch-icon" sizes="120x120" href=""> <link rel="apple-touch-icon" sizes="144x144" href=""> <link rel="apple-touch-icon" sizes="152x152" href=""> <link rel="apple-touch-icon" sizes="180x180" href=""> <link rel="icon" type="image/png" sizes="192x192" href=""> <link rel="icon" type="image/png" sizes="32x32" href=""> <link rel="icon" type="image/png" sizes="96x96" href=""> <link rel="icon" type="image/png" sizes="16x16" href=""> <meta name="msapplication-TileColor" content="___"> <meta name="msapplication-TileImage" content=""> <meta name="theme-color" content="___"> <meta name="apple-mobile-web-app-status-bar-style" content="___"> <link rel="shortcut icon" href=""> <link rel="stylesheet" href="<?php echo $this->Ini->path_prod ?>/third/jquery_plugin/thickbox/thickbox.css" type="text/css" media="screen" /> <SCRIPT type="text/javascript"> var sc_pathToTB = '<?php echo $this->Ini->path_prod ?>/third/jquery_plugin/thickbox/'; var sc_tbLangClose = "<?php echo html_entity_decode($this->Ini->Nm_lang["lang_tb_close"], ENT_COMPAT, $_SESSION["scriptcase"]["charset"]) ?>"; var sc_tbLangEsc = "<?php echo html_entity_decode($this->Ini->Nm_lang["lang_tb_esc"], ENT_COMPAT, $_SESSION["scriptcase"]["charset"]) ?>"; var sc_userSweetAlertDisplayed = false; </SCRIPT> <SCRIPT type="text/javascript"> var sc_blockCol = '<?php echo $this->Ini->Block_img_col; ?>'; var sc_blockExp = '<?php echo $this->Ini->Block_img_exp; ?>'; var sc_ajaxBg = '<?php echo $this->Ini->Color_bg_ajax; ?>'; var sc_ajaxBordC = '<?php echo $this->Ini->Border_c_ajax; ?>'; var sc_ajaxBordS = '<?php echo $this->Ini->Border_s_ajax; ?>'; var sc_ajaxBordW = '<?php echo $this->Ini->Border_w_ajax; ?>'; var sc_ajaxMsgTime = 2; var sc_img_status_ok = '<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Img_status_ok; ?>'; var sc_img_status_err = '<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Img_status_err; ?>'; var sc_css_status = '<?php echo $this->Ini->Css_status; ?>'; var sc_css_status_pwd_box = '<?php echo $this->Ini->Css_status_pwd_box; ?>'; var sc_css_status_pwd_text = '<?php echo $this->Ini->Css_status_pwd_text; ?>'; </SCRIPT> <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_third; ?>jquery/js/jquery.js"></SCRIPT> <?php if ($_SESSION['scriptcase']['display_mobile'] && $_SESSION['scriptcase']['device_mobile']) { $forced_mobile = (isset($_SESSION['scriptcase']['force_mobile']) && $_SESSION['scriptcase']['force_mobile']) ? 'true' : 'false'; $sc_app_data = json_encode([ 'forceMobile' => $forced_mobile, 'appType' => 'form', 'improvements' => true, 'displayOptionsButton' => false, 'displayScrollUp' => true, 'scrollUpPosition' => 'A', 'toolbarOrientation' => 'H', 'mobilePanes' => 'true', 'navigationBarButtons' => unserialize('a:0:{}'), 'mobileSimpleToolbar' => false, 'bottomToolbarFixed' => false ]); ?> <input type="hidden" id="sc-mobile-app-data" value='<?php echo $sc_app_data; ?>' /> <script type="text/javascript" src="../_lib/lib/js/nm_modal_panes.jquery.js"></script> <script type="text/javascript" src="../_lib/lib/js/nm_form_mobile.js"></script> <link rel='stylesheet' href='../_lib/lib/css/nm_form_mobile.css' type='text/css'/> <script> $(document).ready(function(){ bootstrapMobile(); }); </script> <?php } ?> <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery/js/jquery-ui.js"></SCRIPT> <link rel="stylesheet" href="<?php echo $this->Ini->path_prod ?>/third/jquery/css/smoothness/jquery-ui.css" type="text/css" media="screen" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_sweetalert.css" /> <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/sweetalert/sweetalert2.all.min.js"></SCRIPT> <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/sweetalert/polyfill.min.js"></SCRIPT> <script type="text/javascript" src="<?php echo $this->Ini->url_lib_js ?>frameControl.js"></script> <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.iframe-transport.js"></SCRIPT> <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.fileupload.js"></SCRIPT> <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery_plugin/malsup-blockui/jquery.blockUI.js"></SCRIPT> <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery_plugin/thickbox/thickbox-compressed.js"></SCRIPT> <style type="text/css"> .sc-form-order-icon { padding: 0 2px; } </style> <?php $formOrderUnusedVisivility = $_SESSION['scriptcase']['device_mobile'] && $_SESSION['scriptcase']['display_mobile'] ? 'visible' : 'hidden'; $formOrderUnusedOpacity = $_SESSION['scriptcase']['device_mobile'] && $_SESSION['scriptcase']['display_mobile'] ? '0.5' : '1'; ?> <style> .sc-form-order-icon-unused { visibility: <?php echo $formOrderUnusedVisivility ?>; opacity: 0.5; } .scFormLabelOddMult:hover .sc-form-order-icon-unused { visibility: visible; opacity: <?php echo $formOrderUnusedOpacity ?>; } </style> <style type="text/css"> .sc-button-image.disabled { opacity: 0.25 } .sc-button-image.disabled img { cursor: default !important } </style> <style type="text/css"> .fileinput-button-padding { padding: 3px 10px !important; } .fileinput-button { position: relative; overflow: hidden; float: left; margin-right: 4px; } .fileinput-button input { position: absolute; top: 0; right: 0; margin: 0; border: solid transparent; border-width: 0 0 100px 200px; opacity: 0; filter: alpha(opacity=0); -moz-transform: translate(-300px, 0) scale(4); direction: ltr; cursor: pointer; } </style> <style type="text/css"> .select2-container { width: auto; flex-grow: 1; } .select2-selection { width: 100%; } </style> <?php if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['link_info']['margin_top']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['link_info']['margin_top']) { ?> <style> .scFormBorder { padding-top: 0 !important; } .scBlockRowFirst .scFormTable { margin-top: <?php echo $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['link_info']['margin_top'] ?>; } </style> <?php } ?> <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>scInput.js"></SCRIPT> <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.scInput.js"></SCRIPT> <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.scInput2.js"></SCRIPT> <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.fieldSelection.js"></SCRIPT> <?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['embutida_pdf'])) { ?> <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_form.css" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_form<?php echo $_SESSION['scriptcase']['reg_conf']['css_dir'] ?>.css" /> <?php if(isset($this->Ini->str_google_fonts) && !empty($this->Ini->str_google_fonts)) { ?> <link href="<?php echo $this->Ini->str_google_fonts ?>" rel="stylesheet" /> <?php } ?> <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_appdiv.css" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_appdiv<?php echo $_SESSION['scriptcase']['reg_conf']['css_dir'] ?>.css" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_tab.css" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_tab<?php echo $_SESSION['scriptcase']['reg_conf']['css_dir'] ?>.css" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/buttons/<?php echo $this->Ini->Str_btn_form . '/' . $this->Ini->Str_btn_form ?>.css" /> <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_prod; ?>/third/font-awesome/6/css/all.min.css" /> <?php include_once("../_lib/css/" . $this->Ini->str_schema_all . "_tab.php"); } ?> <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>app2_Login/app2_Login_<?php echo strtolower($_SESSION['scriptcase']['reg_conf']['css_dir']) ?>.css" /> <script> var scFocusFirstErrorField = true; var scFocusFirstErrorName = "<?php if (isset($this->scFormFocusErrorName)) {echo $this->scFormFocusErrorName;} ?>"; </script> <?php include_once("app2_Login_sajax_js.php"); ?> <script type="text/javascript"> if (document.getElementById("id_error_display_fixed")) { scCenterFixedElement("id_error_display_fixed"); } var posDispLeft = 0; var posDispTop = 0; var Nm_Proc_Atualiz = false; var scFormCtrlChanged = false; function findPos(obj) { var posCurLeft = posCurTop = 0; if (obj.offsetParent) { posCurLeft = obj.offsetLeft posCurTop = obj.offsetTop while (obj = obj.offsetParent) { posCurLeft += obj.offsetLeft posCurTop += obj.offsetTop } } posDispLeft = posCurLeft - 10; posDispTop = posCurTop + 30; } var Nav_permite_ret = "<?php if ($this->Nav_permite_ret) { echo 'S'; } else { echo 'N'; } ?>"; var Nav_permite_ava = "<?php if ($this->Nav_permite_ava) { echo 'S'; } else { echo 'N'; } ?>"; var Nav_binicio = "<?php echo $this->arr_buttons['binicio']['type']; ?>"; var Nav_bavanca = "<?php echo $this->arr_buttons['bavanca']['type']; ?>"; var Nav_bretorna = "<?php echo $this->arr_buttons['bretorna']['type']; ?>"; var Nav_bfinal = "<?php echo $this->arr_buttons['bfinal']['type']; ?>"; var Nav_binicio_macro_disabled = "<?php echo (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['first']) ? $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['first'] : 'off'); ?>"; var Nav_bavanca_macro_disabled = "<?php echo (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['forward']) ? $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['forward'] : 'off'); ?>"; var Nav_bretorna_macro_disabled = "<?php echo (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['back']) ? $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['back'] : 'off'); ?>"; var Nav_bfinal_macro_disabled = "<?php echo (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['last']) ? $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['last'] : 'off'); ?>"; function nav_atualiza(str_ret, str_ava, str_pos) { <?php if (isset($this->NM_btn_navega) && 'N' == $this->NM_btn_navega) { echo " return;"; } else { ?> if ('S' == str_ret) { <?php if (isset($this->nmgp_botoes['first']) && $this->nmgp_botoes['first'] == "on") { ?> if ("off" == Nav_binicio_macro_disabled) { $("#sc_b_ini_" + str_pos).prop("disabled", false).removeClass("disabled"); } <?php } if (isset($this->nmgp_botoes['back']) && $this->nmgp_botoes['back'] == "on") { ?> if ("off" == Nav_bretorna_macro_disabled) { $("#sc_b_ret_" + str_pos).prop("disabled", false).removeClass("disabled"); } <?php } ?> } else { <?php if (isset($this->nmgp_botoes['first']) && $this->nmgp_botoes['first'] == "on") { ?> $("#sc_b_ini_" + str_pos).prop("disabled", true).addClass("disabled"); <?php } if (isset($this->nmgp_botoes['back']) && $this->nmgp_botoes['back'] == "on") { ?> $("#sc_b_ret_" + str_pos).prop("disabled", true).addClass("disabled"); <?php } ?> } if ('S' == str_ava) { <?php if (isset($this->nmgp_botoes['last']) && $this->nmgp_botoes['last'] == "on") { ?> if ("off" == Nav_bfinal_macro_disabled) { $("#sc_b_fim_" + str_pos).prop("disabled", false).removeClass("disabled"); } <?php } if (isset($this->nmgp_botoes['forward']) && $this->nmgp_botoes['forward'] == "on") { ?> if ("off" == Nav_bavanca_macro_disabled) { $("#sc_b_avc_" + str_pos).prop("disabled", false).removeClass("disabled"); } <?php } ?> } else { <?php if (isset($this->nmgp_botoes['last']) && $this->nmgp_botoes['last'] == "on") { ?> $("#sc_b_fim_" + str_pos).prop("disabled", true).addClass("disabled"); <?php } if (isset($this->nmgp_botoes['forward']) && $this->nmgp_botoes['forward'] == "on") { ?> $("#sc_b_avc_" + str_pos).prop("disabled", true).addClass("disabled"); <?php } ?> } <?php } ?> } function nav_liga_img() { sExt = sImg.substr(sImg.length - 4); sImg = sImg.substr(0, sImg.length - 4); if ('_off' == sImg.substr(sImg.length - 4)) { sImg = sImg.substr(0, sImg.length - 4); } sImg += sExt; } function nav_desliga_img() { sExt = sImg.substr(sImg.length - 4); sImg = sImg.substr(0, sImg.length - 4); if ('_off' != sImg.substr(sImg.length - 4)) { sImg += '_off'; } sImg += sExt; } <?php include_once('app2_Login_jquery.php'); ?> var Dyn_Ini = true; function setLabelCellMaxWidth() { var $labelList = $(".scUiLabelWidthFix"), $spanList, i, testWidth, maxLabelWidth = 0; for (i = 0; i < $labelList.length; i++) { $spanList = $($labelList[i]).find("span"); if ($spanList.length) { testWidth = $($spanList[0]).width(); maxLabelWidth = Math.max(maxLabelWidth, testWidth); } } if (0 < maxLabelWidth) { maxLabelWidth += 20; $labelList.css("width", maxLabelWidth + "px"); } } $(function() { scJQElementsAdd(''); scJQGeneralAdd(); <?php if (!isset($this->scFormFocusErrorName) || '' == $this->scFormFocusErrorName) { ?> scFocusField('login'); <?php } ?> $(document).bind('drop dragover', function (e) { e.preventDefault(); }); setLabelCellMaxWidth(); <?php if (!$this->NM_ajax_flag && isset($this->NM_non_ajax_info['ajaxJavascript']) && !empty($this->NM_non_ajax_info['ajaxJavascript'])) { foreach ($this->NM_non_ajax_info['ajaxJavascript'] as $aFnData) { ?> <?php echo $aFnData[0]; ?>(<?php echo implode(', ', $aFnData[1]); ?>); <?php } } ?> }); $(window).on('load', function() { }); function sc_facebook_auth() { nm_move('facebook_login', ''); } function sc_google_auth() { nm_move('google_login', ''); } function sc_twitter_auth() { nm_move('twitter_login', ''); } if($(".sc-ui-block-control").length) { preloadBlock = new Image(); preloadBlock.src = "<?php echo $this->Ini->path_icones; ?>/" + sc_blockExp; } var show_block = { }; function toggleBlock(e) { var block = e.data.block, block_id = $(block).attr("id"); block_img = $("#" + block_id + " .sc-ui-block-control"); if (1 >= block.rows.length) { return; } show_block[block_id] = !show_block[block_id]; if (show_block[block_id]) { $(block).css("height", "100%"); if (block_img.length) block_img.attr("src", changeImgName(block_img.attr("src"), sc_blockCol)); } else { $(block).css("height", ""); if (block_img.length) block_img.attr("src", changeImgName(block_img.attr("src"), sc_blockExp)); } for (var i = 2; i < block.rows.length; i++) { if (show_block[block_id]) $(block.rows[i]).show(); else $(block.rows[i]).hide(); } if (show_block[block_id]) { } } function changeImgName(imgOld, imgNew) { var aOld = imgOld.split("/"); aOld.pop(); aOld.push(imgNew); return aOld.join("/"); } </script> </HEAD> <?php $str_iframe_body = ('F' == $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['run_iframe']) ? 'margin: 2px;' : ''; if (isset($_SESSION['nm_aba_bg_color'])) { $this->Ini->cor_bg_grid = $_SESSION['nm_aba_bg_color']; $this->Ini->img_fun_pag = $_SESSION['nm_aba_bg_img']; } if ($GLOBALS["erro_incl"] == 1) { $this->nmgp_opcao = "novo"; $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['opc_ant'] = "novo"; $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['recarga'] = "novo"; } if (empty($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['recarga'])) { $opcao_botoes = $this->nmgp_opcao; } else { $opcao_botoes = $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['recarga']; } $remove_margin = isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['dashboard_info']['remove_margin']) && $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['dashboard_info']['remove_margin'] ? 'margin: 0; ' : ''; $remove_border = isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['dashboard_info']['remove_border']) && $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['dashboard_info']['remove_border'] ? 'border-width: 0; ' : ''; $remove_background = isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['dashboard_info']['remove_background']) && $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['dashboard_info']['remove_background'] ? 'background-color: transparent; background-image: none; ' : ''; if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['link_info']['remove_margin']) && $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['link_info']['remove_margin']) { $remove_margin = 'margin: 0; '; } if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['link_info']['remove_background']) && $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['link_info']['remove_background']) { $remove_background = 'background-color: transparent; background-image: none; '; } if ('' != $remove_margin && isset($str_iframe_body) && '' != $str_iframe_body) { $str_iframe_body = ''; } if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['link_info']['remove_border']) && $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['link_info']['remove_border']) { $remove_border = 'border-width: 0; '; } if ('' != $remove_background) { ?> <style> .scFormBorder { <?php echo $remove_background ?> } .scFormToolbar { <?php echo $remove_background ?> } </style> <?php } $vertical_center = 'display: flex; flex-direction: column; justify-content: center; margin: 0px; min-height: 100vh;'; ?> <body class="scFormPage sc-app-contr" style="<?php echo $remove_margin . $remove_background . $str_iframe_body . $vertical_center; ?>"> <?php if (!isset($this->NM_ajax_info['param']['buffer_output']) || !$this->NM_ajax_info['param']['buffer_output']) { echo $sOBContents; } ?> <div id="idJSSpecChar" style="display: none;"></div> <script type="text/javascript"> function NM_tp_critica(TP) { if (TP == 0 || TP == 1 || TP == 2) { nmdg_tipo_crit = TP; } } </script> <?php include_once("app2_Login_js0.php"); ?> <script type="text/javascript"> nmdg_enter_tab = true; function setLocale(oSel) { var sLocale = ""; if (-1 < oSel.selectedIndex) { sLocale = oSel.options[oSel.selectedIndex].value; } document.F1.nmgp_idioma_novo.value = sLocale; } function setSchema(oSel) { var sLocale = ""; if (-1 < oSel.selectedIndex) { sLocale = oSel.options[oSel.selectedIndex].value; } document.F1.nmgp_schema_f.value = sLocale; } var scInsertFieldWithErrors = new Array(); <?php foreach ($this->NM_ajax_info['fieldsWithErrors'] as $insertFieldName) { ?> scInsertFieldWithErrors.push("<?php echo $insertFieldName; ?>"); <?php } ?> $(function() { scAjaxError_markFieldList(scInsertFieldWithErrors); }); </script> <form name="F1" method="post" action="./" onsubmit="return false;" target="_self"> <input type="hidden" name="nm_form_submit" value="1"> <input type="hidden" name="nmgp_idioma_novo" value=""> <input type="hidden" name="nmgp_schema_f" value=""> <input type="hidden" name="nmgp_url_saida" value="<?php echo $this->form_encode_input($nmgp_url_saida); ?>"> <input type="hidden" name="bok" value="OK"> <input type="hidden" name="nmgp_opcao" value=""> <input type="hidden" name="nmgp_ancora" value=""> <input type="hidden" name="nmgp_num_form" value="<?php echo $this->form_encode_input($nmgp_num_form); ?>"> <input type="hidden" name="nmgp_parms" value=""> <input type="hidden" name="script_case_init" value="<?php echo $this->form_encode_input($this->Ini->sc_page); ?>"> <input type="hidden" name="NM_cancel_return_new" value="<?php echo $this->NM_cancel_return_new ?>"> <input type="hidden" name="csrf_token" value="<?php echo $this->scCsrfGetToken() ?>" /> <input type="hidden" name="_sc_force_mobile" id="sc-id-mobile-control" value="" /> <?php $_SESSION['scriptcase']['error_span_title']['app2_Login'] = $this->Ini->Error_icon_span; $_SESSION['scriptcase']['error_icon_title']['app2_Login'] = '' != $this->Ini->Err_ico_title ? $this->Ini->path_icones . '/' . $this->Ini->Err_ico_title : ''; ?> <div style="display: none; position: absolute; z-index: 1000" id="id_error_display_table_frame"> <table class="scFormErrorTable scFormToastTable"> <tr><?php if ($this->Ini->Error_icon_span && '' != $this->Ini->Err_ico_title) { ?><td style="padding: 0px" rowspan="2"><img src="<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Err_ico_title; ?>" style="border-width: 0px" align="top"></td><?php } ?><td class="scFormErrorTitle scFormToastTitle"><table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormErrorTitleFont" style="padding: 0px; vertical-align: top; width: 100%"><?php if (!$this->Ini->Error_icon_span && '' != $this->Ini->Err_ico_title) { ?><img src="<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Err_ico_title; ?>" style="border-width: 0px" align="top"> <?php } ?>ERROR</td><td style="padding: 0px; vertical-align: top"><?php echo nmButtonOutput($this->arr_buttons, "berrm_clse", "scAjaxHideErrorDisplay('table')", "scAjaxHideErrorDisplay('table')", "", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "", '', '', '', '', '', '', '', '', "");?> </td></tr></table></td></tr> <tr><td class="scFormErrorMessage scFormToastMessage"><span id="id_error_display_table_text"></span></td></tr> </table> </div> <div style="display: none; position: absolute; z-index: 1000" id="id_message_display_frame"> <table class="scFormMessageTable" id="id_message_display_content" style="width: 100%"> <tr id="id_message_display_title_line"> <td class="scFormMessageTitle" style="height: 20px"><?php if ('' != $this->Ini->Msg_ico_title) { ?> <img src="<?php echo $this->Ini->path_icones . '/' . $this->Ini->Msg_ico_title; ?>" style="border-width: 0px; vertical-align: middle"> <?php } ?> <?php echo nmButtonOutput($this->arr_buttons, "bmessageclose", "_scAjaxMessageBtnClose()", "_scAjaxMessageBtnClose()", "id_message_display_close_icon", "", "", "float: right", "", "", "", $this->Ini->path_botoes, "", "", "", "", "", '', '', '', '', '', '', '', '', "");?> <span id="id_message_display_title" style="vertical-align: middle"></span></td> </tr> <tr> <td class="scFormMessageMessage"><?php if ('' != $this->Ini->Msg_ico_body) { ?> <img id="id_message_display_body_icon" src="<?php echo $this->Ini->path_icones . '/' . $this->Ini->Msg_ico_body; ?>" style="border-width: 0px; vertical-align: middle"> <?php } ?> <span id="id_message_display_text"></span><div id="id_message_display_buttond" style="display: none; text-align: center"><br /><input id="id_message_display_buttone" type="button" class="scButton_default" value="Ok" onClick="_scAjaxMessageBtnClick()" ></div></td> </tr> </table> </div> <?php $msgDefClose = isset($this->arr_buttons['bmessageclose']) ? $this->arr_buttons['bmessageclose']['value'] : 'Ok'; ?> <script type="text/javascript"> var scMsgDefTitle = "<?php if (isset($this->Ini->Nm_lang['lang_usr_lang_othr_msgs_titl'])) {echo $this->Ini->Nm_lang['lang_usr_lang_othr_msgs_titl'];} ?>"; var scMsgDefButton = "Ok"; var scMsgDefClose = "<?php echo $msgDefClose; ?>"; var scMsgDefClick = "close"; var scMsgDefScInit = "<?php echo $this->Ini->sc_page; ?>"; </script> <?php if ($this->record_insert_ok) { ?> <script type="text/javascript"> if (typeof sc_userSweetAlertDisplayed === "undefined" || !sc_userSweetAlertDisplayed) { _scAjaxShowMessage({message: "<?php echo $this->form_encode_input($this->Ini->Nm_lang['lang_othr_ajax_frmi']) ?>", title: "", isModal: false, timeout: sc_ajaxMsgTime, showButton: false, buttonLabel: "Ok", topPos: 0, leftPos: 0, width: 0, height: 0, redirUrl: "", redirTarget: "", redirParam: "", showClose: false, showBodyIcon: true, isToast: true, type: "success"}); } sc_userSweetAlertDisplayed = false; </script> <?php } if ($this->record_delete_ok) { ?> <script type="text/javascript"> if (typeof sc_userSweetAlertDisplayed === "undefined" || !sc_userSweetAlertDisplayed) { _scAjaxShowMessage({message: "<?php echo $this->form_encode_input($this->Ini->Nm_lang['lang_othr_ajax_frmd']) ?>", title: "", isModal: false, timeout: sc_ajaxMsgTime, showButton: false, buttonLabel: "Ok", topPos: 0, leftPos: 0, width: 0, height: 0, redirUrl: "", redirTarget: "", redirParam: "", showClose: false, showBodyIcon: true, isToast: true, type: "success"}); } sc_userSweetAlertDisplayed = false; </script> <?php } ?> <table id="main_table_form" align="center" cellpadding=0 cellspacing=0 width="25%"> <tr> <td> <div class="scFormBorder" style="<?php echo (isset($remove_border) ? $remove_border : ''); ?>"> <table width='100%' cellspacing=0 cellpadding=0> <?php $this->displayAppHeader(); ?> <tr><td> <?php echo "<div id=\"sc-ui-empty-form\" class=\"scFormPageText\" style=\"padding: 10px; font-weight: bold" . ($this->nmgp_form_empty ? '' : '; display: none') . "\">"; echo $this->Ini->Nm_lang['lang_errm_empt']; echo "</div>"; if ($this->nmgp_form_empty) { if (!empty($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['where_filter'])) { $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['empty_filter'] = true; } } ?> <?php $sc_hidden_no = 1; $sc_hidden_yes = 0; ?> <a name="bloco_0"></a> <table width="100%" height="100%" cellpadding="0" cellspacing=0 class="scBlockRow scBlockRowFirst"><tr valign="top"><td width="100%" height=""> <div id="div_hidden_bloco_0" class="scBlockFrame"><!-- bloco_c --> <?php if (!isset($this->nmgp_cmp_hidden['remember_me'])) { $this->nmgp_cmp_hidden['remember_me'] = 'off'; } if (!isset($this->nmgp_cmp_hidden['new_user'])) { $this->nmgp_cmp_hidden['new_user'] = 'off'; } if (!isset($this->nmgp_cmp_hidden['retrieve_pswd'])) { $this->nmgp_cmp_hidden['retrieve_pswd'] = 'off'; } if (!isset($this->nmgp_cmp_hidden['idusuario2'])) { $this->nmgp_cmp_hidden['idusuario2'] = 'off'; } if (!isset($this->nmgp_cmp_hidden['idoficina'])) { $this->nmgp_cmp_hidden['idoficina'] = 'off'; } if (!isset($this->nmgp_cmp_hidden['nomoficina'])) { $this->nmgp_cmp_hidden['nomoficina'] = 'off'; } if (!isset($this->nmgp_cmp_hidden['perfil'])) { $this->nmgp_cmp_hidden['perfil'] = 'off'; } if (!isset($this->nmgp_cmp_hidden['idusuario'])) { $this->nmgp_cmp_hidden['idusuario'] = 'off'; } if (!isset($this->nmgp_cmp_hidden['nutaquilla'])) { $this->nmgp_cmp_hidden['nutaquilla'] = 'off'; } if (!isset($this->nmgp_cmp_hidden['nomtaquilla'])) { $this->nmgp_cmp_hidden['nomtaquilla'] = 'off'; } if (!isset($this->nmgp_cmp_hidden['nuperfil'])) { $this->nmgp_cmp_hidden['nuperfil'] = 'off'; } if (!isset($this->nmgp_cmp_hidden['fechacierre'])) { $this->nmgp_cmp_hidden['fechacierre'] = 'off'; } if (!isset($this->nmgp_cmp_hidden['fechahoy'])) { $this->nmgp_cmp_hidden['fechahoy'] = 'off'; } if (!isset($this->nmgp_cmp_hidden['jornada'])) { $this->nmgp_cmp_hidden['jornada'] = 'off'; } ?> <TABLE align="center" id="hidden_bloco_0" class="scFormTable scFormDataOdd<?php echo $this->classes_100perc_fields['table'] ?>" width="100%" style="height: 100%;"><?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['idempresa'])) { $this->nm_new_label['idempresa'] = "Empresa"; } $nm_cor_fun_cel = (isset($nm_cor_fun_cel) && $nm_cor_fun_cel == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar); $nm_img_fun_cel = (isset($nm_img_fun_cel) && $nm_img_fun_cel == $this->Ini->img_fun_imp ? $this->Ini->img_fun_par : $this->Ini->img_fun_imp); $idempresa = $this->idempresa; $sStyleHidden_idempresa = ''; if (isset($this->nmgp_cmp_hidden['idempresa']) && $this->nmgp_cmp_hidden['idempresa'] == 'off') { unset($this->nmgp_cmp_hidden['idempresa']); $sStyleHidden_idempresa = 'display: none;'; } $bTestReadOnly = true; $sStyleReadLab_idempresa = 'display: none;'; $sStyleReadInp_idempresa = ''; if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['idempresa']) && $this->nmgp_cmp_readonly['idempresa'] == 'on') { $bTestReadOnly = false; unset($this->nmgp_cmp_readonly['idempresa']); $sStyleReadLab_idempresa = ''; $sStyleReadInp_idempresa = 'display: none;'; } ?> <?php if (isset($this->nmgp_cmp_hidden['idempresa']) && $this->nmgp_cmp_hidden['idempresa'] == 'off') { $sc_hidden_yes++; ?> <input type=hidden name="idempresa" value="<?php echo $this->form_encode_input($this->idempresa) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd" id="hidden_field_data_idempresa" style="<?php echo $sStyleHidden_idempresa; ?>"> <table style="border-spacing: 0px; border-width: 0px; border-collapse: collapse; width: 100%" cellspacing=0 cellpadding=0><tr><td class="scFormLabelOddFormat scFormLabelAboveOddFormat css_idempresa_label" style=" padding: 0px; width: 100%;"><span id="id_label_idempresa"><?php echo $this->nm_new_label['idempresa']; ?></span></td></tr><tr><td class="css_idempresa_line" style="padding: 0px; width: 100%;"> <?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["idempresa"]) && $this->nmgp_cmp_readonly["idempresa"] == "on") { $nmgp_def_dados = "" ; if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idempresa'])) { $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idempresa'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idempresa']); } else { $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idempresa'] = array(); } $nm_nao_carga = false; $nmgp_def_dados = "" ; if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idempresa'])) { $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idempresa'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idempresa']); } else { $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idempresa'] = array(); } $old_value_nutaquilla = $this->nutaquilla; $old_value_perfil = $this->perfil; $old_value_fechacierre = $this->fechacierre; $old_value_fechahoy = $this->fechahoy; $old_value_idoficina = $this->idoficina; $old_value_jornada = $this->jornada; $this->nm_tira_formatacao(); if ($this->nmgp_opcao != "nada") { $this->nm_converte_datas(false); } $unformatted_value_nutaquilla = $this->nutaquilla; $unformatted_value_perfil = $this->perfil; $unformatted_value_fechacierre = $this->fechacierre; $unformatted_value_fechahoy = $this->fechahoy; $unformatted_value_idoficina = $this->idoficina; $unformatted_value_jornada = $this->jornada; $remember_me_val_str = "''"; if (!empty($this->remember_me)) { if (is_array($this->remember_me)) { $Tmp_array = $this->remember_me; } else { $Tmp_array = explode(";", $this->remember_me); } $remember_me_val_str = ""; foreach ($Tmp_array as $Tmp_val_cmp) { if ("" != $remember_me_val_str) { $remember_me_val_str .= ", "; } $remember_me_val_str .= "'$Tmp_val_cmp'"; } } $nm_comando = "SELECT idempresa,empresa FROM empresas ORDER BY idempresa"; $this->nutaquilla = $old_value_nutaquilla; $this->perfil = $old_value_perfil; $this->fechacierre = $old_value_fechacierre; $this->fechahoy = $old_value_fechahoy; $this->idoficina = $old_value_idoficina; $this->jornada = $old_value_jornada; $_SESSION['scriptcase']['sc_sql_ult_comando'] = $nm_comando; $_SESSION['scriptcase']['sc_sql_ult_conexao'] = ''; if ($nm_comando != "" && $rs = $this->Db->Execute($nm_comando)) { while (!$rs->EOF) { $rs->fields[0] = str_replace(',', '.', $rs->fields[0]); $rs->fields[0] = (strpos(strtolower($rs->fields[0]), "e")) ? (float)$rs->fields[0] : $rs->fields[0]; $rs->fields[0] = (string)$rs->fields[0]; $nmgp_def_dados .= $rs->fields[1] . "?#?" ; $nmgp_def_dados .= $rs->fields[0] . "?#?N?@?" ; $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idempresa'][] = $rs->fields[0]; $rs->MoveNext() ; } $rs->Close() ; } elseif ($GLOBALS["NM_ERRO_IBASE"] != 1 && $nm_comando != "") { $this->Erro->mensagem(__FILE__, __LINE__, "banco", $this->Ini->Nm_lang['lang_errm_dber'], $this->Db->ErrorMsg()); exit; } $GLOBALS["NM_ERRO_IBASE"] = 0; $x = 0; $idempresa_look = ""; $todox = str_replace("?#?@?#?", "?#?@ ?#?", trim($nmgp_def_dados)) ; $todo = explode("?@?", $todox) ; while (!empty($todo[$x])) { $cadaselect = explode("?#?", $todo[$x]) ; if ($cadaselect[1] == "@ ") {$cadaselect[1]= trim($cadaselect[1]); } ; if (isset($this->Embutida_ronly) && $this->Embutida_ronly && isset($this->idempresa_1)) { foreach ($this->idempresa_1 as $tmp_idempresa) { if (trim($tmp_idempresa) === trim($cadaselect[1])) {$idempresa_look .= $cadaselect[0] . '__SC_BREAK_LINE__';} } } elseif (isset($cadaselect[1]) && is_string($this->idempresa) && trim($this->idempresa) === trim($cadaselect[1])) {$idempresa_look .= $cadaselect[0];} $x++; } ?> <input type="hidden" name="idempresa" value="<?php echo $this->form_encode_input($idempresa) . "\">" . $idempresa_look . ""; ?> <?php } else { ?> <?php $todo = $this->Form_lookup_idempresa(); $x = 0 ; $idempresa_look = ""; while (!empty($todo[$x])) { $cadaselect = explode("?#?", $todo[$x]) ; if ($cadaselect[1] == "@ ") {$cadaselect[1]= trim($cadaselect[1]); } ; if (isset($this->Embutida_ronly) && $this->Embutida_ronly && isset($this->idempresa_1)) { foreach ($this->idempresa_1 as $tmp_idempresa) { if (trim($tmp_idempresa) === trim($cadaselect[1])) {$idempresa_look .= $cadaselect[0] . '__SC_BREAK_LINE__';} } } elseif (isset($cadaselect[1]) && is_string($this->idempresa)) { if (trim($this->idempresa) == trim($cadaselect[1])) { $idempresa_look .= $cadaselect[0]; } } elseif (isset($cadaselect[1]) && $this->idempresa == $cadaselect[1]) { $idempresa_look .= $cadaselect[0]; } $x++; } if (empty($idempresa_look)) { $idempresa_look = $this->idempresa; } $x = 0; echo "<span id=\"id_read_on_idempresa\" class=\"css_idempresa_line\" style=\"" . $sStyleReadLab_idempresa . "\">" . $this->form_format_readonly("idempresa", $this->form_encode_input($idempresa_look)) . "</span><span id=\"id_read_off_idempresa\" class=\"css_read_off_idempresa" . $this->classes_100perc_fields['span_input'] . "\" style=\"white-space: nowrap; " . $sStyleReadInp_idempresa . "\">"; echo " <span id=\"idAjaxSelect_idempresa\" class=\"" . $this->classes_100perc_fields['span_select'] . "\"><select class=\"sc-js-input scFormObjectOdd css_idempresa_obj" . $this->classes_100perc_fields['input'] . "\" style=\"\" id=\"id_sc_field_idempresa\" name=\"idempresa\" size=\"1\" alt=\"{type: 'select', enterTab: true}\">" ; echo "\r" ; while (!empty($todo[$x]) && !$nm_nao_carga) { $cadaselect = explode("?#?", $todo[$x]) ; if ($cadaselect[1] == "@ ") {$cadaselect[1]= trim($cadaselect[1]); } ; echo " <option value=\"$cadaselect[1]\"" ; if (trim($this->idempresa) === trim($cadaselect[1])) { echo " selected" ; } if (strtoupper($cadaselect[2]) == "S") { if (empty($this->idempresa)) { echo " selected" ; } } echo ">" . str_replace('<', '<',$cadaselect[0]) . "</option>" ; echo "\r" ; $x++ ; } ; echo " </select></span>" ; echo "\r" ; echo "</span>"; ?> <?php }?> </td></tr></table> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> <?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['login'])) { $this->nm_new_label['login'] = "" . $this->Ini->Nm_lang['lang_sec_users_fild_login'] . ""; } ?> <?php $nm_cor_fun_cel = (isset($nm_cor_fun_cel) && $nm_cor_fun_cel == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar); $nm_img_fun_cel = (isset($nm_img_fun_cel) && $nm_img_fun_cel == $this->Ini->img_fun_imp ? $this->Ini->img_fun_par : $this->Ini->img_fun_imp); $login = $this->login; $sStyleHidden_login = ''; if (isset($this->nmgp_cmp_hidden['login']) && $this->nmgp_cmp_hidden['login'] == 'off') { unset($this->nmgp_cmp_hidden['login']); $sStyleHidden_login = 'display: none;'; } $bTestReadOnly = true; $sStyleReadLab_login = 'display: none;'; $sStyleReadInp_login = ''; if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['login']) && $this->nmgp_cmp_readonly['login'] == 'on') { $bTestReadOnly = false; unset($this->nmgp_cmp_readonly['login']); $sStyleReadLab_login = ''; $sStyleReadInp_login = 'display: none;'; } ?> <?php if (isset($this->nmgp_cmp_hidden['login']) && $this->nmgp_cmp_hidden['login'] == 'off') { $sc_hidden_yes++; ?> <input type="hidden" name="login" value="<?php echo $this->form_encode_input($login) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd" id="hidden_field_data_login" style="<?php echo $sStyleHidden_login; ?>"> <table style="border-spacing: 0px; border-width: 0px; border-collapse: collapse; width: 100%" cellspacing=0 cellpadding=0><tr><td class="scFormLabelOddFormat scFormLabelAboveOddFormat css_login_label" style=" padding: 0px; width: 100%;"><span id="id_label_login"><?php echo $this->nm_new_label['login']; ?></span></td></tr><tr><td class="css_login_line" style="padding: 0px; width: 100%;"> <?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["login"]) && $this->nmgp_cmp_readonly["login"] == "on") { ?> <input type="hidden" name="login" value="<?php echo $this->form_encode_input($login) . "\">" . $login . ""; ?> <?php } else { ?> <span id="id_read_on_login" class="sc-ui-readonly-login css_login_line" style="<?php echo $sStyleReadLab_login; ?>"><?php echo $this->form_format_readonly("login", $this->form_encode_input($this->login)); ?></span><span id="id_read_off_login" class="css_read_off_login<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_login; ?>"> <input class="sc-js-input scFormObjectOdd css_login_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_login" type=text name="login" value="<?php echo $this->form_encode_input($login) ?>" <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=35"; } ?> maxlength=255 alt="{datatype: 'text', maxLength: 255, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: false, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?> </td></tr></table> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> <?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['pswd'])) { $this->nm_new_label['pswd'] = "" . $this->Ini->Nm_lang['lang_sec_users_fild_pswd'] . ""; } ?> <?php $nm_cor_fun_cel = (isset($nm_cor_fun_cel) && $nm_cor_fun_cel == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar); $nm_img_fun_cel = (isset($nm_img_fun_cel) && $nm_img_fun_cel == $this->Ini->img_fun_imp ? $this->Ini->img_fun_par : $this->Ini->img_fun_imp); $pswd = $this->pswd; $sStyleHidden_pswd = ''; if (isset($this->nmgp_cmp_hidden['pswd']) && $this->nmgp_cmp_hidden['pswd'] == 'off') { unset($this->nmgp_cmp_hidden['pswd']); $sStyleHidden_pswd = 'display: none;'; } $bTestReadOnly = true; $sStyleReadLab_pswd = 'display: none;'; $sStyleReadInp_pswd = ''; if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['pswd']) && $this->nmgp_cmp_readonly['pswd'] == 'on') { $bTestReadOnly = false; unset($this->nmgp_cmp_readonly['pswd']); $sStyleReadLab_pswd = ''; $sStyleReadInp_pswd = 'display: none;'; } ?> <?php if (isset($this->nmgp_cmp_hidden['pswd']) && $this->nmgp_cmp_hidden['pswd'] == 'off') { $sc_hidden_yes++; ?> <input type="hidden" name="pswd" value="<?php echo $this->form_encode_input($pswd) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd" id="hidden_field_data_pswd" style="<?php echo $sStyleHidden_pswd; ?>"> <table style="border-spacing: 0px; border-width: 0px; border-collapse: collapse; width: 100%" cellspacing=0 cellpadding=0><tr><td class="scFormLabelOddFormat scFormLabelAboveOddFormat css_pswd_label" style=" padding: 0px; width: 100%;"><span id="id_label_pswd"><?php echo $this->nm_new_label['pswd']; ?></span></td></tr><tr><td class="css_pswd_line" style="padding: 0px; width: 100%;"> <?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["pswd"]) && $this->nmgp_cmp_readonly["pswd"] == "on") { ?> <input type="hidden" name="pswd" value=""> <?php } else { ?> <span id="id_read_on_pswd" class="sc-ui-readonly-pswd css_pswd_line" style="<?php echo $sStyleReadLab_pswd; ?>"><?php echo $this->form_format_readonly("pswd", $this->form_encode_input($this->pswd)); ?></span><span id="id_read_off_pswd" class="css_read_off_pswd<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_pswd; ?>"><div class="scFormObjectOddPwdBox<?php echo $this->classes_100perc_fields['span_input'] ?>" style="width: 100%"><input class="sc-js-input scFormObjectOddPwdInput scFormObjectOddPwdText sc-ui-pwd-toggle css_pswd_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_pswd" type="password" autocomplete="off" name="pswd" value="" <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=31"; } ?> maxlength=255 alt="{datatype: 'text', maxLength: 255, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: false, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ><span id="id_pwd_show_hide_pswd" class="sc-ui-pwd-toggle-icon"><i class="fa fa-eye sc-ui-pwd-eye" aria-hidden="true" id="id_pwd_fa_pswd"></i></span></div></span><?php } ?> </td></tr></table> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> <?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['new_user'])) { $this->nm_new_label['new_user'] = "new_user"; } ?> <?php if (isset($this->nmgp_cmp_hidden['new_user']) && $this->nmgp_cmp_hidden['new_user'] == 'off') { $sc_hidden_yes++; ?> <input type="hidden" name="new_user" value="<?php echo $this->form_encode_input($this->new_user) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd" id="hidden_field_data_new_user" style="<?php echo $sStyleHidden_new_user; ?>"> <table style="border-spacing: 0px; border-width: 0px; border-collapse: collapse; width: 100%" cellspacing=0 cellpadding=0><tr><td class="scFormLabelOddFormat scFormLabelAboveOddFormat css_new_user_label" style=" padding: 0px; width: 100%;"><span id="id_label_new_user"><?php echo $this->nm_new_label['new_user']; ?></span></td></tr><tr><td class="css_new_user_line" style="padding: 0px; width: 100%;"> <?php $new_user_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($new_user)); ?> <?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["new_user"]) && $this->nmgp_cmp_readonly["new_user"] == "on") { ?> <input type="hidden" name="new_user" value="<?php echo $this->form_encode_input($new_user) . "\">" . $new_user_val . ""; ?> <?php } else { ?> <input type="hidden" name="new_user" value = ""> <input type="hidden" name="new_user_sc_target_name" value = ""> <a href="javascript:nm_menu_link_new_user('app2_form_add_users', '_self')" class="scFormLinkOdd"><?php echo $this->Ini->Nm_lang['lang_new_user'] ?></a> <?php } ?> </td></tr></table> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> <?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['retrieve_pswd'])) { $this->nm_new_label['retrieve_pswd'] = "retrieve_pswd"; } ?> <?php if (isset($this->nmgp_cmp_hidden['retrieve_pswd']) && $this->nmgp_cmp_hidden['retrieve_pswd'] == 'off') { $sc_hidden_yes++; ?> <input type="hidden" name="retrieve_pswd" value="<?php echo $this->form_encode_input($this->retrieve_pswd) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd" id="hidden_field_data_retrieve_pswd" style="<?php echo $sStyleHidden_retrieve_pswd; ?>"> <table style="border-spacing: 0px; border-width: 0px; border-collapse: collapse; width: 100%" cellspacing=0 cellpadding=0><tr><td class="scFormLabelOddFormat scFormLabelAboveOddFormat css_retrieve_pswd_label" style=" padding: 0px; width: 100%;"><span id="id_label_retrieve_pswd"><?php echo $this->nm_new_label['retrieve_pswd']; ?></span></td></tr><tr><td class="css_retrieve_pswd_line" style="padding: 0px; width: 100%;"> <?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["retrieve_pswd"]) && $this->nmgp_cmp_readonly["retrieve_pswd"] == "on") { ?> <input type="hidden" name="retrieve_pswd" value="<?php echo $this->form_encode_input($retrieve_pswd) . "\">" . $retrieve_pswd . ""; ?> <?php } else { ?> <input type="hidden" name="retrieve_pswd" value = ""> <input type="hidden" name="retrieve_pswd_sc_target_name" value = ""> <a href="javascript:nm_menu_link_retrieve_pswd('app2_retrieve_pswd', '_self')" class="scFormLinkOdd"><?php echo $this->Ini->Nm_lang['lang_subject_mail'] ?></a> <?php } ?> </td></tr></table> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> <?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['idtaquilla'])) { $this->nm_new_label['idtaquilla'] = "Taquilla"; } $nm_cor_fun_cel = (isset($nm_cor_fun_cel) && $nm_cor_fun_cel == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar); $nm_img_fun_cel = (isset($nm_img_fun_cel) && $nm_img_fun_cel == $this->Ini->img_fun_imp ? $this->Ini->img_fun_par : $this->Ini->img_fun_imp); $idtaquilla = $this->idtaquilla; $sStyleHidden_idtaquilla = ''; if (isset($this->nmgp_cmp_hidden['idtaquilla']) && $this->nmgp_cmp_hidden['idtaquilla'] == 'off') { unset($this->nmgp_cmp_hidden['idtaquilla']); $sStyleHidden_idtaquilla = 'display: none;'; } $bTestReadOnly = true; $sStyleReadLab_idtaquilla = 'display: none;'; $sStyleReadInp_idtaquilla = ''; if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['idtaquilla']) && $this->nmgp_cmp_readonly['idtaquilla'] == 'on') { $bTestReadOnly = false; unset($this->nmgp_cmp_readonly['idtaquilla']); $sStyleReadLab_idtaquilla = ''; $sStyleReadInp_idtaquilla = 'display: none;'; } ?> <?php if (isset($this->nmgp_cmp_hidden['idtaquilla']) && $this->nmgp_cmp_hidden['idtaquilla'] == 'off') { $sc_hidden_yes++; ?> <input type=hidden name="idtaquilla" value="<?php echo $this->form_encode_input($this->idtaquilla) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd" id="hidden_field_data_idtaquilla" style="<?php echo $sStyleHidden_idtaquilla; ?>"> <table style="border-spacing: 0px; border-width: 0px; border-collapse: collapse; width: 100%" cellspacing=0 cellpadding=0><tr><td class="scFormLabelOddFormat scFormLabelAboveOddFormat css_idtaquilla_label" style=" padding: 0px; width: 100%;"><span id="id_label_idtaquilla"><?php echo $this->nm_new_label['idtaquilla']; ?></span></td></tr><tr><td class="css_idtaquilla_line" style="padding: 0px; width: 100%;"> <?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["idtaquilla"]) && $this->nmgp_cmp_readonly["idtaquilla"] == "on") { $nmgp_def_dados = "" ; if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idtaquilla'])) { $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idtaquilla'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idtaquilla']); } else { $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idtaquilla'] = array(); } $nm_nao_carga = false; $nmgp_def_dados = "" ; if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idtaquilla'])) { $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idtaquilla'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idtaquilla']); } else { $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idtaquilla'] = array(); } $old_value_nutaquilla = $this->nutaquilla; $old_value_perfil = $this->perfil; $old_value_fechacierre = $this->fechacierre; $old_value_fechahoy = $this->fechahoy; $old_value_idoficina = $this->idoficina; $old_value_jornada = $this->jornada; $this->nm_tira_formatacao(); if ($this->nmgp_opcao != "nada") { $this->nm_converte_datas(false); } $unformatted_value_nutaquilla = $this->nutaquilla; $unformatted_value_perfil = $this->perfil; $unformatted_value_fechacierre = $this->fechacierre; $unformatted_value_fechahoy = $this->fechahoy; $unformatted_value_idoficina = $this->idoficina; $unformatted_value_jornada = $this->jornada; $nm_comando = "SELECT idtaquilla, nomtaquilla FROM taquillas WHERE perfil = 4 and idusuario = \"0\" ORDER BY nomtaquilla"; $this->nutaquilla = $old_value_nutaquilla; $this->perfil = $old_value_perfil; $this->fechacierre = $old_value_fechacierre; $this->fechahoy = $old_value_fechahoy; $this->idoficina = $old_value_idoficina; $this->jornada = $old_value_jornada; $_SESSION['scriptcase']['sc_sql_ult_comando'] = $nm_comando; $_SESSION['scriptcase']['sc_sql_ult_conexao'] = ''; if ($nm_comando != "" && $rs = $this->Db->Execute($nm_comando)) { while (!$rs->EOF) { $rs->fields[0] = str_replace(',', '.', $rs->fields[0]); $rs->fields[0] = (strpos(strtolower($rs->fields[0]), "e")) ? (float)$rs->fields[0] : $rs->fields[0]; $rs->fields[0] = (string)$rs->fields[0]; $nmgp_def_dados .= $rs->fields[1] . "?#?" ; $nmgp_def_dados .= $rs->fields[0] . "?#?N?@?" ; $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idtaquilla'][] = $rs->fields[0]; $rs->MoveNext() ; } $rs->Close() ; } elseif ($GLOBALS["NM_ERRO_IBASE"] != 1 && $nm_comando != "") { $this->Erro->mensagem(__FILE__, __LINE__, "banco", $this->Ini->Nm_lang['lang_errm_dber'], $this->Db->ErrorMsg()); exit; } $GLOBALS["NM_ERRO_IBASE"] = 0; $x = 0; $idtaquilla_look = ""; $todox = str_replace("?#?@?#?", "?#?@ ?#?", trim($nmgp_def_dados)) ; $todo = explode("?@?", $todox) ; while (!empty($todo[$x])) { $cadaselect = explode("?#?", $todo[$x]) ; if ($cadaselect[1] == "@ ") {$cadaselect[1]= trim($cadaselect[1]); } ; if (isset($this->Embutida_ronly) && $this->Embutida_ronly && isset($this->idtaquilla_1)) { foreach ($this->idtaquilla_1 as $tmp_idtaquilla) { if (trim($tmp_idtaquilla) === trim($cadaselect[1])) {$idtaquilla_look .= $cadaselect[0] . '__SC_BREAK_LINE__';} } } elseif (isset($cadaselect[1]) && is_string($this->idtaquilla) && trim($this->idtaquilla) === trim($cadaselect[1])) {$idtaquilla_look .= $cadaselect[0];} $x++; } ?> <input type="hidden" name="idtaquilla" value="<?php echo $this->form_encode_input($idtaquilla) . "\">" . $idtaquilla_look . ""; ?> <?php } else { ?> <?php $todo = $this->Form_lookup_idtaquilla(); $x = 0 ; $idtaquilla_look = ""; while (!empty($todo[$x])) { $cadaselect = explode("?#?", $todo[$x]) ; if ($cadaselect[1] == "@ ") {$cadaselect[1]= trim($cadaselect[1]); } ; if (isset($this->Embutida_ronly) && $this->Embutida_ronly && isset($this->idtaquilla_1)) { foreach ($this->idtaquilla_1 as $tmp_idtaquilla) { if (trim($tmp_idtaquilla) === trim($cadaselect[1])) {$idtaquilla_look .= $cadaselect[0] . '__SC_BREAK_LINE__';} } } elseif (isset($cadaselect[1]) && is_string($this->idtaquilla)) { if (trim($this->idtaquilla) == trim($cadaselect[1])) { $idtaquilla_look .= $cadaselect[0]; } } elseif (isset($cadaselect[1]) && $this->idtaquilla == $cadaselect[1]) { $idtaquilla_look .= $cadaselect[0]; } $x++; } if (empty($idtaquilla_look)) { $idtaquilla_look = $this->idtaquilla; } $x = 0; echo "<span id=\"id_read_on_idtaquilla\" class=\"css_idtaquilla_line\" style=\"" . $sStyleReadLab_idtaquilla . "\">" . $this->form_format_readonly("idtaquilla", $this->form_encode_input($idtaquilla_look)) . "</span><span id=\"id_read_off_idtaquilla\" class=\"css_read_off_idtaquilla" . $this->classes_100perc_fields['span_input'] . "\" style=\"white-space: nowrap; " . $sStyleReadInp_idtaquilla . "\">"; echo " <span id=\"idAjaxSelect_idtaquilla\" class=\"" . $this->classes_100perc_fields['span_select'] . "\"><select class=\"sc-js-input scFormObjectOdd css_idtaquilla_obj" . $this->classes_100perc_fields['input'] . "\" style=\"\" id=\"id_sc_field_idtaquilla\" name=\"idtaquilla\" size=\"1\" alt=\"{type: 'select', enterTab: true}\">" ; echo "\r" ; $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['Lookup_idtaquilla'][] = ''; echo " <option value=\"\">" . str_replace("<", "<","<selecccione>") . "</option>" ; while (!empty($todo[$x]) && !$nm_nao_carga) { $cadaselect = explode("?#?", $todo[$x]) ; if ($cadaselect[1] == "@ ") {$cadaselect[1]= trim($cadaselect[1]); } ; echo " <option value=\"$cadaselect[1]\"" ; if (trim($this->idtaquilla) === trim($cadaselect[1])) { echo " selected" ; } if (strtoupper($cadaselect[2]) == "S") { if (empty($this->idtaquilla)) { echo " selected" ; } } echo ">" . str_replace('<', '<',$cadaselect[0]) . "</option>" ; echo "\r" ; $x++ ; } ; echo " </select></span>" ; echo "\r" ; echo "</span>"; ?> <?php }?> </td></tr></table> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> <?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['nutaquilla'])) { $this->nm_new_label['nutaquilla'] = "nutaquilla"; } ?> <?php $nm_cor_fun_cel = (isset($nm_cor_fun_cel) && $nm_cor_fun_cel == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar); $nm_img_fun_cel = (isset($nm_img_fun_cel) && $nm_img_fun_cel == $this->Ini->img_fun_imp ? $this->Ini->img_fun_par : $this->Ini->img_fun_imp); $nutaquilla = $this->nutaquilla; if (!isset($this->nmgp_cmp_hidden['nutaquilla'])) { $this->nmgp_cmp_hidden['nutaquilla'] = 'off'; } $sStyleHidden_nutaquilla = ''; if (isset($this->nmgp_cmp_hidden['nutaquilla']) && $this->nmgp_cmp_hidden['nutaquilla'] == 'off') { unset($this->nmgp_cmp_hidden['nutaquilla']); $sStyleHidden_nutaquilla = 'display: none;'; } $bTestReadOnly = true; $sStyleReadLab_nutaquilla = 'display: none;'; $sStyleReadInp_nutaquilla = ''; if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['nutaquilla']) && $this->nmgp_cmp_readonly['nutaquilla'] == 'on') { $bTestReadOnly = false; unset($this->nmgp_cmp_readonly['nutaquilla']); $sStyleReadLab_nutaquilla = ''; $sStyleReadInp_nutaquilla = 'display: none;'; } ?> <?php if (isset($this->nmgp_cmp_hidden['nutaquilla']) && $this->nmgp_cmp_hidden['nutaquilla'] == 'off') { $sc_hidden_yes++; ?> <input type="hidden" name="nutaquilla" value="<?php echo $this->form_encode_input($nutaquilla) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd" id="hidden_field_data_nutaquilla" style="<?php echo $sStyleHidden_nutaquilla; ?>"> <table style="border-spacing: 0px; border-width: 0px; border-collapse: collapse; width: 100%" cellspacing=0 cellpadding=0><tr><td class="scFormLabelOddFormat scFormLabelAboveOddFormat css_nutaquilla_label" style=" padding: 0px; width: 100%;"><span id="id_label_nutaquilla"><?php echo $this->nm_new_label['nutaquilla']; ?></span></td></tr><tr><td class="css_nutaquilla_line" style="padding: 0px; width: 100%;"> <?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["nutaquilla"]) && $this->nmgp_cmp_readonly["nutaquilla"] == "on") { ?> <input type="hidden" name="nutaquilla" value="<?php echo $this->form_encode_input($nutaquilla) . "\">" . $nutaquilla . ""; ?> <?php } else { ?> <span id="id_read_on_nutaquilla" class="sc-ui-readonly-nutaquilla css_nutaquilla_line" style="<?php echo $sStyleReadLab_nutaquilla; ?>"><?php echo $this->form_format_readonly("nutaquilla", $this->form_encode_input($this->nutaquilla)); ?></span><span id="id_read_off_nutaquilla" class="css_read_off_nutaquilla<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_nutaquilla; ?>"> <input class="sc-js-input scFormObjectOdd css_nutaquilla_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_nutaquilla" type=text name="nutaquilla" value="<?php echo $this->form_encode_input($nutaquilla) ?>" <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=2"; } ?> alt="{datatype: 'integer', maxLength: 2, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['nutaquilla']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['nutaquilla']['symbol_fmt']; ?>, allowNegative: true, onlyNegative: false, negativePos: <?php echo (4 == $this->field_config['nutaquilla']['format_neg'] ? "'suffix'" : "'prefix'") ?>, enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: false, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?> </td></tr></table> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> <?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['perfil'])) { $this->nm_new_label['perfil'] = "perfil"; } ?> <?php $nm_cor_fun_cel = (isset($nm_cor_fun_cel) && $nm_cor_fun_cel == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar); $nm_img_fun_cel = (isset($nm_img_fun_cel) && $nm_img_fun_cel == $this->Ini->img_fun_imp ? $this->Ini->img_fun_par : $this->Ini->img_fun_imp); $perfil = $this->perfil; if (!isset($this->nmgp_cmp_hidden['perfil'])) { $this->nmgp_cmp_hidden['perfil'] = 'off'; } $sStyleHidden_perfil = ''; if (isset($this->nmgp_cmp_hidden['perfil']) && $this->nmgp_cmp_hidden['perfil'] == 'off') { unset($this->nmgp_cmp_hidden['perfil']); $sStyleHidden_perfil = 'display: none;'; } $bTestReadOnly = true; $sStyleReadLab_perfil = 'display: none;'; $sStyleReadInp_perfil = ''; if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['perfil']) && $this->nmgp_cmp_readonly['perfil'] == 'on') { $bTestReadOnly = false; unset($this->nmgp_cmp_readonly['perfil']); $sStyleReadLab_perfil = ''; $sStyleReadInp_perfil = 'display: none;'; } ?> <?php if (isset($this->nmgp_cmp_hidden['perfil']) && $this->nmgp_cmp_hidden['perfil'] == 'off') { $sc_hidden_yes++; ?> <input type="hidden" name="perfil" value="<?php echo $this->form_encode_input($perfil) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd" id="hidden_field_data_perfil" style="<?php echo $sStyleHidden_perfil; ?>"> <table style="border-spacing: 0px; border-width: 0px; border-collapse: collapse; width: 100%" cellspacing=0 cellpadding=0><tr><td class="scFormLabelOddFormat scFormLabelAboveOddFormat css_perfil_label" style=" padding: 0px; width: 100%;"><span id="id_label_perfil"><?php echo $this->nm_new_label['perfil']; ?></span></td></tr><tr><td class="css_perfil_line" style="padding: 0px; width: 100%;"> <?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["perfil"]) && $this->nmgp_cmp_readonly["perfil"] == "on") { ?> <input type="hidden" name="perfil" value="<?php echo $this->form_encode_input($perfil) . "\">" . $perfil . ""; ?> <?php } else { ?> <span id="id_read_on_perfil" class="sc-ui-readonly-perfil css_perfil_line" style="<?php echo $sStyleReadLab_perfil; ?>"><?php echo $this->form_format_readonly("perfil", $this->form_encode_input($this->perfil)); ?></span><span id="id_read_off_perfil" class="css_read_off_perfil<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_perfil; ?>"> <input class="sc-js-input scFormObjectOdd css_perfil_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_perfil" type=text name="perfil" value="<?php echo $this->form_encode_input($perfil) ?>" <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=10"; } ?> alt="{datatype: 'integer', maxLength: 20, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['perfil']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['perfil']['symbol_fmt']; ?>, allowNegative: true, onlyNegative: false, negativePos: <?php echo (4 == $this->field_config['perfil']['format_neg'] ? "'suffix'" : "'prefix'") ?>, enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: false, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?> </td></tr></table> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> <?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['nomtaquilla'])) { $this->nm_new_label['nomtaquilla'] = "nomtaquilla"; } ?> <?php $nm_cor_fun_cel = (isset($nm_cor_fun_cel) && $nm_cor_fun_cel == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar); $nm_img_fun_cel = (isset($nm_img_fun_cel) && $nm_img_fun_cel == $this->Ini->img_fun_imp ? $this->Ini->img_fun_par : $this->Ini->img_fun_imp); $nomtaquilla = $this->nomtaquilla; if (!isset($this->nmgp_cmp_hidden['nomtaquilla'])) { $this->nmgp_cmp_hidden['nomtaquilla'] = 'off'; } $sStyleHidden_nomtaquilla = ''; if (isset($this->nmgp_cmp_hidden['nomtaquilla']) && $this->nmgp_cmp_hidden['nomtaquilla'] == 'off') { unset($this->nmgp_cmp_hidden['nomtaquilla']); $sStyleHidden_nomtaquilla = 'display: none;'; } $bTestReadOnly = true; $sStyleReadLab_nomtaquilla = 'display: none;'; $sStyleReadInp_nomtaquilla = ''; if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['nomtaquilla']) && $this->nmgp_cmp_readonly['nomtaquilla'] == 'on') { $bTestReadOnly = false; unset($this->nmgp_cmp_readonly['nomtaquilla']); $sStyleReadLab_nomtaquilla = ''; $sStyleReadInp_nomtaquilla = 'display: none;'; } ?> <?php if (isset($this->nmgp_cmp_hidden['nomtaquilla']) && $this->nmgp_cmp_hidden['nomtaquilla'] == 'off') { $sc_hidden_yes++; ?> <input type="hidden" name="nomtaquilla" value="<?php echo $this->form_encode_input($nomtaquilla) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd" id="hidden_field_data_nomtaquilla" style="<?php echo $sStyleHidden_nomtaquilla; ?>"> <table style="border-spacing: 0px; border-width: 0px; border-collapse: collapse; width: 100%" cellspacing=0 cellpadding=0><tr><td class="scFormLabelOddFormat scFormLabelAboveOddFormat css_nomtaquilla_label" style=" padding: 0px; width: 100%;"><span id="id_label_nomtaquilla"><?php echo $this->nm_new_label['nomtaquilla']; ?></span></td></tr><tr><td class="css_nomtaquilla_line" style="padding: 0px; width: 100%;"> <?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["nomtaquilla"]) && $this->nmgp_cmp_readonly["nomtaquilla"] == "on") { ?> <input type="hidden" name="nomtaquilla" value="<?php echo $this->form_encode_input($nomtaquilla) . "\">" . $nomtaquilla . ""; ?> <?php } else { ?> <span id="id_read_on_nomtaquilla" class="sc-ui-readonly-nomtaquilla css_nomtaquilla_line" style="<?php echo $sStyleReadLab_nomtaquilla; ?>"><?php echo $this->form_format_readonly("nomtaquilla", $this->form_encode_input($this->nomtaquilla)); ?></span><span id="id_read_off_nomtaquilla" class="css_read_off_nomtaquilla<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_nomtaquilla; ?>"> <input class="sc-js-input scFormObjectOdd css_nomtaquilla_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_nomtaquilla" type=text name="nomtaquilla" value="<?php echo $this->form_encode_input($nomtaquilla) ?>" <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=30"; } ?> maxlength=30 alt="{datatype: 'text', maxLength: 30, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: false, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?> </td></tr></table> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> <?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['idusuario2'])) { $this->nm_new_label['idusuario2'] = "idusuario2"; } ?> <?php $nm_cor_fun_cel = (isset($nm_cor_fun_cel) && $nm_cor_fun_cel == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar); $nm_img_fun_cel = (isset($nm_img_fun_cel) && $nm_img_fun_cel == $this->Ini->img_fun_imp ? $this->Ini->img_fun_par : $this->Ini->img_fun_imp); $idusuario2 = $this->idusuario2; if (!isset($this->nmgp_cmp_hidden['idusuario2'])) { $this->nmgp_cmp_hidden['idusuario2'] = 'off'; } $sStyleHidden_idusuario2 = ''; if (isset($this->nmgp_cmp_hidden['idusuario2']) && $this->nmgp_cmp_hidden['idusuario2'] == 'off') { unset($this->nmgp_cmp_hidden['idusuario2']); $sStyleHidden_idusuario2 = 'display: none;'; } $bTestReadOnly = true; $sStyleReadLab_idusuario2 = 'display: none;'; $sStyleReadInp_idusuario2 = ''; if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['idusuario2']) && $this->nmgp_cmp_readonly['idusuario2'] == 'on') { $bTestReadOnly = false; unset($this->nmgp_cmp_readonly['idusuario2']); $sStyleReadLab_idusuario2 = ''; $sStyleReadInp_idusuario2 = 'display: none;'; } ?> <?php if (isset($this->nmgp_cmp_hidden['idusuario2']) && $this->nmgp_cmp_hidden['idusuario2'] == 'off') { $sc_hidden_yes++; ?> <input type="hidden" name="idusuario2" value="<?php echo $this->form_encode_input($idusuario2) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd" id="hidden_field_data_idusuario2" style="<?php echo $sStyleHidden_idusuario2; ?>"> <table style="border-spacing: 0px; border-width: 0px; border-collapse: collapse; width: 100%" cellspacing=0 cellpadding=0><tr><td class="scFormLabelOddFormat scFormLabelAboveOddFormat css_idusuario2_label" style=" padding: 0px; width: 100%;"><span id="id_label_idusuario2"><?php echo $this->nm_new_label['idusuario2']; ?></span></td></tr><tr><td class="css_idusuario2_line" style="padding: 0px; width: 100%;"> <?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["idusuario2"]) && $this->nmgp_cmp_readonly["idusuario2"] == "on") { ?> <input type="hidden" name="idusuario2" value="<?php echo $this->form_encode_input($idusuario2) . "\">" . $idusuario2 . ""; ?> <?php } else { ?> <span id="id_read_on_idusuario2" class="sc-ui-readonly-idusuario2 css_idusuario2_line" style="<?php echo $sStyleReadLab_idusuario2; ?>"><?php echo $this->form_format_readonly("idusuario2", $this->form_encode_input($this->idusuario2)); ?></span><span id="id_read_off_idusuario2" class="css_read_off_idusuario2<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_idusuario2; ?>"> <input class="sc-js-input scFormObjectOdd css_idusuario2_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_idusuario2" type=text name="idusuario2" value="<?php echo $this->form_encode_input($idusuario2) ?>" <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=30"; } ?> maxlength=30 alt="{datatype: 'text', maxLength: 30, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: false, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?> </td></tr></table> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> <?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['fechacierre'])) { $this->nm_new_label['fechacierre'] = "fechacierre"; } ?> <?php $nm_cor_fun_cel = (isset($nm_cor_fun_cel) && $nm_cor_fun_cel == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar); $nm_img_fun_cel = (isset($nm_img_fun_cel) && $nm_img_fun_cel == $this->Ini->img_fun_imp ? $this->Ini->img_fun_par : $this->Ini->img_fun_imp); $fechacierre = $this->fechacierre; if (!isset($this->nmgp_cmp_hidden['fechacierre'])) { $this->nmgp_cmp_hidden['fechacierre'] = 'off'; } $sStyleHidden_fechacierre = ''; if (isset($this->nmgp_cmp_hidden['fechacierre']) && $this->nmgp_cmp_hidden['fechacierre'] == 'off') { unset($this->nmgp_cmp_hidden['fechacierre']); $sStyleHidden_fechacierre = 'display: none;'; } $bTestReadOnly = true; $sStyleReadLab_fechacierre = 'display: none;'; $sStyleReadInp_fechacierre = ''; if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['fechacierre']) && $this->nmgp_cmp_readonly['fechacierre'] == 'on') { $bTestReadOnly = false; unset($this->nmgp_cmp_readonly['fechacierre']); $sStyleReadLab_fechacierre = ''; $sStyleReadInp_fechacierre = 'display: none;'; } ?> <?php if (isset($this->nmgp_cmp_hidden['fechacierre']) && $this->nmgp_cmp_hidden['fechacierre'] == 'off') { $sc_hidden_yes++; ?> <input type="hidden" name="fechacierre" value="<?php echo $this->form_encode_input($fechacierre) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd" id="hidden_field_data_fechacierre" style="<?php echo $sStyleHidden_fechacierre; ?>"> <table style="border-spacing: 0px; border-width: 0px; border-collapse: collapse; width: 100%" cellspacing=0 cellpadding=0><tr><td class="scFormLabelOddFormat scFormLabelAboveOddFormat css_fechacierre_label" style=" padding: 0px; width: 100%;"><span id="id_label_fechacierre"><?php echo $this->nm_new_label['fechacierre']; ?></span></td></tr><tr><td class="css_fechacierre_line" style="padding: 0px; width: 100%;"> <?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["fechacierre"]) && $this->nmgp_cmp_readonly["fechacierre"] == "on") { ?> <input type="hidden" name="fechacierre" value="<?php echo $this->form_encode_input($fechacierre) . "\">" . $fechacierre . ""; ?> <?php } else { ?> <span id="id_read_on_fechacierre" class="sc-ui-readonly-fechacierre css_fechacierre_line" style="<?php echo $sStyleReadLab_fechacierre; ?>"><?php echo $this->form_format_readonly("fechacierre", $this->form_encode_input($fechacierre)); ?></span><span id="id_read_off_fechacierre" class="css_read_off_fechacierre<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_fechacierre; ?>"><?php $tmp_form_data = $this->field_config['fechacierre']['date_format']; $tmp_form_data = str_replace('aaaa', 'yyyy', $tmp_form_data); $tmp_form_data = str_replace('dd' , $this->Ini->Nm_lang['lang_othr_date_days'], $tmp_form_data); $tmp_form_data = str_replace('mm' , $this->Ini->Nm_lang['lang_othr_date_mnth'], $tmp_form_data); $tmp_form_data = str_replace('yyyy', $this->Ini->Nm_lang['lang_othr_date_year'], $tmp_form_data); $tmp_form_data = str_replace('hh' , $this->Ini->Nm_lang['lang_othr_date_hour'], $tmp_form_data); $tmp_form_data = str_replace('ii' , $this->Ini->Nm_lang['lang_othr_date_mint'], $tmp_form_data); $tmp_form_data = str_replace('ss' , $this->Ini->Nm_lang['lang_othr_date_scnd'], $tmp_form_data); $tmp_form_data = str_replace(';' , ' ' , $tmp_form_data); ?> <input class="sc-js-input scFormObjectOdd scFormObjectOddWm css_fechacierre_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_fechacierre" type=text name="fechacierre" value="<?php echo $this->form_encode_input($fechacierre) ?>" <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=10"; } ?> alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['fechacierre']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['fechacierre']['date_format']; ?>', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: false, watermark: '<?php echo $tmp_form_data; ?>', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?> </td></tr></table> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> <?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['fechahoy'])) { $this->nm_new_label['fechahoy'] = "fechahoy"; } ?> <?php $nm_cor_fun_cel = (isset($nm_cor_fun_cel) && $nm_cor_fun_cel == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar); $nm_img_fun_cel = (isset($nm_img_fun_cel) && $nm_img_fun_cel == $this->Ini->img_fun_imp ? $this->Ini->img_fun_par : $this->Ini->img_fun_imp); $fechahoy = $this->fechahoy; if (!isset($this->nmgp_cmp_hidden['fechahoy'])) { $this->nmgp_cmp_hidden['fechahoy'] = 'off'; } $sStyleHidden_fechahoy = ''; if (isset($this->nmgp_cmp_hidden['fechahoy']) && $this->nmgp_cmp_hidden['fechahoy'] == 'off') { unset($this->nmgp_cmp_hidden['fechahoy']); $sStyleHidden_fechahoy = 'display: none;'; } $bTestReadOnly = true; $sStyleReadLab_fechahoy = 'display: none;'; $sStyleReadInp_fechahoy = ''; if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['fechahoy']) && $this->nmgp_cmp_readonly['fechahoy'] == 'on') { $bTestReadOnly = false; unset($this->nmgp_cmp_readonly['fechahoy']); $sStyleReadLab_fechahoy = ''; $sStyleReadInp_fechahoy = 'display: none;'; } ?> <?php if (isset($this->nmgp_cmp_hidden['fechahoy']) && $this->nmgp_cmp_hidden['fechahoy'] == 'off') { $sc_hidden_yes++; ?> <input type="hidden" name="fechahoy" value="<?php echo $this->form_encode_input($fechahoy) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd" id="hidden_field_data_fechahoy" style="<?php echo $sStyleHidden_fechahoy; ?>"> <table style="border-spacing: 0px; border-width: 0px; border-collapse: collapse; width: 100%" cellspacing=0 cellpadding=0><tr><td class="scFormLabelOddFormat scFormLabelAboveOddFormat css_fechahoy_label" style=" padding: 0px; width: 100%;"><span id="id_label_fechahoy"><?php echo $this->nm_new_label['fechahoy']; ?></span></td></tr><tr><td class="css_fechahoy_line" style="padding: 0px; width: 100%;"> <?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["fechahoy"]) && $this->nmgp_cmp_readonly["fechahoy"] == "on") { ?> <input type="hidden" name="fechahoy" value="<?php echo $this->form_encode_input($fechahoy) . "\">" . $fechahoy . ""; ?> <?php } else { ?> <span id="id_read_on_fechahoy" class="sc-ui-readonly-fechahoy css_fechahoy_line" style="<?php echo $sStyleReadLab_fechahoy; ?>"><?php echo $this->form_format_readonly("fechahoy", $this->form_encode_input($fechahoy)); ?></span><span id="id_read_off_fechahoy" class="css_read_off_fechahoy<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_fechahoy; ?>"><?php $tmp_form_data = $this->field_config['fechahoy']['date_format']; $tmp_form_data = str_replace('aaaa', 'yyyy', $tmp_form_data); $tmp_form_data = str_replace('dd' , $this->Ini->Nm_lang['lang_othr_date_days'], $tmp_form_data); $tmp_form_data = str_replace('mm' , $this->Ini->Nm_lang['lang_othr_date_mnth'], $tmp_form_data); $tmp_form_data = str_replace('yyyy', $this->Ini->Nm_lang['lang_othr_date_year'], $tmp_form_data); $tmp_form_data = str_replace('hh' , $this->Ini->Nm_lang['lang_othr_date_hour'], $tmp_form_data); $tmp_form_data = str_replace('ii' , $this->Ini->Nm_lang['lang_othr_date_mint'], $tmp_form_data); $tmp_form_data = str_replace('ss' , $this->Ini->Nm_lang['lang_othr_date_scnd'], $tmp_form_data); $tmp_form_data = str_replace(';' , ' ' , $tmp_form_data); ?> <input class="sc-js-input scFormObjectOdd css_fechahoy_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_fechahoy" type=text name="fechahoy" value="<?php echo $this->form_encode_input($fechahoy) ?>" <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=10"; } ?> alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['fechahoy']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['fechahoy']['date_format']; ?>', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: false, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" > <span class="scFormDataHelpOdd"><?php echo $tmp_form_data; ?></span></span><?php } ?> </td></tr></table> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> <?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['nomoficina'])) { $this->nm_new_label['nomoficina'] = "nomoficina"; } ?> <?php $nm_cor_fun_cel = (isset($nm_cor_fun_cel) && $nm_cor_fun_cel == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar); $nm_img_fun_cel = (isset($nm_img_fun_cel) && $nm_img_fun_cel == $this->Ini->img_fun_imp ? $this->Ini->img_fun_par : $this->Ini->img_fun_imp); $nomoficina = $this->nomoficina; if (!isset($this->nmgp_cmp_hidden['nomoficina'])) { $this->nmgp_cmp_hidden['nomoficina'] = 'off'; } $sStyleHidden_nomoficina = ''; if (isset($this->nmgp_cmp_hidden['nomoficina']) && $this->nmgp_cmp_hidden['nomoficina'] == 'off') { unset($this->nmgp_cmp_hidden['nomoficina']); $sStyleHidden_nomoficina = 'display: none;'; } $bTestReadOnly = true; $sStyleReadLab_nomoficina = 'display: none;'; $sStyleReadInp_nomoficina = ''; if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['nomoficina']) && $this->nmgp_cmp_readonly['nomoficina'] == 'on') { $bTestReadOnly = false; unset($this->nmgp_cmp_readonly['nomoficina']); $sStyleReadLab_nomoficina = ''; $sStyleReadInp_nomoficina = 'display: none;'; } ?> <?php if (isset($this->nmgp_cmp_hidden['nomoficina']) && $this->nmgp_cmp_hidden['nomoficina'] == 'off') { $sc_hidden_yes++; ?> <input type="hidden" name="nomoficina" value="<?php echo $this->form_encode_input($nomoficina) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd" id="hidden_field_data_nomoficina" style="<?php echo $sStyleHidden_nomoficina; ?>"> <table style="border-spacing: 0px; border-width: 0px; border-collapse: collapse; width: 100%" cellspacing=0 cellpadding=0><tr><td class="scFormLabelOddFormat scFormLabelAboveOddFormat css_nomoficina_label" style=" padding: 0px; width: 100%;"><span id="id_label_nomoficina"><?php echo $this->nm_new_label['nomoficina']; ?></span></td></tr><tr><td class="css_nomoficina_line" style="padding: 0px; width: 100%;"> <?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["nomoficina"]) && $this->nmgp_cmp_readonly["nomoficina"] == "on") { ?> <input type="hidden" name="nomoficina" value="<?php echo $this->form_encode_input($nomoficina) . "\">" . $nomoficina . ""; ?> <?php } else { ?> <span id="id_read_on_nomoficina" class="sc-ui-readonly-nomoficina css_nomoficina_line" style="<?php echo $sStyleReadLab_nomoficina; ?>"><?php echo $this->form_format_readonly("nomoficina", $this->form_encode_input($this->nomoficina)); ?></span><span id="id_read_off_nomoficina" class="css_read_off_nomoficina<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_nomoficina; ?>"> <input class="sc-js-input scFormObjectOdd css_nomoficina_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_nomoficina" type=text name="nomoficina" value="<?php echo $this->form_encode_input($nomoficina) ?>" <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=30"; } ?> maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: false, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?> </td></tr></table> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> <?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['idoficina'])) { $this->nm_new_label['idoficina'] = "idoficina"; } ?> <?php $nm_cor_fun_cel = (isset($nm_cor_fun_cel) && $nm_cor_fun_cel == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar); $nm_img_fun_cel = (isset($nm_img_fun_cel) && $nm_img_fun_cel == $this->Ini->img_fun_imp ? $this->Ini->img_fun_par : $this->Ini->img_fun_imp); $idoficina = $this->idoficina; if (!isset($this->nmgp_cmp_hidden['idoficina'])) { $this->nmgp_cmp_hidden['idoficina'] = 'off'; } $sStyleHidden_idoficina = ''; if (isset($this->nmgp_cmp_hidden['idoficina']) && $this->nmgp_cmp_hidden['idoficina'] == 'off') { unset($this->nmgp_cmp_hidden['idoficina']); $sStyleHidden_idoficina = 'display: none;'; } $bTestReadOnly = true; $sStyleReadLab_idoficina = 'display: none;'; $sStyleReadInp_idoficina = ''; if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['idoficina']) && $this->nmgp_cmp_readonly['idoficina'] == 'on') { $bTestReadOnly = false; unset($this->nmgp_cmp_readonly['idoficina']); $sStyleReadLab_idoficina = ''; $sStyleReadInp_idoficina = 'display: none;'; } ?> <?php if (isset($this->nmgp_cmp_hidden['idoficina']) && $this->nmgp_cmp_hidden['idoficina'] == 'off') { $sc_hidden_yes++; ?> <input type="hidden" name="idoficina" value="<?php echo $this->form_encode_input($idoficina) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd" id="hidden_field_data_idoficina" style="<?php echo $sStyleHidden_idoficina; ?>"> <table style="border-spacing: 0px; border-width: 0px; border-collapse: collapse; width: 100%" cellspacing=0 cellpadding=0><tr><td class="scFormLabelOddFormat scFormLabelAboveOddFormat css_idoficina_label" style=" padding: 0px; width: 100%;"><span id="id_label_idoficina"><?php echo $this->nm_new_label['idoficina']; ?></span></td></tr><tr><td class="css_idoficina_line" style="padding: 0px; width: 100%;"> <?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["idoficina"]) && $this->nmgp_cmp_readonly["idoficina"] == "on") { ?> <input type="hidden" name="idoficina" value="<?php echo $this->form_encode_input($idoficina) . "\">" . $idoficina . ""; ?> <?php } else { ?> <span id="id_read_on_idoficina" class="sc-ui-readonly-idoficina css_idoficina_line" style="<?php echo $sStyleReadLab_idoficina; ?>"><?php echo $this->form_format_readonly("idoficina", $this->form_encode_input($this->idoficina)); ?></span><span id="id_read_off_idoficina" class="css_read_off_idoficina<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_idoficina; ?>"> <input class="sc-js-input scFormObjectOdd css_idoficina_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_idoficina" type=text name="idoficina" value="<?php echo $this->form_encode_input($idoficina) ?>" <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=10"; } ?> alt="{datatype: 'integer', maxLength: 20, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['idoficina']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['idoficina']['symbol_fmt']; ?>, allowNegative: true, onlyNegative: false, negativePos: <?php echo (4 == $this->field_config['idoficina']['format_neg'] ? "'suffix'" : "'prefix'") ?>, enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: false, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?> </td></tr></table> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> <?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['taquillaactual'])) { $this->nm_new_label['taquillaactual'] = ""; } ?> <?php $nm_cor_fun_cel = (isset($nm_cor_fun_cel) && $nm_cor_fun_cel == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar); $nm_img_fun_cel = (isset($nm_img_fun_cel) && $nm_img_fun_cel == $this->Ini->img_fun_imp ? $this->Ini->img_fun_par : $this->Ini->img_fun_imp); $taquillaactual = $this->taquillaactual; $sStyleHidden_taquillaactual = ''; if (isset($this->nmgp_cmp_hidden['taquillaactual']) && $this->nmgp_cmp_hidden['taquillaactual'] == 'off') { unset($this->nmgp_cmp_hidden['taquillaactual']); $sStyleHidden_taquillaactual = 'display: none;'; } $bTestReadOnly = true; $sStyleReadLab_taquillaactual = 'display: none;'; $sStyleReadInp_taquillaactual = ''; if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['taquillaactual']) && $this->nmgp_cmp_readonly['taquillaactual'] == 'on') { $bTestReadOnly = false; unset($this->nmgp_cmp_readonly['taquillaactual']); $sStyleReadLab_taquillaactual = ''; $sStyleReadInp_taquillaactual = 'display: none;'; } ?> <?php if (isset($this->nmgp_cmp_hidden['taquillaactual']) && $this->nmgp_cmp_hidden['taquillaactual'] == 'off') { $sc_hidden_yes++; ?> <input type="hidden" name="taquillaactual" value="<?php echo $this->form_encode_input($taquillaactual) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd" id="hidden_field_data_taquillaactual" style="<?php echo $sStyleHidden_taquillaactual; ?>"> <table style="border-spacing: 0px; border-width: 0px; border-collapse: collapse; width: 100%" cellspacing=0 cellpadding=0><tr><td class="scFormLabelOddFormat scFormLabelAboveOddFormat css_taquillaactual_label" style=" padding: 0px; width: 100%;"><span id="id_label_taquillaactual"><?php echo $this->nm_new_label['taquillaactual']; ?></span></td></tr><tr><td class="css_taquillaactual_line" style="padding: 0px; width: 100%;"><input type="hidden" name="taquillaactual" value="<?php echo $this->form_encode_input($taquillaactual); ?>"><span id="id_ajax_label_taquillaactual"><?php echo nl2br($taquillaactual); ?></span> </td></tr></table> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> <?php $sStyleHidden_taquillaactual_dumb = ('' == $sStyleHidden_taquillaactual) ? 'display: none' : ''; ?> <TD class="scFormDataOdd" id="hidden_field_data_taquillaactual_dumb" style="<?php echo $sStyleHidden_taquillaactual_dumb; ?>"></TD> </tr> <?php $sc_hidden_no = 1; ?> </TABLE></div><!-- bloco_f --> </td> </tr></table> <a name="bloco_1"></a> <table width="100%" height="100%" cellpadding="0" cellspacing=0 class="scBlockRow"><tr valign="top"><td width="100%" height=""> <div id="div_hidden_bloco_1" class="scBlockFrame"><!-- bloco_c --> <TABLE align="center" id="hidden_bloco_1" class="scFormTable scFormDataOdd<?php echo $this->classes_100perc_fields['table'] ?>" width="100%" style="height: 100%;"><?php if ($sc_hidden_no > 0) { echo "<tr>"; }; $sc_hidden_yes = 0; $sc_hidden_no = 0; ?> <?php if (!isset($this->nm_new_label['jornada'])) { $this->nm_new_label['jornada'] = "jornada"; } ?> <?php $nm_cor_fun_cel = (isset($nm_cor_fun_cel) && $nm_cor_fun_cel == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar); $nm_img_fun_cel = (isset($nm_img_fun_cel) && $nm_img_fun_cel == $this->Ini->img_fun_imp ? $this->Ini->img_fun_par : $this->Ini->img_fun_imp); $jornada = $this->jornada; if (!isset($this->nmgp_cmp_hidden['jornada'])) { $this->nmgp_cmp_hidden['jornada'] = 'off'; } $sStyleHidden_jornada = ''; if (isset($this->nmgp_cmp_hidden['jornada']) && $this->nmgp_cmp_hidden['jornada'] == 'off') { unset($this->nmgp_cmp_hidden['jornada']); $sStyleHidden_jornada = 'display: none;'; } $bTestReadOnly = true; $sStyleReadLab_jornada = 'display: none;'; $sStyleReadInp_jornada = ''; if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['jornada']) && $this->nmgp_cmp_readonly['jornada'] == 'on') { $bTestReadOnly = false; unset($this->nmgp_cmp_readonly['jornada']); $sStyleReadLab_jornada = ''; $sStyleReadInp_jornada = 'display: none;'; } ?> <?php if (isset($this->nmgp_cmp_hidden['jornada']) && $this->nmgp_cmp_hidden['jornada'] == 'off') { $sc_hidden_yes++; ?> <input type="hidden" name="jornada" value="<?php echo $this->form_encode_input($jornada) . "\">"; ?> <?php } else { $sc_hidden_no++; ?> <TD class="scFormDataOdd css_jornada_line" id="hidden_field_data_jornada" style="<?php echo $sStyleHidden_jornada; ?>"> <?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["jornada"]) && $this->nmgp_cmp_readonly["jornada"] == "on") { ?> <input type="hidden" name="jornada" value="<?php echo $this->form_encode_input($jornada) . "\">" . $jornada . ""; ?> <?php } else { ?> <span id="id_read_on_jornada" class="sc-ui-readonly-jornada css_jornada_line" style="<?php echo $sStyleReadLab_jornada; ?>"><?php echo $this->form_format_readonly("jornada", $this->form_encode_input($this->jornada)); ?></span><span id="id_read_off_jornada" class="css_read_off_jornada<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_jornada; ?>"> <input class="sc-js-input scFormObjectOdd css_jornada_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_jornada" type=text name="jornada" value="<?php echo $this->form_encode_input($jornada) ?>" <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=10"; } ?> alt="{datatype: 'integer', maxLength: 20, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['jornada']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['jornada']['symbol_fmt']; ?>, allowNegative: true, onlyNegative: false, negativePos: <?php echo (4 == $this->field_config['jornada']['format_neg'] ? "'suffix'" : "'prefix'") ?>, enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: false, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?> </TD> <?php }?> <?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?> <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" > </TD> <?php } ?> </td></tr></table> </tr> </TABLE></div><!-- bloco_f --> </td></tr> <tr><td class="scFormPageText"> <script type="text/javascript"> function captchaReloadImage() { if ($("#id_captcha_img").length == 0) { return; } var sChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; var sRand = ""; for (var i = 0; i < 16; i++) { sRand += sChars.charAt(Math.round(sChars.length * Math.random())); } document.getElementById("id_captcha_img").src = "app2_Login_captcha_show.php?sid=" + sRand; } </script> <?php if (true) { ?> <span id='SC_captcha_hidden' style='display:<?php if(isset($this->nmgp_captcha_display)) {echo $this->nmgp_captcha_display;} ?>'> <table style="border-collapse: collapse; border-width: 0px"> <tr> <td><table style="border-collapse: collapse; border-width: 0px"><tr><td> <?php if ($this->Ini->Gd_missing) { echo "<span class=\"scFormErrorMessage scFormToastMessage\">" . $this->Ini->Nm_lang['lang_errm_gd'] . "</span>"; } ?> <img id="id_captcha_img" src="app2_Login_captcha_show.php?sid=<?php echo md5(uniqid(time())); ?>" /></td><td><?php echo nmButtonOutput($this->arr_buttons, "bcaptchareload", "captchaReloadImage()", "captchaReloadImage()", "id_captcha_reload", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "", '', '', '', '', '', '', '', '', "");?> </td></tr></table></td> <td><input type="text" name="captcha_code" maxlength="4" size="4" class="scFormObjectOdd" /></td> <td><span class="scFormPageText"><?php echo $this->Ini->Nm_lang['lang_othr_cptc_lbel']; ?></span></td> </tr> </table> </span> <?php } ?> </td></tr> <tr><td> <?php $this->displayBottomToolbar(); ?> <table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormToolbar sc-toolbar-bottom" style="padding: 0px; spacing: 0px"> <table style="border-collapse: collapse; border-width: 0px; width: 100%"> <tr> <td nowrap align="left" valign="middle" width="33%" class="scFormToolbarPadding"> <?php $NM_btn = false; ?> </td> <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> <?php $sCondStyle = ($this->nmgp_botoes['ok'] == "on") ? '' : 'display: none;'; ?> <?php $buttonMacroDisabled = 'sc-unique-btn-1'; $buttonMacroLabel = "Entrar"; if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['ok']) && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['ok']) { $buttonMacroDisabled .= ' disabled'; } if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_label']['ok']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_label']['ok']) { $buttonMacroLabel = $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_label']['ok']; } ?> <?php echo nmButtonOutput($this->arr_buttons, "bok", "scBtnFn_sys_format_ok()", "scBtnFn_sys_format_ok()", "sub_form_b", "", "" . $buttonMacroLabel . "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "" . $buttonMacroDisabled . "", "", "", '', '', '', '', '', '', '', '', "");?> <?php $NM_btn = true; ?> <?php $sCondStyle = ($this->nmgp_botoes['facebook'] == "on") ? '' : 'display: none;'; ?> <?php $buttonMacroDisabled = 'sc-unique-btn-2'; $buttonMacroLabel = ""; if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['facebook']) && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['facebook']) { $buttonMacroDisabled .= ' disabled'; } if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_label']['facebook']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_label']['facebook']) { $buttonMacroLabel = $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_label']['facebook']; } ?> <?php echo nmButtonOutput($this->arr_buttons, "bfacebook", "scBtnFn_sys_auth_facebook()", "scBtnFn_sys_auth_facebook()", "bfacebook_b", "", "" . $buttonMacroLabel . "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "" . $buttonMacroDisabled . "", "", "", '', '', '', '', '', '', '', '', "");?> <?php $NM_btn = true; ?> <?php $sCondStyle = ($this->nmgp_botoes['google'] == "on") ? '' : 'display: none;'; ?> <?php $buttonMacroDisabled = 'sc-unique-btn-3'; $buttonMacroLabel = ""; if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['google']) && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['google']) { $buttonMacroDisabled .= ' disabled'; } if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_label']['google']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_label']['google']) { $buttonMacroLabel = $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_label']['google']; } ?> <?php echo nmButtonOutput($this->arr_buttons, "bgoogle", "scBtnFn_sys_auth_google()", "scBtnFn_sys_auth_google()", "bgoogle_b", "", "" . $buttonMacroLabel . "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "" . $buttonMacroDisabled . "", "", "", '', '', '', '', '', '', '', '', "");?> <?php $NM_btn = true; ?> <?php $sCondStyle = ($this->nmgp_botoes['twitter'] == "on") ? '' : 'display: none;'; ?> <?php $buttonMacroDisabled = 'sc-unique-btn-4'; $buttonMacroLabel = ""; if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['twitter']) && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_disabled']['twitter']) { $buttonMacroDisabled .= ' disabled'; } if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_label']['twitter']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_label']['twitter']) { $buttonMacroLabel = $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['btn_label']['twitter']; } ?> <?php echo nmButtonOutput($this->arr_buttons, "btwitter", "scBtnFn_sys_auth_twitter()", "scBtnFn_sys_auth_twitter()", "btwitter_b", "", "" . $buttonMacroLabel . "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "" . $buttonMacroDisabled . "", "", "", '', '', '', '', '', '', '', '', "");?> <?php $NM_btn = true; ?> </td> <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> </td></tr> </table> </td></tr></table> <?php if (!$NM_btn && isset($NM_ult_sep)) { echo " <script language=\"javascript\">"; echo " document.getElementById('" . $NM_ult_sep . "').style.display='none';"; echo " </script>"; } unset($NM_ult_sep); ?> </td></tr> <?php $this->displayAppFooter(); ?> </table> </div> </td> </tr> </table> <div id="id_debug_window" style="display: none;" class='scDebugWindow'><table class="scFormMessageTable"> <tr><td class="scFormMessageTitle"><?php echo nmButtonOutput($this->arr_buttons, "berrm_clse", "scAjaxHideDebug()", "scAjaxHideDebug()", "", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "", "", '', '', '', '', '', '', '', '', "");?> Output</td></tr> <tr><td class="scFormMessageMessage" style="padding: 0px; vertical-align: top"><div style="padding: 2px; height: 200px; width: 350px; overflow: auto" id="id_debug_text"></div></td></tr> </table></div> </form> <script> <?php $nm_sc_blocos_da_pag = array(0,1); foreach ($this->Ini->nm_hidden_blocos as $bloco => $hidden) { if ($hidden == "off" && in_array($bloco, $nm_sc_blocos_da_pag)) { echo "document.getElementById('hidden_bloco_" . $bloco . "').style.display = 'none';"; if (isset($nm_sc_blocos_aba[$bloco])) { echo "document.getElementById('id_tabs_" . $nm_sc_blocos_aba[$bloco] . "_" . $bloco . "').style.display = 'none';"; } } } ?> </script> <script> <?php if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['masterValue'])) { if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['dashboard_info']['under_dashboard']) && $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['dashboard_info']['under_dashboard']) { ?> var dbParentFrame = $(parent.document).find("[name='<?php echo $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['dashboard_info']['parent_widget']; ?>']"); if (dbParentFrame && dbParentFrame[0] && dbParentFrame[0].contentWindow.scAjaxDetailValue) { <?php foreach ($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['masterValue'] as $cmp_master => $val_master) { ?> dbParentFrame[0].contentWindow.scAjaxDetailValue('<?php echo $cmp_master ?>', '<?php echo $val_master ?>'); <?php } unset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['masterValue']); ?> } <?php } else { ?> if (parent && parent.scAjaxDetailValue) { <?php foreach ($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['masterValue'] as $cmp_master => $val_master) { ?> parent.scAjaxDetailValue('<?php echo $cmp_master ?>', '<?php echo $val_master ?>'); <?php } unset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['masterValue']); ?> } <?php } } ?> function updateHeaderFooter(sFldName, sFldValue) { if (sFldValue[0] && sFldValue[0]["value"]) { sFldValue = sFldValue[0]["value"]; } } </script> <?php if (isset($_POST['master_nav']) && 'on' == $_POST['master_nav']) { if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['dashboard_info']['under_dashboard']) && $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['dashboard_info']['under_dashboard']) { ?> <script> var dbParentFrame = $(parent.document).find("[name='<?php echo $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['dashboard_info']['parent_widget']; ?>']"); dbParentFrame[0].contentWindow.scAjaxDetailStatus("app2_Login"); </script> <?php } else { $sTamanhoIframe = isset($_POST['sc_ifr_height']) && '' != $_POST['sc_ifr_height'] ? '"' . $_POST['sc_ifr_height'] . '"' : '$(document).innerHeight()'; ?> <script> parent.scAjaxDetailStatus("app2_Login"); parent.scAjaxDetailHeight("app2_Login", <?php echo $sTamanhoIframe; ?>); </script> <?php } } elseif (isset($_GET['script_case_detail']) && 'Y' == $_GET['script_case_detail']) { if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['dashboard_info']['under_dashboard']) && $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['dashboard_info']['under_dashboard']) { } else { $sTamanhoIframe = isset($_GET['sc_ifr_height']) && '' != $_GET['sc_ifr_height'] ? '"' . $_GET['sc_ifr_height'] . '"' : '$(document).innerHeight()'; ?> <script> if (0 == <?php echo $sTamanhoIframe; ?>) { setTimeout(function() { parent.scAjaxDetailHeight("app2_Login", <?php echo $sTamanhoIframe; ?>); }, 100); } else { parent.scAjaxDetailHeight("app2_Login", <?php echo $sTamanhoIframe; ?>); } </script> <?php } } ?> <?php if (isset($this->NM_ajax_info['displayMsg']) && $this->NM_ajax_info['displayMsg']) { $isToast = isset($this->NM_ajax_info['displayMsgToast']) && $this->NM_ajax_info['displayMsgToast'] ? 'true' : 'false'; $toastType = $isToast && isset($this->NM_ajax_info['displayMsgToastType']) ? $this->NM_ajax_info['displayMsgToastType'] : ''; ?> <script type="text/javascript"> _scAjaxShowMessage({title: scMsgDefTitle, message: "<?php echo $this->NM_ajax_info['displayMsgTxt']; ?>", isModal: false, timeout: sc_ajaxMsgTime, showButton: false, buttonLabel: "Ok", topPos: 0, leftPos: 0, width: 0, height: 0, redirUrl: "", redirTarget: "", redirParam: "", showClose: false, showBodyIcon: true, isToast: <?php echo $isToast ?>, toastPos: "", type: "<?php echo $toastType ?>"}); </script> <?php } ?> <?php if (isset($this->scFormFocusErrorName) && '' != $this->scFormFocusErrorName) { ?> <script> scAjaxFocusError(); </script> <?php } ?> <script type='text/javascript'> bLigEditLookupCall = <?php if ($this->lig_edit_lookup_call) { ?>true<?php } else { ?>false<?php } ?>; function scLigEditLookupCall() { <?php if ($this->lig_edit_lookup && isset($_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['sc_modal']) && $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['sc_modal']) { ?> parent.<?php echo $this->lig_edit_lookup_cb; ?>(<?php echo $this->lig_edit_lookup_row; ?>); <?php } elseif ($this->lig_edit_lookup) { ?> opener.<?php echo $this->lig_edit_lookup_cb; ?>(<?php echo $this->lig_edit_lookup_row; ?>); <?php } ?> } if (bLigEditLookupCall) { scLigEditLookupCall(); } <?php if (isset($this->redir_modal) && !empty($this->redir_modal)) { echo $this->redir_modal; } ?> </script> <?php if ($this->nmgp_form_empty) { ?> <script type="text/javascript"> scAjax_displayEmptyForm(); </script> <?php } ?> <script type="text/javascript"> function scBtnFn_sys_format_ok() { if ($("#sub_form_b.sc-unique-btn-1").length && $("#sub_form_b.sc-unique-btn-1").is(":visible")) { if ($("#sub_form_b.sc-unique-btn-1").hasClass("disabled")) { return; } nm_atualiza('alterar'); return; } } function scBtnFn_sys_auth_facebook() { if ($("#bfacebook_b.sc-unique-btn-2").length && $("#bfacebook_b.sc-unique-btn-2").is(":visible")) { if ($("#bfacebook_b.sc-unique-btn-2").hasClass("disabled")) { return; } sc_facebook_auth() return; } } function scBtnFn_sys_auth_google() { if ($("#bgoogle_b.sc-unique-btn-3").length && $("#bgoogle_b.sc-unique-btn-3").is(":visible")) { if ($("#bgoogle_b.sc-unique-btn-3").hasClass("disabled")) { return; } sc_google_auth() return; } } function scBtnFn_sys_auth_twitter() { if ($("#btwitter_b.sc-unique-btn-4").length && $("#btwitter_b.sc-unique-btn-4").is(":visible")) { if ($("#btwitter_b.sc-unique-btn-4").hasClass("disabled")) { return; } sc_twitter_auth() return; } } </script> <script type="text/javascript"> $(function() { $("#sc-id-mobile-in").mouseover(function() { $(this).css("cursor", "pointer"); }).click(function() { scMobileDisplayControl("in"); }); $("#sc-id-mobile-out").mouseover(function() { $(this).css("cursor", "pointer"); }).click(function() { scMobileDisplayControl("out"); }); }); function scMobileDisplayControl(sOption) { $("#sc-id-mobile-control").val(sOption); nm_atualiza("recarga_mobile"); } </script> <?php if (isset($_SESSION['scriptcase']['device_mobile']) && $_SESSION['scriptcase']['device_mobile']) { ?> <span id="sc-id-mobile-in"><?php echo $this->Ini->Nm_lang['lang_version_mobile']; ?></span> <?php } ?> <?php $_SESSION['sc_session'][$this->Ini->sc_page]['app2_Login']['buttonStatus'] = $this->nmgp_botoes; ?> <script type="text/javascript"> function sc_session_redir(url_redir) { if (window.parent && window.parent.document != window.document && typeof window.parent.sc_session_redir === 'function') { window.parent.sc_session_redir(url_redir); } else { if (window.opener && typeof window.opener.sc_session_redir === 'function') { window.close(); window.opener.sc_session_redir(url_redir); } else { window.location = url_redir; } } } </script> </body> </html>
Save
cmd:
run