<?php

if (!isset($this->NM_ajax_info['param']['buffer_output']) || !$this->NM_ajax_info['param']['buffer_output'])
{
    $sOBContents = ob_get_contents();
    ob_end_clean();
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

<html<?php echo $_SESSION['scriptcase']['reg_conf']['html_dir'] ?>>
<HEAD>
 <TITLE><?php if ('novo' == $this->nmgp_opcao) { echo strip_tags("" . $this->Ini->Nm_lang['lang_othr_frmi_titl'] . " - sample"); } else { echo strip_tags("" . $this->Ini->Nm_lang['lang_othr_frmu_titl'] . " - sample"); } ?></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="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_blockCol = '<?php echo $this->Ini->Block_img_col; ?>';
  var sc_blockExp = '<?php echo $this->Ini->Block_img_exp; ?>';
  var sc_ajaxBg = '<?php echo $this->Ini->Color_bg_ajax; ?>';
  var sc_ajaxBordC = '<?php echo $this->Ini->Border_c_ajax; ?>';
  var sc_ajaxBordS = '<?php echo $this->Ini->Border_s_ajax; ?>';
  var sc_ajaxBordW = '<?php echo $this->Ini->Border_w_ajax; ?>';
  var sc_ajaxMsgTime = 2;
  var sc_img_status_ok = '<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Img_status_ok; ?>';
  var sc_img_status_err = '<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Img_status_err; ?>';
  var sc_css_status = '<?php echo $this->Ini->Css_status; ?>';
 </SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery/js/jquery.js"></SCRIPT>
 <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" />
 <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">
  #quicksearchph_t {
   position: relative;
  }
  #quicksearchph_t img {
   position: absolute;
   top: 0;
   right: 0;
  }
 </style>
 <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.fieldSelection.js"></SCRIPT>
 <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 ?>_tab.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_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_calendar.css" />
<?php
include_once("../_lib/css/" . $this->Ini->str_schema_all . "_tab.php");
?>

<script>
var scFocusFirstErrorField = false;
var scFocusFirstErrorName  = "<?php echo $this->scFormFocusErrorName; ?>";
</script>

