<?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");

?>
<!DOCTYPE html>

<html<?php echo $_SESSION['scriptcase']['reg_conf']['html_dir'] ?>>
<HEAD>
 <TITLE><?php if ('novo' == $this->nmgp_opcao) { echo strip_tags("Atendimento de Ouvidoria"); } else { echo strip_tags("Atendimento de Ouvidoria"); } ?></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="Cache-Control" content="post-check=0, pre-check=0" />
 <META http-equiv="Pragma" content="no-cache" />
 <link rel="shortcut icon" href="../_lib/img/scriptcase__NM__ico__NM__favicon.ico">
<?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 = 3;
  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:3:{i:0;s:2:"NP";i:1;s:2:"FL";i:2;s:2:"RC";}'),
                       'mobileSimpleToolbar' => true,
                       'bottomToolbarFixed' => true
                   ]); ?>
            <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" />
<style type="text/css">
.ui-datepicker { z-index: 6 !important }
</style>
 <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>
<?php
foreach ($this->Ini->tippy_themes as $tippyTheme => $tippyThemeInfo) {
?>
 <link rel="stylesheet" href="<?php echo $tippyThemeInfo['file'] ?>" />
<?php
}
?>
 <script src="<?php echo $this->Ini->path_prod; ?>/third/tippyjs/popper.min.js"></script>
 <script src="<?php echo $this->Ini->path_prod; ?>/third/tippyjs/tippy-bundle.umd.min.js"></script>
 <script>
  $(function() {
  });
 </script>
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_prod ?>/third/jquery_plugin/viewerjs/viewer.css" />
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery_plugin/viewerjs/viewer.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>
<?php
$miniCalendarFA = $this->jqueryFAFile('calendar');
if ('' != $miniCalendarFA) {
?>
<style type="text/css">
.css_read_off_data_hora_cadastro_1000 button {
        background-color: transparent;
        border: 0;
        padding: 0
}
.css_read_off_dt_ocorrido_1000 button {
        background-color: transparent;
        border: 0;
        padding: 0
}
.css_read_off_dt_ini_inv_ouvd_1000 button {
        background-color: transparent;
        border: 0;
        padding: 0
}
.css_read_off_dt_enc_ouvd_1000 button {
        background-color: transparent;
        border: 0;
        padding: 0
}
</style>
<?php
}
?>
<?php

if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['link_info']['margin_top']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['link_info']['margin_top']) {
?>
<style>
.scFormBorder {
    padding-top: 0 !important;
}
.scBlockRowFirst .scFormTable {
    margin-top: <?php echo $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['link_info']['margin_top'] ?>;
}
</style>
<?php
}

?>

<link rel="stylesheet" href="<?php echo $this->Ini->path_prod ?>/third/jquery_plugin/select2/css/select2.min.css" type="text/css" />
<script type="text/javascript" src="<?php echo $this->Ini->path_prod ?>/third/jquery_plugin/select2/js/select2.full.min.js"></script>
 <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]['form_relatorio_geral_manifestacoes']['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" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_calendar.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_calendar<?php echo $_SESSION['scriptcase']['reg_conf']['css_dir'] ?>.css" />
 <style type="text/css">
  .scTabActive { font-size: 14px; color: #0066CC !important; }
  .scTabInactive { font-size: 14px; color: #99CCFF !important; }
 </style>
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_progressbar.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_progressbar<?php echo $_SESSION['scriptcase']['reg_conf']['css_dir'] ?>.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 ?>form_relatorio_geral_manifestacoes/form_relatorio_geral_manifestacoes_<?php echo strtolower($_SESSION['scriptcase']['reg_conf']['css_dir']) ?>.css" />

<script>
var scFocusFirstErrorField = false;
var scFocusFirstErrorName  = "<?php if (isset($this->scFormFocusErrorName)) {echo $this->scFormFocusErrorName;} ?>";
</script>

<?php
include_once("form_relatorio_geral_manifestacoes_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 = true;
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]['form_relatorio_geral_manifestacoes']['btn_disabled']['first']) ? $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['first'] : 'off'); ?>";
var Nav_bavanca_macro_disabled  = "<?php echo (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['forward']) ? $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['forward'] : 'off'); ?>";
var Nav_bretorna_macro_disabled = "<?php echo (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['back']) ? $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['back'] : 'off'); ?>";
var Nav_bfinal_macro_disabled   = "<?php echo (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['last']) ? $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['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('form_relatorio_geral_manifestacoes_jquery.php');

?>
var applicationKeys = "";
applicationKeys += "ctrl+shift+right";
applicationKeys += ",";
applicationKeys += "ctrl+shift+left";
applicationKeys += ",";
applicationKeys += "ctrl+right";
applicationKeys += ",";
applicationKeys += "ctrl+left";
applicationKeys += ",";
applicationKeys += "alt+q";
applicationKeys += ",";
applicationKeys += "escape";
applicationKeys += ",";
applicationKeys += "ctrl+enter";
applicationKeys += ",";
applicationKeys += "ctrl+s";
applicationKeys += ",";
applicationKeys += "ctrl+delete";
applicationKeys += ",";
applicationKeys += "f1";
applicationKeys += ",";
applicationKeys += "ctrl+shift+c";

var hotkeyList = "";

function execHotKey(e, h) {
    var hotkey_fired = false;
  switch (true) {
    case (["ctrl+shift+right"].indexOf(h.key) > -1):
      hotkey_fired = process_hotkeys("sys_format_fim");
      break;
    case (["ctrl+shift+left"].indexOf(h.key) > -1):
      hotkey_fired = process_hotkeys("sys_format_ini");
      break;
    case (["ctrl+right"].indexOf(h.key) > -1):
      hotkey_fired = process_hotkeys("sys_format_ava");
      break;
    case (["ctrl+left"].indexOf(h.key) > -1):
      hotkey_fired = process_hotkeys("sys_format_ret");
      break;
    case (["alt+q"].indexOf(h.key) > -1):
      hotkey_fired = process_hotkeys("sys_format_sai");
      break;
    case (["escape"].indexOf(h.key) > -1):
      hotkey_fired = process_hotkeys("sys_format_cnl");
      break;
    case (["ctrl+enter"].indexOf(h.key) > -1):
      hotkey_fired = process_hotkeys("sys_format_inc");
      break;
    case (["ctrl+s"].indexOf(h.key) > -1):
      hotkey_fired = process_hotkeys("sys_format_alt");
      break;
    case (["ctrl+delete"].indexOf(h.key) > -1):
      hotkey_fired = process_hotkeys("sys_format_exc");
      break;
    case (["f1"].indexOf(h.key) > -1):
      hotkey_fired = process_hotkeys("sys_format_webh");
      break;
    case (["ctrl+shift+c"].indexOf(h.key) > -1):
      hotkey_fired = process_hotkeys("sys_format_copy");
      break;
    default:
      return true;
  }
  if (hotkey_fired) {
        e.preventDefault();
        return false;
    } else {
        return true;
    }
}
</script>

<script type="text/javascript" src="<?php echo $this->Ini->url_lib_js ?>hotkeys.inc.js"></script>
<script type="text/javascript" src="<?php echo $this->Ini->url_lib_js ?>hotkeys_setup.js"></script>
<script type="text/javascript" src="<?php echo $this->Ini->url_lib_js ?>frameControl.js"></script>
<script type="text/javascript">

function process_hotkeys(hotkey)
{
  if (hotkey == "sys_format_fim") {
    if (typeof scBtnFn_sys_format_fim !== "undefined" && typeof scBtnFn_sys_format_fim === "function") {
      scBtnFn_sys_format_fim();
        return true;
    }
  }
  if (hotkey == "sys_format_ini") {
    if (typeof scBtnFn_sys_format_ini !== "undefined" && typeof scBtnFn_sys_format_ini === "function") {
      scBtnFn_sys_format_ini();
        return true;
    }
  }
  if (hotkey == "sys_format_ava") {
    if (typeof scBtnFn_sys_format_ava !== "undefined" && typeof scBtnFn_sys_format_ava === "function") {
      scBtnFn_sys_format_ava();
        return true;
    }
  }
  if (hotkey == "sys_format_ret") {
    if (typeof scBtnFn_sys_format_ret !== "undefined" && typeof scBtnFn_sys_format_ret === "function") {
      scBtnFn_sys_format_ret();
        return true;
    }
  }
  if (hotkey == "sys_format_sai") {
    if (typeof scBtnFn_sys_format_sai !== "undefined" && typeof scBtnFn_sys_format_sai === "function") {
      scBtnFn_sys_format_sai();
        return true;
    }
  }
  if (hotkey == "sys_format_cnl") {
    if (typeof scBtnFn_sys_format_cnl !== "undefined" && typeof scBtnFn_sys_format_cnl === "function") {
      scBtnFn_sys_format_cnl();
        return true;
    }
  }
  if (hotkey == "sys_format_inc") {
    if (typeof scBtnFn_sys_format_inc !== "undefined" && typeof scBtnFn_sys_format_inc === "function") {
      scBtnFn_sys_format_inc();
        return true;
    }
  }
  if (hotkey == "sys_format_alt") {
    if (typeof scBtnFn_sys_format_alt !== "undefined" && typeof scBtnFn_sys_format_alt === "function") {
      scBtnFn_sys_format_alt();
        return true;
    }
  }
  if (hotkey == "sys_format_exc") {
    if (typeof scBtnFn_sys_format_exc !== "undefined" && typeof scBtnFn_sys_format_exc === "function") {
      scBtnFn_sys_format_exc();
        return true;
    }
  }
  if (hotkey == "sys_format_webh") {
    if (typeof scBtnFn_sys_format_webh !== "undefined" && typeof scBtnFn_sys_format_webh === "function") {
      scBtnFn_sys_format_webh();
        return true;
    }
  }
  if (hotkey == "sys_format_copy") {
    if (typeof scBtnFn_sys_format_copy !== "undefined" && typeof scBtnFn_sys_format_copy === "function") {
      scBtnFn_sys_format_copy();
        return true;
    }
  }
    return false;
}

 var Dyn_Ini  = true;
 $(function() {

  scJQElementsAdd('');

  scJQGeneralAdd();

  $("#hidden_bloco_0,#hidden_bloco_1,#hidden_bloco_2,#hidden_bloco_3,#hidden_bloco_4,#hidden_bloco_5,#hidden_bloco_8,#hidden_bloco_9,#hidden_bloco_10").each(function() {
   $(this.rows[0]).bind("click", {block: this}, toggleBlock)
                  .mouseover(function() { $(this).css("cursor", "pointer"); })
                  .mouseout(function() { $(this).css("cursor", ""); });
  });

  $(document).bind('drop dragover', function (e) {
      e.preventDefault();
  });

  var i, iTestWidth, iMaxLabelWidth = 0, $labelList = $(".scUiLabelWidthFix");
  for (i = 0; i < $labelList.length; i++) {
    iTestWidth = $($labelList[i]).width();
    sTestWidth = iTestWidth + "";
    if ("" == iTestWidth) {
      iTestWidth = 0;
    }
    else if ("px" == sTestWidth.substr(sTestWidth.length - 2)) {
      iTestWidth = parseInt(sTestWidth.substr(0, sTestWidth.length - 2));
    }
    iMaxLabelWidth = Math.max(iMaxLabelWidth, iTestWidth);
  }
  if (0 < iMaxLabelWidth) {
    $(".scUiLabelWidthFix").css("width", iMaxLabelWidth + "px");
  }
<?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() {
   });
 if($(".sc-ui-block-control").length) {
  preloadBlock = new Image();
  preloadBlock.src = "<?php echo $this->Ini->path_icones; ?>/" + sc_blockExp;
 }

 var show_block = {
    "hidden_bloco_0": true,
    "hidden_bloco_1": true,
    "hidden_bloco_2": true,
    "hidden_bloco_3": true,
    "hidden_bloco_4": true,
    "hidden_bloco_5": true,
    "hidden_bloco_8": true,
    "hidden_bloco_9": true,
    "hidden_bloco_10": true
 };

 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 = 1; i < block.rows.length; i++) {
   if (show_block[block_id])
    $(block.rows[i]).show();
   else
    $(block.rows[i]).hide();
  }

  if (show_block[block_id]) {
    if ("hidden_bloco_8" == block_id) {
      scAjaxDetailHeight("grid_OUVD_2000_andamento", $($("#nmsc_iframe_liga_grid_OUVD_2000_andamento")[0].contentWindow.document).innerHeight());
    }
    if ("hidden_bloco_9" == block_id) {
      scAjaxDetailHeight("grid_OUVD_3000_fluxo_nivel", $($("#nmsc_iframe_liga_grid_OUVD_3000_fluxo_nivel")[0].contentWindow.document).innerHeight());
    }
  }
 }

 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]['form_relatorio_geral_manifestacoes']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['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]['form_relatorio_geral_manifestacoes']['opc_ant'] = "novo";
    $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['recarga'] = "novo";
}
if (empty($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['recarga']))
{
    $opcao_botoes = $this->nmgp_opcao;
}
else
{
    $opcao_botoes = $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['recarga'];
}
    $remove_margin = isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['remove_margin']) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['remove_margin'] ? 'margin: 0; ' : '';
    $remove_border = isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['remove_border']) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['remove_border'] ? 'border-width: 0; ' : '';
    $remove_background = isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['remove_background']) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['remove_background'] ? 'background-color: transparent; background-image: none; ' : '';
    if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['link_info']['remove_margin']) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['link_info']['remove_margin']) {
        $remove_margin = 'margin: 0; ';
    }
    if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['link_info']['remove_background']) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['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]['form_relatorio_geral_manifestacoes']['link_info']['remove_border']) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['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 = '';
?>
<body class="scFormPage sc-app-form" 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("form_relatorio_geral_manifestacoes_js0.php");
?>
<script type="text/javascript"> 
 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" enctype="multipart/form-data" 
               action="./" 
               target="_self">
<input type="hidden" name="nmgp_url_saida" value="">
<?php
if ('novo' == $this->nmgp_opcao || 'incluir' == $this->nmgp_opcao)
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['insert_validation'] = md5(time() . rand(1, 99999));
?>
<input type="hidden" name="nmgp_ins_valid" value="<?php echo $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['insert_validation']; ?>">
<?php
}
?>
<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_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="upload_file_flag" value="">
<input type="hidden" name="upload_file_check" value="">
<input type="hidden" name="upload_file_name" value="">
<input type="hidden" name="upload_file_temp" value="">
<input type="hidden" name="upload_file_libs" value="">
<input type="hidden" name="upload_file_height" value="">
<input type="hidden" name="upload_file_width" value="">
<input type="hidden" name="upload_file_aspect" value="">
<input type="hidden" name="upload_file_type" value="">
<input type="hidden" name="anexo_ouvd_img1_1000_salva" value="<?php  echo $this->form_encode_input($this->anexo_ouvd_img1_1000) ?>">
<input type="hidden" name="anexo_ouvd_img2_1000_salva" value="<?php  echo $this->form_encode_input($this->anexo_ouvd_img2_1000) ?>">
<input type="hidden" name="anexo_ouvd_doc1_1000_salva" value="<?php  echo $this->form_encode_input($this->anexo_ouvd_doc1_1000) ?>">
<input type="hidden" name="anexo_ouvd_doc2_1000_salva" value="<?php  echo $this->form_encode_input($this->anexo_ouvd_doc2_1000) ?>">
<input type="hidden" name="_sc_force_mobile" id="sc-id-mobile-control" value="" />
<?php
$_SESSION['scriptcase']['error_span_title']['form_relatorio_geral_manifestacoes'] = $this->Ini->Error_icon_span;
$_SESSION['scriptcase']['error_icon_title']['form_relatorio_geral_manifestacoes'] = '' != $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">&nbsp;<?php } ?><?php echo $this->Ini->Nm_lang['lang_errm_errt'] ?></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">&nbsp;<?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">&nbsp;<?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="100%">
 <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
$this->displayTopToolbar();
?>
<?php
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "R")
{
?>
    <table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormToolbar sc-toolbar-top" 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;
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "R")
{
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['btn_extrato'] == "on") ? '' : 'display: none;';
?>
<?php
        $buttonMacroDisabled = '';
        $buttonMacroLabel = "";

        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['btn_extrato']) && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['btn_extrato']) {
            $buttonMacroDisabled .= ' disabled';
        }
        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['btn_extrato']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['btn_extrato']) {
            $buttonMacroLabel = $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['btn_extrato'];
        }
?>
<?php echo nmButtonOutput($this->arr_buttons, "btn_extrato", "scBtnFn_btn_extrato()", "scBtnFn_btn_extrato()", "sc_btn_extrato_top", "", "" . $buttonMacroLabel . "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "" . $buttonMacroDisabled . "", "", "", '', '', '', '', '', '', '', '', "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['back'] == "on") ? '' : 'display: none;';
?>
<?php
        $buttonMacroDisabled = 'sc-unique-btn-1';
        $buttonMacroLabel = "";

        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['back']) && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['back']) {
            $buttonMacroDisabled .= ' disabled';
        }
        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['back']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['back']) {
            $buttonMacroLabel = $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['back'];
        }
?>
<?php echo nmButtonOutput($this->arr_buttons, "bretorna", "scBtnFn_sys_format_ret()", "scBtnFn_sys_format_ret()", "sc_b_ret_t", "", "" . $buttonMacroLabel . "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "__NM_HINT__ (Ctrl + &#8592;)", "" . $buttonMacroDisabled . "", "", "", '', '', '', '', '', '', '', '', "");?>
 
<?php
        $NM_btn = true;
    }
    if ('' != $this->url_webhelp) {
        $sCondStyle = '';
?>
<?php
        $buttonMacroDisabled = '';
        $buttonMacroLabel = "";

        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['help']) && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['help']) {
            $buttonMacroDisabled .= ' disabled';
        }
        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['help']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['help']) {
            $buttonMacroLabel = $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['help'];
        }
?>
<?php echo nmButtonOutput($this->arr_buttons, "bhelp", "scBtnFn_sys_format_hlp()", "scBtnFn_sys_format_hlp()", "sc_b_hlp_t", "", "" . $buttonMacroLabel . "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "__NM_HINT__ (F1)", "" . $buttonMacroDisabled . "", "", "", '', '', '', '', '', '', '', '', "");?>
 
<?php
        $NM_btn = true;
    }
    if ((!$this->Embutida_call || $this->form_3versions_single) && ((!isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard']) || !$_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard'] || (isset($this->is_calendar_app) && $this->is_calendar_app)))) {
        $sCondStyle = (isset($_SESSION['scriptcase']['nm_sc_retorno']) && !empty($_SESSION['scriptcase']['nm_sc_retorno']) && $nm_apl_dependente != 1 && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "R" && !$this->aba_iframe && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
<?php
        $buttonMacroDisabled = 'sc-unique-btn-2';
        $buttonMacroLabel = "";

        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['exit']) && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['exit']) {
            $buttonMacroDisabled .= ' disabled';
        }
        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit']) {
            $buttonMacroLabel = $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit'];
        }
?>
<?php echo nmButtonOutput($this->arr_buttons, "bsair", "scBtnFn_sys_format_sai()", "scBtnFn_sys_format_sai()", "sc_b_sai_t", "", "" . $buttonMacroLabel . "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "__NM_HINT__ (Alt + Q)", "" . $buttonMacroDisabled . "", "", "", '', '', '', '', '', '', '', '', "");?>
 
<?php
        $NM_btn = true;
    }
    if ((!$this->Embutida_call) && ((!isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard']) || !$_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard'] || (isset($this->is_calendar_app) && $this->is_calendar_app)))) {
        $sCondStyle = (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "F" && $this->nmgp_botoes['exit'] == "on") && ($nm_apl_dependente == 1 && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
<?php
        $buttonMacroDisabled = 'sc-unique-btn-3';
        $buttonMacroLabel = "";

        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['exit']) && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['exit']) {
            $buttonMacroDisabled .= ' disabled';
        }
        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit']) {
            $buttonMacroLabel = $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit'];
        }
?>
<?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "scBtnFn_sys_format_sai()", "scBtnFn_sys_format_sai()", "sc_b_sai_t", "", "" . $buttonMacroLabel . "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "" . $buttonMacroDisabled . "", "", "", '', '', '', '', '', '', '', '', "");?>
 
<?php
        $NM_btn = true;
    }
    if ((!$this->Embutida_call) && ((!isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard']) || !$_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard'] || (isset($this->is_calendar_app) && $this->is_calendar_app)))) {
        $sCondStyle = (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "F" && $this->nmgp_botoes['exit'] == "on") && ($nm_apl_dependente != 1 || $this->nmgp_botoes['exit'] != "on") && ((!$this->aba_iframe || $this->is_calendar_app) && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
<?php
        $buttonMacroDisabled = 'sc-unique-btn-4';
        $buttonMacroLabel = "";

        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['exit']) && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['exit']) {
            $buttonMacroDisabled .= ' disabled';
        }
        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit']) {
            $buttonMacroLabel = $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit'];
        }