<?php
include_once("sample_sample_form_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;
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_binicio_off = "<?php echo $this->arr_buttons['binicio_off']['type']; ?>";
var Nav_bavanca     = "<?php echo $this->arr_buttons['bavanca']['type']; ?>";
var Nav_bavanca_off = "<?php echo $this->arr_buttons['bavanca_off']['type']; ?>";
var Nav_bretorna    = "<?php echo $this->arr_buttons['bretorna']['type']; ?>";
var Nav_bretorna_off = "<?php echo $this->arr_buttons['bretorna_off']['type']; ?>";
var Nav_bfinal      = "<?php echo $this->arr_buttons['bfinal']['type']; ?>";
var Nav_bfinal_off  = "<?php echo $this->arr_buttons['bfinal_off']['type']; ?>";
function nav_atualiza(str_ret, str_ava, str_pos)
{
 if ('S' == str_ret)
 {
  if (Nav_binicio == 'image')
  {
      if (document.getElementById("sc_b_ini_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        document.getElementById("sc_b_ini_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ini_" + str_pos)){
        document.getElementById("sc_b_ini_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['binicio']['style'] ?>";
        document.getElementById("sc_b_ini_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['binicio']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['binicio']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bretorna == 'image')
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        document.getElementById("sc_b_ret_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        document.getElementById("sc_b_ret_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bretorna']['style'] ?>";
        document.getElementById("sc_b_ret_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['bretorna']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bretorna']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        }
      }
  }
 }
 else
 {
  if (Nav_binicio_off == 'image')
  {
      if (document.getElementById("sc_b_ini_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        document.getElementById("sc_b_ini_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ini_" + str_pos)) {
        document.getElementById("sc_b_ini_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['binicio_off']['style'] ?>";
        document.getElementById("sc_b_ini_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['binicio_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['binicio_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bretorna_off == 'image')
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        document.getElementById("sc_b_ret_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        document.getElementById("sc_b_ret_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bretorna_off']['style'] ?>";
        document.getElementById("sc_b_ret_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['bretorna_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bretorna_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        }
      }
  }
 }
 if ('S' == str_ava)
 {
  if (Nav_bavanca == 'image')
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        document.getElementById("sc_b_avc_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        document.getElementById("sc_b_avc_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bavanca']['style'] ?>";
        document.getElementById("sc_b_avc_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['bavanca']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bavanca']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bfinal == 'image')
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        document.getElementById("sc_b_fim_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        document.getElementById("sc_b_fim_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bfinal']['style'] ?>";
        document.getElementById("sc_b_fim_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['bfinal']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bfinal']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        }
      }
  }
 }
 else
 {
  if (Nav_bavanca_off == 'image')
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        document.getElementById("sc_b_avc_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        document.getElementById("sc_b_avc_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bavanca_off']['style'] ?>";
        document.getElementById("sc_b_avc_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['bavanca_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bavanca_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bfinal_off == 'image')
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        document.getElementById("sc_b_fim_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        document.getElementById("sc_b_fim_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bfinal_off']['style'] ?>";
        document.getElementById("sc_b_fim_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['bfinal_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bfinal_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        }
      }
  }
 }
}
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;
}
function summary_atualiza(reg_ini, reg_qtd, reg_tot)
{
    nm_sumario = "[<?php echo substr($this->Ini->Nm_lang['lang_othr_smry_info'], strpos($this->Ini->Nm_lang['lang_othr_smry_info'], "?final?")) ?>]";
    nm_sumario = nm_sumario.replace("?final?", reg_qtd);
    nm_sumario = nm_sumario.replace("?total?", reg_tot);
    if (reg_qtd < 1) {
        nm_sumario = "";
    }
    if (document.getElementById("sc_b_summary_b")) document.getElementById("sc_b_summary_b").innerHTML = nm_sumario;
}
function navpage_atualiza(str_navpage)
{
    if (document.getElementById("sc_b_navpage_b")) document.getElementById("sc_b_navpage_b").innerHTML = str_navpage;
}
<?php

include_once('sample_sample_form_jquery.php');

?>

 var scQSInit = true;
 var scQSPos = {};
 $(function() {

  scJQElementsAdd('');

  scJQGeneralAdd();

  $('#SC_fast_search_t').keyup(function(e) {
   scQuickSearchKeyUp('t', e);
  });

  $(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).load(function() {
     scQuickSearchInit(false, '');
     $('#SC_fast_search_t').listen();
     scQuickSearchKeyUp('t', null);
     scQSInit = false;
   });
   function scQuickSearchSubmit_t() {
     nm_move('fast_search', 't');
   }

   function scQuickSearchInit(bPosOnly, sPos) {
     if (!bPosOnly) {
       if ('' == sPos || 't' == sPos) scQuickSearchSize('SC_fast_search_t', 'SC_fast_search_close_t', 'SC_fast_search_submit_t', 'quicksearchph_t');
     }
   }
   function scQuickSearchSize(sIdInput, sIdClose, sIdSubmit, sPlaceHolder) {
     var oInput = $('#' + sIdInput),
         oClose = $('#' + sIdClose),
         oSubmit = $('#' + sIdSubmit),
         oPlace = $('#' + sPlaceHolder),
         iInputP = parseInt(oInput.css('padding-right')) || 0,
         iInputB = parseInt(oInput.css('border-right-width')) || 0,
         iInputW = oInput.outerWidth(),
         iPlaceW = oPlace.outerWidth(),
         oInputO = oInput.offset(),
         oPlaceO = oPlace.offset(),
         iNewRight;
     iNewRight = (iPlaceW - iInputW) - (oInputO.left - oPlaceO.left) + iInputB + 1;
     oInput.css({
       'height': Math.max(oInput.height(), 16) + 'px',
       'padding-right': iInputP + 16 + <?php echo $this->Ini->Str_qs_image_padding ?> + 'px'
     });
     oClose.css({
       'right': iNewRight + <?php echo $this->Ini->Str_qs_image_padding ?> + 'px',
       'cursor': 'pointer'
     });
     oSubmit.css({
       'right': iNewRight + <?php echo $this->Ini->Str_qs_image_padding ?> + 'px',
       'cursor': 'pointer'
     });
   }
   function scQuickSearchKeyUp(sPos, e) {
     if ('' != scQSInitVal && $('#SC_fast_search_' + sPos).val() == scQSInitVal && scQSInit) {
       $('#SC_fast_search_close_' + sPos).show();
       $('#SC_fast_search_submit_' + sPos).hide();
     }
     else {
       $('#SC_fast_search_close_' + sPos).hide();
       $('#SC_fast_search_submit_' + sPos).show();
     }
     if (null != e) {
       var keyPressed = e.charCode || e.keyCode || e.which;
       if (13 == keyPressed) {
         if ('t' == sPos) scQuickSearchSubmit_t();
       }
     }
   }
 if($(".sc-ui-block-control").length) {
  preloadBlock = new Image();
  preloadBlock.src = "<?php echo $this->Ini->path_icones; ?>/" + sc_blockExp;
 }

 var show_block = {
  
 };

 function toggleBlock(e) {
  var block = e.data.block,
      block_id = $(block).attr("id");
      block_img = $("#" + block_id + " .sc-ui-block-control");

  if (1 >= block.rows.length) {
   return;
  }

  show_block[block_id] = !show_block[block_id];

  if (show_block[block_id]) {
    $(block).css("height", "100%");
    if (block_img.length) block_img.attr("src", changeImgName(block_img.attr("src"), sc_blockCol));
  }
  else {
    $(block).css("height", "");
    if (block_img.length) block_img.attr("src", changeImgName(block_img.attr("src"), sc_blockExp));
  }

  for (var i = 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]) {
  }
 }

 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]['sample_sample_form']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['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]['sample_sample_form']['opc_ant'] = "novo";
    $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['recarga'] = "novo";
}
if (empty($_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['recarga']))
{
    $opcao_botoes = $this->nmgp_opcao;
}
else
{
    $opcao_botoes = $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['recarga'];
}
?>
<body class="scFormPage" style="<?php echo $str_iframe_body; ?>">
<?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("sample_sample_form_js0.php");
?>
<script type="text/javascript" src="<?php echo str_replace("{str_idioma}", $this->Ini->str_lang, "../_lib/js/tab_erro_{str_idioma}.js"); ?>"> 
</script> 
<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;
 }
 </script>
<form name="F1" method=post 
               action="./" 
               target="_self"> 
<input type=hidden name="nm_form_submit" value="1">
<input type=hidden name="nmgp_idioma_novo" value="">
<input type=hidden name="nmgp_schema_f" value="">
<input type=hidden name="nmgp_url_saida" value="">
<input type=hidden name="nmgp_opcao" value="">
<input type=hidden name="nmgp_ancora" value="">
<input type=hidden name="nmgp_num_form" value="<?php  echo NM_encode_input($nmgp_num_form); ?>">
<input type=hidden name="nmgp_parms" value="">
<input type=hidden name="script_case_init" value="<?php  echo NM_encode_input($this->Ini->sc_page); ?>"> 
<input type=hidden name="script_case_session" value="<?php  echo NM_encode_input(session_id()); ?>"> 
<?php
$int_iframe_padding = ('F' == $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe']) ? 0 : "0px";
?>
<?php
$_SESSION['scriptcase']['error_span_title']['sample_sample_form'] = $this->Ini->Error_icon_span;
$_SESSION['scriptcase']['error_icon_title']['sample_sample_form'] = '' != $this->Ini->Err_ico_title ? $this->Ini->path_icones . '/' . $this->Ini->Err_ico_title : '';
?>
<div style="display: none; position: absolute" id="id_error_display_table_frame">
<table class="scFormErrorTable">
<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"><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"><span id="id_error_display_table_text"></span></td></tr>
</table>
</div>
<div style="display: none; position: absolute" 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>
<script type="text/javascript">
var scMsgDefTitle = "<?php echo $this->Ini->Nm_lang['lang_usr_lang_othr_msgs_titl']; ?>";
var scMsgDefButton = "Ok";
var scMsgDefClick = "close";
var scMsgDefScInit = "<?php echo $this->Ini->page; ?>";
</script>
<table id="main_table_form"  align="center" cellpadding="<?php echo $int_iframe_padding; ?>" cellspacing=0 class="scFormBorder" >
<?php
  if (!$this->Embutida_call && (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['mostra_cab']) || $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['mostra_cab'] != "N"))
  {
?>
<tr><td>
<style>
#lin1_col1 { padding-left:9px; padding-top:7px;  height:27px; overflow:hidden; text-align:left;}			 
#lin1_col2 { padding-right:9px; padding-top:7px; height:27px; text-align:right; overflow:hidden;   font-size:12px; font-weight:normal;}
</style>

<div style="width: 100%">
 <div class="scFormHeader" style="height:11px; display: block; border-width:0px; "></div>
 <div style="height:37px; border-width:0px 0px 1px 0px;  border-style: dashed; border-color:#ddd; display: block">
 	<table style="width:100%; border-collapse:collapse; padding:0;">
    	<tr>
        	<td id="lin1_col1" class="scFormHeaderFont"><span><?php if ($this->nmgp_opcao == "novo") { echo "" . $this->Ini->Nm_lang['lang_othr_frmi_titl'] . " - sample"; } else { echo "" . $this->Ini->Nm_lang['lang_othr_frmu_titl'] . " - sample"; } ?></span></td>
            <td id="lin1_col2" class="scFormHeaderFont"><span><?php echo date($this->dateDefaultFormat()); ?></span></td>
        </tr>
    </table>		 
 </div>
</div>
</td></tr>
<?php
  }
?>
<tr><td>
<?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]['sample_sample_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "R")
{
?>
    <table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormToolbar" 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
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "R")
{
    $NM_btn = false;
      if ($this->nmgp_botoes['qsearch'] == "on" && $opcao_botoes != "novo")
      {
          $OPC_cmp = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['fast_search'][0] : "";
          $OPC_arg = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['fast_search'][1] : "";
          $OPC_dat = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['fast_search'][2] : "";
?> 
           <script type="text/javascript">var change_fast_t = "";</script>
          <input type="hidden" name="nmgp_fast_search_t" value="SC_all_Cmp">
          <input type="hidden" name="nmgp_cond_fast_search_t" value="qp">
          <script type="text/javascript">var scQSInitVal = "<?php echo $OPC_dat ?>";</script>
          <span id="quicksearchph_t">
           <input type="text" id="SC_fast_search_t" class="scFormToolbarInput" style="vertical-align: middle" name="nmgp_arg_fast_search_t" value="<?php echo NM_encode_input($OPC_dat) ?>" size="10" onChange="change_fast_t = 'CH';" alt="{watermark:'<?php echo $this->Ini->Nm_lang['lang_othr_qk_watermark'] ?>', watermarkClass: 'scFormToolbarInputWm', maxLength: 255}">
           <img style="position: absolute; display: none; height: 16px; width: 16px" id="SC_fast_search_close_t" src="<?php echo $this->Ini->path_botoes ?>/<?php echo $this->Ini->Img_qs_clean; ?>" onclick="document.getElementById('SC_fast_search_t').value = ''; nm_move('fast_search', 't');">
           <img style="position: absolute; display: none; height: 16px; width: 16px" id="SC_fast_search_submit_t" src="<?php echo $this->Ini->path_botoes ?>/<?php echo $this->Ini->Img_qs_search; ?>" onclick="scQuickSearchSubmit_t();">
          </span>
<?php 
      }
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['new'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bnovo", "nm_move ('novo'); return false;", "nm_move ('novo'); return false;", "sc_b_new_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!$this->Embutida_call || $this->sc_evento == "novo" || $this->sc_evento == "insert" || $this->sc_evento == "incluir")) {
        $sCondStyle = ($this->nmgp_botoes['insert'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bincluir", "nm_atualiza ('incluir'); return false;", "nm_atualiza ('incluir'); return false;", "sc_b_ins_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!$this->Embutida_call || $this->sc_evento == "novo" || $this->sc_evento == "insert" || $this->sc_evento == "incluir")) {
        $sCondStyle = ($this->nmgp_botoes['insert'] == "on") && ($this->nm_flag_saida_novo != "S" || $this->nmgp_botoes['exit'] != "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bcancelar", "document.F5.submit();return false;", "document.F5.submit();return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['update'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "balterar", "nm_atualiza ('alterar'); return false;", "nm_atualiza ('alterar'); return false;", "sc_b_upd_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['delete'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bexcluir", "nm_atualiza ('excluir'); return false;", "nm_atualiza ('excluir'); return false;", "sc_b_del_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ('' != $this->url_webhelp) {
        $sCondStyle = '';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bhelp", "window.open('" . $this->url_webhelp. "', '', 'resizable, scrollbars'); ", "window.open('" . $this->url_webhelp. "', '', 'resizable, scrollbars'); ", "", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (isset($_SESSION['scriptcase']['nm_sc_retorno']) && !empty($_SESSION['scriptcase']['nm_sc_retorno']) && ($nm_apl_dependente != 1 || $this->nm_Start_new) && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "R") && (!$this->Embutida_call)) {
        $sCondStyle = (($this->nm_flag_saida_novo == "S" || ($this->nm_Start_new && !$this->aba_iframe)) && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] == "R") && (!$this->Embutida_call)) {
        $sCondStyle = ($this->nm_flag_saida_novo == "S" && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!$this->Embutida_call)) {
        $sCondStyle = (isset($_SESSION['scriptcase']['nm_sc_retorno']) && !empty($_SESSION['scriptcase']['nm_sc_retorno']) && $nm_apl_dependente != 1 && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "R" && (!$this->aba_iframe || $this->is_calendar_app) && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bsair", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!$this->Embutida_call)) {
        $sCondStyle = (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "F" && $this->nmgp_botoes['exit'] == "on") && ($nm_apl_dependente == 1 && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!$this->Embutida_call)) {
        $sCondStyle = (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "F" && $this->nmgp_botoes['exit'] == "on") && ($nm_apl_dependente != 1 || $this->nmgp_botoes['exit'] != "on") && (!$this->aba_iframe && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bsair", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?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]['sample_sample_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['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
  if ($this->nmgp_form_empty)
  {
       echo "</td></tr><tr><td align=center>";
       echo "<font face=\"" . $this->Ini->pag_fonte_tipo . "\" color=\"" . $this->Ini->cor_txt_grid . "\" size=\"2\"><b>" . $this->Ini->Nm_lang['lang_errm_empt'] . "</b></font>";
       echo "</td></tr>";
  }
  else
  {
?>
<?php $sc_hidden_no = 1; $sc_hidden_yes = 0; ?>
   <a name="bloco_0"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_0"><!-- bloco_c -->
<?php
?>
<TABLE align="center" id="hidden_bloco_0" class="scFormTable" 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['p_o_number']))
    {
        $this->nm_new_label['p_o_number'] = "P O NUMBER";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $p_o_number = $this->p_o_number;
   $sStyleHidden_p_o_number = '';
   if (isset($this->nmgp_cmp_hidden['p_o_number']) && $this->nmgp_cmp_hidden['p_o_number'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['p_o_number']);
       $sStyleHidden_p_o_number = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_p_o_number = 'display: none;';
   $sStyleReadInp_p_o_number = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['p_o_number']) && $this->nmgp_cmp_readonly['p_o_number'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['p_o_number']);
       $sStyleReadLab_p_o_number = '';
       $sStyleReadInp_p_o_number = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['p_o_number']) && $this->nmgp_cmp_hidden['p_o_number'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="p_o_number" value="<?php echo NM_encode_input($p_o_number) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_p_o_number" style="<?php echo $sStyleHidden_p_o_number; ?>;"><span id="id_label_p_o_number"><?php echo $this->nm_new_label['p_o_number']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_p_o_number" style="<?php echo $sStyleHidden_p_o_number; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["p_o_number"]) &&  $this->nmgp_cmp_readonly["p_o_number"] == "on") { 

 ?>
<input type=hidden name="p_o_number" value="<?php echo NM_encode_input($p_o_number) . "\">" . $p_o_number . ""; ?>
<?php } else { ?>
<span id="id_read_on_p_o_number" class="sc-ui-readonly-p_o_number" style=";<?php echo $sStyleReadLab_p_o_number; ?>"><?php echo NM_encode_input($this->p_o_number); ?></span><span id="id_read_off_p_o_number" style="white-space: nowrap;<?php echo $sStyleReadInp_p_o_number; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_p_o_number" type=text name="p_o_number" value="<?php echo NM_encode_input($p_o_number) ?>"
 size=5 maxlength=5 alt="{datatype: 'text', maxLength: 5, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_p_o_number_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_p_o_number_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['dye_lot']))
    {
        $this->nm_new_label['dye_lot'] = "DYE LOT";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $dye_lot = $this->dye_lot;
   $sStyleHidden_dye_lot = '';
   if (isset($this->nmgp_cmp_hidden['dye_lot']) && $this->nmgp_cmp_hidden['dye_lot'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['dye_lot']);
       $sStyleHidden_dye_lot = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_dye_lot = 'display: none;';
   $sStyleReadInp_dye_lot = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['dye_lot']) && $this->nmgp_cmp_readonly['dye_lot'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['dye_lot']);
       $sStyleReadLab_dye_lot = '';
       $sStyleReadInp_dye_lot = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['dye_lot']) && $this->nmgp_cmp_hidden['dye_lot'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="dye_lot" value="<?php echo NM_encode_input($dye_lot) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_dye_lot" style="<?php echo $sStyleHidden_dye_lot; ?>;"><span id="id_label_dye_lot"><?php echo $this->nm_new_label['dye_lot']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_dye_lot" style="<?php echo $sStyleHidden_dye_lot; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["dye_lot"]) &&  $this->nmgp_cmp_readonly["dye_lot"] == "on") { 

 ?>
<input type=hidden name="dye_lot" value="<?php echo NM_encode_input($dye_lot) . "\">" . $dye_lot . ""; ?>
<?php } else { ?>
<span id="id_read_on_dye_lot" class="sc-ui-readonly-dye_lot" style=";<?php echo $sStyleReadLab_dye_lot; ?>"><?php echo NM_encode_input($this->dye_lot); ?></span><span id="id_read_off_dye_lot" style="white-space: nowrap;<?php echo $sStyleReadInp_dye_lot; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_dye_lot" type=text name="dye_lot" value="<?php echo NM_encode_input($dye_lot) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_dye_lot_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_dye_lot_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['style']))
    {
        $this->nm_new_label['style'] = "STYLE";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $style = $this->style;
   $sStyleHidden_style = '';
   if (isset($this->nmgp_cmp_hidden['style']) && $this->nmgp_cmp_hidden['style'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['style']);
       $sStyleHidden_style = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_style = 'display: none;';
   $sStyleReadInp_style = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['style']) && $this->nmgp_cmp_readonly['style'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['style']);
       $sStyleReadLab_style = '';
       $sStyleReadInp_style = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['style']) && $this->nmgp_cmp_hidden['style'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="style" value="<?php echo NM_encode_input($style) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_style" style="<?php echo $sStyleHidden_style; ?>;"><span id="id_label_style"><?php echo $this->nm_new_label['style']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_style" style="<?php echo $sStyleHidden_style; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["style"]) &&  $this->nmgp_cmp_readonly["style"] == "on") { 

 ?>
<input type=hidden name="style" value="<?php echo NM_encode_input($style) . "\">" . $style . ""; ?>
<?php } else { ?>
<span id="id_read_on_style" class="sc-ui-readonly-style" style=";<?php echo $sStyleReadLab_style; ?>"><?php echo NM_encode_input($this->style); ?></span><span id="id_read_off_style" style="white-space: nowrap;<?php echo $sStyleReadInp_style; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_style" type=text name="style" value="<?php echo NM_encode_input($style) ?>"
 size=11 maxlength=11 alt="{datatype: 'text', maxLength: 11, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_style_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_style_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['fiber']))
    {
        $this->nm_new_label['fiber'] = "FIBER";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $fiber = $this->fiber;
   $sStyleHidden_fiber = '';
   if (isset($this->nmgp_cmp_hidden['fiber']) && $this->nmgp_cmp_hidden['fiber'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['fiber']);
       $sStyleHidden_fiber = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_fiber = 'display: none;';
   $sStyleReadInp_fiber = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['fiber']) && $this->nmgp_cmp_readonly['fiber'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['fiber']);
       $sStyleReadLab_fiber = '';
       $sStyleReadInp_fiber = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['fiber']) && $this->nmgp_cmp_hidden['fiber'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="fiber" value="<?php echo NM_encode_input($fiber) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_fiber" style="<?php echo $sStyleHidden_fiber; ?>;"><span id="id_label_fiber"><?php echo $this->nm_new_label['fiber']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_fiber" style="<?php echo $sStyleHidden_fiber; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["fiber"]) &&  $this->nmgp_cmp_readonly["fiber"] == "on") { 

 ?>
<input type=hidden name="fiber" value="<?php echo NM_encode_input($fiber) . "\">" . $fiber . ""; ?>
<?php } else { ?>
<span id="id_read_on_fiber" class="sc-ui-readonly-fiber" style=";<?php echo $sStyleReadLab_fiber; ?>"><?php echo NM_encode_input($this->fiber); ?></span><span id="id_read_off_fiber" style="white-space: nowrap;<?php echo $sStyleReadInp_fiber; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_fiber" type=text name="fiber" value="<?php echo NM_encode_input($fiber) ?>"
 size=10 maxlength=10 alt="{datatype: 'text', maxLength: 10, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_fiber_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_fiber_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['color']))
    {
        $this->nm_new_label['color'] = "COLOR";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $color = $this->color;
   $sStyleHidden_color = '';
   if (isset($this->nmgp_cmp_hidden['color']) && $this->nmgp_cmp_hidden['color'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['color']);
       $sStyleHidden_color = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_color = 'display: none;';
   $sStyleReadInp_color = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['color']) && $this->nmgp_cmp_readonly['color'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['color']);
       $sStyleReadLab_color = '';
       $sStyleReadInp_color = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['color']) && $this->nmgp_cmp_hidden['color'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="color" value="<?php echo NM_encode_input($color) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_color" style="<?php echo $sStyleHidden_color; ?>;"><span id="id_label_color"><?php echo $this->nm_new_label['color']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_color" style="<?php echo $sStyleHidden_color; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["color"]) &&  $this->nmgp_cmp_readonly["color"] == "on") { 

 ?>
<input type=hidden name="color" value="<?php echo NM_encode_input($color) . "\">" . $color . ""; ?>
<?php } else { ?>
<span id="id_read_on_color" class="sc-ui-readonly-color" style=";<?php echo $sStyleReadLab_color; ?>"><?php echo NM_encode_input($this->color); ?></span><span id="id_read_off_color" style="white-space: nowrap;<?php echo $sStyleReadInp_color; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_color" type=text name="color" value="<?php echo NM_encode_input($color) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_color_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_color_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['color_no']))
    {
        $this->nm_new_label['color_no'] = "COLOR NO";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $color_no = $this->color_no;
   $sStyleHidden_color_no = '';
   if (isset($this->nmgp_cmp_hidden['color_no']) && $this->nmgp_cmp_hidden['color_no'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['color_no']);
       $sStyleHidden_color_no = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_color_no = 'display: none;';
   $sStyleReadInp_color_no = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['color_no']) && $this->nmgp_cmp_readonly['color_no'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['color_no']);
       $sStyleReadLab_color_no = '';
       $sStyleReadInp_color_no = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['color_no']) && $this->nmgp_cmp_hidden['color_no'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="color_no" value="<?php echo NM_encode_input($color_no) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_color_no" style="<?php echo $sStyleHidden_color_no; ?>;"><span id="id_label_color_no"><?php echo $this->nm_new_label['color_no']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_color_no" style="<?php echo $sStyleHidden_color_no; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["color_no"]) &&  $this->nmgp_cmp_readonly["color_no"] == "on") { 

 ?>
<input type=hidden name="color_no" value="<?php echo NM_encode_input($color_no) . "\">" . $color_no . ""; ?>
<?php } else { ?>
<span id="id_read_on_color_no" class="sc-ui-readonly-color_no" style=";<?php echo $sStyleReadLab_color_no; ?>"><?php echo NM_encode_input($this->color_no); ?></span><span id="id_read_off_color_no" style="white-space: nowrap;<?php echo $sStyleReadInp_color_no; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_color_no" type=text name="color_no" value="<?php echo NM_encode_input($color_no) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_color_no_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_color_no_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['finish']))
    {
        $this->nm_new_label['finish'] = "FINISH";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $finish = $this->finish;
   $sStyleHidden_finish = '';
   if (isset($this->nmgp_cmp_hidden['finish']) && $this->nmgp_cmp_hidden['finish'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['finish']);
       $sStyleHidden_finish = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_finish = 'display: none;';
   $sStyleReadInp_finish = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['finish']) && $this->nmgp_cmp_readonly['finish'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['finish']);
       $sStyleReadLab_finish = '';
       $sStyleReadInp_finish = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['finish']) && $this->nmgp_cmp_hidden['finish'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="finish" value="<?php echo NM_encode_input($finish) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_finish" style="<?php echo $sStyleHidden_finish; ?>;"><span id="id_label_finish"><?php echo $this->nm_new_label['finish']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_finish" style="<?php echo $sStyleHidden_finish; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["finish"]) &&  $this->nmgp_cmp_readonly["finish"] == "on") { 

 ?>
<input type=hidden name="finish" value="<?php echo NM_encode_input($finish) . "\">" . $finish . ""; ?>
<?php } else { ?>
<span id="id_read_on_finish" class="sc-ui-readonly-finish" style=";<?php echo $sStyleReadLab_finish; ?>"><?php echo NM_encode_input($this->finish); ?></span><span id="id_read_off_finish" style="white-space: nowrap;<?php echo $sStyleReadInp_finish; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_finish" type=text name="finish" value="<?php echo NM_encode_input($finish) ?>"
 size=5 maxlength=5 alt="{datatype: 'text', maxLength: 5, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_finish_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_finish_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['finish_no']))
    {
        $this->nm_new_label['finish_no'] = "FINISH NO";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $finish_no = $this->finish_no;
   $sStyleHidden_finish_no = '';
   if (isset($this->nmgp_cmp_hidden['finish_no']) && $this->nmgp_cmp_hidden['finish_no'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['finish_no']);
       $sStyleHidden_finish_no = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_finish_no = 'display: none;';
   $sStyleReadInp_finish_no = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['finish_no']) && $this->nmgp_cmp_readonly['finish_no'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['finish_no']);
       $sStyleReadLab_finish_no = '';
       $sStyleReadInp_finish_no = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['finish_no']) && $this->nmgp_cmp_hidden['finish_no'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="finish_no" value="<?php echo NM_encode_input($finish_no) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_finish_no" style="<?php echo $sStyleHidden_finish_no; ?>;"><span id="id_label_finish_no"><?php echo $this->nm_new_label['finish_no']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_finish_no" style="<?php echo $sStyleHidden_finish_no; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["finish_no"]) &&  $this->nmgp_cmp_readonly["finish_no"] == "on") { 

 ?>
<input type=hidden name="finish_no" value="<?php echo NM_encode_input($finish_no) . "\">" . $finish_no . ""; ?>
<?php } else { ?>
<span id="id_read_on_finish_no" class="sc-ui-readonly-finish_no" style=";<?php echo $sStyleReadLab_finish_no; ?>"><?php echo NM_encode_input($this->finish_no); ?></span><span id="id_read_off_finish_no" style="white-space: nowrap;<?php echo $sStyleReadInp_finish_no; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_finish_no" type=text name="finish_no" value="<?php echo NM_encode_input($finish_no) ?>"
 size=5 maxlength=5 alt="{datatype: 'text', maxLength: 5, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_finish_no_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_finish_no_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['cpi']))
    {
        $this->nm_new_label['cpi'] = "CPI";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $cpi = $this->cpi;
   $sStyleHidden_cpi = '';
   if (isset($this->nmgp_cmp_hidden['cpi']) && $this->nmgp_cmp_hidden['cpi'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cpi']);
       $sStyleHidden_cpi = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cpi = 'display: none;';
   $sStyleReadInp_cpi = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['cpi']) && $this->nmgp_cmp_readonly['cpi'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cpi']);
       $sStyleReadLab_cpi = '';
       $sStyleReadInp_cpi = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cpi']) && $this->nmgp_cmp_hidden['cpi'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cpi" value="<?php echo NM_encode_input($cpi) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cpi" style="<?php echo $sStyleHidden_cpi; ?>;"><span id="id_label_cpi"><?php echo $this->nm_new_label['cpi']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cpi" style="<?php echo $sStyleHidden_cpi; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["cpi"]) &&  $this->nmgp_cmp_readonly["cpi"] == "on") { 

 ?>
<input type=hidden name="cpi" value="<?php echo NM_encode_input($cpi) . "\">" . $cpi . ""; ?>
<?php } else { ?>
<span id="id_read_on_cpi" class="sc-ui-readonly-cpi" style=";<?php echo $sStyleReadLab_cpi; ?>"><?php echo NM_encode_input($this->cpi); ?></span><span id="id_read_off_cpi" style="white-space: nowrap;<?php echo $sStyleReadInp_cpi; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_cpi" type=text name="cpi" value="<?php echo NM_encode_input($cpi) ?>"
 size=5 maxlength=5 alt="{datatype: 'text', maxLength: 5, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_cpi_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cpi_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['wpi']))
    {
        $this->nm_new_label['wpi'] = "WPI";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $wpi = $this->wpi;
   $sStyleHidden_wpi = '';
   if (isset($this->nmgp_cmp_hidden['wpi']) && $this->nmgp_cmp_hidden['wpi'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['wpi']);
       $sStyleHidden_wpi = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_wpi = 'display: none;';
   $sStyleReadInp_wpi = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['wpi']) && $this->nmgp_cmp_readonly['wpi'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['wpi']);
       $sStyleReadLab_wpi = '';
       $sStyleReadInp_wpi = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['wpi']) && $this->nmgp_cmp_hidden['wpi'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="wpi" value="<?php echo NM_encode_input($wpi) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_wpi" style="<?php echo $sStyleHidden_wpi; ?>;"><span id="id_label_wpi"><?php echo $this->nm_new_label['wpi']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_wpi" style="<?php echo $sStyleHidden_wpi; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["wpi"]) &&  $this->nmgp_cmp_readonly["wpi"] == "on") { 

 ?>
<input type=hidden name="wpi" value="<?php echo NM_encode_input($wpi) . "\">" . $wpi . ""; ?>
<?php } else { ?>
<span id="id_read_on_wpi" class="sc-ui-readonly-wpi" style=";<?php echo $sStyleReadLab_wpi; ?>"><?php echo NM_encode_input($this->wpi); ?></span><span id="id_read_off_wpi" style="white-space: nowrap;<?php echo $sStyleReadInp_wpi; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_wpi" type=text name="wpi" value="<?php echo NM_encode_input($wpi) ?>"
 size=5 maxlength=5 alt="{datatype: 'text', maxLength: 5, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_wpi_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_wpi_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['yards_recd']))
    {
        $this->nm_new_label['yards_recd'] = "YARDS RECD";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $yards_recd = $this->yards_recd;
   $sStyleHidden_yards_recd = '';
   if (isset($this->nmgp_cmp_hidden['yards_recd']) && $this->nmgp_cmp_hidden['yards_recd'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['yards_recd']);
       $sStyleHidden_yards_recd = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_yards_recd = 'display: none;';
   $sStyleReadInp_yards_recd = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['yards_recd']) && $this->nmgp_cmp_readonly['yards_recd'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['yards_recd']);
       $sStyleReadLab_yards_recd = '';
       $sStyleReadInp_yards_recd = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['yards_recd']) && $this->nmgp_cmp_hidden['yards_recd'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="yards_recd" value="<?php echo NM_encode_input($yards_recd) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_yards_recd" style="<?php echo $sStyleHidden_yards_recd; ?>;"><span id="id_label_yards_recd"><?php echo $this->nm_new_label['yards_recd']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_yards_recd" style="<?php echo $sStyleHidden_yards_recd; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["yards_recd"]) &&  $this->nmgp_cmp_readonly["yards_recd"] == "on") { 

 ?>
<input type=hidden name="yards_recd" value="<?php echo NM_encode_input($yards_recd) . "\">" . $yards_recd . ""; ?>
<?php } else { ?>
<span id="id_read_on_yards_recd" class="sc-ui-readonly-yards_recd" style=";<?php echo $sStyleReadLab_yards_recd; ?>"><?php echo NM_encode_input($this->yards_recd); ?></span><span id="id_read_off_yards_recd" style="white-space: nowrap;<?php echo $sStyleReadInp_yards_recd; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_yards_recd" type=text name="yards_recd" value="<?php echo NM_encode_input($yards_recd) ?>"
 size=13 alt="{datatype: 'decimal', maxLength: 13, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['yards_recd']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['yards_recd']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['yards_recd']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_yards_recd_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_yards_recd_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['fin_lbs']))
    {
        $this->nm_new_label['fin_lbs'] = "FIN LBS";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $fin_lbs = $this->fin_lbs;
   $sStyleHidden_fin_lbs = '';
   if (isset($this->nmgp_cmp_hidden['fin_lbs']) && $this->nmgp_cmp_hidden['fin_lbs'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['fin_lbs']);
       $sStyleHidden_fin_lbs = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_fin_lbs = 'display: none;';
   $sStyleReadInp_fin_lbs = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['fin_lbs']) && $this->nmgp_cmp_readonly['fin_lbs'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['fin_lbs']);
       $sStyleReadLab_fin_lbs = '';
       $sStyleReadInp_fin_lbs = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['fin_lbs']) && $this->nmgp_cmp_hidden['fin_lbs'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="fin_lbs" value="<?php echo NM_encode_input($fin_lbs) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_fin_lbs" style="<?php echo $sStyleHidden_fin_lbs; ?>;"><span id="id_label_fin_lbs"><?php echo $this->nm_new_label['fin_lbs']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_fin_lbs" style="<?php echo $sStyleHidden_fin_lbs; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["fin_lbs"]) &&  $this->nmgp_cmp_readonly["fin_lbs"] == "on") { 

 ?>
<input type=hidden name="fin_lbs" value="<?php echo NM_encode_input($fin_lbs) . "\">" . $fin_lbs . ""; ?>
<?php } else { ?>
<span id="id_read_on_fin_lbs" class="sc-ui-readonly-fin_lbs" style=";<?php echo $sStyleReadLab_fin_lbs; ?>"><?php echo NM_encode_input($this->fin_lbs); ?></span><span id="id_read_off_fin_lbs" style="white-space: nowrap;<?php echo $sStyleReadInp_fin_lbs; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_fin_lbs" type=text name="fin_lbs" value="<?php echo NM_encode_input($fin_lbs) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['fin_lbs']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['fin_lbs']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['fin_lbs']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_fin_lbs_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_fin_lbs_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['linfin']))
    {
        $this->nm_new_label['linfin'] = "LINFIN";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $linfin = $this->linfin;
   $sStyleHidden_linfin = '';
   if (isset($this->nmgp_cmp_hidden['linfin']) && $this->nmgp_cmp_hidden['linfin'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['linfin']);
       $sStyleHidden_linfin = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_linfin = 'display: none;';
   $sStyleReadInp_linfin = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['linfin']) && $this->nmgp_cmp_readonly['linfin'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['linfin']);
       $sStyleReadLab_linfin = '';
       $sStyleReadInp_linfin = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['linfin']) && $this->nmgp_cmp_hidden['linfin'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="linfin" value="<?php echo NM_encode_input($linfin) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_linfin" style="<?php echo $sStyleHidden_linfin; ?>;"><span id="id_label_linfin"><?php echo $this->nm_new_label['linfin']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_linfin" style="<?php echo $sStyleHidden_linfin; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["linfin"]) &&  $this->nmgp_cmp_readonly["linfin"] == "on") { 

 ?>
<input type=hidden name="linfin" value="<?php echo NM_encode_input($linfin) . "\">" . $linfin . ""; ?>
<?php } else { ?>
<span id="id_read_on_linfin" class="sc-ui-readonly-linfin" style=";<?php echo $sStyleReadLab_linfin; ?>"><?php echo NM_encode_input($this->linfin); ?></span><span id="id_read_off_linfin" style="white-space: nowrap;<?php echo $sStyleReadInp_linfin; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_linfin" type=text name="linfin" value="<?php echo NM_encode_input($linfin) ?>"
 size=7 alt="{datatype: 'decimal', maxLength: 7, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['linfin']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['linfin']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['linfin']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_linfin_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_linfin_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['width']))
    {
        $this->nm_new_label['width'] = "WIDTH";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $width = $this->width;
   $sStyleHidden_width = '';
   if (isset($this->nmgp_cmp_hidden['width']) && $this->nmgp_cmp_hidden['width'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['width']);
       $sStyleHidden_width = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_width = 'display: none;';
   $sStyleReadInp_width = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['width']) && $this->nmgp_cmp_readonly['width'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['width']);
       $sStyleReadLab_width = '';
       $sStyleReadInp_width = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['width']) && $this->nmgp_cmp_hidden['width'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="width" value="<?php echo NM_encode_input($width) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_width" style="<?php echo $sStyleHidden_width; ?>;"><span id="id_label_width"><?php echo $this->nm_new_label['width']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_width" style="<?php echo $sStyleHidden_width; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["width"]) &&  $this->nmgp_cmp_readonly["width"] == "on") { 

 ?>
<input type=hidden name="width" value="<?php echo NM_encode_input($width) . "\">" . $width . ""; ?>
<?php } else { ?>
<span id="id_read_on_width" class="sc-ui-readonly-width" style=";<?php echo $sStyleReadLab_width; ?>"><?php echo NM_encode_input($this->width); ?></span><span id="id_read_off_width" style="white-space: nowrap;<?php echo $sStyleReadInp_width; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_width" type=text name="width" value="<?php echo NM_encode_input($width) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_width_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_width_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['desc']))
    {
        $this->nm_new_label['desc'] = "DESC";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $desc = $this->desc;
   $sStyleHidden_desc = '';
   if (isset($this->nmgp_cmp_hidden['desc']) && $this->nmgp_cmp_hidden['desc'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['desc']);
       $sStyleHidden_desc = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_desc = 'display: none;';
   $sStyleReadInp_desc = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['desc']) && $this->nmgp_cmp_readonly['desc'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['desc']);
       $sStyleReadLab_desc = '';
       $sStyleReadInp_desc = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['desc']) && $this->nmgp_cmp_hidden['desc'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="desc" value="<?php echo NM_encode_input($desc) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_desc" style="<?php echo $sStyleHidden_desc; ?>;"><span id="id_label_desc"><?php echo $this->nm_new_label['desc']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_desc" style="<?php echo $sStyleHidden_desc; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["desc"]) &&  $this->nmgp_cmp_readonly["desc"] == "on") { 

 ?>
<input type=hidden name="desc" value="<?php echo NM_encode_input($desc) . "\">" . $desc . ""; ?>
<?php } else { ?>
<span id="id_read_on_desc" class="sc-ui-readonly-desc" style=";<?php echo $sStyleReadLab_desc; ?>"><?php echo NM_encode_input($this->desc); ?></span><span id="id_read_off_desc" style="white-space: nowrap;<?php echo $sStyleReadInp_desc; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_desc" type=text name="desc" value="<?php echo NM_encode_input($desc) ?>"
 size=25 maxlength=25 alt="{datatype: 'text', maxLength: 25, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_desc_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_desc_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['ydsin']))
    {
        $this->nm_new_label['ydsin'] = "YDSIN";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $ydsin = $this->ydsin;
   $sStyleHidden_ydsin = '';
   if (isset($this->nmgp_cmp_hidden['ydsin']) && $this->nmgp_cmp_hidden['ydsin'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['ydsin']);
       $sStyleHidden_ydsin = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_ydsin = 'display: none;';
   $sStyleReadInp_ydsin = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['ydsin']) && $this->nmgp_cmp_readonly['ydsin'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['ydsin']);
       $sStyleReadLab_ydsin = '';
       $sStyleReadInp_ydsin = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['ydsin']) && $this->nmgp_cmp_hidden['ydsin'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="ydsin" value="<?php echo NM_encode_input($ydsin) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_ydsin" style="<?php echo $sStyleHidden_ydsin; ?>;"><span id="id_label_ydsin"><?php echo $this->nm_new_label['ydsin']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_ydsin" style="<?php echo $sStyleHidden_ydsin; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["ydsin"]) &&  $this->nmgp_cmp_readonly["ydsin"] == "on") { 

 ?>
<input type=hidden name="ydsin" value="<?php echo NM_encode_input($ydsin) . "\">" . $ydsin . ""; ?>
<?php } else { ?>
<span id="id_read_on_ydsin" class="sc-ui-readonly-ydsin" style=";<?php echo $sStyleReadLab_ydsin; ?>"><?php echo NM_encode_input($this->ydsin); ?></span><span id="id_read_off_ydsin" style="white-space: nowrap;<?php echo $sStyleReadInp_ydsin; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_ydsin" type=text name="ydsin" value="<?php echo NM_encode_input($ydsin) ?>"
 size=6 alt="{datatype: 'integer', maxLength: 6, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['ydsin']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['ydsin']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_ydsin_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ydsin_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['ydsout']))
    {
        $this->nm_new_label['ydsout'] = "YDSOUT";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $ydsout = $this->ydsout;
   $sStyleHidden_ydsout = '';
   if (isset($this->nmgp_cmp_hidden['ydsout']) && $this->nmgp_cmp_hidden['ydsout'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['ydsout']);
       $sStyleHidden_ydsout = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_ydsout = 'display: none;';
   $sStyleReadInp_ydsout = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['ydsout']) && $this->nmgp_cmp_readonly['ydsout'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['ydsout']);
       $sStyleReadLab_ydsout = '';
       $sStyleReadInp_ydsout = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['ydsout']) && $this->nmgp_cmp_hidden['ydsout'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="ydsout" value="<?php echo NM_encode_input($ydsout) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_ydsout" style="<?php echo $sStyleHidden_ydsout; ?>;"><span id="id_label_ydsout"><?php echo $this->nm_new_label['ydsout']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_ydsout" style="<?php echo $sStyleHidden_ydsout; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["ydsout"]) &&  $this->nmgp_cmp_readonly["ydsout"] == "on") { 

 ?>
<input type=hidden name="ydsout" value="<?php echo NM_encode_input($ydsout) . "\">" . $ydsout . ""; ?>
<?php } else { ?>
<span id="id_read_on_ydsout" class="sc-ui-readonly-ydsout" style=";<?php echo $sStyleReadLab_ydsout; ?>"><?php echo NM_encode_input($this->ydsout); ?></span><span id="id_read_off_ydsout" style="white-space: nowrap;<?php echo $sStyleReadInp_ydsout; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_ydsout" type=text name="ydsout" value="<?php echo NM_encode_input($ydsout) ?>"
 size=6 alt="{datatype: 'integer', maxLength: 6, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['ydsout']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['ydsout']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_ydsout_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ydsout_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['yds']))
    {
        $this->nm_new_label['yds'] = "YDS";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $yds = $this->yds;
   $sStyleHidden_yds = '';
   if (isset($this->nmgp_cmp_hidden['yds']) && $this->nmgp_cmp_hidden['yds'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['yds']);
       $sStyleHidden_yds = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_yds = 'display: none;';
   $sStyleReadInp_yds = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['yds']) && $this->nmgp_cmp_readonly['yds'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['yds']);
       $sStyleReadLab_yds = '';
       $sStyleReadInp_yds = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['yds']) && $this->nmgp_cmp_hidden['yds'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="yds" value="<?php echo NM_encode_input($yds) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_yds" style="<?php echo $sStyleHidden_yds; ?>;"><span id="id_label_yds"><?php echo $this->nm_new_label['yds']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_yds" style="<?php echo $sStyleHidden_yds; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["yds"]) &&  $this->nmgp_cmp_readonly["yds"] == "on") { 

 ?>
<input type=hidden name="yds" value="<?php echo NM_encode_input($yds) . "\">" . $yds . ""; ?>
<?php } else { ?>
<span id="id_read_on_yds" class="sc-ui-readonly-yds" style=";<?php echo $sStyleReadLab_yds; ?>"><?php echo NM_encode_input($this->yds); ?></span><span id="id_read_off_yds" style="white-space: nowrap;<?php echo $sStyleReadInp_yds; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_yds" type=text name="yds" value="<?php echo NM_encode_input($yds) ?>"
 size=6 alt="{datatype: 'integer', maxLength: 6, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['yds']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['yds']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_yds_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_yds_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['location']))
    {
        $this->nm_new_label['location'] = "LOCATION";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $location = $this->location;
   $sStyleHidden_location = '';
   if (isset($this->nmgp_cmp_hidden['location']) && $this->nmgp_cmp_hidden['location'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['location']);
       $sStyleHidden_location = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_location = 'display: none;';
   $sStyleReadInp_location = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['location']) && $this->nmgp_cmp_readonly['location'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['location']);
       $sStyleReadLab_location = '';
       $sStyleReadInp_location = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['location']) && $this->nmgp_cmp_hidden['location'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="location" value="<?php echo NM_encode_input($location) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_location" style="<?php echo $sStyleHidden_location; ?>;"><span id="id_label_location"><?php echo $this->nm_new_label['location']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_location" style="<?php echo $sStyleHidden_location; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["location"]) &&  $this->nmgp_cmp_readonly["location"] == "on") { 

 ?>
<input type=hidden name="location" value="<?php echo NM_encode_input($location) . "\">" . $location . ""; ?>
<?php } else { ?>
<span id="id_read_on_location" class="sc-ui-readonly-location" style=";<?php echo $sStyleReadLab_location; ?>"><?php echo NM_encode_input($this->location); ?></span><span id="id_read_off_location" style="white-space: nowrap;<?php echo $sStyleReadInp_location; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_location" type=text name="location" value="<?php echo NM_encode_input($location) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_location_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_location_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['bin']))
    {
        $this->nm_new_label['bin'] = "BIN";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $bin = $this->bin;
   $sStyleHidden_bin = '';
   if (isset($this->nmgp_cmp_hidden['bin']) && $this->nmgp_cmp_hidden['bin'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['bin']);
       $sStyleHidden_bin = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_bin = 'display: none;';
   $sStyleReadInp_bin = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['bin']) && $this->nmgp_cmp_readonly['bin'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['bin']);
       $sStyleReadLab_bin = '';
       $sStyleReadInp_bin = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['bin']) && $this->nmgp_cmp_hidden['bin'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="bin" value="<?php echo NM_encode_input($bin) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_bin" style="<?php echo $sStyleHidden_bin; ?>;"><span id="id_label_bin"><?php echo $this->nm_new_label['bin']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_bin" style="<?php echo $sStyleHidden_bin; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["bin"]) &&  $this->nmgp_cmp_readonly["bin"] == "on") { 

 ?>
<input type=hidden name="bin" value="<?php echo NM_encode_input($bin) . "\">" . $bin . ""; ?>
<?php } else { ?>
<span id="id_read_on_bin" class="sc-ui-readonly-bin" style=";<?php echo $sStyleReadLab_bin; ?>"><?php echo NM_encode_input($this->bin); ?></span><span id="id_read_off_bin" style="white-space: nowrap;<?php echo $sStyleReadInp_bin; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_bin" type=text name="bin" value="<?php echo NM_encode_input($bin) ?>"
 size=5 maxlength=5 alt="{datatype: 'text', maxLength: 5, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_bin_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_bin_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['rec']))
    {
        $this->nm_new_label['rec'] = "REC";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $rec = $this->rec;
   $sStyleHidden_rec = '';
   if (isset($this->nmgp_cmp_hidden['rec']) && $this->nmgp_cmp_hidden['rec'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['rec']);
       $sStyleHidden_rec = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_rec = 'display: none;';
   $sStyleReadInp_rec = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['rec']) && $this->nmgp_cmp_readonly['rec'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['rec']);
       $sStyleReadLab_rec = '';
       $sStyleReadInp_rec = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['rec']) && $this->nmgp_cmp_hidden['rec'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="rec" value="<?php echo NM_encode_input($rec) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_rec" style="<?php echo $sStyleHidden_rec; ?>;"><span id="id_label_rec"><?php echo $this->nm_new_label['rec']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_rec" style="<?php echo $sStyleHidden_rec; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["rec"]) &&  $this->nmgp_cmp_readonly["rec"] == "on") { 

 ?>
<input type=hidden name="rec" value="<?php echo NM_encode_input($rec) . "\">" . $rec . ""; ?>
<?php } else { ?>
<span id="id_read_on_rec" class="sc-ui-readonly-rec" style=";<?php echo $sStyleReadLab_rec; ?>"><?php echo NM_encode_input($this->rec); ?></span><span id="id_read_off_rec" style="white-space: nowrap;<?php echo $sStyleReadInp_rec; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_rec" type=text name="rec" value="<?php echo NM_encode_input($rec) ?>"
 size=7 maxlength=7 alt="{datatype: 'text', maxLength: 7, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_rec_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_rec_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['rdate']))
    {
        $this->nm_new_label['rdate'] = "RDATE";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $rdate = $this->rdate;
   $sStyleHidden_rdate = '';
   if (isset($this->nmgp_cmp_hidden['rdate']) && $this->nmgp_cmp_hidden['rdate'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['rdate']);
       $sStyleHidden_rdate = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_rdate = 'display: none;';
   $sStyleReadInp_rdate = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['rdate']) && $this->nmgp_cmp_readonly['rdate'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['rdate']);
       $sStyleReadLab_rdate = '';
       $sStyleReadInp_rdate = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['rdate']) && $this->nmgp_cmp_hidden['rdate'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="rdate" value="<?php echo NM_encode_input($rdate) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_rdate" style="<?php echo $sStyleHidden_rdate; ?>;"><span id="id_label_rdate"><?php echo $this->nm_new_label['rdate']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_rdate" style="<?php echo $sStyleHidden_rdate; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["rdate"]) &&  $this->nmgp_cmp_readonly["rdate"] == "on") { 

 ?>
<input type=hidden name="rdate" value="<?php echo NM_encode_input($rdate) . "\">" . $rdate . ""; ?>
<?php } else { ?>
<span id="id_read_on_rdate" class="sc-ui-readonly-rdate" style=";<?php echo $sStyleReadLab_rdate; ?>"><?php echo NM_encode_input($this->rdate); ?></span><span id="id_read_off_rdate" style="white-space: nowrap;<?php echo $sStyleReadInp_rdate; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_rdate" type=text name="rdate" value="<?php echo NM_encode_input($rdate) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['rdate']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['rdate']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"><?php
$tmp_form_data = $this->field_config['rdate']['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);
?>
&nbsp;<?php echo $tmp_form_data; ?></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_rdate_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_rdate_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 * 2; ?>" >&nbsp;</TD>

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


   <?php
    if (!isset($this->nm_new_label['vdate']))
    {
        $this->nm_new_label['vdate'] = "VDATE";
    }
?>
<?php
   $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  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $vdate = $this->vdate;
   $sStyleHidden_vdate = '';
   if (isset($this->nmgp_cmp_hidden['vdate']) && $this->nmgp_cmp_hidden['vdate'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['vdate']);
       $sStyleHidden_vdate = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_vdate = 'display: none;';
   $sStyleReadInp_vdate = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['vdate']) && $this->nmgp_cmp_readonly['vdate'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['vdate']);
       $sStyleReadLab_vdate = '';
       $sStyleReadInp_vdate = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['vdate']) && $this->nmgp_cmp_hidden['vdate'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="vdate" value="<?php echo NM_encode_input($vdate) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_vdate" style="<?php echo $sStyleHidden_vdate; ?>;"><span id="id_label_vdate"><?php echo $this->nm_new_label['vdate']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_vdate" style="<?php echo $sStyleHidden_vdate; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["vdate"]) &&  $this->nmgp_cmp_readonly["vdate"] == "on") { 

 ?>
<input type=hidden name="vdate" value="<?php echo NM_encode_input($vdate) . "\">" . $vdate . ""; ?>
<?php } else { ?>
<span id="id_read_on_vdate" class="sc-ui-readonly-vdate" style=";<?php echo $sStyleReadLab_vdate; ?>"><?php echo NM_encode_input($this->vdate); ?></span><span id="id_read_off_vdate" style="white-space: nowrap;<?php echo $sStyleReadInp_vdate; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_vdate" type=text name="vdate" value="<?php echo NM_encode_input($vdate) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['vdate']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['vdate']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"><?php
$tmp_form_data = $this->field_config['vdate']['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);
?>
&nbsp;<?php echo $tmp_form_data; ?></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_vdate_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_vdate_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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


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

<?php } ?>
   </td></tr></table>
   </tr>
</TABLE></div><!-- bloco_f -->
</td></tr> 
<tr><td>
<?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]['sample_sample_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "R")
{
?>
    <table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormToolbar" 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
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "R")
{
    $NM_btn = false;
      if ($opcao_botoes != "novo" && $this->nmgp_botoes['goto'] == "on")
      {
        $sCondStyle = '';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "birpara", " nm_navpage(document.F1.nmgp_rec_b.value, 'P');document.F1.nmgp_rec_b.value = ''", " nm_navpage(document.F1.nmgp_rec_b.value, 'P');document.F1.nmgp_rec_b.value = ''", "brec_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
?> 
   <input type="text" class="scFormToolbarInput" name="nmgp_rec_b" value="" style="width:25px;vertical-align: middle;"/> 
<?php 
      }
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['first'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "binicio", "nm_move ('inicio'); return false;", "nm_move ('inicio'); return false;", "sc_b_ini_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['back'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bretorna", "nm_move ('retorna'); return false;", "nm_move ('retorna'); return false;", "sc_b_ret_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
if ($opcao_botoes != "novo" && $this->nmgp_botoes['navpage'] == "on")
{
?> 
     <span nowrap id="sc_b_navpage_b" class="scFormToolbarPadding"></span> 
<?php 
}
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['forward'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bavanca", "nm_move ('avanca'); return false;", "nm_move ('avanca'); return false;", "sc_b_avc_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['last'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bfinal", "nm_move ('final'); return false;", "nm_move ('final'); return false;", "sc_b_fim_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
if ($opcao_botoes != "novo" && $this->nmgp_botoes['summary'] == "on")
{
?> 
     <span nowrap id="sc_b_summary_b" class="scFormToolbarPadding"></span> 
<?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]['sample_sample_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['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 } ?>
<?php if (('novo' != $this->nmgp_opcao || $this->Embutida_form) && !$this->nmgp_form_empty && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "F") { ?><script>summary_atualiza(<?php echo ($_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['reg_start'] + 1). ", " . $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['reg_qtd'] . ", " . ($_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['total'] + 1)?>);</script><?php } ?>
<?php if (('novo' != $this->nmgp_opcao || $this->Embutida_form) && !$this->nmgp_form_empty && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['run_iframe'] != "F") { ?><script>navpage_atualiza('<?php echo $this->SC_nav_page ?>');</script><?php } ?>
</td></tr> 
<?php
  }
?>
</table> 

<div id="id_debug_window" style="display: none; position: absolute; left: 50px; top: 50px"><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> 
<script> 
<?php
  $nm_sc_blocos_da_pag = array(0);

  foreach ($this->Ini->nm_hidden_blocos as $bloco => $hidden)
  {
      if ($hidden == "off" && in_array($bloco, $nm_sc_blocos_da_pag))
      {
          echo "document.getElementById('hidden_bloco_" . $bloco . "').style.display = 'none';";
          if (isset($nm_sc_blocos_aba[$bloco]))
          {
               echo "document.getElementById('id_tabs_" . $nm_sc_blocos_aba[$bloco] . "_" . $bloco . "').style.display = 'none';";
          }
      }
  }
?>
</script> 
<script>
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'])
{
    $sTamanhoIframe = isset($_POST['sc_ifr_height']) && '' != $_POST['sc_ifr_height'] ? '"' . $_POST['sc_ifr_height'] . '"' : '$(document).innerHeight()';
?>
<script>
 parent.scAjaxDetailStatus("sample_sample_form");
 parent.scAjaxDetailHeight("sample_sample_form", <?php echo $sTamanhoIframe; ?>);
</script>
<?php
}
elseif (isset($_GET['script_case_detail']) && 'Y' == $_GET['script_case_detail'])
{
    $sTamanhoIframe = isset($_GET['sc_ifr_height']) && '' != $_GET['sc_ifr_height'] ? '"' . $_GET['sc_ifr_height'] . '"' : '$(document).innerHeight()';
?>
<script>
 parent.scAjaxDetailHeight("sample_sample_form", <?php echo $sTamanhoIframe; ?>);
</script>
<?php
}
?>
<?php
if (isset($this->NM_ajax_info['displayMsg']) && $this->NM_ajax_info['displayMsg'])
{
?>
<script type="text/javascript">
_scAjaxShowMessage(scMsgDefTitle, "<?php echo $this->NM_ajax_info['displayMsgTxt']; ?>", false, sc_ajaxMsgTime, false, "Ok", 0, 0, 0, 0, "", "", "", false, true);
</script>
<?php
}
?>
<?php
if ('' != $this->scFormFocusErrorName)
{
?>
<script>
scAjaxFocusError();
</script>
<?php
}
?>
<script>
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]['sample_sample_form']['sc_modal']) && $_SESSION['sc_session'][$this->Ini->sc_page]['sample_sample_form']['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>
</body> 
</html> 