?>
<?php echo nmButtonOutput($this->arr_buttons, "bsair", "scBtnFn_sys_format_sai()", "scBtnFn_sys_format_sai()", "sc_b_sai_t", "", "" . $buttonMacroLabel . "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "__NM_HINT__ (Alt + Q)", "" . $buttonMacroDisabled . "", "", "", '', '', '', '', '', '', '', '', "");?>
 
<?php
        $NM_btn = true;
    }
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "R")
{
?>
   </td></tr> 
   </table> 
   </td></tr></table> 
<?php
}
?>
<?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);
?>
<?php if ('novo' != $this->nmgp_opcao || $this->Embutida_form) { ?><script>nav_atualiza(Nav_permite_ret, Nav_permite_ava, 't');</script><?php } ?>
</td></tr> 
<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]['form_relatorio_geral_manifestacoes']['where_filter']))
       {
           $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['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
?>
<TABLE align="center" id="hidden_bloco_0" class="scFormTable scFormDataOdd<?php echo $this->classes_100perc_fields['table'] ?>" width="100%" style="height: 100%;"><input type="hidden" name="anexo_ouvd_img1_1000_ul_name" id="id_sc_field_anexo_ouvd_img1_1000_ul_name" value="<?php echo $this->form_encode_input($this->anexo_ouvd_img1_1000_ul_name);?>">
<input type="hidden" name="anexo_ouvd_img1_1000_ul_type" id="id_sc_field_anexo_ouvd_img1_1000_ul_type" value="<?php echo $this->form_encode_input($this->anexo_ouvd_img1_1000_ul_type);?>">
<input type="hidden" name="anexo_ouvd_img2_1000_ul_name" id="id_sc_field_anexo_ouvd_img2_1000_ul_name" value="<?php echo $this->form_encode_input($this->anexo_ouvd_img2_1000_ul_name);?>">
<input type="hidden" name="anexo_ouvd_img2_1000_ul_type" id="id_sc_field_anexo_ouvd_img2_1000_ul_type" value="<?php echo $this->form_encode_input($this->anexo_ouvd_img2_1000_ul_type);?>">
<input type="hidden" name="anexo_ouvd_doc1_1000_ul_name" id="id_sc_field_anexo_ouvd_doc1_1000_ul_name" value="<?php echo $this->form_encode_input($this->anexo_ouvd_doc1_1000_ul_name);?>">
<input type="hidden" name="anexo_ouvd_doc1_1000_ul_type" id="id_sc_field_anexo_ouvd_doc1_1000_ul_type" value="<?php echo $this->form_encode_input($this->anexo_ouvd_doc1_1000_ul_type);?>">
<input type="hidden" name="anexo_ouvd_doc2_1000_ul_name" id="id_sc_field_anexo_ouvd_doc2_1000_ul_name" value="<?php echo $this->form_encode_input($this->anexo_ouvd_doc2_1000_ul_name);?>">
<input type="hidden" name="anexo_ouvd_doc2_1000_ul_type" id="id_sc_field_anexo_ouvd_doc2_1000_ul_type" value="<?php echo $this->form_encode_input($this->anexo_ouvd_doc2_1000_ul_type);?>">
   <tr>


    <TD colspan="2" height="20" class="scFormBlock">
     <TABLE style="padding: 0px; spacing: 0px; border-width: 0px;" width="100%" height="100%">
      <TR>
       <TD align="" valign="" class="scFormBlockFont"><?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "<table style=\"border-collapse: collapse; height: 100%; width: 100%\"><tr><td style=\"vertical-align: middle; border-width: 0px; padding: 0px 2px 0px 0px\"><img id=\"SC_blk_pdf0\" src=\"" . $this->Ini->path_icones . "/" . $this->Ini->Block_img_col . "\" style=\"border: 0px; float: left\" class=\"sc-ui-block-control\"></td><td style=\"border-width: 0px; padding: 0px; width: 100%;\" class=\"scFormBlockAlign\">"; } ?>Alertas<?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "</td></tr></table>"; } ?></TD>
       
      </TR>
     </TABLE>
    </TD>





   </tr>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['data_hora_cadastro_1000']))
           {
               $this->nmgp_cmp_readonly['data_hora_cadastro_1000'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['fld_alertas']))
    {
        $this->nm_new_label['fld_alertas'] = "";
    }
?>
<?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);
   $fld_alertas = $this->fld_alertas;
   $sStyleHidden_fld_alertas = '';
   if (isset($this->nmgp_cmp_hidden['fld_alertas']) && $this->nmgp_cmp_hidden['fld_alertas'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['fld_alertas']);
       $sStyleHidden_fld_alertas = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_fld_alertas = 'display: none;';
   $sStyleReadInp_fld_alertas = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['fld_alertas']) && $this->nmgp_cmp_readonly['fld_alertas'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['fld_alertas']);
       $sStyleReadLab_fld_alertas = '';
       $sStyleReadInp_fld_alertas = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['fld_alertas']) && $this->nmgp_cmp_hidden['fld_alertas'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="fld_alertas" value="<?php echo $this->form_encode_input($fld_alertas) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_fld_alertas_line" id="hidden_field_data_fld_alertas" style="<?php echo $sStyleHidden_fld_alertas; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_fld_alertas_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_fld_alertas_label" style=""><span id="id_label_fld_alertas"><?php echo $this->nm_new_label['fld_alertas']; ?></span></span><br><input type="hidden" name="fld_alertas" value="<?php echo $this->form_encode_input($fld_alertas); ?>"><span id="id_ajax_label_fld_alertas"><?php echo nl2br($fld_alertas); ?></span>

<?php
$fld_alertas_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($fld_alertas));

?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_fld_alertas_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_fld_alertas_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['fld_label_status']))
    {
        $this->nm_new_label['fld_label_status'] = "Status Atual";
    }
?>
<?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);
   $fld_label_status = $this->fld_label_status;
   $sStyleHidden_fld_label_status = '';
   if (isset($this->nmgp_cmp_hidden['fld_label_status']) && $this->nmgp_cmp_hidden['fld_label_status'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['fld_label_status']);
       $sStyleHidden_fld_label_status = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_fld_label_status = 'display: none;';
   $sStyleReadInp_fld_label_status = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['fld_label_status']) && $this->nmgp_cmp_readonly['fld_label_status'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['fld_label_status']);
       $sStyleReadLab_fld_label_status = '';
       $sStyleReadInp_fld_label_status = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['fld_label_status']) && $this->nmgp_cmp_hidden['fld_label_status'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="fld_label_status" value="<?php echo $this->form_encode_input($fld_label_status) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_fld_label_status_line" id="hidden_field_data_fld_label_status" style="<?php echo $sStyleHidden_fld_label_status; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_fld_label_status_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_fld_label_status_label" style=""><span id="id_label_fld_label_status"><?php echo $this->nm_new_label['fld_label_status']; ?></span></span><br><input type="hidden" name="fld_label_status" value="<?php echo $this->form_encode_input($fld_label_status); ?>"><span id="id_ajax_label_fld_label_status"><?php echo nl2br($fld_label_status); ?></span>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_fld_label_status_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_fld_label_status_text"></span></td></tr></table></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; ?>" >&nbsp;</TD>





<?php } 
?> 






<?php $sStyleHidden_fld_alertas_dumb = ('' == $sStyleHidden_fld_alertas) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_fld_alertas_dumb" style="<?php echo $sStyleHidden_fld_alertas_dumb; ?>"></TD>
<?php $sStyleHidden_fld_label_status_dumb = ('' == $sStyleHidden_fld_label_status) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_fld_label_status_dumb" style="<?php echo $sStyleHidden_fld_label_status_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%;">   <tr>


    <TD colspan="1" height="20" class="scFormBlock">
     <TABLE style="padding: 0px; spacing: 0px; border-width: 0px;" width="100%" height="100%">
      <TR>
       <TD align="" valign="" class="scFormBlockFont"><?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "<table style=\"border-collapse: collapse; height: 100%; width: 100%\"><tr><td style=\"vertical-align: middle; border-width: 0px; padding: 0px 2px 0px 0px\"><img id=\"SC_blk_pdf1\" src=\"" . $this->Ini->path_icones . "/" . $this->Ini->Block_img_col . "\" style=\"border: 0px; float: left\" class=\"sc-ui-block-control\"></td><td style=\"border-width: 0px; padding: 0px; width: 100%;\" class=\"scFormBlockAlign\">"; } ?>Manifestação<?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "</td></tr></table>"; } ?></TD>
       
      </TR>
     </TABLE>
    </TD>





   </tr>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['titulo_manifestacao_1000']))
           {
               $this->nmgp_cmp_readonly['titulo_manifestacao_1000'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['data_hora_cadastro_1000']))
    {
        $this->nm_new_label['data_hora_cadastro_1000'] = "Data";
    }
?>
<?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);
   $data_hora_cadastro_1000 = $this->data_hora_cadastro_1000;
   $sStyleHidden_data_hora_cadastro_1000 = '';
   if (isset($this->nmgp_cmp_hidden['data_hora_cadastro_1000']) && $this->nmgp_cmp_hidden['data_hora_cadastro_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['data_hora_cadastro_1000']);
       $sStyleHidden_data_hora_cadastro_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_data_hora_cadastro_1000 = 'display: none;';
   $sStyleReadInp_data_hora_cadastro_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["data_hora_cadastro_1000"]) &&  $this->nmgp_cmp_readonly["data_hora_cadastro_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['data_hora_cadastro_1000']);
       $sStyleReadLab_data_hora_cadastro_1000 = '';
       $sStyleReadInp_data_hora_cadastro_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['data_hora_cadastro_1000']) && $this->nmgp_cmp_hidden['data_hora_cadastro_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="data_hora_cadastro_1000" value="<?php echo $this->form_encode_input($data_hora_cadastro_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_data_hora_cadastro_1000_line" id="hidden_field_data_data_hora_cadastro_1000" style="<?php echo $sStyleHidden_data_hora_cadastro_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_data_hora_cadastro_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_data_hora_cadastro_1000_label" style=""><span id="id_label_data_hora_cadastro_1000"><?php echo $this->nm_new_label['data_hora_cadastro_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["data_hora_cadastro_1000"]) &&  $this->nmgp_cmp_readonly["data_hora_cadastro_1000"] == "on")) { 

 ?>
<input type="hidden" name="data_hora_cadastro_1000" value="<?php echo $this->form_encode_input($data_hora_cadastro_1000) . "\"><span id=\"id_ajax_label_data_hora_cadastro_1000\">" . $data_hora_cadastro_1000 . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_data_hora_cadastro_1000" class="sc-ui-readonly-data_hora_cadastro_1000 css_data_hora_cadastro_1000_line" style="<?php echo $sStyleReadLab_data_hora_cadastro_1000; ?>"><?php echo $this->form_format_readonly("data_hora_cadastro_1000", $this->form_encode_input($data_hora_cadastro_1000)); ?></span><span id="id_read_off_data_hora_cadastro_1000" class="css_read_off_data_hora_cadastro_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_data_hora_cadastro_1000; ?>"><?php
$tmp_form_data = $this->field_config['data_hora_cadastro_1000']['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);
?>
<?php
$miniCalendarButton = $this->jqueryButtonText('calendar');
if ('scButton_' == substr($miniCalendarButton[1], 0, 9)) {
    $miniCalendarButton[1] = substr($miniCalendarButton[1], 9);
}
?>
<span class='trigger-picker-<?php echo $miniCalendarButton[1]; ?>' style='display: inherit; width: 100%'>

 <input class="sc-js-input scFormObjectOdd css_data_hora_cadastro_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_data_hora_cadastro_1000" type=text name="data_hora_cadastro_1000" value="<?php echo $this->form_encode_input($data_hora_cadastro_1000) ?>"
 <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=18"; } ?> alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['data_hora_cadastro_1000']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['data_hora_cadastro_1000']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span>
&nbsp;<span class="scFormDataHelpOdd"><?php echo $tmp_form_data; ?></span></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_data_hora_cadastro_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_data_hora_cadastro_1000_text"></span></td></tr></table></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; ?>" >&nbsp;</TD>





<?php } 
?> 
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['desc_manifestacao_1000']))
           {
               $this->nmgp_cmp_readonly['desc_manifestacao_1000'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['titulo_manifestacao_1000']))
    {
        $this->nm_new_label['titulo_manifestacao_1000'] = "Assunto";
    }
?>
<?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);
   $titulo_manifestacao_1000 = $this->titulo_manifestacao_1000;
   $sStyleHidden_titulo_manifestacao_1000 = '';
   if (isset($this->nmgp_cmp_hidden['titulo_manifestacao_1000']) && $this->nmgp_cmp_hidden['titulo_manifestacao_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['titulo_manifestacao_1000']);
       $sStyleHidden_titulo_manifestacao_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_titulo_manifestacao_1000 = 'display: none;';
   $sStyleReadInp_titulo_manifestacao_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["titulo_manifestacao_1000"]) &&  $this->nmgp_cmp_readonly["titulo_manifestacao_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['titulo_manifestacao_1000']);
       $sStyleReadLab_titulo_manifestacao_1000 = '';
       $sStyleReadInp_titulo_manifestacao_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['titulo_manifestacao_1000']) && $this->nmgp_cmp_hidden['titulo_manifestacao_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="titulo_manifestacao_1000" value="<?php echo $this->form_encode_input($titulo_manifestacao_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_titulo_manifestacao_1000_line" id="hidden_field_data_titulo_manifestacao_1000" style="<?php echo $sStyleHidden_titulo_manifestacao_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_titulo_manifestacao_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_titulo_manifestacao_1000_label" style=""><span id="id_label_titulo_manifestacao_1000"><?php echo $this->nm_new_label['titulo_manifestacao_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["titulo_manifestacao_1000"]) &&  $this->nmgp_cmp_readonly["titulo_manifestacao_1000"] == "on")) { 

 ?>
<input type="hidden" name="titulo_manifestacao_1000" value="<?php echo $this->form_encode_input($titulo_manifestacao_1000) . "\"><span id=\"id_ajax_label_titulo_manifestacao_1000\">" . $titulo_manifestacao_1000 . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_titulo_manifestacao_1000" class="sc-ui-readonly-titulo_manifestacao_1000 css_titulo_manifestacao_1000_line" style="<?php echo $sStyleReadLab_titulo_manifestacao_1000; ?>"><?php echo $this->form_format_readonly("titulo_manifestacao_1000", $this->form_encode_input($this->titulo_manifestacao_1000)); ?></span><span id="id_read_off_titulo_manifestacao_1000" class="css_read_off_titulo_manifestacao_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_titulo_manifestacao_1000; ?>">
 <input class="sc-js-input scFormObjectOdd css_titulo_manifestacao_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_titulo_manifestacao_1000" type=text name="titulo_manifestacao_1000" value="<?php echo $this->form_encode_input($titulo_manifestacao_1000) ?>"
 <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=50"; } ?> maxlength=180 alt="{datatype: 'text', maxLength: 180, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_titulo_manifestacao_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_titulo_manifestacao_1000_text"></span></td></tr></table></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; ?>" >&nbsp;</TD>





<?php } 
?> 
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['token_ouvd_1000']))
           {
               $this->nmgp_cmp_readonly['token_ouvd_1000'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['desc_manifestacao_1000']))
    {
        $this->nm_new_label['desc_manifestacao_1000'] = "Descrição";
    }
?>
<?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);
   $desc_manifestacao_1000 = $this->desc_manifestacao_1000;
   $sStyleHidden_desc_manifestacao_1000 = '';
   if (isset($this->nmgp_cmp_hidden['desc_manifestacao_1000']) && $this->nmgp_cmp_hidden['desc_manifestacao_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['desc_manifestacao_1000']);
       $sStyleHidden_desc_manifestacao_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_desc_manifestacao_1000 = 'display: none;';
   $sStyleReadInp_desc_manifestacao_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["desc_manifestacao_1000"]) &&  $this->nmgp_cmp_readonly["desc_manifestacao_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['desc_manifestacao_1000']);
       $sStyleReadLab_desc_manifestacao_1000 = '';
       $sStyleReadInp_desc_manifestacao_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['desc_manifestacao_1000']) && $this->nmgp_cmp_hidden['desc_manifestacao_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="desc_manifestacao_1000" value="<?php echo $this->form_encode_input($desc_manifestacao_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_desc_manifestacao_1000_line" id="hidden_field_data_desc_manifestacao_1000" style="<?php echo $sStyleHidden_desc_manifestacao_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_desc_manifestacao_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_desc_manifestacao_1000_label" style=""><span id="id_label_desc_manifestacao_1000"><?php echo $this->nm_new_label['desc_manifestacao_1000']; ?></span></span><br>
<?php
$desc_manifestacao_1000_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($desc_manifestacao_1000));

?>

<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["desc_manifestacao_1000"]) &&  $this->nmgp_cmp_readonly["desc_manifestacao_1000"] == "on")) { 

 ?>
<input type="hidden" name="desc_manifestacao_1000" value="<?php echo $this->form_encode_input($desc_manifestacao_1000) . "\"><span id=\"id_ajax_label_desc_manifestacao_1000\">" . $desc_manifestacao_1000_val . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_desc_manifestacao_1000" class="sc-ui-readonly-desc_manifestacao_1000 css_desc_manifestacao_1000_line" style="<?php echo $sStyleReadLab_desc_manifestacao_1000; ?>"><?php echo $this->form_format_readonly("desc_manifestacao_1000", $this->form_encode_input($desc_manifestacao_1000_val)); ?></span><span id="id_read_off_desc_manifestacao_1000" class="css_read_off_desc_manifestacao_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_desc_manifestacao_1000; ?>">
 <textarea class="sc-js-input scFormObjectOdd css_desc_manifestacao_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="white-space: pre-wrap;" name="desc_manifestacao_1000" id="id_sc_field_desc_manifestacao_1000" rows="2" cols="50"
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" >
<?php echo $desc_manifestacao_1000; ?>
</textarea>
</span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_desc_manifestacao_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_desc_manifestacao_1000_text"></span></td></tr></table></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; ?>" >&nbsp;</TD>





<?php } 
?> 






<?php $sStyleHidden_desc_manifestacao_1000_dumb = ('' == $sStyleHidden_desc_manifestacao_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_desc_manifestacao_1000_dumb" style="<?php echo $sStyleHidden_desc_manifestacao_1000_dumb; ?>"></TD>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_2"></a>
   <table width="100%" height="100%" cellpadding="0" cellspacing=0 class="scBlockRow"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_2" class="scBlockFrame"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_2" class="scFormTable scFormDataOdd<?php echo $this->classes_100perc_fields['table'] ?>" width="100%" style="height: 100%;">   <tr>


    <TD colspan="3" height="0" class="scFormBlock">
     <TABLE style="padding: 0px; spacing: 0px; border-width: 0px;" width="100%" height="100%">
      <TR>
       <TD align="" valign="" class="scFormBlockFont"><?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "<table style=\"border-collapse: collapse; height: 100%; width: 100%\"><tr><td style=\"vertical-align: middle; border-width: 0px; padding: 0px 2px 0px 0px\"><img id=\"SC_blk_pdf2\" src=\"" . $this->Ini->path_icones . "/" . $this->Ini->Block_img_col . "\" style=\"border: 0px; float: left\" class=\"sc-ui-block-control\"></td><td style=\"border-width: 0px; padding: 0px; width: 100%;\" class=\"scFormBlockAlign\">"; } ?>Detalhes<?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "</td></tr></table>"; } ?></TD>
       
      </TR>
     </TABLE>
    </TD>





   </tr>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['dt_ocorrido_1000']))
           {
               $this->nmgp_cmp_readonly['dt_ocorrido_1000'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['desc_area_setor_1000']))
           {
               $this->nmgp_cmp_readonly['desc_area_setor_1000'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['id_categoria_1100']))
           {
               $this->nmgp_cmp_readonly['id_categoria_1100'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['token_ouvd_1000']))
    {
        $this->nm_new_label['token_ouvd_1000'] = "Chave de Acesso";
    }
?>
<?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);
   $token_ouvd_1000 = $this->token_ouvd_1000;
   $sStyleHidden_token_ouvd_1000 = '';
   if (isset($this->nmgp_cmp_hidden['token_ouvd_1000']) && $this->nmgp_cmp_hidden['token_ouvd_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['token_ouvd_1000']);
       $sStyleHidden_token_ouvd_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_token_ouvd_1000 = 'display: none;';
   $sStyleReadInp_token_ouvd_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["token_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["token_ouvd_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['token_ouvd_1000']);
       $sStyleReadLab_token_ouvd_1000 = '';
       $sStyleReadInp_token_ouvd_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['token_ouvd_1000']) && $this->nmgp_cmp_hidden['token_ouvd_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="token_ouvd_1000" value="<?php echo $this->form_encode_input($token_ouvd_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_token_ouvd_1000_line" id="hidden_field_data_token_ouvd_1000" style="<?php echo $sStyleHidden_token_ouvd_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_token_ouvd_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_token_ouvd_1000_label" style=""><span id="id_label_token_ouvd_1000"><?php echo $this->nm_new_label['token_ouvd_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["token_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["token_ouvd_1000"] == "on")) { 

 ?>
<input type="hidden" name="token_ouvd_1000" value="<?php echo $this->form_encode_input($token_ouvd_1000) . "\"><span id=\"id_ajax_label_token_ouvd_1000\">" . $token_ouvd_1000 . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_token_ouvd_1000" class="sc-ui-readonly-token_ouvd_1000 css_token_ouvd_1000_line" style="<?php echo $sStyleReadLab_token_ouvd_1000; ?>"><?php echo $this->form_format_readonly("token_ouvd_1000", $this->form_encode_input($this->token_ouvd_1000)); ?></span><span id="id_read_off_token_ouvd_1000" class="css_read_off_token_ouvd_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_token_ouvd_1000; ?>">
 <input class="sc-js-input scFormObjectOdd css_token_ouvd_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_token_ouvd_1000" type=text name="token_ouvd_1000" value="<?php echo $this->form_encode_input($token_ouvd_1000) ?>"
 <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=45"; } ?> maxlength=45 alt="{datatype: 'text', maxLength: 45, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_token_ouvd_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_token_ouvd_1000_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['dt_ocorrido_1000']))
    {
        $this->nm_new_label['dt_ocorrido_1000'] = "Data do ocorrido";
    }
?>
<?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);
   $dt_ocorrido_1000 = $this->dt_ocorrido_1000;
   $sStyleHidden_dt_ocorrido_1000 = '';
   if (isset($this->nmgp_cmp_hidden['dt_ocorrido_1000']) && $this->nmgp_cmp_hidden['dt_ocorrido_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['dt_ocorrido_1000']);
       $sStyleHidden_dt_ocorrido_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_dt_ocorrido_1000 = 'display: none;';
   $sStyleReadInp_dt_ocorrido_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["dt_ocorrido_1000"]) &&  $this->nmgp_cmp_readonly["dt_ocorrido_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['dt_ocorrido_1000']);
       $sStyleReadLab_dt_ocorrido_1000 = '';
       $sStyleReadInp_dt_ocorrido_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['dt_ocorrido_1000']) && $this->nmgp_cmp_hidden['dt_ocorrido_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="dt_ocorrido_1000" value="<?php echo $this->form_encode_input($dt_ocorrido_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_dt_ocorrido_1000_line" id="hidden_field_data_dt_ocorrido_1000" style="<?php echo $sStyleHidden_dt_ocorrido_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_dt_ocorrido_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_dt_ocorrido_1000_label" style=""><span id="id_label_dt_ocorrido_1000"><?php echo $this->nm_new_label['dt_ocorrido_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["dt_ocorrido_1000"]) &&  $this->nmgp_cmp_readonly["dt_ocorrido_1000"] == "on")) { 

 ?>
<input type="hidden" name="dt_ocorrido_1000" value="<?php echo $this->form_encode_input($dt_ocorrido_1000) . "\"><span id=\"id_ajax_label_dt_ocorrido_1000\">" . $dt_ocorrido_1000 . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_dt_ocorrido_1000" class="sc-ui-readonly-dt_ocorrido_1000 css_dt_ocorrido_1000_line" style="<?php echo $sStyleReadLab_dt_ocorrido_1000; ?>"><?php echo $this->form_format_readonly("dt_ocorrido_1000", $this->form_encode_input($dt_ocorrido_1000)); ?></span><span id="id_read_off_dt_ocorrido_1000" class="css_read_off_dt_ocorrido_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_dt_ocorrido_1000; ?>"><?php
$tmp_form_data = $this->field_config['dt_ocorrido_1000']['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);
?>
<?php
$miniCalendarButton = $this->jqueryButtonText('calendar');
if ('scButton_' == substr($miniCalendarButton[1], 0, 9)) {
    $miniCalendarButton[1] = substr($miniCalendarButton[1], 9);
}
?>
<span class='trigger-picker-<?php echo $miniCalendarButton[1]; ?>' style='display: inherit; width: 100%'>

 <input class="sc-js-input scFormObjectOdd css_dt_ocorrido_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_dt_ocorrido_1000" type=text name="dt_ocorrido_1000" value="<?php echo $this->form_encode_input($dt_ocorrido_1000) ?>"
 <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=10"; } ?> alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['dt_ocorrido_1000']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['dt_ocorrido_1000']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span>
&nbsp;<span class="scFormDataHelpOdd"><?php echo $tmp_form_data; ?></span></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_dt_ocorrido_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_dt_ocorrido_1000_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['desc_area_setor_1000']))
    {
        $this->nm_new_label['desc_area_setor_1000'] = "Área / Setor / Pessoas envolvidas";
    }
?>
<?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);
   $desc_area_setor_1000 = $this->desc_area_setor_1000;
   $sStyleHidden_desc_area_setor_1000 = '';
   if (isset($this->nmgp_cmp_hidden['desc_area_setor_1000']) && $this->nmgp_cmp_hidden['desc_area_setor_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['desc_area_setor_1000']);
       $sStyleHidden_desc_area_setor_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_desc_area_setor_1000 = 'display: none;';
   $sStyleReadInp_desc_area_setor_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["desc_area_setor_1000"]) &&  $this->nmgp_cmp_readonly["desc_area_setor_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['desc_area_setor_1000']);
       $sStyleReadLab_desc_area_setor_1000 = '';
       $sStyleReadInp_desc_area_setor_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['desc_area_setor_1000']) && $this->nmgp_cmp_hidden['desc_area_setor_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="desc_area_setor_1000" value="<?php echo $this->form_encode_input($desc_area_setor_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_desc_area_setor_1000_line" id="hidden_field_data_desc_area_setor_1000" style="<?php echo $sStyleHidden_desc_area_setor_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_desc_area_setor_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_desc_area_setor_1000_label" style=""><span id="id_label_desc_area_setor_1000"><?php echo $this->nm_new_label['desc_area_setor_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["desc_area_setor_1000"]) &&  $this->nmgp_cmp_readonly["desc_area_setor_1000"] == "on")) { 

 ?>
<input type="hidden" name="desc_area_setor_1000" value="<?php echo $this->form_encode_input($desc_area_setor_1000) . "\"><span id=\"id_ajax_label_desc_area_setor_1000\">" . $desc_area_setor_1000 . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_desc_area_setor_1000" class="sc-ui-readonly-desc_area_setor_1000 css_desc_area_setor_1000_line" style="<?php echo $sStyleReadLab_desc_area_setor_1000; ?>"><?php echo $this->form_format_readonly("desc_area_setor_1000", $this->form_encode_input($this->desc_area_setor_1000)); ?></span><span id="id_read_off_desc_area_setor_1000" class="css_read_off_desc_area_setor_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_desc_area_setor_1000; ?>">
 <input class="sc-js-input scFormObjectOdd css_desc_area_setor_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_desc_area_setor_1000" type=text name="desc_area_setor_1000" value="<?php echo $this->form_encode_input($desc_area_setor_1000) ?>"
 <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=50"; } ?> maxlength=255 alt="{datatype: 'text', maxLength: 255, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_desc_area_setor_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_desc_area_setor_1000_text"></span></td></tr></table></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; ?>" >&nbsp;</TD>





<?php } 
?> 
<?php $sStyleHidden_token_ouvd_1000_dumb = ('' == $sStyleHidden_token_ouvd_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_token_ouvd_1000_dumb" style="<?php echo $sStyleHidden_token_ouvd_1000_dumb; ?>"></TD>
<?php $sStyleHidden_dt_ocorrido_1000_dumb = ('' == $sStyleHidden_dt_ocorrido_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_dt_ocorrido_1000_dumb" style="<?php echo $sStyleHidden_dt_ocorrido_1000_dumb; ?>"></TD>
<?php $sStyleHidden_desc_area_setor_1000_dumb = ('' == $sStyleHidden_desc_area_setor_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_desc_area_setor_1000_dumb" style="<?php echo $sStyleHidden_desc_area_setor_1000_dumb; ?>"></TD>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['ouvd_anonima_1000']))
           {
               $this->nmgp_cmp_readonly['ouvd_anonima_1000'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['nome_inf_ouvd_1000']))
           {
               $this->nmgp_cmp_readonly['nome_inf_ouvd_1000'] = 'on';
           }
?>


   <?php
   if (!isset($this->nm_new_label['id_categoria_1100']))
   {
       $this->nm_new_label['id_categoria_1100'] = "Categoria";
   }
   $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);
   $id_categoria_1100 = $this->id_categoria_1100;
   $sStyleHidden_id_categoria_1100 = '';
   if (isset($this->nmgp_cmp_hidden['id_categoria_1100']) && $this->nmgp_cmp_hidden['id_categoria_1100'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['id_categoria_1100']);
       $sStyleHidden_id_categoria_1100 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_id_categoria_1100 = 'display: none;';
   $sStyleReadInp_id_categoria_1100 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["id_categoria_1100"]) &&  $this->nmgp_cmp_readonly["id_categoria_1100"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['id_categoria_1100']);
       $sStyleReadLab_id_categoria_1100 = '';
       $sStyleReadInp_id_categoria_1100 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['id_categoria_1100']) && $this->nmgp_cmp_hidden['id_categoria_1100'] == 'off') { $sc_hidden_yes++; ?>
<input type=hidden name="id_categoria_1100" value="<?php echo $this->form_encode_input($this->id_categoria_1100) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_id_categoria_1100_line" id="hidden_field_data_id_categoria_1100" style="<?php echo $sStyleHidden_id_categoria_1100; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_id_categoria_1100_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_id_categoria_1100_label" style=""><span id="id_label_id_categoria_1100"><?php echo $this->nm_new_label['id_categoria_1100']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["id_categoria_1100"]) &&  $this->nmgp_cmp_readonly["id_categoria_1100"] == "on")) { 
 
$nmgp_def_dados = "" ; 
if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_categoria_1100']))
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_categoria_1100'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_categoria_1100']); 
}
else
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_categoria_1100'] = array(); 
}
   if (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_ibase))
   { 
       $GLOBALS["NM_ERRO_IBASE"] = 1;  
   } 
   $nm_nao_carga = false;
   $nmgp_def_dados = "" ; 
   if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_categoria_1100']))
   {
       $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_categoria_1100'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_categoria_1100']); 
   }
   else
   {
       $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_categoria_1100'] = array(); 
    }

   $old_value_data_hora_cadastro_1000 = $this->data_hora_cadastro_1000;
   $old_value_dt_ocorrido_1000 = $this->dt_ocorrido_1000;
   $old_value_cpf_cnpj_ouvd_1000 = $this->cpf_cnpj_ouvd_1000;
   $old_value_tel_inf_ouvd_1000 = $this->tel_inf_ouvd_1000;
   $old_value_dt_ini_inv_ouvd_1000 = $this->dt_ini_inv_ouvd_1000;
   $old_value_dt_enc_ouvd_1000 = $this->dt_enc_ouvd_1000;
   $this->nm_tira_formatacao();
   if ($this->nmgp_opcao != "nada") {
       $this->nm_converte_datas(false);
   }


   $unformatted_value_data_hora_cadastro_1000 = $this->data_hora_cadastro_1000;
   $unformatted_value_dt_ocorrido_1000 = $this->dt_ocorrido_1000;
   $unformatted_value_cpf_cnpj_ouvd_1000 = $this->cpf_cnpj_ouvd_1000;
   $unformatted_value_tel_inf_ouvd_1000 = $this->tel_inf_ouvd_1000;
   $unformatted_value_dt_ini_inv_ouvd_1000 = $this->dt_ini_inv_ouvd_1000;
   $unformatted_value_dt_enc_ouvd_1000 = $this->dt_enc_ouvd_1000;

   $nm_comando = "SELECT id_categoria_ouvd_1100, titulo_categoria_1100  FROM OUVD_1100_categoria  ORDER BY titulo_categoria_1100";

   $this->data_hora_cadastro_1000 = $old_value_data_hora_cadastro_1000;
   $this->dt_ocorrido_1000 = $old_value_dt_ocorrido_1000;
   $this->cpf_cnpj_ouvd_1000 = $old_value_cpf_cnpj_ouvd_1000;
   $this->tel_inf_ouvd_1000 = $old_value_tel_inf_ouvd_1000;
   $this->dt_ini_inv_ouvd_1000 = $old_value_dt_ini_inv_ouvd_1000;
   $this->dt_enc_ouvd_1000 = $old_value_dt_enc_ouvd_1000;

   $_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]['form_relatorio_geral_manifestacoes']['Lookup_id_categoria_1100'][] = $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; 
   $id_categoria_1100_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->id_categoria_1100_1))
          {
              foreach ($this->id_categoria_1100_1 as $tmp_id_categoria_1100)
              {
                  if (trim($tmp_id_categoria_1100) === trim($cadaselect[1])) {$id_categoria_1100_look .= $cadaselect[0] . '__SC_BREAK_LINE__';}
              }
          }
          elseif (isset($cadaselect[1]) && is_string($this->id_categoria_1100) && trim($this->id_categoria_1100) === trim($cadaselect[1])) {$id_categoria_1100_look .= $cadaselect[0];} 
          $x++; 
   }

?>
<input type="hidden" name="id_categoria_1100" value="<?php echo $this->form_encode_input($id_categoria_1100) . "\"><span id=\"id_ajax_label_id_categoria_1100\">" . $id_categoria_1100_look . "</span>"; ?>
<?php } else { ?>
<?php
   $todo = $this->Form_lookup_id_categoria_1100();
   $x = 0 ; 
   $id_categoria_1100_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->id_categoria_1100_1))
          {
              foreach ($this->id_categoria_1100_1 as $tmp_id_categoria_1100)
              {
                  if (trim($tmp_id_categoria_1100) === trim($cadaselect[1])) {$id_categoria_1100_look .= $cadaselect[0] . '__SC_BREAK_LINE__';}
              }
          }
          elseif (isset($cadaselect[1]) && is_string($this->id_categoria_1100)) {
                 if (trim($this->id_categoria_1100) == trim($cadaselect[1])) { $id_categoria_1100_look .= $cadaselect[0]; } 
          }
          elseif (isset($cadaselect[1]) && $this->id_categoria_1100 == $cadaselect[1]) { $id_categoria_1100_look .= $cadaselect[0]; 
          }
          $x++; 
   }
          if (empty($id_categoria_1100_look))
          {
              $id_categoria_1100_look = $this->id_categoria_1100;
          }
   $x = 0; 
   echo "<span id=\"id_read_on_id_categoria_1100\" class=\"css_id_categoria_1100_line\" style=\"" .  $sStyleReadLab_id_categoria_1100 . "\">" . $this->form_format_readonly("id_categoria_1100", $this->form_encode_input($id_categoria_1100_look)) . "</span><span id=\"id_read_off_id_categoria_1100\" class=\"css_read_off_id_categoria_1100" . $this->classes_100perc_fields['span_input'] . "\" style=\"white-space: nowrap; " . $sStyleReadInp_id_categoria_1100 . "\">";
   echo " <span id=\"idAjaxSelect_id_categoria_1100\" class=\"" . $this->classes_100perc_fields['span_select'] . "\"><select class=\"sc-js-input scFormObjectOdd css_id_categoria_1100_obj" . $this->classes_100perc_fields['input'] . "\" style=\"\" id=\"id_sc_field_id_categoria_1100\" name=\"id_categoria_1100\" size=\"1\" alt=\"{type: 'select', enterTab: false}\">" ; 
   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->id_categoria_1100) === trim($cadaselect[1])) 
          {
              echo " selected" ; 
          }
          if (strtoupper($cadaselect[2]) == "S") 
          {
              if (empty($this->id_categoria_1100)) 
              {
                  echo " selected" ;
              } 
           } 
          echo ">" . str_replace('<', '&lt;',$cadaselect[0]) . "</option>" ; 
          echo "\r" ; 
          $x++ ; 
   }  ; 
   echo " </select></span>" ; 
   echo "\r" ; 
   echo "</span>";
?> 
<?php  }?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_id_categoria_1100_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_id_categoria_1100_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['ouvd_anonima_1000']))
    {
        $this->nm_new_label['ouvd_anonima_1000'] = "Manifestação anônima?";
    }
?>
<?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);
   $ouvd_anonima_1000 = $this->ouvd_anonima_1000;
   $sStyleHidden_ouvd_anonima_1000 = '';
   if (isset($this->nmgp_cmp_hidden['ouvd_anonima_1000']) && $this->nmgp_cmp_hidden['ouvd_anonima_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['ouvd_anonima_1000']);
       $sStyleHidden_ouvd_anonima_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_ouvd_anonima_1000 = 'display: none;';
   $sStyleReadInp_ouvd_anonima_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["ouvd_anonima_1000"]) &&  $this->nmgp_cmp_readonly["ouvd_anonima_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['ouvd_anonima_1000']);
       $sStyleReadLab_ouvd_anonima_1000 = '';
       $sStyleReadInp_ouvd_anonima_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['ouvd_anonima_1000']) && $this->nmgp_cmp_hidden['ouvd_anonima_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="ouvd_anonima_1000" value="<?php echo $this->form_encode_input($ouvd_anonima_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_ouvd_anonima_1000_line" id="hidden_field_data_ouvd_anonima_1000" style="<?php echo $sStyleHidden_ouvd_anonima_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_ouvd_anonima_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_ouvd_anonima_1000_label" style=""><span id="id_label_ouvd_anonima_1000"><?php echo $this->nm_new_label['ouvd_anonima_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["ouvd_anonima_1000"]) &&  $this->nmgp_cmp_readonly["ouvd_anonima_1000"] == "on")) { 

 if ("1" == $this->ouvd_anonima_1000) { $ouvd_anonima_1000_look = "Sim";} 
 if ("0" == $this->ouvd_anonima_1000) { $ouvd_anonima_1000_look = "Não";} 
?>
<input type="hidden" name="ouvd_anonima_1000" value="<?php echo $this->form_encode_input($ouvd_anonima_1000) . "\"><span id=\"id_ajax_label_ouvd_anonima_1000\">" . $ouvd_anonima_1000_look . "</span>"; ?>
<?php } else { ?>

<?php

 if ("1" == $this->ouvd_anonima_1000) { $ouvd_anonima_1000_look = "Sim";} 
 if ("0" == $this->ouvd_anonima_1000) { $ouvd_anonima_1000_look = "Não";} 
?>
<span id="id_read_on_ouvd_anonima_1000"  class="css_ouvd_anonima_1000_line" style="<?php echo $sStyleReadLab_ouvd_anonima_1000; ?>"><?php echo $this->form_format_readonly("ouvd_anonima_1000", $this->form_encode_input($ouvd_anonima_1000_look)); ?></span><span id="id_read_off_ouvd_anonima_1000" class="css_read_off_ouvd_anonima_1000 css_ouvd_anonima_1000_line" style="<?php echo $sStyleReadInp_ouvd_anonima_1000; ?>"><div id="idAjaxRadio_ouvd_anonima_1000" style="display: inline-block"  class="css_ouvd_anonima_1000_line">
<TABLE cellspacing=0 cellpadding=0 border=0><TR>
  <TD class="scFormDataFontOdd css_ouvd_anonima_1000_line"><?php $tempOptionId = "id-opt-ouvd_anonima_1000" . $sc_seq_vert . "-1"; ?>
    <input id="<?php echo $tempOptionId ?>"  class="sc-ui-radio-ouvd_anonima_1000 sc-ui-radio-ouvd_anonima_1000" type=radio name="ouvd_anonima_1000" value="1"
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_ouvd_anonima_1000'][] = '1'; ?>
<?php  if ("1" == $this->ouvd_anonima_1000)  { echo " checked" ;} ?>  onClick="" ><label for="<?php echo $tempOptionId ?>">Sim</label></TD>
</TR>
<TR>
  <TD class="scFormDataFontOdd css_ouvd_anonima_1000_line"><?php $tempOptionId = "id-opt-ouvd_anonima_1000" . $sc_seq_vert . "-2"; ?>
    <input id="<?php echo $tempOptionId ?>"  class="sc-ui-radio-ouvd_anonima_1000 sc-ui-radio-ouvd_anonima_1000" type=radio name="ouvd_anonima_1000" value="0"
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_ouvd_anonima_1000'][] = '0'; ?>
<?php  if ("0" == $this->ouvd_anonima_1000)  { echo " checked" ;} ?>  onClick="" ><label for="<?php echo $tempOptionId ?>">Não</label></TD>
</TR></TABLE>
</div>
</span><?php  }?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_ouvd_anonima_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ouvd_anonima_1000_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


    <TD class="scFormDataOdd" colspan="1" >&nbsp;</TD>





<?php if ($sc_hidden_yes > 0) { ?>


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" >&nbsp;</TD>





<?php } ?>
<?php $sStyleHidden_id_categoria_1100_dumb = ('' == $sStyleHidden_id_categoria_1100) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_id_categoria_1100_dumb" style="<?php echo $sStyleHidden_id_categoria_1100_dumb; ?>"></TD>
<?php $sStyleHidden_ouvd_anonima_1000_dumb = ('' == $sStyleHidden_ouvd_anonima_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_ouvd_anonima_1000_dumb" style="<?php echo $sStyleHidden_ouvd_anonima_1000_dumb; ?>"></TD>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_3"></a>
   <table width="100%" height="100%" cellpadding="0" cellspacing=0 class="scBlockRow"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_3" class="scBlockFrame"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_3" class="scFormTable scFormDataOdd<?php echo $this->classes_100perc_fields['table'] ?>" width="100%" style="height: 100%;">   <tr>


    <TD colspan="3" height="20" class="scFormBlock">
     <TABLE style="padding: 0px; spacing: 0px; border-width: 0px;" width="100%" height="100%">
      <TR>
       <TD align="" valign="" class="scFormBlockFont"><?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "<table style=\"border-collapse: collapse; height: 100%; width: 100%\"><tr><td style=\"vertical-align: middle; border-width: 0px; padding: 0px 2px 0px 0px\"><img id=\"SC_blk_pdf3\" src=\"" . $this->Ini->path_icones . "/" . $this->Ini->Block_img_col . "\" style=\"border: 0px; float: left\" class=\"sc-ui-block-control\"></td><td style=\"border-width: 0px; padding: 0px; width: 100%;\" class=\"scFormBlockAlign\">"; } ?>Identificação do Manifestante<?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "</td></tr></table>"; } ?></TD>
       
      </TR>
     </TABLE>
    </TD>





   </tr>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['email_inf_ouvd_1000']))
           {
               $this->nmgp_cmp_readonly['email_inf_ouvd_1000'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['cpf_cnpj_ouvd_1000']))
           {
               $this->nmgp_cmp_readonly['cpf_cnpj_ouvd_1000'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['tel_inf_ouvd_1000']))
           {
               $this->nmgp_cmp_readonly['tel_inf_ouvd_1000'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['nome_inf_ouvd_1000']))
    {
        $this->nm_new_label['nome_inf_ouvd_1000'] = "Nome";
    }
?>
<?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);
   $nome_inf_ouvd_1000 = $this->nome_inf_ouvd_1000;
   $sStyleHidden_nome_inf_ouvd_1000 = '';
   if (isset($this->nmgp_cmp_hidden['nome_inf_ouvd_1000']) && $this->nmgp_cmp_hidden['nome_inf_ouvd_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['nome_inf_ouvd_1000']);
       $sStyleHidden_nome_inf_ouvd_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_nome_inf_ouvd_1000 = 'display: none;';
   $sStyleReadInp_nome_inf_ouvd_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["nome_inf_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["nome_inf_ouvd_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['nome_inf_ouvd_1000']);
       $sStyleReadLab_nome_inf_ouvd_1000 = '';
       $sStyleReadInp_nome_inf_ouvd_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['nome_inf_ouvd_1000']) && $this->nmgp_cmp_hidden['nome_inf_ouvd_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="nome_inf_ouvd_1000" value="<?php echo $this->form_encode_input($nome_inf_ouvd_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_nome_inf_ouvd_1000_line" id="hidden_field_data_nome_inf_ouvd_1000" style="<?php echo $sStyleHidden_nome_inf_ouvd_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_nome_inf_ouvd_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_nome_inf_ouvd_1000_label" style=""><span id="id_label_nome_inf_ouvd_1000"><?php echo $this->nm_new_label['nome_inf_ouvd_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["nome_inf_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["nome_inf_ouvd_1000"] == "on")) { 

 ?>
<input type="hidden" name="nome_inf_ouvd_1000" value="<?php echo $this->form_encode_input($nome_inf_ouvd_1000) . "\"><span id=\"id_ajax_label_nome_inf_ouvd_1000\">" . $nome_inf_ouvd_1000 . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_nome_inf_ouvd_1000" class="sc-ui-readonly-nome_inf_ouvd_1000 css_nome_inf_ouvd_1000_line" style="<?php echo $sStyleReadLab_nome_inf_ouvd_1000; ?>"><?php echo $this->form_format_readonly("nome_inf_ouvd_1000", $this->form_encode_input($this->nome_inf_ouvd_1000)); ?></span><span id="id_read_off_nome_inf_ouvd_1000" class="css_read_off_nome_inf_ouvd_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_nome_inf_ouvd_1000; ?>">
 <input class="sc-js-input scFormObjectOdd css_nome_inf_ouvd_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_nome_inf_ouvd_1000" type=text name="nome_inf_ouvd_1000" value="<?php echo $this->form_encode_input($nome_inf_ouvd_1000) ?>"
 <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=50"; } ?> maxlength=300 alt="{datatype: 'text', maxLength: 300, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_nome_inf_ouvd_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_nome_inf_ouvd_1000_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['email_inf_ouvd_1000']))
    {
        $this->nm_new_label['email_inf_ouvd_1000'] = "E-mail";
    }
?>
<?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);
   $email_inf_ouvd_1000 = $this->email_inf_ouvd_1000;
   $sStyleHidden_email_inf_ouvd_1000 = '';
   if (isset($this->nmgp_cmp_hidden['email_inf_ouvd_1000']) && $this->nmgp_cmp_hidden['email_inf_ouvd_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['email_inf_ouvd_1000']);
       $sStyleHidden_email_inf_ouvd_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_email_inf_ouvd_1000 = 'display: none;';
   $sStyleReadInp_email_inf_ouvd_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["email_inf_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["email_inf_ouvd_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['email_inf_ouvd_1000']);
       $sStyleReadLab_email_inf_ouvd_1000 = '';
       $sStyleReadInp_email_inf_ouvd_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['email_inf_ouvd_1000']) && $this->nmgp_cmp_hidden['email_inf_ouvd_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="email_inf_ouvd_1000" value="<?php echo $this->form_encode_input($email_inf_ouvd_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_email_inf_ouvd_1000_line" id="hidden_field_data_email_inf_ouvd_1000" style="<?php echo $sStyleHidden_email_inf_ouvd_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_email_inf_ouvd_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_email_inf_ouvd_1000_label" style=""><span id="id_label_email_inf_ouvd_1000"><?php echo $this->nm_new_label['email_inf_ouvd_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["email_inf_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["email_inf_ouvd_1000"] == "on")) { 

 ?>
<input type="hidden" name="email_inf_ouvd_1000" value="<?php echo $this->form_encode_input($email_inf_ouvd_1000) . "\"><span id=\"id_ajax_label_email_inf_ouvd_1000\">" . $email_inf_ouvd_1000 . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_email_inf_ouvd_1000" class="sc-ui-readonly-email_inf_ouvd_1000 css_email_inf_ouvd_1000_line" style="<?php echo $sStyleReadLab_email_inf_ouvd_1000; ?>"><?php echo $this->form_format_readonly("email_inf_ouvd_1000", $this->form_encode_input($this->email_inf_ouvd_1000)); ?></span><span id="id_read_off_email_inf_ouvd_1000" class="css_read_off_email_inf_ouvd_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_email_inf_ouvd_1000; ?>">
 <input class="sc-js-input scFormObjectOdd css_email_inf_ouvd_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_email_inf_ouvd_1000" type=text name="email_inf_ouvd_1000" value="<?php echo $this->form_encode_input($email_inf_ouvd_1000) ?>"
 <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=50"; } ?> maxlength=250 alt="{datatype: 'text', maxLength: 250, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_email_inf_ouvd_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_email_inf_ouvd_1000_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['cpf_cnpj_ouvd_1000']))
    {
        $this->nm_new_label['cpf_cnpj_ouvd_1000'] = "CPF/CNPJ";
    }
?>
<?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);
   $cpf_cnpj_ouvd_1000 = $this->cpf_cnpj_ouvd_1000;
   $sStyleHidden_cpf_cnpj_ouvd_1000 = '';
   if (isset($this->nmgp_cmp_hidden['cpf_cnpj_ouvd_1000']) && $this->nmgp_cmp_hidden['cpf_cnpj_ouvd_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cpf_cnpj_ouvd_1000']);
       $sStyleHidden_cpf_cnpj_ouvd_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cpf_cnpj_ouvd_1000 = 'display: none;';
   $sStyleReadInp_cpf_cnpj_ouvd_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["cpf_cnpj_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["cpf_cnpj_ouvd_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cpf_cnpj_ouvd_1000']);
       $sStyleReadLab_cpf_cnpj_ouvd_1000 = '';
       $sStyleReadInp_cpf_cnpj_ouvd_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cpf_cnpj_ouvd_1000']) && $this->nmgp_cmp_hidden['cpf_cnpj_ouvd_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="cpf_cnpj_ouvd_1000" value="<?php echo $this->form_encode_input($cpf_cnpj_ouvd_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_cpf_cnpj_ouvd_1000_line" id="hidden_field_data_cpf_cnpj_ouvd_1000" style="<?php echo $sStyleHidden_cpf_cnpj_ouvd_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_cpf_cnpj_ouvd_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_cpf_cnpj_ouvd_1000_label" style=""><span id="id_label_cpf_cnpj_ouvd_1000"><?php echo $this->nm_new_label['cpf_cnpj_ouvd_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["cpf_cnpj_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["cpf_cnpj_ouvd_1000"] == "on")) { 

 ?>
<input type="hidden" name="cpf_cnpj_ouvd_1000" value="<?php echo $this->form_encode_input($cpf_cnpj_ouvd_1000) . "\"><span id=\"id_ajax_label_cpf_cnpj_ouvd_1000\">" . $cpf_cnpj_ouvd_1000 . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_cpf_cnpj_ouvd_1000" class="sc-ui-readonly-cpf_cnpj_ouvd_1000 css_cpf_cnpj_ouvd_1000_line" style="<?php echo $sStyleReadLab_cpf_cnpj_ouvd_1000; ?>"><?php echo $this->form_format_readonly("cpf_cnpj_ouvd_1000", $this->form_encode_input($this->cpf_cnpj_ouvd_1000)); ?></span><span id="id_read_off_cpf_cnpj_ouvd_1000" class="css_read_off_cpf_cnpj_ouvd_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_cpf_cnpj_ouvd_1000; ?>">
 <input class="sc-js-input scFormObjectOdd css_cpf_cnpj_ouvd_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_cpf_cnpj_ouvd_1000" type=text name="cpf_cnpj_ouvd_1000" value="<?php echo $this->form_encode_input($cpf_cnpj_ouvd_1000) ?>"
 <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=16"; } ?> alt="{datatype: 'mask', maskList: '999.999.999-99;99.999.999/9999-99', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_cpf_cnpj_ouvd_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cpf_cnpj_ouvd_1000_text"></span></td></tr></table></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; ?>" >&nbsp;</TD>





<?php } 
?> 
<?php $sStyleHidden_nome_inf_ouvd_1000_dumb = ('' == $sStyleHidden_nome_inf_ouvd_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_nome_inf_ouvd_1000_dumb" style="<?php echo $sStyleHidden_nome_inf_ouvd_1000_dumb; ?>"></TD>
<?php $sStyleHidden_email_inf_ouvd_1000_dumb = ('' == $sStyleHidden_email_inf_ouvd_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_email_inf_ouvd_1000_dumb" style="<?php echo $sStyleHidden_email_inf_ouvd_1000_dumb; ?>"></TD>
<?php $sStyleHidden_cpf_cnpj_ouvd_1000_dumb = ('' == $sStyleHidden_cpf_cnpj_ouvd_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_cpf_cnpj_ouvd_1000_dumb" style="<?php echo $sStyleHidden_cpf_cnpj_ouvd_1000_dumb; ?>"></TD>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['nivel_atend_atual_1000']))
           {
               $this->nmgp_cmp_readonly['nivel_atend_atual_1000'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['tel_inf_ouvd_1000']))
    {
        $this->nm_new_label['tel_inf_ouvd_1000'] = "Telefone";
    }
?>
<?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);
   $tel_inf_ouvd_1000 = $this->tel_inf_ouvd_1000;
   $sStyleHidden_tel_inf_ouvd_1000 = '';
   if (isset($this->nmgp_cmp_hidden['tel_inf_ouvd_1000']) && $this->nmgp_cmp_hidden['tel_inf_ouvd_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['tel_inf_ouvd_1000']);
       $sStyleHidden_tel_inf_ouvd_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_tel_inf_ouvd_1000 = 'display: none;';
   $sStyleReadInp_tel_inf_ouvd_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["tel_inf_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["tel_inf_ouvd_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['tel_inf_ouvd_1000']);
       $sStyleReadLab_tel_inf_ouvd_1000 = '';
       $sStyleReadInp_tel_inf_ouvd_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['tel_inf_ouvd_1000']) && $this->nmgp_cmp_hidden['tel_inf_ouvd_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="tel_inf_ouvd_1000" value="<?php echo $this->form_encode_input($tel_inf_ouvd_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_tel_inf_ouvd_1000_line" id="hidden_field_data_tel_inf_ouvd_1000" style="<?php echo $sStyleHidden_tel_inf_ouvd_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_tel_inf_ouvd_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_tel_inf_ouvd_1000_label" style=""><span id="id_label_tel_inf_ouvd_1000"><?php echo $this->nm_new_label['tel_inf_ouvd_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["tel_inf_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["tel_inf_ouvd_1000"] == "on")) { 

 ?>
<input type="hidden" name="tel_inf_ouvd_1000" value="<?php echo $this->form_encode_input($tel_inf_ouvd_1000) . "\"><span id=\"id_ajax_label_tel_inf_ouvd_1000\">" . $tel_inf_ouvd_1000 . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_tel_inf_ouvd_1000" class="sc-ui-readonly-tel_inf_ouvd_1000 css_tel_inf_ouvd_1000_line" style="<?php echo $sStyleReadLab_tel_inf_ouvd_1000; ?>"><?php echo $this->form_format_readonly("tel_inf_ouvd_1000", $this->form_encode_input($this->tel_inf_ouvd_1000)); ?></span><span id="id_read_off_tel_inf_ouvd_1000" class="css_read_off_tel_inf_ouvd_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_tel_inf_ouvd_1000; ?>">
 <input class="sc-js-input scFormObjectOdd css_tel_inf_ouvd_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_tel_inf_ouvd_1000" type=text name="tel_inf_ouvd_1000" value="<?php echo $this->form_encode_input($tel_inf_ouvd_1000) ?>"
 <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=20"; } ?> maxlength=35 alt="{datatype: 'mask', maxLength: 20, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', maskList: '(99) 99999-9999', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_tel_inf_ouvd_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_tel_inf_ouvd_1000_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


    <TD class="scFormDataOdd" colspan="2" >&nbsp;</TD>





<?php if ($sc_hidden_yes > 0) { ?>


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 1; ?>" >&nbsp;</TD>





<?php } ?>
<?php $sStyleHidden_tel_inf_ouvd_1000_dumb = ('' == $sStyleHidden_tel_inf_ouvd_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_tel_inf_ouvd_1000_dumb" style="<?php echo $sStyleHidden_tel_inf_ouvd_1000_dumb; ?>"></TD>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_4"></a>
   <table width="100%" height="100%" cellpadding="0" cellspacing=0 class="scBlockRow"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_4" class="scBlockFrame"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_4" class="scFormTable scFormDataOdd<?php echo $this->classes_100perc_fields['table'] ?>" width="100%" style="height: 100%;">   <tr>


    <TD colspan="3" height="0" class="scFormBlock">
     <TABLE style="padding: 0px; spacing: 0px; border-width: 0px;" width="100%" height="100%">
      <TR>
       <TD align="" valign="" class="scFormBlockFont"><?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "<table style=\"border-collapse: collapse; height: 100%; width: 100%\"><tr><td style=\"vertical-align: middle; border-width: 0px; padding: 0px 2px 0px 0px\"><img id=\"SC_blk_pdf4\" src=\"" . $this->Ini->path_icones . "/" . $this->Ini->Block_img_col . "\" style=\"border: 0px; float: left\" class=\"sc-ui-block-control\"></td><td style=\"border-width: 0px; padding: 0px; width: 100%;\" class=\"scFormBlockAlign\">"; } ?>Nível do Atendimento<?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "</td></tr></table>"; } ?></TD>
       
      </TR>
     </TABLE>
    </TD>





   </tr>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['area_nivel_atual']))
           {
               $this->nmgp_cmp_readonly['area_nivel_atual'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['resp_nivel_atual']))
           {
               $this->nmgp_cmp_readonly['resp_nivel_atual'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['id_status_ouvd_1000']))
           {
               $this->nmgp_cmp_readonly['id_status_ouvd_1000'] = 'on';
           }
?>


   <?php
   if (!isset($this->nm_new_label['nivel_atend_atual_1000']))
   {
       $this->nm_new_label['nivel_atend_atual_1000'] = "Nível atual";
   }
   $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);
   $nivel_atend_atual_1000 = $this->nivel_atend_atual_1000;
   $sStyleHidden_nivel_atend_atual_1000 = '';
   if (isset($this->nmgp_cmp_hidden['nivel_atend_atual_1000']) && $this->nmgp_cmp_hidden['nivel_atend_atual_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['nivel_atend_atual_1000']);
       $sStyleHidden_nivel_atend_atual_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_nivel_atend_atual_1000 = 'display: none;';
   $sStyleReadInp_nivel_atend_atual_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["nivel_atend_atual_1000"]) &&  $this->nmgp_cmp_readonly["nivel_atend_atual_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['nivel_atend_atual_1000']);
       $sStyleReadLab_nivel_atend_atual_1000 = '';
       $sStyleReadInp_nivel_atend_atual_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['nivel_atend_atual_1000']) && $this->nmgp_cmp_hidden['nivel_atend_atual_1000'] == 'off') { $sc_hidden_yes++; ?>
<input type=hidden name="nivel_atend_atual_1000" value="<?php echo $this->form_encode_input($this->nivel_atend_atual_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_nivel_atend_atual_1000_line" id="hidden_field_data_nivel_atend_atual_1000" style="<?php echo $sStyleHidden_nivel_atend_atual_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_nivel_atend_atual_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_nivel_atend_atual_1000_label" style=""><span id="id_label_nivel_atend_atual_1000"><?php echo $this->nm_new_label['nivel_atend_atual_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["nivel_atend_atual_1000"]) &&  $this->nmgp_cmp_readonly["nivel_atend_atual_1000"] == "on")) { 

$nivel_atend_atual_1000_look = "";
 if ($this->nivel_atend_atual_1000 == "1") { $nivel_atend_atual_1000_look .= "Primeiro Nível" ;} 
 if ($this->nivel_atend_atual_1000 == "2") { $nivel_atend_atual_1000_look .= "Segundo Nível" ;} 
 if ($this->nivel_atend_atual_1000 == "3") { $nivel_atend_atual_1000_look .= "Terceiro Nível" ;} 
 if (empty($nivel_atend_atual_1000_look)) { $nivel_atend_atual_1000_look = $this->nivel_atend_atual_1000; }
?>
<input type="hidden" name="nivel_atend_atual_1000" value="<?php echo $this->form_encode_input($nivel_atend_atual_1000) . "\"><span id=\"id_ajax_label_nivel_atend_atual_1000\">" . $nivel_atend_atual_1000_look . "</span>"; ?>
<?php } else { ?>
<?php

$nivel_atend_atual_1000_look = "";
 if ($this->nivel_atend_atual_1000 == "1") { $nivel_atend_atual_1000_look .= "Primeiro Nível" ;} 
 if ($this->nivel_atend_atual_1000 == "2") { $nivel_atend_atual_1000_look .= "Segundo Nível" ;} 
 if ($this->nivel_atend_atual_1000 == "3") { $nivel_atend_atual_1000_look .= "Terceiro Nível" ;} 
 if (empty($nivel_atend_atual_1000_look)) { $nivel_atend_atual_1000_look = $this->nivel_atend_atual_1000; }
?>
<span id="id_read_on_nivel_atend_atual_1000" class="css_nivel_atend_atual_1000_line"  style="<?php echo $sStyleReadLab_nivel_atend_atual_1000; ?>"><?php echo $this->form_format_readonly("nivel_atend_atual_1000", $this->form_encode_input($nivel_atend_atual_1000_look)); ?></span><span id="id_read_off_nivel_atend_atual_1000" class="css_read_off_nivel_atend_atual_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap; <?php echo $sStyleReadInp_nivel_atend_atual_1000; ?>">
 <span id="idAjaxSelect_nivel_atend_atual_1000" class="<?php echo $this->classes_100perc_fields['span_select'] ?>"><select class="sc-js-input scFormObjectOdd css_nivel_atend_atual_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_nivel_atend_atual_1000" name="nivel_atend_atual_1000" size="1" alt="{type: 'select', enterTab: false}">
 <option  value="1" <?php  if ($this->nivel_atend_atual_1000 == "1") { echo " selected" ;} ?>>Primeiro Nível</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_nivel_atend_atual_1000'][] = '1'; ?>
 <option  value="2" <?php  if ($this->nivel_atend_atual_1000 == "2") { echo " selected" ;} ?>>Segundo Nível</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_nivel_atend_atual_1000'][] = '2'; ?>
 <option  value="3" <?php  if ($this->nivel_atend_atual_1000 == "3") { echo " selected" ;} ?>>Terceiro Nível</option>
<?php $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_nivel_atend_atual_1000'][] = '3'; ?>
 </select></span>
</span><?php  }?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_nivel_atend_atual_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_nivel_atend_atual_1000_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['area_nivel_atual']))
    {
        $this->nm_new_label['area_nivel_atual'] = "Área";
    }
?>
<?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);
   $area_nivel_atual = $this->area_nivel_atual;
   $sStyleHidden_area_nivel_atual = '';
   if (isset($this->nmgp_cmp_hidden['area_nivel_atual']) && $this->nmgp_cmp_hidden['area_nivel_atual'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['area_nivel_atual']);
       $sStyleHidden_area_nivel_atual = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_area_nivel_atual = 'display: none;';
   $sStyleReadInp_area_nivel_atual = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["area_nivel_atual"]) &&  $this->nmgp_cmp_readonly["area_nivel_atual"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['area_nivel_atual']);
       $sStyleReadLab_area_nivel_atual = '';
       $sStyleReadInp_area_nivel_atual = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['area_nivel_atual']) && $this->nmgp_cmp_hidden['area_nivel_atual'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="area_nivel_atual" value="<?php echo $this->form_encode_input($area_nivel_atual) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_area_nivel_atual_line" id="hidden_field_data_area_nivel_atual" style="<?php echo $sStyleHidden_area_nivel_atual; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_area_nivel_atual_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_area_nivel_atual_label" style=""><span id="id_label_area_nivel_atual"><?php echo $this->nm_new_label['area_nivel_atual']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["area_nivel_atual"]) &&  $this->nmgp_cmp_readonly["area_nivel_atual"] == "on")) { 

 ?>
<input type="hidden" name="area_nivel_atual" value="<?php echo $this->form_encode_input($area_nivel_atual) . "\"><span id=\"id_ajax_label_area_nivel_atual\">" . $area_nivel_atual . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_area_nivel_atual" class="sc-ui-readonly-area_nivel_atual css_area_nivel_atual_line" style="<?php echo $sStyleReadLab_area_nivel_atual; ?>"><?php echo $this->form_format_readonly("area_nivel_atual", $this->form_encode_input($this->area_nivel_atual)); ?></span><span id="id_read_off_area_nivel_atual" class="css_read_off_area_nivel_atual<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_area_nivel_atual; ?>">
 <input class="sc-js-input scFormObjectOdd css_area_nivel_atual_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_area_nivel_atual" type=text name="area_nivel_atual" value="<?php echo $this->form_encode_input($area_nivel_atual) ?>"
 <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=150"; } ?> maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_area_nivel_atual_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_area_nivel_atual_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['resp_nivel_atual']))
    {
        $this->nm_new_label['resp_nivel_atual'] = "Responsável";
    }
?>
<?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);
   $resp_nivel_atual = $this->resp_nivel_atual;
   $sStyleHidden_resp_nivel_atual = '';
   if (isset($this->nmgp_cmp_hidden['resp_nivel_atual']) && $this->nmgp_cmp_hidden['resp_nivel_atual'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['resp_nivel_atual']);
       $sStyleHidden_resp_nivel_atual = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_resp_nivel_atual = 'display: none;';
   $sStyleReadInp_resp_nivel_atual = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["resp_nivel_atual"]) &&  $this->nmgp_cmp_readonly["resp_nivel_atual"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['resp_nivel_atual']);
       $sStyleReadLab_resp_nivel_atual = '';
       $sStyleReadInp_resp_nivel_atual = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['resp_nivel_atual']) && $this->nmgp_cmp_hidden['resp_nivel_atual'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="resp_nivel_atual" value="<?php echo $this->form_encode_input($resp_nivel_atual) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_resp_nivel_atual_line" id="hidden_field_data_resp_nivel_atual" style="<?php echo $sStyleHidden_resp_nivel_atual; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_resp_nivel_atual_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_resp_nivel_atual_label" style=""><span id="id_label_resp_nivel_atual"><?php echo $this->nm_new_label['resp_nivel_atual']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["resp_nivel_atual"]) &&  $this->nmgp_cmp_readonly["resp_nivel_atual"] == "on")) { 

 ?>
<input type="hidden" name="resp_nivel_atual" value="<?php echo $this->form_encode_input($resp_nivel_atual) . "\"><span id=\"id_ajax_label_resp_nivel_atual\">" . $resp_nivel_atual . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_resp_nivel_atual" class="sc-ui-readonly-resp_nivel_atual css_resp_nivel_atual_line" style="<?php echo $sStyleReadLab_resp_nivel_atual; ?>"><?php echo $this->form_format_readonly("resp_nivel_atual", $this->form_encode_input($this->resp_nivel_atual)); ?></span><span id="id_read_off_resp_nivel_atual" class="css_read_off_resp_nivel_atual<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_resp_nivel_atual; ?>">
 <input class="sc-js-input scFormObjectOdd css_resp_nivel_atual_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_resp_nivel_atual" type=text name="resp_nivel_atual" value="<?php echo $this->form_encode_input($resp_nivel_atual) ?>"
 <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=150"; } ?> maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_resp_nivel_atual_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_resp_nivel_atual_text"></span></td></tr></table></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; ?>" >&nbsp;</TD>





<?php } 
?> 






<?php $sStyleHidden_nivel_atend_atual_1000_dumb = ('' == $sStyleHidden_nivel_atend_atual_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_nivel_atend_atual_1000_dumb" style="<?php echo $sStyleHidden_nivel_atend_atual_1000_dumb; ?>"></TD>
<?php $sStyleHidden_area_nivel_atual_dumb = ('' == $sStyleHidden_area_nivel_atual) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_area_nivel_atual_dumb" style="<?php echo $sStyleHidden_area_nivel_atual_dumb; ?>"></TD>
<?php $sStyleHidden_resp_nivel_atual_dumb = ('' == $sStyleHidden_resp_nivel_atual) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_resp_nivel_atual_dumb" style="<?php echo $sStyleHidden_resp_nivel_atual_dumb; ?>"></TD>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_5"></a>
   <table width="100%" height="100%" cellpadding="0" cellspacing=0 class="scBlockRow"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_5" class="scBlockFrame"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_5" class="scFormTable scFormDataOdd<?php echo $this->classes_100perc_fields['table'] ?>" width="100%" style="height: 100%;">   <tr>


    <TD colspan="3" height="20" class="scFormBlock">
     <TABLE style="padding: 0px; spacing: 0px; border-width: 0px;" width="100%" height="100%">
      <TR>
       <TD align="" valign="" class="scFormBlockFont"><?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "<table style=\"border-collapse: collapse; height: 100%; width: 100%\"><tr><td style=\"vertical-align: middle; border-width: 0px; padding: 0px 2px 0px 0px\"><img id=\"SC_blk_pdf5\" src=\"" . $this->Ini->path_icones . "/" . $this->Ini->Block_img_col . "\" style=\"border: 0px; float: left\" class=\"sc-ui-block-control\"></td><td style=\"border-width: 0px; padding: 0px; width: 100%;\" class=\"scFormBlockAlign\">"; } ?>Atendimento<?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "</td></tr></table>"; } ?></TD>
       
      </TR>
     </TABLE>
    </TD>





   </tr>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['dt_ini_inv_ouvd_1000']))
           {
               $this->nmgp_cmp_readonly['dt_ini_inv_ouvd_1000'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['dt_enc_ouvd_1000']))
           {
               $this->nmgp_cmp_readonly['dt_enc_ouvd_1000'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['andamento_inv_ouvd_1000']))
           {
               $this->nmgp_cmp_readonly['andamento_inv_ouvd_1000'] = 'on';
           }
?>


   <?php
   if (!isset($this->nm_new_label['id_status_ouvd_1000']))
   {
       $this->nm_new_label['id_status_ouvd_1000'] = "Status";
   }
   $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);
   $id_status_ouvd_1000 = $this->id_status_ouvd_1000;
   $sStyleHidden_id_status_ouvd_1000 = '';
   if (isset($this->nmgp_cmp_hidden['id_status_ouvd_1000']) && $this->nmgp_cmp_hidden['id_status_ouvd_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['id_status_ouvd_1000']);
       $sStyleHidden_id_status_ouvd_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_id_status_ouvd_1000 = 'display: none;';
   $sStyleReadInp_id_status_ouvd_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["id_status_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["id_status_ouvd_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['id_status_ouvd_1000']);
       $sStyleReadLab_id_status_ouvd_1000 = '';
       $sStyleReadInp_id_status_ouvd_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['id_status_ouvd_1000']) && $this->nmgp_cmp_hidden['id_status_ouvd_1000'] == 'off') { $sc_hidden_yes++; ?>
<input type=hidden name="id_status_ouvd_1000" value="<?php echo $this->form_encode_input($this->id_status_ouvd_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_id_status_ouvd_1000_line" id="hidden_field_data_id_status_ouvd_1000" style="<?php echo $sStyleHidden_id_status_ouvd_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_id_status_ouvd_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_id_status_ouvd_1000_label" style=""><span id="id_label_id_status_ouvd_1000"><?php echo $this->nm_new_label['id_status_ouvd_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["id_status_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["id_status_ouvd_1000"] == "on")) { 
 
$nmgp_def_dados = "" ; 
if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_status_ouvd_1000']))
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_status_ouvd_1000'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_status_ouvd_1000']); 
}
else
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_status_ouvd_1000'] = array(); 
}
   if (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_ibase))
   { 
       $GLOBALS["NM_ERRO_IBASE"] = 1;  
   } 
   $nm_nao_carga = false;
   $nmgp_def_dados = "" ; 
   if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_status_ouvd_1000']))
   {
       $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_status_ouvd_1000'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_status_ouvd_1000']); 
   }
   else
   {
       $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lookup_id_status_ouvd_1000'] = array(); 
    }

   $old_value_data_hora_cadastro_1000 = $this->data_hora_cadastro_1000;
   $old_value_dt_ocorrido_1000 = $this->dt_ocorrido_1000;
   $old_value_cpf_cnpj_ouvd_1000 = $this->cpf_cnpj_ouvd_1000;
   $old_value_tel_inf_ouvd_1000 = $this->tel_inf_ouvd_1000;
   $old_value_dt_ini_inv_ouvd_1000 = $this->dt_ini_inv_ouvd_1000;
   $old_value_dt_enc_ouvd_1000 = $this->dt_enc_ouvd_1000;
   $this->nm_tira_formatacao();
   if ($this->nmgp_opcao != "nada") {
       $this->nm_converte_datas(false);
   }


   $unformatted_value_data_hora_cadastro_1000 = $this->data_hora_cadastro_1000;
   $unformatted_value_dt_ocorrido_1000 = $this->dt_ocorrido_1000;
   $unformatted_value_cpf_cnpj_ouvd_1000 = $this->cpf_cnpj_ouvd_1000;
   $unformatted_value_tel_inf_ouvd_1000 = $this->tel_inf_ouvd_1000;
   $unformatted_value_dt_ini_inv_ouvd_1000 = $this->dt_ini_inv_ouvd_1000;
   $unformatted_value_dt_enc_ouvd_1000 = $this->dt_enc_ouvd_1000;

   $nm_comando = "SELECT id_status_ouvd_1000, desc_status_ouvd_1000  FROM DOM_status_ouvd_1000  ORDER BY desc_status_ouvd_1000";

   $this->data_hora_cadastro_1000 = $old_value_data_hora_cadastro_1000;
   $this->dt_ocorrido_1000 = $old_value_dt_ocorrido_1000;
   $this->cpf_cnpj_ouvd_1000 = $old_value_cpf_cnpj_ouvd_1000;
   $this->tel_inf_ouvd_1000 = $old_value_tel_inf_ouvd_1000;
   $this->dt_ini_inv_ouvd_1000 = $old_value_dt_ini_inv_ouvd_1000;
   $this->dt_enc_ouvd_1000 = $old_value_dt_enc_ouvd_1000;

   $_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]['form_relatorio_geral_manifestacoes']['Lookup_id_status_ouvd_1000'][] = $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; 
   $id_status_ouvd_1000_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->id_status_ouvd_1000_1))
          {
              foreach ($this->id_status_ouvd_1000_1 as $tmp_id_status_ouvd_1000)
              {
                  if (trim($tmp_id_status_ouvd_1000) === trim($cadaselect[1])) {$id_status_ouvd_1000_look .= $cadaselect[0] . '__SC_BREAK_LINE__';}
              }
          }
          elseif (isset($cadaselect[1]) && is_string($this->id_status_ouvd_1000) && trim($this->id_status_ouvd_1000) === trim($cadaselect[1])) {$id_status_ouvd_1000_look .= $cadaselect[0];} 
          $x++; 
   }

?>
<input type="hidden" name="id_status_ouvd_1000" value="<?php echo $this->form_encode_input($id_status_ouvd_1000) . "\"><span id=\"id_ajax_label_id_status_ouvd_1000\">" . $id_status_ouvd_1000_look . "</span>"; ?>
<?php } else { ?>
<?php
   $todo = $this->Form_lookup_id_status_ouvd_1000();
   $x = 0 ; 
   $id_status_ouvd_1000_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->id_status_ouvd_1000_1))
          {
              foreach ($this->id_status_ouvd_1000_1 as $tmp_id_status_ouvd_1000)
              {
                  if (trim($tmp_id_status_ouvd_1000) === trim($cadaselect[1])) {$id_status_ouvd_1000_look .= $cadaselect[0] . '__SC_BREAK_LINE__';}
              }
          }
          elseif (isset($cadaselect[1]) && is_string($this->id_status_ouvd_1000)) {
                 if (trim($this->id_status_ouvd_1000) == trim($cadaselect[1])) { $id_status_ouvd_1000_look .= $cadaselect[0]; } 
          }
          elseif (isset($cadaselect[1]) && $this->id_status_ouvd_1000 == $cadaselect[1]) { $id_status_ouvd_1000_look .= $cadaselect[0]; 
          }
          $x++; 
   }
          if (empty($id_status_ouvd_1000_look))
          {
              $id_status_ouvd_1000_look = $this->id_status_ouvd_1000;
          }
   $x = 0; 
   echo "<span id=\"id_read_on_id_status_ouvd_1000\" class=\"css_id_status_ouvd_1000_line\" style=\"" .  $sStyleReadLab_id_status_ouvd_1000 . "\">" . $this->form_format_readonly("id_status_ouvd_1000", $this->form_encode_input($id_status_ouvd_1000_look)) . "</span><span id=\"id_read_off_id_status_ouvd_1000\" class=\"css_read_off_id_status_ouvd_1000" . $this->classes_100perc_fields['span_input'] . "\" style=\"white-space: nowrap; " . $sStyleReadInp_id_status_ouvd_1000 . "\">";
   echo " <span id=\"idAjaxSelect_id_status_ouvd_1000\" class=\"" . $this->classes_100perc_fields['span_select'] . "\"><select class=\"sc-js-input scFormObjectOdd css_id_status_ouvd_1000_obj" . $this->classes_100perc_fields['input'] . "\" style=\"\" id=\"id_sc_field_id_status_ouvd_1000\" name=\"id_status_ouvd_1000\" size=\"1\" alt=\"{type: 'select', enterTab: false}\">" ; 
   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->id_status_ouvd_1000) === trim($cadaselect[1])) 
          {
              echo " selected" ; 
          }
          if (strtoupper($cadaselect[2]) == "S") 
          {
              if (empty($this->id_status_ouvd_1000)) 
              {
                  echo " selected" ;
              } 
           } 
          echo ">" . str_replace('<', '&lt;',$cadaselect[0]) . "</option>" ; 
          echo "\r" ; 
          $x++ ; 
   }  ; 
   echo " </select></span>" ; 
   echo "\r" ; 
   echo "</span>";
?> 
<?php  }?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_id_status_ouvd_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_id_status_ouvd_1000_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['dt_ini_inv_ouvd_1000']))
    {
        $this->nm_new_label['dt_ini_inv_ouvd_1000'] = "Início do atendimento";
    }
?>
<?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);
   $dt_ini_inv_ouvd_1000 = $this->dt_ini_inv_ouvd_1000;
   $sStyleHidden_dt_ini_inv_ouvd_1000 = '';
   if (isset($this->nmgp_cmp_hidden['dt_ini_inv_ouvd_1000']) && $this->nmgp_cmp_hidden['dt_ini_inv_ouvd_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['dt_ini_inv_ouvd_1000']);
       $sStyleHidden_dt_ini_inv_ouvd_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_dt_ini_inv_ouvd_1000 = 'display: none;';
   $sStyleReadInp_dt_ini_inv_ouvd_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["dt_ini_inv_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["dt_ini_inv_ouvd_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['dt_ini_inv_ouvd_1000']);
       $sStyleReadLab_dt_ini_inv_ouvd_1000 = '';
       $sStyleReadInp_dt_ini_inv_ouvd_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['dt_ini_inv_ouvd_1000']) && $this->nmgp_cmp_hidden['dt_ini_inv_ouvd_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="dt_ini_inv_ouvd_1000" value="<?php echo $this->form_encode_input($dt_ini_inv_ouvd_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_dt_ini_inv_ouvd_1000_line" id="hidden_field_data_dt_ini_inv_ouvd_1000" style="<?php echo $sStyleHidden_dt_ini_inv_ouvd_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_dt_ini_inv_ouvd_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_dt_ini_inv_ouvd_1000_label" style=""><span id="id_label_dt_ini_inv_ouvd_1000"><?php echo $this->nm_new_label['dt_ini_inv_ouvd_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["dt_ini_inv_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["dt_ini_inv_ouvd_1000"] == "on")) { 

 ?>
<input type="hidden" name="dt_ini_inv_ouvd_1000" value="<?php echo $this->form_encode_input($dt_ini_inv_ouvd_1000) . "\"><span id=\"id_ajax_label_dt_ini_inv_ouvd_1000\">" . $dt_ini_inv_ouvd_1000 . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_dt_ini_inv_ouvd_1000" class="sc-ui-readonly-dt_ini_inv_ouvd_1000 css_dt_ini_inv_ouvd_1000_line" style="<?php echo $sStyleReadLab_dt_ini_inv_ouvd_1000; ?>"><?php echo $this->form_format_readonly("dt_ini_inv_ouvd_1000", $this->form_encode_input($dt_ini_inv_ouvd_1000)); ?></span><span id="id_read_off_dt_ini_inv_ouvd_1000" class="css_read_off_dt_ini_inv_ouvd_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_dt_ini_inv_ouvd_1000; ?>"><?php
$tmp_form_data = $this->field_config['dt_ini_inv_ouvd_1000']['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);
?>
<?php
$miniCalendarButton = $this->jqueryButtonText('calendar');
if ('scButton_' == substr($miniCalendarButton[1], 0, 9)) {
    $miniCalendarButton[1] = substr($miniCalendarButton[1], 9);
}
?>
<span class='trigger-picker-<?php echo $miniCalendarButton[1]; ?>' style='display: inherit; width: 100%'>

 <input class="sc-js-input scFormObjectOdd css_dt_ini_inv_ouvd_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_dt_ini_inv_ouvd_1000" type=text name="dt_ini_inv_ouvd_1000" value="<?php echo $this->form_encode_input($dt_ini_inv_ouvd_1000) ?>"
 <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=10"; } ?> alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['dt_ini_inv_ouvd_1000']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['dt_ini_inv_ouvd_1000']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span>
</span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_dt_ini_inv_ouvd_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_dt_ini_inv_ouvd_1000_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['dt_enc_ouvd_1000']))
    {
        $this->nm_new_label['dt_enc_ouvd_1000'] = "Data de encerramento";
    }
?>
<?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);
   $dt_enc_ouvd_1000 = $this->dt_enc_ouvd_1000;
   $sStyleHidden_dt_enc_ouvd_1000 = '';
   if (isset($this->nmgp_cmp_hidden['dt_enc_ouvd_1000']) && $this->nmgp_cmp_hidden['dt_enc_ouvd_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['dt_enc_ouvd_1000']);
       $sStyleHidden_dt_enc_ouvd_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_dt_enc_ouvd_1000 = 'display: none;';
   $sStyleReadInp_dt_enc_ouvd_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["dt_enc_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["dt_enc_ouvd_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['dt_enc_ouvd_1000']);
       $sStyleReadLab_dt_enc_ouvd_1000 = '';
       $sStyleReadInp_dt_enc_ouvd_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['dt_enc_ouvd_1000']) && $this->nmgp_cmp_hidden['dt_enc_ouvd_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="dt_enc_ouvd_1000" value="<?php echo $this->form_encode_input($dt_enc_ouvd_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_dt_enc_ouvd_1000_line" id="hidden_field_data_dt_enc_ouvd_1000" style="<?php echo $sStyleHidden_dt_enc_ouvd_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_dt_enc_ouvd_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_dt_enc_ouvd_1000_label" style=""><span id="id_label_dt_enc_ouvd_1000"><?php echo $this->nm_new_label['dt_enc_ouvd_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["dt_enc_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["dt_enc_ouvd_1000"] == "on")) { 

 ?>
<input type="hidden" name="dt_enc_ouvd_1000" value="<?php echo $this->form_encode_input($dt_enc_ouvd_1000) . "\"><span id=\"id_ajax_label_dt_enc_ouvd_1000\">" . $dt_enc_ouvd_1000 . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_dt_enc_ouvd_1000" class="sc-ui-readonly-dt_enc_ouvd_1000 css_dt_enc_ouvd_1000_line" style="<?php echo $sStyleReadLab_dt_enc_ouvd_1000; ?>"><?php echo $this->form_format_readonly("dt_enc_ouvd_1000", $this->form_encode_input($dt_enc_ouvd_1000)); ?></span><span id="id_read_off_dt_enc_ouvd_1000" class="css_read_off_dt_enc_ouvd_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_dt_enc_ouvd_1000; ?>"><?php
$tmp_form_data = $this->field_config['dt_enc_ouvd_1000']['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);
?>
<?php
$miniCalendarButton = $this->jqueryButtonText('calendar');
if ('scButton_' == substr($miniCalendarButton[1], 0, 9)) {
    $miniCalendarButton[1] = substr($miniCalendarButton[1], 9);
}
?>
<span class='trigger-picker-<?php echo $miniCalendarButton[1]; ?>' style='display: inherit; width: 100%'>

 <input class="sc-js-input scFormObjectOdd css_dt_enc_ouvd_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" id="id_sc_field_dt_enc_ouvd_1000" type=text name="dt_enc_ouvd_1000" value="<?php echo $this->form_encode_input($dt_enc_ouvd_1000) ?>"
 <?php if ($this->classes_100perc_fields['keep_field_size']) { echo "size=10"; } ?> alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['dt_enc_ouvd_1000']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['dt_enc_ouvd_1000']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" ></span>
&nbsp;<span class="scFormDataHelpOdd"><?php echo $tmp_form_data; ?></span></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_dt_enc_ouvd_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_dt_enc_ouvd_1000_text"></span></td></tr></table></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; ?>" >&nbsp;</TD>





<?php } 
?> 






<?php $sStyleHidden_id_status_ouvd_1000_dumb = ('' == $sStyleHidden_id_status_ouvd_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_id_status_ouvd_1000_dumb" style="<?php echo $sStyleHidden_id_status_ouvd_1000_dumb; ?>"></TD>
<?php $sStyleHidden_dt_ini_inv_ouvd_1000_dumb = ('' == $sStyleHidden_dt_ini_inv_ouvd_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_dt_ini_inv_ouvd_1000_dumb" style="<?php echo $sStyleHidden_dt_ini_inv_ouvd_1000_dumb; ?>"></TD>
<?php $sStyleHidden_dt_enc_ouvd_1000_dumb = ('' == $sStyleHidden_dt_enc_ouvd_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_dt_enc_ouvd_1000_dumb" style="<?php echo $sStyleHidden_dt_enc_ouvd_1000_dumb; ?>"></TD>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_6"></a>
   <table width="100%" height="100%" cellpadding="0" cellspacing=0 class="scBlockRow"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_6" class="scBlockFrame"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_6" 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 ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['conclusao_inv_ouvd_1000']))
           {
               $this->nmgp_cmp_readonly['conclusao_inv_ouvd_1000'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['andamento_inv_ouvd_1000']))
    {
        $this->nm_new_label['andamento_inv_ouvd_1000'] = "Andamento";
    }
?>
<?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);
   $andamento_inv_ouvd_1000 = $this->andamento_inv_ouvd_1000;
   $sStyleHidden_andamento_inv_ouvd_1000 = '';
   if (isset($this->nmgp_cmp_hidden['andamento_inv_ouvd_1000']) && $this->nmgp_cmp_hidden['andamento_inv_ouvd_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['andamento_inv_ouvd_1000']);
       $sStyleHidden_andamento_inv_ouvd_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_andamento_inv_ouvd_1000 = 'display: none;';
   $sStyleReadInp_andamento_inv_ouvd_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["andamento_inv_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["andamento_inv_ouvd_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['andamento_inv_ouvd_1000']);
       $sStyleReadLab_andamento_inv_ouvd_1000 = '';
       $sStyleReadInp_andamento_inv_ouvd_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['andamento_inv_ouvd_1000']) && $this->nmgp_cmp_hidden['andamento_inv_ouvd_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="andamento_inv_ouvd_1000" value="<?php echo $this->form_encode_input($andamento_inv_ouvd_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_andamento_inv_ouvd_1000_line" id="hidden_field_data_andamento_inv_ouvd_1000" style="<?php echo $sStyleHidden_andamento_inv_ouvd_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_andamento_inv_ouvd_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_andamento_inv_ouvd_1000_label" style=""><span id="id_label_andamento_inv_ouvd_1000"><?php echo $this->nm_new_label['andamento_inv_ouvd_1000']; ?></span></span><br>
<?php
$andamento_inv_ouvd_1000_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($andamento_inv_ouvd_1000));

?>

<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["andamento_inv_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["andamento_inv_ouvd_1000"] == "on")) { 

 ?>
<input type="hidden" name="andamento_inv_ouvd_1000" value="<?php echo $this->form_encode_input($andamento_inv_ouvd_1000) . "\"><span id=\"id_ajax_label_andamento_inv_ouvd_1000\">" . $andamento_inv_ouvd_1000_val . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_andamento_inv_ouvd_1000" class="sc-ui-readonly-andamento_inv_ouvd_1000 css_andamento_inv_ouvd_1000_line" style="<?php echo $sStyleReadLab_andamento_inv_ouvd_1000; ?>"><?php echo $this->form_format_readonly("andamento_inv_ouvd_1000", $this->form_encode_input($andamento_inv_ouvd_1000_val)); ?></span><span id="id_read_off_andamento_inv_ouvd_1000" class="css_read_off_andamento_inv_ouvd_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_andamento_inv_ouvd_1000; ?>">
 <textarea class="sc-js-input scFormObjectOdd css_andamento_inv_ouvd_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="white-space: pre-wrap;" name="andamento_inv_ouvd_1000" id="id_sc_field_andamento_inv_ouvd_1000" rows="5" cols="180"
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" >
<?php echo $andamento_inv_ouvd_1000; ?>
</textarea>
</span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_andamento_inv_ouvd_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_andamento_inv_ouvd_1000_text"></span></td></tr></table></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; ?>" >&nbsp;</TD>





<?php } 
?> 






<?php $sStyleHidden_andamento_inv_ouvd_1000_dumb = ('' == $sStyleHidden_andamento_inv_ouvd_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_andamento_inv_ouvd_1000_dumb" style="<?php echo $sStyleHidden_andamento_inv_ouvd_1000_dumb; ?>"></TD>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_7"></a>
   <table width="100%" height="100%" cellpadding="0" cellspacing=0 class="scBlockRow"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_7" class="scBlockFrame"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_7" 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['conclusao_inv_ouvd_1000']))
    {
        $this->nm_new_label['conclusao_inv_ouvd_1000'] = "Conclusão";
    }
?>
<?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);
   $conclusao_inv_ouvd_1000 = $this->conclusao_inv_ouvd_1000;
   $sStyleHidden_conclusao_inv_ouvd_1000 = '';
   if (isset($this->nmgp_cmp_hidden['conclusao_inv_ouvd_1000']) && $this->nmgp_cmp_hidden['conclusao_inv_ouvd_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['conclusao_inv_ouvd_1000']);
       $sStyleHidden_conclusao_inv_ouvd_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_conclusao_inv_ouvd_1000 = 'display: none;';
   $sStyleReadInp_conclusao_inv_ouvd_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["conclusao_inv_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["conclusao_inv_ouvd_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['conclusao_inv_ouvd_1000']);
       $sStyleReadLab_conclusao_inv_ouvd_1000 = '';
       $sStyleReadInp_conclusao_inv_ouvd_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['conclusao_inv_ouvd_1000']) && $this->nmgp_cmp_hidden['conclusao_inv_ouvd_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="conclusao_inv_ouvd_1000" value="<?php echo $this->form_encode_input($conclusao_inv_ouvd_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_conclusao_inv_ouvd_1000_line" id="hidden_field_data_conclusao_inv_ouvd_1000" style="<?php echo $sStyleHidden_conclusao_inv_ouvd_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_conclusao_inv_ouvd_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_conclusao_inv_ouvd_1000_label" style=""><span id="id_label_conclusao_inv_ouvd_1000"><?php echo $this->nm_new_label['conclusao_inv_ouvd_1000']; ?></span></span><br>
<?php
$conclusao_inv_ouvd_1000_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($conclusao_inv_ouvd_1000));

?>

<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["conclusao_inv_ouvd_1000"]) &&  $this->nmgp_cmp_readonly["conclusao_inv_ouvd_1000"] == "on")) { 

 ?>
<input type="hidden" name="conclusao_inv_ouvd_1000" value="<?php echo $this->form_encode_input($conclusao_inv_ouvd_1000) . "\"><span id=\"id_ajax_label_conclusao_inv_ouvd_1000\">" . $conclusao_inv_ouvd_1000_val . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_conclusao_inv_ouvd_1000" class="sc-ui-readonly-conclusao_inv_ouvd_1000 css_conclusao_inv_ouvd_1000_line" style="<?php echo $sStyleReadLab_conclusao_inv_ouvd_1000; ?>"><?php echo $this->form_format_readonly("conclusao_inv_ouvd_1000", $this->form_encode_input($conclusao_inv_ouvd_1000_val)); ?></span><span id="id_read_off_conclusao_inv_ouvd_1000" class="css_read_off_conclusao_inv_ouvd_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_conclusao_inv_ouvd_1000; ?>">
 <textarea class="sc-js-input scFormObjectOdd css_conclusao_inv_ouvd_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="white-space: pre-wrap;" name="conclusao_inv_ouvd_1000" id="id_sc_field_conclusao_inv_ouvd_1000" rows="5" cols="180"
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '<?php echo $this->allowedCharsCharset("") ?>', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}" >
<?php echo $conclusao_inv_ouvd_1000; ?>
</textarea>
</span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_conclusao_inv_ouvd_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_conclusao_inv_ouvd_1000_text"></span></td></tr></table></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; ?>" >&nbsp;</TD>





<?php } 
?> 






<?php $sStyleHidden_conclusao_inv_ouvd_1000_dumb = ('' == $sStyleHidden_conclusao_inv_ouvd_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_conclusao_inv_ouvd_1000_dumb" style="<?php echo $sStyleHidden_conclusao_inv_ouvd_1000_dumb; ?>"></TD>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_8"></a>
   <table width="100%" height="100%" cellpadding="0" cellspacing=0 class="scBlockRow"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_8" class="scBlockFrame"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_8" class="scFormTable scFormDataOdd<?php echo $this->classes_100perc_fields['table'] ?>" width="100%" style="height: 100%;">   <tr>


    <TD colspan="1" height="20" class="scFormBlock">
     <TABLE style="padding: 0px; spacing: 0px; border-width: 0px;" width="100%" height="100%">
      <TR>
       <TD align="" valign="" class="scFormBlockFont"><?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "<table style=\"border-collapse: collapse; height: 100%; width: 100%\"><tr><td style=\"vertical-align: middle; border-width: 0px; padding: 0px 2px 0px 0px\"><img id=\"SC_blk_pdf8\" src=\"" . $this->Ini->path_icones . "/" . $this->Ini->Block_img_col . "\" style=\"border: 0px; float: left\" class=\"sc-ui-block-control\"></td><td style=\"border-width: 0px; padding: 0px; width: 100%;\" class=\"scFormBlockAlign\">"; } ?>Andamento do Atendimento<?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "</td></tr></table>"; } ?></TD>
       
      </TR>
     </TABLE>
    </TD>





   </tr>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


   <?php
    if (!isset($this->nm_new_label['andamentos']))
    {
        $this->nm_new_label['andamentos'] = "";
    }
?>
<?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);
   $andamentos = $this->andamentos;
   $sStyleHidden_andamentos = '';
   if (isset($this->nmgp_cmp_hidden['andamentos']) && $this->nmgp_cmp_hidden['andamentos'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['andamentos']);
       $sStyleHidden_andamentos = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_andamentos = 'display: none;';
   $sStyleReadInp_andamentos = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['andamentos']) && $this->nmgp_cmp_readonly['andamentos'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['andamentos']);
       $sStyleReadLab_andamentos = '';
       $sStyleReadInp_andamentos = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['andamentos']) && $this->nmgp_cmp_hidden['andamentos'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="andamentos" value="<?php echo $this->form_encode_input($andamentos) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_andamentos_line" id="hidden_field_data_andamentos" style="<?php echo $sStyleHidden_andamentos; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td width="100%" class="scFormDataFontOdd css_andamentos_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_andamentos_label" style=""><span id="id_label_andamentos"><?php echo $this->nm_new_label['andamentos']; ?></span></span><br>
<?php
 if (isset($_SESSION['scriptcase']['dashboard_scinit'][ $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['dashboard_app'] ][ $this->Ini->sc_lig_target['C_@scinf_Andamentos'] ]) && '' != $_SESSION['scriptcase']['dashboard_scinit'][ $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['dashboard_app'] ][ $this->Ini->sc_lig_target['C_@scinf_Andamentos'] ]) {
     $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['grid_OUVD_2000_andamento_script_case_init'] = $_SESSION['scriptcase']['dashboard_scinit'][ $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['dashboard_app'] ][ $this->Ini->sc_lig_target['C_@scinf_Andamentos'] ];
 }
 else {
     $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['grid_OUVD_2000_andamento_script_case_init'] = $this->Ini->sc_page;
 }
 $_SESSION['sc_session'][ $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['grid_OUVD_2000_andamento_script_case_init'] ]['grid_OUVD_2000_andamento']['embutida_form_full']  = false;
 $_SESSION['sc_session'][ $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['grid_OUVD_2000_andamento_script_case_init'] ]['grid_OUVD_2000_andamento']['embutida_form']       = true;
 $_SESSION['sc_session'][ $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['grid_OUVD_2000_andamento_script_case_init'] ]['grid_OUVD_2000_andamento']['embutida_pai']        = "form_relatorio_geral_manifestacoes";
 $_SESSION['sc_session'][ $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['grid_OUVD_2000_andamento_script_case_init'] ]['grid_OUVD_2000_andamento']['embutida_form_parms'] = "param_id_ouvd*scin" . $this->nmgp_dados_form['id_registro_1000'] . "*scoutNMSC_inicial*scininicio*scoutNMSC_paginacao*scinFULL*scoutNMSC_nav*scinN*scoutlink_remove_margin*scinok*scoutlink_remove_border*scinok*scoutlink_remove_background*scinok*scout";
 if (isset($this->Ini->sc_lig_md5["grid_OUVD_2000_andamento"]) && $this->Ini->sc_lig_md5["grid_OUVD_2000_andamento"] == "S") {
     $Parms_Lig  = "param_id_ouvd*scin" . $this->nmgp_dados_form['id_registro_1000'] . "*scoutNMSC_inicial*scininicio*scoutNMSC_paginacao*scinFULL*scoutNMSC_nav*scinN*scoutlink_remove_margin*scinok*scoutlink_remove_border*scinok*scoutlink_remove_background*scinok*scout";
     $Md5_Lig    = "@SC_par@" . $this->form_encode_input($this->Ini->sc_page) . "@SC_par@form_relatorio_geral_manifestacoes@SC_par@" . md5($Parms_Lig);
     $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lig_Md5'][md5($Parms_Lig)] = $Parms_Lig;
 } else {
     $Md5_Lig  = "param_id_ouvd*scin" . $this->nmgp_dados_form['id_registro_1000'] . "*scoutNMSC_inicial*scininicio*scoutNMSC_paginacao*scinFULL*scoutNMSC_nav*scinN*scoutlink_remove_margin*scinok*scoutlink_remove_border*scinok*scoutlink_remove_background*scinok*scout";
 }
 $parms_lig_cons = "&nmgp_parms=" . $Md5_Lig;
 $sDetailSrc = ('novo' == $this->nmgp_opcao) ? 'form_relatorio_geral_manifestacoes_empty.htm' : $this->Ini->link_grid_OUVD_2000_andamento_cons . '?script_case_init=' . $this->form_encode_input($this->Ini->sc_page) . '&script_case_detail=Y' . $parms_lig_cons;
if (isset($this->Ini->sc_lig_target['C_@scinf_Andamentos']) && 'nmsc_iframe_liga_grid_OUVD_2000_andamento' != $this->Ini->sc_lig_target['C_@scinf_Andamentos'])
{
    if ('novo' != $this->nmgp_opcao)
    {
        $sDetailSrc .= '&under_dashboard=1&dashboard_app=' . $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['dashboard_app'] . '&own_widget=' . $this->Ini->sc_lig_target['C_@scinf_Andamentos'] . '&parent_widget=' . $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['own_widget'];
        $sDetailSrc  = $this->addUrlParam($sDetailSrc, 'script_case_init', $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['grid_OUVD_2000_andamento_script_case_init']);
    }
?>
<script type="text/javascript">
$(function() {
    scOpenMasterDetail("<?php echo $this->Ini->sc_lig_target['C_@scinf_Andamentos'] ?>", "<?php echo $sDetailSrc; ?>");
});
</script>
<?php
}
else
{
?>
<iframe border="0" id="nmsc_iframe_liga_grid_OUVD_2000_andamento"  marginWidth="0" marginHeight="0" frameborder="0" valign="top" height="100" width="100%" name="nmsc_iframe_liga_grid_OUVD_2000_andamento"  scrolling="auto" src="<?php echo $sDetailSrc; ?>"></iframe>
<?php
}
?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_andamentos_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_andamentos_text"></span></td></tr></table></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; ?>" >&nbsp;</TD>





<?php } 
?> 






<?php $sStyleHidden_andamentos_dumb = ('' == $sStyleHidden_andamentos) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_andamentos_dumb" style="<?php echo $sStyleHidden_andamentos_dumb; ?>"></TD>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_9"></a>
   <table width="100%" height="100%" cellpadding="0" cellspacing=0 class="scBlockRow"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_9" class="scBlockFrame"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_9" class="scFormTable scFormDataOdd<?php echo $this->classes_100perc_fields['table'] ?>" width="100%" style="height: 100%;">   <tr>


    <TD colspan="1" height="0" class="scFormBlock">
     <TABLE style="padding: 0px; spacing: 0px; border-width: 0px;" width="100%" height="100%">
      <TR>
       <TD align="" valign="" class="scFormBlockFont"><?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "<table style=\"border-collapse: collapse; height: 100%; width: 100%\"><tr><td style=\"vertical-align: middle; border-width: 0px; padding: 0px 2px 0px 0px\"><img id=\"SC_blk_pdf9\" src=\"" . $this->Ini->path_icones . "/" . $this->Ini->Block_img_col . "\" style=\"border: 0px; float: left\" class=\"sc-ui-block-control\"></td><td style=\"border-width: 0px; padding: 0px; width: 100%;\" class=\"scFormBlockAlign\">"; } ?>Fluxo do Atendimento<?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "</td></tr></table>"; } ?></TD>
       
      </TR>
     </TABLE>
    </TD>





   </tr>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['anexo_ouvd_img1_1000']))
           {
               $this->nmgp_cmp_readonly['anexo_ouvd_img1_1000'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['md_fluxo']))
    {
        $this->nm_new_label['md_fluxo'] = "";
    }
?>
<?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);
   $md_fluxo = $this->md_fluxo;
   $sStyleHidden_md_fluxo = '';
   if (isset($this->nmgp_cmp_hidden['md_fluxo']) && $this->nmgp_cmp_hidden['md_fluxo'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['md_fluxo']);
       $sStyleHidden_md_fluxo = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_md_fluxo = 'display: none;';
   $sStyleReadInp_md_fluxo = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['md_fluxo']) && $this->nmgp_cmp_readonly['md_fluxo'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['md_fluxo']);
       $sStyleReadLab_md_fluxo = '';
       $sStyleReadInp_md_fluxo = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['md_fluxo']) && $this->nmgp_cmp_hidden['md_fluxo'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="md_fluxo" value="<?php echo $this->form_encode_input($md_fluxo) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_md_fluxo_line" id="hidden_field_data_md_fluxo" style="<?php echo $sStyleHidden_md_fluxo; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td width="100%" class="scFormDataFontOdd css_md_fluxo_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_md_fluxo_label" style=""><span id="id_label_md_fluxo"><?php echo $this->nm_new_label['md_fluxo']; ?></span></span><br>
<?php
 if (isset($_SESSION['scriptcase']['dashboard_scinit'][ $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['dashboard_app'] ][ $this->Ini->sc_lig_target['C_@scinf_md_fluxo'] ]) && '' != $_SESSION['scriptcase']['dashboard_scinit'][ $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['dashboard_app'] ][ $this->Ini->sc_lig_target['C_@scinf_md_fluxo'] ]) {
     $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['grid_OUVD_3000_fluxo_nivel_script_case_init'] = $_SESSION['scriptcase']['dashboard_scinit'][ $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['dashboard_app'] ][ $this->Ini->sc_lig_target['C_@scinf_md_fluxo'] ];
 }
 else {
     $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['grid_OUVD_3000_fluxo_nivel_script_case_init'] = $this->Ini->sc_page;
 }
 $_SESSION['sc_session'][ $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['grid_OUVD_3000_fluxo_nivel_script_case_init'] ]['grid_OUVD_3000_fluxo_nivel']['embutida_form_full']  = false;
 $_SESSION['sc_session'][ $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['grid_OUVD_3000_fluxo_nivel_script_case_init'] ]['grid_OUVD_3000_fluxo_nivel']['embutida_form']       = true;
 $_SESSION['sc_session'][ $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['grid_OUVD_3000_fluxo_nivel_script_case_init'] ]['grid_OUVD_3000_fluxo_nivel']['embutida_pai']        = "form_relatorio_geral_manifestacoes";
 $_SESSION['sc_session'][ $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['grid_OUVD_3000_fluxo_nivel_script_case_init'] ]['grid_OUVD_3000_fluxo_nivel']['embutida_form_parms'] = "param_id_ouvd*scin" . $this->nmgp_dados_form['id_registro_1000'] . "*scoutSC_glo_par_usr_controlador*scinusr_controlador*scoutNMSC_cab*scinN*scoutlink_remove_margin*scinno*scoutlink_remove_border*scinno*scoutlink_remove_background*scinno*scout";
 if (isset($this->Ini->sc_lig_md5["grid_OUVD_3000_fluxo_nivel"]) && $this->Ini->sc_lig_md5["grid_OUVD_3000_fluxo_nivel"] == "S") {
     $Parms_Lig  = "param_id_ouvd*scin" . $this->nmgp_dados_form['id_registro_1000'] . "*scoutSC_glo_par_usr_controlador*scinusr_controlador*scoutNMSC_cab*scinN*scoutlink_remove_margin*scinno*scoutlink_remove_border*scinno*scoutlink_remove_background*scinno*scout";
     $Md5_Lig    = "@SC_par@" . $this->form_encode_input($this->Ini->sc_page) . "@SC_par@form_relatorio_geral_manifestacoes@SC_par@" . md5($Parms_Lig);
     $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['Lig_Md5'][md5($Parms_Lig)] = $Parms_Lig;
 } else {
     $Md5_Lig  = "param_id_ouvd*scin" . $this->nmgp_dados_form['id_registro_1000'] . "*scoutSC_glo_par_usr_controlador*scinusr_controlador*scoutNMSC_cab*scinN*scoutlink_remove_margin*scinno*scoutlink_remove_border*scinno*scoutlink_remove_background*scinno*scout";
 }
 $parms_lig_cons = "&nmgp_parms=" . $Md5_Lig;
 $sDetailSrc = ('novo' == $this->nmgp_opcao) ? 'form_relatorio_geral_manifestacoes_empty.htm' : $this->Ini->link_grid_OUVD_3000_fluxo_nivel_cons . '?script_case_init=' . $this->form_encode_input($this->Ini->sc_page) . '&script_case_detail=Y' . $parms_lig_cons;
if (isset($this->Ini->sc_lig_target['C_@scinf_md_fluxo']) && 'nmsc_iframe_liga_grid_OUVD_3000_fluxo_nivel' != $this->Ini->sc_lig_target['C_@scinf_md_fluxo'])
{
    if ('novo' != $this->nmgp_opcao)
    {
        $sDetailSrc .= '&under_dashboard=1&dashboard_app=' . $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['dashboard_app'] . '&own_widget=' . $this->Ini->sc_lig_target['C_@scinf_md_fluxo'] . '&parent_widget=' . $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['own_widget'];
        $sDetailSrc  = $this->addUrlParam($sDetailSrc, 'script_case_init', $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['grid_OUVD_3000_fluxo_nivel_script_case_init']);
    }
?>
<script type="text/javascript">
$(function() {
    scOpenMasterDetail("<?php echo $this->Ini->sc_lig_target['C_@scinf_md_fluxo'] ?>", "<?php echo $sDetailSrc; ?>");
});
</script>
<?php
}
else
{
?>
<iframe border="0" id="nmsc_iframe_liga_grid_OUVD_3000_fluxo_nivel"  marginWidth="0" marginHeight="0" frameborder="0" valign="top" height="100" width="100%" name="nmsc_iframe_liga_grid_OUVD_3000_fluxo_nivel"  scrolling="auto" src="<?php echo $sDetailSrc; ?>"></iframe>
<?php
}
?>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_md_fluxo_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_md_fluxo_text"></span></td></tr></table></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; ?>" >&nbsp;</TD>





<?php } 
?> 






<?php $sStyleHidden_md_fluxo_dumb = ('' == $sStyleHidden_md_fluxo) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_md_fluxo_dumb" style="<?php echo $sStyleHidden_md_fluxo_dumb; ?>"></TD>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_10"></a>
   <table width="100%" height="100%" cellpadding="0" cellspacing=0 class="scBlockRow"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_10" class="scBlockFrame"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_10" class="scFormTable scFormDataOdd<?php echo $this->classes_100perc_fields['table'] ?>" width="100%" style="height: 100%;">   <tr>


    <TD colspan="2" height="20" class="scFormBlock">
     <TABLE style="padding: 0px; spacing: 0px; border-width: 0px;" width="100%" height="100%">
      <TR>
       <TD align="" valign="" class="scFormBlockFont"><?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "<table style=\"border-collapse: collapse; height: 100%; width: 100%\"><tr><td style=\"vertical-align: middle; border-width: 0px; padding: 0px 2px 0px 0px\"><img id=\"SC_blk_pdf10\" src=\"" . $this->Ini->path_icones . "/" . $this->Ini->Block_img_col . "\" style=\"border: 0px; float: left\" class=\"sc-ui-block-control\"></td><td style=\"border-width: 0px; padding: 0px; width: 100%;\" class=\"scFormBlockAlign\">"; } ?>Anexos<?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col && !$this->Ini->Export_img_zip) { echo "</td></tr></table>"; } ?></TD>
       
      </TR>
     </TABLE>
    </TD>





   </tr>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['anexo_ouvd_img2_1000']))
           {
               $this->nmgp_cmp_readonly['anexo_ouvd_img2_1000'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['anexo_ouvd_doc1_1000']))
           {
               $this->nmgp_cmp_readonly['anexo_ouvd_doc1_1000'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['anexo_ouvd_img1_1000']))
    {
        $this->nm_new_label['anexo_ouvd_img1_1000'] = "Imagem 1";
    }
?>
<?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);
   $anexo_ouvd_img1_1000 = $this->anexo_ouvd_img1_1000;
   $sStyleHidden_anexo_ouvd_img1_1000 = '';
   if (isset($this->nmgp_cmp_hidden['anexo_ouvd_img1_1000']) && $this->nmgp_cmp_hidden['anexo_ouvd_img1_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['anexo_ouvd_img1_1000']);
       $sStyleHidden_anexo_ouvd_img1_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_anexo_ouvd_img1_1000 = 'display: none;';
   $sStyleReadInp_anexo_ouvd_img1_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["anexo_ouvd_img1_1000"]) &&  $this->nmgp_cmp_readonly["anexo_ouvd_img1_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['anexo_ouvd_img1_1000']);
       $sStyleReadLab_anexo_ouvd_img1_1000 = '';
       $sStyleReadInp_anexo_ouvd_img1_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['anexo_ouvd_img1_1000']) && $this->nmgp_cmp_hidden['anexo_ouvd_img1_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="anexo_ouvd_img1_1000" value="<?php echo $this->form_encode_input($anexo_ouvd_img1_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_anexo_ouvd_img1_1000_line" id="hidden_field_data_anexo_ouvd_img1_1000" style="<?php echo $sStyleHidden_anexo_ouvd_img1_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_anexo_ouvd_img1_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_anexo_ouvd_img1_1000_label" style=""><span id="id_label_anexo_ouvd_img1_1000"><?php echo $this->nm_new_label['anexo_ouvd_img1_1000']; ?></span></span><br>
 <?php $this->NM_ajax_info['varList'][] = array("var_ajax_img_anexo_ouvd_img1_1000" => $out_anexo_ouvd_img1_1000); ?><script>var var_ajax_img_anexo_ouvd_img1_1000 = '<?php echo $out_anexo_ouvd_img1_1000; ?>';</script><?php if (!empty($out_anexo_ouvd_img1_1000)){ echo "<a id=\"id_ajax_link_anexo_ouvd_img1_1000\" href=\"javascript:nm_mostra_img(var_ajax_img_anexo_ouvd_img1_1000, '" . $this->nmgp_return_img['anexo_ouvd_img1_1000'][0] . "', '" . $this->nmgp_return_img['anexo_ouvd_img1_1000'][1] . "')\">$anexo_ouvd_img1_1000</a>"; if (!empty($anexo_ouvd_img1_1000)){ echo "<br>";} } else { echo "<img id=\"id_ajax_img_anexo_ouvd_img1_1000\" border=\"0\" style=\"display: none\"> &nbsp;<span id=\"txt_ajax_img_anexo_ouvd_img1_1000\"></span><br />"; } ?>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["anexo_ouvd_img1_1000"]) &&  $this->nmgp_cmp_readonly["anexo_ouvd_img1_1000"] == "on")) { 

 ?>
<img id=\"anexo_ouvd_img1_1000_img_uploading\" style=\"display: none\" border=\"0\" src=\"" . $this->Ini->path_icones . "/scriptcase__NM__ajax_load.gif\" align=\"absmiddle\" /><input type="hidden" name="anexo_ouvd_img1_1000" value="<?php echo $this->form_encode_input($anexo_ouvd_img1_1000) . "\"><span id=\"id_ajax_label_anexo_ouvd_img1_1000\">" . $anexo_ouvd_img1_1000 . "</span>"; ?>
<?php } else { ?>
<span id="id_read_off_anexo_ouvd_img1_1000" class="css_read_off_anexo_ouvd_img1_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_anexo_ouvd_img1_1000; ?>"><span style="display:inline-block"><span id="sc-id-upload-select-anexo_ouvd_img1_1000" class="fileinput-button fileinput-button-padding scButton_default">
 <span><?php echo $this->Ini->Nm_lang['lang_select_file'] ?></span>

 <input class="sc-js-input scFormObjectOdd css_anexo_ouvd_img1_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" title="<?php echo $this->Ini->Nm_lang['lang_select_file'] ?>" type="file" name="anexo_ouvd_img1_1000[]" id="id_sc_field_anexo_ouvd_img1_1000" onchange="<?php if ($this->nmgp_opcao == "novo") {echo "if (document.F1.elements['sc_check_vert[" . $sc_seq_vert . "]']) { document.F1.elements['sc_check_vert[" . $sc_seq_vert . "]'].checked = true }"; }?>"></span></span>
<?php
   $sCheckInsert = "";
?>
<span id="chk_ajax_img_anexo_ouvd_img1_1000"<?php if ($this->nmgp_opcao == "novo" || empty($anexo_ouvd_img1_1000)) { echo " style=\"display: none\""; } ?>> <input type=checkbox name="anexo_ouvd_img1_1000_limpa" value="<?php echo $anexo_ouvd_img1_1000_limpa . '" '; if ($anexo_ouvd_img1_1000_limpa == "S"){echo "checked ";} ?> onclick="this.value = ''; if (this.checked){ this.value = 'S'};<?php echo $sCheckInsert ?>"><?php echo $this->Ini->Nm_lang['lang_btns_dele_hint']; ?> &nbsp;</span><img id="anexo_ouvd_img1_1000_img_uploading" style="display: none" border="0" src="<?php echo $this->Ini->path_icones; ?>/scriptcase__NM__ajax_load.gif" align="absmiddle" /><div id="id_img_loader_anexo_ouvd_img1_1000" class="progress progress-success progress-striped active scProgressBarStart" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" style="display: none"><div class="bar scProgressBarLoading">&nbsp;</div></div><img id="id_ajax_loader_anexo_ouvd_img1_1000" src="<?php echo $this->Ini->path_icones ?>/scriptcase__NM__ajax_load.gif" style="display: none" /></span><?php } ?>
<div id="id_sc_dragdrop_anexo_ouvd_img1_1000" class="scFormDataDragNDrop"  style="<?php echo $sStyleReadInp_anexo_ouvd_img1_1000 ?>"><i class='fas fa-cloud-upload-alt'></i><br/>
<?php echo $this->Ini->Nm_lang['lang_errm_mu_dragimg'] ?></div>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_anexo_ouvd_img1_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_anexo_ouvd_img1_1000_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['anexo_ouvd_img2_1000']))
    {
        $this->nm_new_label['anexo_ouvd_img2_1000'] = "Imagem 2";
    }
?>
<?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);
   $anexo_ouvd_img2_1000 = $this->anexo_ouvd_img2_1000;
   $sStyleHidden_anexo_ouvd_img2_1000 = '';
   if (isset($this->nmgp_cmp_hidden['anexo_ouvd_img2_1000']) && $this->nmgp_cmp_hidden['anexo_ouvd_img2_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['anexo_ouvd_img2_1000']);
       $sStyleHidden_anexo_ouvd_img2_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_anexo_ouvd_img2_1000 = 'display: none;';
   $sStyleReadInp_anexo_ouvd_img2_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["anexo_ouvd_img2_1000"]) &&  $this->nmgp_cmp_readonly["anexo_ouvd_img2_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['anexo_ouvd_img2_1000']);
       $sStyleReadLab_anexo_ouvd_img2_1000 = '';
       $sStyleReadInp_anexo_ouvd_img2_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['anexo_ouvd_img2_1000']) && $this->nmgp_cmp_hidden['anexo_ouvd_img2_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="anexo_ouvd_img2_1000" value="<?php echo $this->form_encode_input($anexo_ouvd_img2_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_anexo_ouvd_img2_1000_line" id="hidden_field_data_anexo_ouvd_img2_1000" style="<?php echo $sStyleHidden_anexo_ouvd_img2_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_anexo_ouvd_img2_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_anexo_ouvd_img2_1000_label" style=""><span id="id_label_anexo_ouvd_img2_1000"><?php echo $this->nm_new_label['anexo_ouvd_img2_1000']; ?></span></span><br>
 <?php $this->NM_ajax_info['varList'][] = array("var_ajax_img_anexo_ouvd_img2_1000" => $out_anexo_ouvd_img2_1000); ?><script>var var_ajax_img_anexo_ouvd_img2_1000 = '<?php echo $out_anexo_ouvd_img2_1000; ?>';</script><?php if (!empty($out_anexo_ouvd_img2_1000)){ echo "<a id=\"id_ajax_link_anexo_ouvd_img2_1000\" href=\"javascript:nm_mostra_img(var_ajax_img_anexo_ouvd_img2_1000, '" . $this->nmgp_return_img['anexo_ouvd_img2_1000'][0] . "', '" . $this->nmgp_return_img['anexo_ouvd_img2_1000'][1] . "')\">$anexo_ouvd_img2_1000</a>"; if (!empty($anexo_ouvd_img2_1000)){ echo "<br>";} } else { echo "<img id=\"id_ajax_img_anexo_ouvd_img2_1000\" border=\"0\" style=\"display: none\"> &nbsp;<span id=\"txt_ajax_img_anexo_ouvd_img2_1000\"></span><br />"; } ?>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["anexo_ouvd_img2_1000"]) &&  $this->nmgp_cmp_readonly["anexo_ouvd_img2_1000"] == "on")) { 

 ?>
<img id=\"anexo_ouvd_img2_1000_img_uploading\" style=\"display: none\" border=\"0\" src=\"" . $this->Ini->path_icones . "/scriptcase__NM__ajax_load.gif\" align=\"absmiddle\" /><input type="hidden" name="anexo_ouvd_img2_1000" value="<?php echo $this->form_encode_input($anexo_ouvd_img2_1000) . "\"><span id=\"id_ajax_label_anexo_ouvd_img2_1000\">" . $anexo_ouvd_img2_1000 . "</span>"; ?>
<?php } else { ?>
<span id="id_read_off_anexo_ouvd_img2_1000" class="css_read_off_anexo_ouvd_img2_1000<?php echo $this->classes_100perc_fields['span_input'] ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_anexo_ouvd_img2_1000; ?>"><span style="display:inline-block"><span id="sc-id-upload-select-anexo_ouvd_img2_1000" class="fileinput-button fileinput-button-padding scButton_default">
 <span><?php echo $this->Ini->Nm_lang['lang_select_file'] ?></span>

 <input class="sc-js-input scFormObjectOdd css_anexo_ouvd_img2_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" title="<?php echo $this->Ini->Nm_lang['lang_select_file'] ?>" type="file" name="anexo_ouvd_img2_1000[]" id="id_sc_field_anexo_ouvd_img2_1000" onchange="<?php if ($this->nmgp_opcao == "novo") {echo "if (document.F1.elements['sc_check_vert[" . $sc_seq_vert . "]']) { document.F1.elements['sc_check_vert[" . $sc_seq_vert . "]'].checked = true }"; }?>"></span></span>
<?php
   $sCheckInsert = "";
?>
<span id="chk_ajax_img_anexo_ouvd_img2_1000"<?php if ($this->nmgp_opcao == "novo" || empty($anexo_ouvd_img2_1000)) { echo " style=\"display: none\""; } ?>> <input type=checkbox name="anexo_ouvd_img2_1000_limpa" value="<?php echo $anexo_ouvd_img2_1000_limpa . '" '; if ($anexo_ouvd_img2_1000_limpa == "S"){echo "checked ";} ?> onclick="this.value = ''; if (this.checked){ this.value = 'S'};<?php echo $sCheckInsert ?>"><?php echo $this->Ini->Nm_lang['lang_btns_dele_hint']; ?> &nbsp;</span><img id="anexo_ouvd_img2_1000_img_uploading" style="display: none" border="0" src="<?php echo $this->Ini->path_icones; ?>/scriptcase__NM__ajax_load.gif" align="absmiddle" /><div id="id_img_loader_anexo_ouvd_img2_1000" class="progress progress-success progress-striped active scProgressBarStart" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" style="display: none"><div class="bar scProgressBarLoading">&nbsp;</div></div><img id="id_ajax_loader_anexo_ouvd_img2_1000" src="<?php echo $this->Ini->path_icones ?>/scriptcase__NM__ajax_load.gif" style="display: none" /></span><?php } ?>
<div id="id_sc_dragdrop_anexo_ouvd_img2_1000" class="scFormDataDragNDrop"  style="<?php echo $sStyleReadInp_anexo_ouvd_img2_1000 ?>"><i class='fas fa-cloud-upload-alt'></i><br/>
<?php echo $this->Ini->Nm_lang['lang_errm_mu_dragimg'] ?></div>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_anexo_ouvd_img2_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_anexo_ouvd_img2_1000_text"></span></td></tr></table></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; ?>" >&nbsp;</TD>





<?php } 
?> 
<?php $sStyleHidden_anexo_ouvd_img1_1000_dumb = ('' == $sStyleHidden_anexo_ouvd_img1_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_anexo_ouvd_img1_1000_dumb" style="<?php echo $sStyleHidden_anexo_ouvd_img1_1000_dumb; ?>"></TD>
<?php $sStyleHidden_anexo_ouvd_img2_1000_dumb = ('' == $sStyleHidden_anexo_ouvd_img2_1000) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_anexo_ouvd_img2_1000_dumb" style="<?php echo $sStyleHidden_anexo_ouvd_img2_1000_dumb; ?>"></TD>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['anexo_ouvd_doc2_1000']))
           {
               $this->nmgp_cmp_readonly['anexo_ouvd_doc2_1000'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['anexo_ouvd_doc1_1000']))
    {
        $this->nm_new_label['anexo_ouvd_doc1_1000'] = "Documento 1";
    }
?>
<?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);
   $anexo_ouvd_doc1_1000 = $this->anexo_ouvd_doc1_1000;
   $sStyleHidden_anexo_ouvd_doc1_1000 = '';
   if (isset($this->nmgp_cmp_hidden['anexo_ouvd_doc1_1000']) && $this->nmgp_cmp_hidden['anexo_ouvd_doc1_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['anexo_ouvd_doc1_1000']);
       $sStyleHidden_anexo_ouvd_doc1_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_anexo_ouvd_doc1_1000 = 'display: none;';
   $sStyleReadInp_anexo_ouvd_doc1_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["anexo_ouvd_doc1_1000"]) &&  $this->nmgp_cmp_readonly["anexo_ouvd_doc1_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['anexo_ouvd_doc1_1000']);
       $sStyleReadLab_anexo_ouvd_doc1_1000 = '';
       $sStyleReadInp_anexo_ouvd_doc1_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['anexo_ouvd_doc1_1000']) && $this->nmgp_cmp_hidden['anexo_ouvd_doc1_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="anexo_ouvd_doc1_1000" value="<?php echo $this->form_encode_input($anexo_ouvd_doc1_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_anexo_ouvd_doc1_1000_line" id="hidden_field_data_anexo_ouvd_doc1_1000" style="<?php echo $sStyleHidden_anexo_ouvd_doc1_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_anexo_ouvd_doc1_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_anexo_ouvd_doc1_1000_label" style=""><span id="id_label_anexo_ouvd_doc1_1000"><?php echo $this->nm_new_label['anexo_ouvd_doc1_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["anexo_ouvd_doc1_1000"]) &&  $this->nmgp_cmp_readonly["anexo_ouvd_doc1_1000"] == "on")) { 

 ?>
<input type="hidden" name="anexo_ouvd_doc1_1000" value="<?php echo $this->form_encode_input($anexo_ouvd_doc1_1000) . "\"><img id=\"anexo_ouvd_doc1_1000_img_uploading\" style=\"display: none\" border=\"0\" src=\"" . $this->Ini->path_icones . "/scriptcase__NM__ajax_load.gif\" align=\"absmiddle\" /><span id=\"id_ajax_doc_anexo_ouvd_doc1_1000\"><a href=\"javascript:nm_mostra_doc('2', '" . str_replace(array("'", '%'), array("\'", '**Perc**'), substr($sTmpFile_anexo_ouvd_doc1_1000, 3)) . "', 'form_relatorio_geral_manifestacoes')\"><span id=\"id_ajax_label_anexo_ouvd_doc1_1000\">" . $anexo_ouvd_doc1_1000 . "</span></a></span>"; ?>
<?php } else { ?>
<span id="id_read_on_anexo_ouvd_doc1_1000" class="scFormLinkOdd sc-ui-readonly-anexo_ouvd_doc1_1000 css_anexo_ouvd_doc1_1000_line" style="<?php echo $sStyleReadLab_anexo_ouvd_doc1_1000; ?>"><a href="javascript:nm_mostra_doc('2', '<?php echo str_replace(array("'", '%'), array("\'", '**Perc**'), substr($sTmpFile_anexo_ouvd_doc1_1000, 3)); ?>', 'form_relatorio_geral_manifestacoes')"><?php echo $this->form_format_readonly("anexo_ouvd_doc1_1000", $this->anexo_ouvd_doc1_1000) ?></a></span><span id="id_read_off_anexo_ouvd_doc1_1000" class="css_read_off_anexo_ouvd_doc1_1000" style="white-space: nowrap;<?php echo $sStyleReadInp_anexo_ouvd_doc1_1000; ?>"><span style="display:inline-block"><span id="sc-id-upload-select-anexo_ouvd_doc1_1000" class="fileinput-button fileinput-button-padding scButton_default">
 <span><?php echo $this->Ini->Nm_lang['lang_select_file'] ?></span>

 <input class="sc-js-input scFormObjectOdd css_anexo_ouvd_doc1_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" title="<?php echo $this->Ini->Nm_lang['lang_select_file'] ?>" type="file" name="anexo_ouvd_doc1_1000[]" id="id_sc_field_anexo_ouvd_doc1_1000" ></span></span>
<?php
   $sCheckInsert = "";
?>
<span id="chk_ajax_img_anexo_ouvd_doc1_1000"<?php if ($this->nmgp_opcao == "novo" || empty($anexo_ouvd_doc1_1000)) { echo " style=\"display: none\""; } ?>> <input type=checkbox name="anexo_ouvd_doc1_1000_limpa" value="<?php echo $anexo_ouvd_doc1_1000_limpa . '" '; if ($anexo_ouvd_doc1_1000_limpa == "S"){echo "checked ";} ?> onclick="this.value = ''; if (this.checked){ this.value = 'S'};<?php echo $sCheckInsert ?>"><?php echo $this->Ini->Nm_lang['lang_btns_dele_hint']; ?> &nbsp;</span><img id="anexo_ouvd_doc1_1000_img_uploading" style="display: none" border="0" src="<?php echo $this->Ini->path_icones; ?>/scriptcase__NM__ajax_load.gif" align="absmiddle" /><span id="id_ajax_doc_anexo_ouvd_doc1_1000"><a href="javascript:nm_mostra_doc('2', '<?php echo str_replace(array("'", '%'), array("\'", '**Perc**'), substr($sTmpFile_anexo_ouvd_doc1_1000, 3)); ?>', 'form_relatorio_geral_manifestacoes')"><?php echo $anexo_ouvd_doc1_1000 ?></a></span><div id="id_img_loader_anexo_ouvd_doc1_1000" class="progress progress-success progress-striped active scProgressBarStart" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" style="display: none"><div class="bar scProgressBarLoading">&nbsp;</div></div><img id="id_ajax_loader_anexo_ouvd_doc1_1000" src="<?php echo $this->Ini->path_icones ?>/scriptcase__NM__ajax_load.gif" style="display: none" /></span><?php } ?>
<div id="id_sc_dragdrop_anexo_ouvd_doc1_1000" class="scFormDataDragNDrop"  style="<?php echo $sStyleReadInp_anexo_ouvd_doc1_1000 ?>"><i class='fas fa-cloud-upload-alt'></i><br/>
<?php echo $this->Ini->Nm_lang['lang_errm_mu_dragfile'] ?></div>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_anexo_ouvd_doc1_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_anexo_ouvd_doc1_1000_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['anexo_ouvd_doc2_1000']))
    {
        $this->nm_new_label['anexo_ouvd_doc2_1000'] = "Documento 2";
    }
?>
<?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);
   $anexo_ouvd_doc2_1000 = $this->anexo_ouvd_doc2_1000;
   $sStyleHidden_anexo_ouvd_doc2_1000 = '';
   if (isset($this->nmgp_cmp_hidden['anexo_ouvd_doc2_1000']) && $this->nmgp_cmp_hidden['anexo_ouvd_doc2_1000'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['anexo_ouvd_doc2_1000']);
       $sStyleHidden_anexo_ouvd_doc2_1000 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_anexo_ouvd_doc2_1000 = 'display: none;';
   $sStyleReadInp_anexo_ouvd_doc2_1000 = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["anexo_ouvd_doc2_1000"]) &&  $this->nmgp_cmp_readonly["anexo_ouvd_doc2_1000"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['anexo_ouvd_doc2_1000']);
       $sStyleReadLab_anexo_ouvd_doc2_1000 = '';
       $sStyleReadInp_anexo_ouvd_doc2_1000 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['anexo_ouvd_doc2_1000']) && $this->nmgp_cmp_hidden['anexo_ouvd_doc2_1000'] == 'off') { $sc_hidden_yes++;  ?>
<input type="hidden" name="anexo_ouvd_doc2_1000" value="<?php echo $this->form_encode_input($anexo_ouvd_doc2_1000) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOdd css_anexo_ouvd_doc2_1000_line" id="hidden_field_data_anexo_ouvd_doc2_1000" style="<?php echo $sStyleHidden_anexo_ouvd_doc2_1000; ?>vertical-align: top;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd css_anexo_ouvd_doc2_1000_line" style="vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat scFormLabelAboveOddFormat css_anexo_ouvd_doc2_1000_label" style=""><span id="id_label_anexo_ouvd_doc2_1000"><?php echo $this->nm_new_label['anexo_ouvd_doc2_1000']; ?></span></span><br>
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["anexo_ouvd_doc2_1000"]) &&  $this->nmgp_cmp_readonly["anexo_ouvd_doc2_1000"] == "on")) { 

 ?>
<input type="hidden" name="anexo_ouvd_doc2_1000" value="<?php echo $this->form_encode_input($anexo_ouvd_doc2_1000) . "\"><img id=\"anexo_ouvd_doc2_1000_img_uploading\" style=\"display: none\" border=\"0\" src=\"" . $this->Ini->path_icones . "/scriptcase__NM__ajax_load.gif\" align=\"absmiddle\" /><span id=\"id_ajax_doc_anexo_ouvd_doc2_1000\"><a href=\"javascript:nm_mostra_doc('3', '" . str_replace(array("'", '%'), array("\'", '**Perc**'), substr($sTmpFile_anexo_ouvd_doc2_1000, 3)) . "', 'form_relatorio_geral_manifestacoes')\"><span id=\"id_ajax_label_anexo_ouvd_doc2_1000\">" . $anexo_ouvd_doc2_1000 . "</span></a></span>"; ?>
<?php } else { ?>
<span id="id_read_on_anexo_ouvd_doc2_1000" class="scFormLinkOdd sc-ui-readonly-anexo_ouvd_doc2_1000 css_anexo_ouvd_doc2_1000_line" style="<?php echo $sStyleReadLab_anexo_ouvd_doc2_1000; ?>"><a href="javascript:nm_mostra_doc('3', '<?php echo str_replace(array("'", '%'), array("\'", '**Perc**'), substr($sTmpFile_anexo_ouvd_doc2_1000, 3)); ?>', 'form_relatorio_geral_manifestacoes')"><?php echo $this->form_format_readonly("anexo_ouvd_doc2_1000", $this->anexo_ouvd_doc2_1000) ?></a></span><span id="id_read_off_anexo_ouvd_doc2_1000" class="css_read_off_anexo_ouvd_doc2_1000" style="white-space: nowrap;<?php echo $sStyleReadInp_anexo_ouvd_doc2_1000; ?>"><span style="display:inline-block"><span id="sc-id-upload-select-anexo_ouvd_doc2_1000" class="fileinput-button fileinput-button-padding scButton_default">
 <span><?php echo $this->Ini->Nm_lang['lang_select_file'] ?></span>

 <input class="sc-js-input scFormObjectOdd css_anexo_ouvd_doc2_1000_obj<?php echo $this->classes_100perc_fields['input'] ?>" style="" title="<?php echo $this->Ini->Nm_lang['lang_select_file'] ?>" type="file" name="anexo_ouvd_doc2_1000[]" id="id_sc_field_anexo_ouvd_doc2_1000" ></span></span>
<?php
   $sCheckInsert = "";
?>
<span id="chk_ajax_img_anexo_ouvd_doc2_1000"<?php if ($this->nmgp_opcao == "novo" || empty($anexo_ouvd_doc2_1000)) { echo " style=\"display: none\""; } ?>> <input type=checkbox name="anexo_ouvd_doc2_1000_limpa" value="<?php echo $anexo_ouvd_doc2_1000_limpa . '" '; if ($anexo_ouvd_doc2_1000_limpa == "S"){echo "checked ";} ?> onclick="this.value = ''; if (this.checked){ this.value = 'S'};<?php echo $sCheckInsert ?>"><?php echo $this->Ini->Nm_lang['lang_btns_dele_hint']; ?> &nbsp;</span><img id="anexo_ouvd_doc2_1000_img_uploading" style="display: none" border="0" src="<?php echo $this->Ini->path_icones; ?>/scriptcase__NM__ajax_load.gif" align="absmiddle" /><span id="id_ajax_doc_anexo_ouvd_doc2_1000"><a href="javascript:nm_mostra_doc('3', '<?php echo str_replace(array("'", '%'), array("\'", '**Perc**'), substr($sTmpFile_anexo_ouvd_doc2_1000, 3)); ?>', 'form_relatorio_geral_manifestacoes')"><?php echo $anexo_ouvd_doc2_1000 ?></a></span><div id="id_img_loader_anexo_ouvd_doc2_1000" class="progress progress-success progress-striped active scProgressBarStart" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0" style="display: none"><div class="bar scProgressBarLoading">&nbsp;</div></div><img id="id_ajax_loader_anexo_ouvd_doc2_1000" src="<?php echo $this->Ini->path_icones ?>/scriptcase__NM__ajax_load.gif" style="display: none" /></span><?php } ?>
<div id="id_sc_dragdrop_anexo_ouvd_doc2_1000" class="scFormDataDragNDrop"  style="<?php echo $sStyleReadInp_anexo_ouvd_doc2_1000 ?>"><i class='fas fa-cloud-upload-alt'></i><br/>
<?php echo $this->Ini->Nm_lang['lang_errm_mu_dragfile'] ?></div>
</td></tr><tr><td style="vertical-align: top; padding: 0"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_anexo_ouvd_doc2_1000_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_anexo_ouvd_doc2_1000_text"></span></td></tr></table></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; ?>" >&nbsp;</TD>





<?php } 
?> 






   </td></tr></table>
   </tr>
</TABLE></div><!-- bloco_f -->
</td></tr> 
<tr><td>
<?php
$this->displayBottomToolbar();
?>
<?php
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "R")
{
?>
    <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;
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "R")
{
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ('' != $this->url_webhelp) {
        $sCondStyle = '';
?>
<?php
        $buttonMacroDisabled = '';
        $buttonMacroLabel = "";

        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['help']) && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['help']) {
            $buttonMacroDisabled .= ' disabled';
        }
        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['help']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['help']) {
            $buttonMacroLabel = $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['help'];
        }
?>
<?php echo nmButtonOutput($this->arr_buttons, "bhelp", "scBtnFn_sys_format_hlp()", "scBtnFn_sys_format_hlp()", "sc_b_hlp_b", "", "" . $buttonMacroLabel . "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "__NM_HINT__ (F1)", "" . $buttonMacroDisabled . "", "", "", '', '', '', '', '', '', '', '', "");?>
 
<?php
        $NM_btn = true;
    }
    if ((!$this->Embutida_call || $this->form_3versions_single) && ((!isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard']) || !$_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard'] || (isset($this->is_calendar_app) && $this->is_calendar_app)))) {
        $sCondStyle = (isset($_SESSION['scriptcase']['nm_sc_retorno']) && !empty($_SESSION['scriptcase']['nm_sc_retorno']) && $nm_apl_dependente != 1 && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "R" && !$this->aba_iframe && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
<?php
        $buttonMacroDisabled = 'sc-unique-btn-5';
        $buttonMacroLabel = "";

        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['exit']) && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['exit']) {
            $buttonMacroDisabled .= ' disabled';
        }
        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit']) {
            $buttonMacroLabel = $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit'];
        }
?>
<?php echo nmButtonOutput($this->arr_buttons, "bsair", "scBtnFn_sys_format_sai()", "scBtnFn_sys_format_sai()", "sc_b_sai_b", "", "" . $buttonMacroLabel . "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "__NM_HINT__ (Alt + Q)", "" . $buttonMacroDisabled . "", "", "", '', '', '', '', '', '', '', '', "");?>
 
<?php
        $NM_btn = true;
    }
    if ((!$this->Embutida_call) && ((!isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard']) || !$_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard'] || (isset($this->is_calendar_app) && $this->is_calendar_app)))) {
        $sCondStyle = (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "F" && $this->nmgp_botoes['exit'] == "on") && ($nm_apl_dependente == 1 && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
<?php
        $buttonMacroDisabled = 'sc-unique-btn-6';
        $buttonMacroLabel = "";

        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['exit']) && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['exit']) {
            $buttonMacroDisabled .= ' disabled';
        }
        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit']) {
            $buttonMacroLabel = $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit'];
        }
?>
<?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "scBtnFn_sys_format_sai()", "scBtnFn_sys_format_sai()", "sc_b_sai_b", "", "" . $buttonMacroLabel . "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "" . $buttonMacroDisabled . "", "", "", '', '', '', '', '', '', '', '', "");?>
 
<?php
        $NM_btn = true;
    }
    if ((!$this->Embutida_call) && ((!isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard']) || !$_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard'] || (isset($this->is_calendar_app) && $this->is_calendar_app)))) {
        $sCondStyle = (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "F" && $this->nmgp_botoes['exit'] == "on") && ($nm_apl_dependente != 1 || $this->nmgp_botoes['exit'] != "on") && ((!$this->aba_iframe || $this->is_calendar_app) && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
<?php
        $buttonMacroDisabled = 'sc-unique-btn-7';
        $buttonMacroLabel = "";

        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['exit']) && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_disabled']['exit']) {
            $buttonMacroDisabled .= ' disabled';
        }
        if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit']) && '' != $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit']) {
            $buttonMacroLabel = $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['btn_label']['exit'];
        }
?>
<?php echo nmButtonOutput($this->arr_buttons, "bsair", "scBtnFn_sys_format_sai()", "scBtnFn_sys_format_sai()", "sc_b_sai_b", "", "" . $buttonMacroLabel . "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "__NM_HINT__ (Alt + Q)", "" . $buttonMacroDisabled . "", "", "", '', '', '', '', '', '', '', '', "");?>
 
<?php
        $NM_btn = true;
    }
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['run_iframe'] != "R")
{
?>
   </td></tr> 
   </table> 
   </td></tr></table> 
<?php
}
?>
<?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);
?>
<?php if ('novo' != $this->nmgp_opcao || $this->Embutida_form) { ?><script>nav_atualiza(Nav_permite_ret, Nav_permite_ava, 'b');</script><?php } ?>
</td></tr> 
</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, "", "", "", "", "", '', '', '', '', '', '', '', '', "");?>
&nbsp;&nbsp;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> 
<?php
      $Tzone = ini_get('date.timezone');
      if (empty($Tzone))
      {
?>
<script> 
  _scAjaxShowMessage({title: '', message: "<?php echo $this->Ini->Nm_lang['lang_errm_tz']; ?>", isModal: false, timeout: 0, showButton: false, buttonLabel: "Ok", topPos: 0, leftPos: 0, width: 0, height: 0, redirUrl: "", redirTarget: "", redirParam: "", showClose: true, showBodyIcon: false, isToast: false, toastPos: ""});
</script> 
<?php
      }
?>
<script> 
<?php
  $nm_sc_blocos_da_pag = array(0,1,2,3,4,5,6,7,8,9,10);

  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.visibility = 'hidden';";
          if (isset($nm_sc_blocos_aba[$bloco]))
          {
               echo "document.getElementById('id_tabs_" . $nm_sc_blocos_aba[$bloco] . "_" . $bloco . "').style.display = 'none';";
          }
      }
  }
?>
$(window).bind("load", function() {
<?php
  $nm_sc_blocos_da_pag = array(0,1,2,3,4,5,6,7,8,9,10);

  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';";
          echo "document.getElementById('hidden_bloco_" . $bloco . "').style.visibility = '';";
      }
  }
?>
});
</script> 
<script>
<?php
if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['masterValue']))
{
    if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard']) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard']) {
?>
var dbParentFrame = $(parent.document).find("[name='<?php echo $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['parent_widget']; ?>']");
if (dbParentFrame && dbParentFrame[0] && dbParentFrame[0].contentWindow.scAjaxDetailValue)
{
<?php
        foreach ($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['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]['form_relatorio_geral_manifestacoes']['masterValue']);
?>
}
<?php
    }
    else {
?>
if (parent && parent.scAjaxDetailValue)
{
<?php
        foreach ($_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['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]['form_relatorio_geral_manifestacoes']['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]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard']) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard']) {
?>
<script>
 var dbParentFrame = $(parent.document).find("[name='<?php echo $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['dashboard_info']['parent_widget']; ?>']");
 dbParentFrame[0].contentWindow.scAjaxDetailStatus("form_relatorio_geral_manifestacoes");
</script>
<?php
    }
    else {
        $sTamanhoIframe = isset($_POST['sc_ifr_height']) && '' != $_POST['sc_ifr_height'] ? '"' . $_POST['sc_ifr_height'] . '"' : '$(document).innerHeight()';
?>
<script>
 parent.scAjaxDetailStatus("form_relatorio_geral_manifestacoes");
 parent.scAjaxDetailHeight("form_relatorio_geral_manifestacoes", <?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]['form_relatorio_geral_manifestacoes']['dashboard_info']['under_dashboard']) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['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("form_relatorio_geral_manifestacoes", <?php echo $sTamanhoIframe; ?>);
  }, 100);
 }
 else {
  parent.scAjaxDetailHeight("form_relatorio_geral_manifestacoes", <?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]['form_relatorio_geral_manifestacoes']['sc_modal']) && $_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['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_btn_extrato() {
                if ($("#sc_btn_extrato_top").length && $("#sc_btn_extrato_top").is(":visible")) {
                    if ($("#sc_btn_extrato_top").hasClass("disabled")) {
                        return;
                    }
                        sc_btn_btn_extrato()
                         return;
                }
        }
        function scBtnFn_sys_format_ret() {
                if ($("#sc_b_ret_t.sc-unique-btn-1").length && $("#sc_b_ret_t.sc-unique-btn-1").is(":visible")) {
                    if ($("#sc_b_ret_t.sc-unique-btn-1").hasClass("disabled")) {
                        return;
                    }
                        nm_move ('retorna');
                         return;
                }
        }
        function scBtnFn_sys_format_hlp() {
                if ($("#sc_b_hlp_b").length && $("#sc_b_hlp_b").is(":visible")) {
                    if ($("#sc_b_hlp_b").hasClass("disabled")) {
                        return;
                    }
                        window.open('<?php echo $this->url_webhelp; ?>', '', 'resizable, scrollbars'); 
                         return;
                }
        }
        function scBtnFn_sys_format_sai() {
                if ($("#sc_b_sai_t.sc-unique-btn-2").length && $("#sc_b_sai_t.sc-unique-btn-2").is(":visible")) {
                    if ($("#sc_b_sai_t.sc-unique-btn-2").hasClass("disabled")) {
                        return;
                    }
                        scFormClose_F6('<?php echo $nm_url_saida; ?>'); return false;
                         return;
                }
                if ($("#sc_b_sai_t.sc-unique-btn-3").length && $("#sc_b_sai_t.sc-unique-btn-3").is(":visible")) {
                    if ($("#sc_b_sai_t.sc-unique-btn-3").hasClass("disabled")) {
                        return;
                    }
                        scFormClose_F6('<?php echo $nm_url_saida; ?>'); return false;
                         return;
                }
                if ($("#sc_b_sai_t.sc-unique-btn-4").length && $("#sc_b_sai_t.sc-unique-btn-4").is(":visible")) {
                    if ($("#sc_b_sai_t.sc-unique-btn-4").hasClass("disabled")) {
                        return;
                    }
                        scFormClose_F6('<?php echo $nm_url_saida; ?>'); return false;
                         return;
                }
                if ($("#sc_b_sai_b.sc-unique-btn-5").length && $("#sc_b_sai_b.sc-unique-btn-5").is(":visible")) {
                    if ($("#sc_b_sai_b.sc-unique-btn-5").hasClass("disabled")) {
                        return;
                    }
                        scFormClose_F6('<?php echo $nm_url_saida; ?>'); return false;
                         return;
                }
                if ($("#sc_b_sai_b.sc-unique-btn-6").length && $("#sc_b_sai_b.sc-unique-btn-6").is(":visible")) {
                    if ($("#sc_b_sai_b.sc-unique-btn-6").hasClass("disabled")) {
                        return;
                    }
                        scFormClose_F6('<?php echo $nm_url_saida; ?>'); return false;
                         return;
                }
                if ($("#sc_b_sai_b.sc-unique-btn-7").length && $("#sc_b_sai_b.sc-unique-btn-7").is(":visible")) {
                    if ($("#sc_b_sai_b.sc-unique-btn-7").hasClass("disabled")) {
                        return;
                    }
                        scFormClose_F6('<?php echo $nm_url_saida; ?>'); return false;
                         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
       }
?>
<iframe id="sc-id-download-iframe" name="sc_name_download_iframe" style="display: none"></iframe>
<?php
$_SESSION['sc_session'][$this->Ini->sc_page]['form_relatorio_geral_manifestacoes']['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> 
