<?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'] . " - greigepo"); } else { echo strip_tags("" . $this->Ini->Nm_lang['lang_othr_frmu_titl'] . " - greigepo"); } ?></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("greige_greigepo_greige_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('greige_greigepo_greige_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]['greige_greigepo_greige_form']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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]['greige_greigepo_greige_form']['opc_ant'] = "novo";
    $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['recarga'] = "novo";
}
if (empty($_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['recarga']))
{
    $opcao_botoes = $this->nmgp_opcao;
}
else
{
    $opcao_botoes = $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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("greige_greigepo_greige_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]['greige_greigepo_greige_form']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['run_iframe']) ? 0 : "0px";
?>
<?php
$_SESSION['scriptcase']['error_span_title']['greige_greigepo_greige_form'] = $this->Ini->Error_icon_span;
$_SESSION['scriptcase']['error_icon_title']['greige_greigepo_greige_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]['greige_greigepo_greige_form']['mostra_cab']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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'] . " - greigepo"; } else { echo "" . $this->Ini->Nm_lang['lang_othr_frmu_titl'] . " - greigepo"; } ?></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]['greige_greigepo_greige_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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]['greige_greigepo_greige_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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]['greige_greigepo_greige_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['fast_search'][0] : "";
          $OPC_arg = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['fast_search'][1] : "";
          $OPC_dat = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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]['greige_greigepo_greige_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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]['greige_greigepo_greige_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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]['greige_greigepo_greige_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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]['greige_greigepo_greige_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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]['greige_greigepo_greige_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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]['greige_greigepo_greige_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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['old_po']))
    {
        $this->nm_new_label['old_po'] = "OLD_PO";
    }
?>
<?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);
   $old_po = $this->old_po;
   $sStyleHidden_old_po = '';
   if (isset($this->nmgp_cmp_hidden['old_po']) && $this->nmgp_cmp_hidden['old_po'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['old_po']);
       $sStyleHidden_old_po = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_old_po = 'display: none;';
   $sStyleReadInp_old_po = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['old_po']) && $this->nmgp_cmp_readonly['old_po'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['old_po']);
       $sStyleReadLab_old_po = '';
       $sStyleReadInp_old_po = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['old_po']) && $this->nmgp_cmp_hidden['old_po'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="old_po" value="<?php echo NM_encode_input($old_po) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_old_po" style="<?php echo $sStyleHidden_old_po; ?>;"><span id="id_label_old_po"><?php echo $this->nm_new_label['old_po']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_old_po" style="<?php echo $sStyleHidden_old_po; ?>;"><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["old_po"]) &&  $this->nmgp_cmp_readonly["old_po"] == "on") { 

 ?>
<input type=hidden name="old_po" value="<?php echo NM_encode_input($old_po) . "\">" . $old_po . ""; ?>
<?php } else { ?>
<span id="id_read_on_old_po" class="sc-ui-readonly-old_po" style=";<?php echo $sStyleReadLab_old_po; ?>"><?php echo NM_encode_input($this->old_po); ?></span><span id="id_read_off_old_po" style="white-space: nowrap;<?php echo $sStyleReadInp_old_po; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_old_po" type=text name="old_po" value="<?php echo NM_encode_input($old_po) ?>"
 size=6 maxlength=6 alt="{datatype: 'text', maxLength: 6, 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_old_po_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_old_po_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['date']))
    {
        $this->nm_new_label['date'] = "DATE";
    }
?>
<?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);
   $date = $this->date;
   $sStyleHidden_date = '';
   if (isset($this->nmgp_cmp_hidden['date']) && $this->nmgp_cmp_hidden['date'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['date']);
       $sStyleHidden_date = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_date = 'display: none;';
   $sStyleReadInp_date = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['date']) && $this->nmgp_cmp_readonly['date'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['date']);
       $sStyleReadLab_date = '';
       $sStyleReadInp_date = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['date']) && $this->nmgp_cmp_hidden['date'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="date" value="<?php echo NM_encode_input($date) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_date" style="<?php echo $sStyleHidden_date; ?>;"><span id="id_label_date"><?php echo $this->nm_new_label['date']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_date" style="<?php echo $sStyleHidden_date; ?>;"><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["date"]) &&  $this->nmgp_cmp_readonly["date"] == "on") { 

 ?>
<input type=hidden name="date" value="<?php echo NM_encode_input($date) . "\">" . $date . ""; ?>
<?php } else { ?>
<span id="id_read_on_date" class="sc-ui-readonly-date" style=";<?php echo $sStyleReadLab_date; ?>"><?php echo NM_encode_input($this->date); ?></span><span id="id_read_off_date" style="white-space: nowrap;<?php echo $sStyleReadInp_date; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_date" type=text name="date" value="<?php echo NM_encode_input($date) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['date']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['date']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"><?php
$tmp_form_data = $this->field_config['date']['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_date_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_date_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['mill']))
    {
        $this->nm_new_label['mill'] = "MILL";
    }
?>
<?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);
   $mill = $this->mill;
   $sStyleHidden_mill = '';
   if (isset($this->nmgp_cmp_hidden['mill']) && $this->nmgp_cmp_hidden['mill'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['mill']);
       $sStyleHidden_mill = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_mill = 'display: none;';
   $sStyleReadInp_mill = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['mill']) && $this->nmgp_cmp_readonly['mill'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['mill']);
       $sStyleReadLab_mill = '';
       $sStyleReadInp_mill = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['mill']) && $this->nmgp_cmp_hidden['mill'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="mill" value="<?php echo NM_encode_input($mill) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_mill" style="<?php echo $sStyleHidden_mill; ?>;"><span id="id_label_mill"><?php echo $this->nm_new_label['mill']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_mill" style="<?php echo $sStyleHidden_mill; ?>;"><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["mill"]) &&  $this->nmgp_cmp_readonly["mill"] == "on") { 

 ?>
<input type=hidden name="mill" value="<?php echo NM_encode_input($mill) . "\">" . $mill . ""; ?>
<?php } else { ?>
<span id="id_read_on_mill" class="sc-ui-readonly-mill" style=";<?php echo $sStyleReadLab_mill; ?>"><?php echo NM_encode_input($this->mill); ?></span><span id="id_read_off_mill" style="white-space: nowrap;<?php echo $sStyleReadInp_mill; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_mill" type=text name="mill" value="<?php echo NM_encode_input($mill) ?>"
 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_mill_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_mill_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['ship_to']))
    {
        $this->nm_new_label['ship_to'] = "SHIP_TO";
    }
?>
<?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);
   $ship_to = $this->ship_to;
   $sStyleHidden_ship_to = '';
   if (isset($this->nmgp_cmp_hidden['ship_to']) && $this->nmgp_cmp_hidden['ship_to'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['ship_to']);
       $sStyleHidden_ship_to = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_ship_to = 'display: none;';
   $sStyleReadInp_ship_to = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['ship_to']) && $this->nmgp_cmp_readonly['ship_to'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['ship_to']);
       $sStyleReadLab_ship_to = '';
       $sStyleReadInp_ship_to = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['ship_to']) && $this->nmgp_cmp_hidden['ship_to'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="ship_to" value="<?php echo NM_encode_input($ship_to) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_ship_to" style="<?php echo $sStyleHidden_ship_to; ?>;"><span id="id_label_ship_to"><?php echo $this->nm_new_label['ship_to']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_ship_to" style="<?php echo $sStyleHidden_ship_to; ?>;"><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["ship_to"]) &&  $this->nmgp_cmp_readonly["ship_to"] == "on") { 

 ?>
<input type=hidden name="ship_to" value="<?php echo NM_encode_input($ship_to) . "\">" . $ship_to . ""; ?>
<?php } else { ?>
<span id="id_read_on_ship_to" class="sc-ui-readonly-ship_to" style=";<?php echo $sStyleReadLab_ship_to; ?>"><?php echo NM_encode_input($this->ship_to); ?></span><span id="id_read_off_ship_to" style="white-space: nowrap;<?php echo $sStyleReadInp_ship_to; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_ship_to" type=text name="ship_to" value="<?php echo NM_encode_input($ship_to) ?>"
 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_ship_to_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ship_to_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=14 maxlength=14 alt="{datatype: 'text', maxLength: 14, 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['new_style']))
    {
        $this->nm_new_label['new_style'] = "NEW_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);
   $new_style = $this->new_style;
   $sStyleHidden_new_style = '';
   if (isset($this->nmgp_cmp_hidden['new_style']) && $this->nmgp_cmp_hidden['new_style'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['new_style']);
       $sStyleHidden_new_style = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_new_style = 'display: none;';
   $sStyleReadInp_new_style = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['new_style']) && $this->nmgp_cmp_readonly['new_style'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['new_style']);
       $sStyleReadLab_new_style = '';
       $sStyleReadInp_new_style = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['new_style']) && $this->nmgp_cmp_hidden['new_style'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="new_style" value="<?php echo NM_encode_input($new_style) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_new_style" style="<?php echo $sStyleHidden_new_style; ?>;"><span id="id_label_new_style"><?php echo $this->nm_new_label['new_style']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_new_style" style="<?php echo $sStyleHidden_new_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["new_style"]) &&  $this->nmgp_cmp_readonly["new_style"] == "on") { 

 ?>
<input type=hidden name="new_style" value="<?php echo NM_encode_input($new_style) . "\">" . $new_style . ""; ?>
<?php } else { ?>
<span id="id_read_on_new_style" class="sc-ui-readonly-new_style" style=";<?php echo $sStyleReadLab_new_style; ?>"><?php echo NM_encode_input($this->new_style); ?></span><span id="id_read_off_new_style" style="white-space: nowrap;<?php echo $sStyleReadInp_new_style; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_new_style" type=text name="new_style" value="<?php echo NM_encode_input($new_style) ?>"
 size=14 maxlength=14 alt="{datatype: 'text', maxLength: 14, 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_new_style_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_new_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['desc1']))
    {
        $this->nm_new_label['desc1'] = "DESC1";
    }
?>
<?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);
   $desc1 = $this->desc1;
   $sStyleHidden_desc1 = '';
   if (isset($this->nmgp_cmp_hidden['desc1']) && $this->nmgp_cmp_hidden['desc1'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['desc1']);
       $sStyleHidden_desc1 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_desc1 = 'display: none;';
   $sStyleReadInp_desc1 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['desc1']) && $this->nmgp_cmp_readonly['desc1'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['desc1']);
       $sStyleReadLab_desc1 = '';
       $sStyleReadInp_desc1 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['desc1']) && $this->nmgp_cmp_hidden['desc1'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="desc1" value="<?php echo NM_encode_input($desc1) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_desc1" style="<?php echo $sStyleHidden_desc1; ?>;"><span id="id_label_desc1"><?php echo $this->nm_new_label['desc1']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_desc1" style="<?php echo $sStyleHidden_desc1; ?>;"><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["desc1"]) &&  $this->nmgp_cmp_readonly["desc1"] == "on") { 

 ?>
<input type=hidden name="desc1" value="<?php echo NM_encode_input($desc1) . "\">" . $desc1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_desc1" class="sc-ui-readonly-desc1" style=";<?php echo $sStyleReadLab_desc1; ?>"><?php echo NM_encode_input($this->desc1); ?></span><span id="id_read_off_desc1" style="white-space: nowrap;<?php echo $sStyleReadInp_desc1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_desc1" type=text name="desc1" value="<?php echo NM_encode_input($desc1) ?>"
 size=20 maxlength=20 alt="{datatype: 'text', maxLength: 20, 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_desc1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_desc1_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['desc2']))
    {
        $this->nm_new_label['desc2'] = "DESC2";
    }
?>
<?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);
   $desc2 = $this->desc2;
   $sStyleHidden_desc2 = '';
   if (isset($this->nmgp_cmp_hidden['desc2']) && $this->nmgp_cmp_hidden['desc2'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['desc2']);
       $sStyleHidden_desc2 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_desc2 = 'display: none;';
   $sStyleReadInp_desc2 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['desc2']) && $this->nmgp_cmp_readonly['desc2'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['desc2']);
       $sStyleReadLab_desc2 = '';
       $sStyleReadInp_desc2 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['desc2']) && $this->nmgp_cmp_hidden['desc2'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="desc2" value="<?php echo NM_encode_input($desc2) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_desc2" style="<?php echo $sStyleHidden_desc2; ?>;"><span id="id_label_desc2"><?php echo $this->nm_new_label['desc2']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_desc2" style="<?php echo $sStyleHidden_desc2; ?>;"><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["desc2"]) &&  $this->nmgp_cmp_readonly["desc2"] == "on") { 

 ?>
<input type=hidden name="desc2" value="<?php echo NM_encode_input($desc2) . "\">" . $desc2 . ""; ?>
<?php } else { ?>
<span id="id_read_on_desc2" class="sc-ui-readonly-desc2" style=";<?php echo $sStyleReadLab_desc2; ?>"><?php echo NM_encode_input($this->desc2); ?></span><span id="id_read_off_desc2" style="white-space: nowrap;<?php echo $sStyleReadInp_desc2; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_desc2" type=text name="desc2" value="<?php echo NM_encode_input($desc2) ?>"
 size=20 maxlength=20 alt="{datatype: 'text', maxLength: 20, 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_desc2_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_desc2_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['top_p_o_']))
    {
        $this->nm_new_label['top_p_o_'] = "TOP_P_O_";
    }
?>
<?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);
   $top_p_o_ = $this->top_p_o_;
   $sStyleHidden_top_p_o_ = '';
   if (isset($this->nmgp_cmp_hidden['top_p_o_']) && $this->nmgp_cmp_hidden['top_p_o_'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['top_p_o_']);
       $sStyleHidden_top_p_o_ = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_top_p_o_ = 'display: none;';
   $sStyleReadInp_top_p_o_ = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['top_p_o_']) && $this->nmgp_cmp_readonly['top_p_o_'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['top_p_o_']);
       $sStyleReadLab_top_p_o_ = '';
       $sStyleReadInp_top_p_o_ = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['top_p_o_']) && $this->nmgp_cmp_hidden['top_p_o_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="top_p_o_" value="<?php echo NM_encode_input($top_p_o_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_top_p_o_" style="<?php echo $sStyleHidden_top_p_o_; ?>;"><span id="id_label_top_p_o_"><?php echo $this->nm_new_label['top_p_o_']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_top_p_o_" style="<?php echo $sStyleHidden_top_p_o_; ?>;"><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["top_p_o_"]) &&  $this->nmgp_cmp_readonly["top_p_o_"] == "on") { 

 ?>
<input type=hidden name="top_p_o_" value="<?php echo NM_encode_input($top_p_o_) . "\">" . $top_p_o_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_top_p_o_" class="sc-ui-readonly-top_p_o_" style=";<?php echo $sStyleReadLab_top_p_o_; ?>"><?php echo NM_encode_input($this->top_p_o_); ?></span><span id="id_read_off_top_p_o_" style="white-space: nowrap;<?php echo $sStyleReadInp_top_p_o_; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_top_p_o_" type=text name="top_p_o_" value="<?php echo NM_encode_input($top_p_o_) ?>"
 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_top_p_o__frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_top_p_o__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['top_lbs']))
    {
        $this->nm_new_label['top_lbs'] = "TOP_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);
   $top_lbs = $this->top_lbs;
   $sStyleHidden_top_lbs = '';
   if (isset($this->nmgp_cmp_hidden['top_lbs']) && $this->nmgp_cmp_hidden['top_lbs'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['top_lbs']);
       $sStyleHidden_top_lbs = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_top_lbs = 'display: none;';
   $sStyleReadInp_top_lbs = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['top_lbs']) && $this->nmgp_cmp_readonly['top_lbs'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['top_lbs']);
       $sStyleReadLab_top_lbs = '';
       $sStyleReadInp_top_lbs = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['top_lbs']) && $this->nmgp_cmp_hidden['top_lbs'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="top_lbs" value="<?php echo NM_encode_input($top_lbs) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_top_lbs" style="<?php echo $sStyleHidden_top_lbs; ?>;"><span id="id_label_top_lbs"><?php echo $this->nm_new_label['top_lbs']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_top_lbs" style="<?php echo $sStyleHidden_top_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["top_lbs"]) &&  $this->nmgp_cmp_readonly["top_lbs"] == "on") { 

 ?>
<input type=hidden name="top_lbs" value="<?php echo NM_encode_input($top_lbs) . "\">" . $top_lbs . ""; ?>
<?php } else { ?>
<span id="id_read_on_top_lbs" class="sc-ui-readonly-top_lbs" style=";<?php echo $sStyleReadLab_top_lbs; ?>"><?php echo NM_encode_input($this->top_lbs); ?></span><span id="id_read_off_top_lbs" style="white-space: nowrap;<?php echo $sStyleReadInp_top_lbs; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_top_lbs" type=text name="top_lbs" value="<?php echo NM_encode_input($top_lbs) ?>"
 size=8 alt="{datatype: 'integer', maxLength: 8, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['top_lbs']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['top_lbs']['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_top_lbs_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_top_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['top_ship']))
    {
        $this->nm_new_label['top_ship'] = "TOP_SHIP";
    }
?>
<?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);
   $top_ship = $this->top_ship;
   $sStyleHidden_top_ship = '';
   if (isset($this->nmgp_cmp_hidden['top_ship']) && $this->nmgp_cmp_hidden['top_ship'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['top_ship']);
       $sStyleHidden_top_ship = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_top_ship = 'display: none;';
   $sStyleReadInp_top_ship = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['top_ship']) && $this->nmgp_cmp_readonly['top_ship'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['top_ship']);
       $sStyleReadLab_top_ship = '';
       $sStyleReadInp_top_ship = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['top_ship']) && $this->nmgp_cmp_hidden['top_ship'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="top_ship" value="<?php echo NM_encode_input($top_ship) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_top_ship" style="<?php echo $sStyleHidden_top_ship; ?>;"><span id="id_label_top_ship"><?php echo $this->nm_new_label['top_ship']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_top_ship" style="<?php echo $sStyleHidden_top_ship; ?>;"><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["top_ship"]) &&  $this->nmgp_cmp_readonly["top_ship"] == "on") { 

 ?>
<input type=hidden name="top_ship" value="<?php echo NM_encode_input($top_ship) . "\">" . $top_ship . ""; ?>
<?php } else { ?>
<span id="id_read_on_top_ship" class="sc-ui-readonly-top_ship" style=";<?php echo $sStyleReadLab_top_ship; ?>"><?php echo NM_encode_input($this->top_ship); ?></span><span id="id_read_off_top_ship" style="white-space: nowrap;<?php echo $sStyleReadInp_top_ship; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_top_ship" type=text name="top_ship" value="<?php echo NM_encode_input($top_ship) ?>"
 size=8 alt="{datatype: 'integer', maxLength: 8, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['top_ship']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['top_ship']['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_top_ship_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_top_ship_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['top_cost']))
    {
        $this->nm_new_label['top_cost'] = "TOP_COST";
    }
?>
<?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);
   $top_cost = $this->top_cost;
   $sStyleHidden_top_cost = '';
   if (isset($this->nmgp_cmp_hidden['top_cost']) && $this->nmgp_cmp_hidden['top_cost'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['top_cost']);
       $sStyleHidden_top_cost = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_top_cost = 'display: none;';
   $sStyleReadInp_top_cost = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['top_cost']) && $this->nmgp_cmp_readonly['top_cost'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['top_cost']);
       $sStyleReadLab_top_cost = '';
       $sStyleReadInp_top_cost = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['top_cost']) && $this->nmgp_cmp_hidden['top_cost'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="top_cost" value="<?php echo NM_encode_input($top_cost) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_top_cost" style="<?php echo $sStyleHidden_top_cost; ?>;"><span id="id_label_top_cost"><?php echo $this->nm_new_label['top_cost']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_top_cost" style="<?php echo $sStyleHidden_top_cost; ?>;"><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["top_cost"]) &&  $this->nmgp_cmp_readonly["top_cost"] == "on") { 

 ?>
<input type=hidden name="top_cost" value="<?php echo NM_encode_input($top_cost) . "\">" . $top_cost . ""; ?>
<?php } else { ?>
<span id="id_read_on_top_cost" class="sc-ui-readonly-top_cost" style=";<?php echo $sStyleReadLab_top_cost; ?>"><?php echo NM_encode_input($this->top_cost); ?></span><span id="id_read_off_top_cost" style="white-space: nowrap;<?php echo $sStyleReadInp_top_cost; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_top_cost" type=text name="top_cost" value="<?php echo NM_encode_input($top_cost) ?>"
 size=6 alt="{datatype: 'decimal', maxLength: 6, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['top_cost']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['top_cost']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['top_cost']['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_top_cost_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_top_cost_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['bot_p_o_']))
    {
        $this->nm_new_label['bot_p_o_'] = "BOT_P_O_";
    }
?>
<?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);
   $bot_p_o_ = $this->bot_p_o_;
   $sStyleHidden_bot_p_o_ = '';
   if (isset($this->nmgp_cmp_hidden['bot_p_o_']) && $this->nmgp_cmp_hidden['bot_p_o_'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['bot_p_o_']);
       $sStyleHidden_bot_p_o_ = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_bot_p_o_ = 'display: none;';
   $sStyleReadInp_bot_p_o_ = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['bot_p_o_']) && $this->nmgp_cmp_readonly['bot_p_o_'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['bot_p_o_']);
       $sStyleReadLab_bot_p_o_ = '';
       $sStyleReadInp_bot_p_o_ = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['bot_p_o_']) && $this->nmgp_cmp_hidden['bot_p_o_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="bot_p_o_" value="<?php echo NM_encode_input($bot_p_o_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_bot_p_o_" style="<?php echo $sStyleHidden_bot_p_o_; ?>;"><span id="id_label_bot_p_o_"><?php echo $this->nm_new_label['bot_p_o_']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_bot_p_o_" style="<?php echo $sStyleHidden_bot_p_o_; ?>;"><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["bot_p_o_"]) &&  $this->nmgp_cmp_readonly["bot_p_o_"] == "on") { 

 ?>
<input type=hidden name="bot_p_o_" value="<?php echo NM_encode_input($bot_p_o_) . "\">" . $bot_p_o_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_bot_p_o_" class="sc-ui-readonly-bot_p_o_" style=";<?php echo $sStyleReadLab_bot_p_o_; ?>"><?php echo NM_encode_input($this->bot_p_o_); ?></span><span id="id_read_off_bot_p_o_" style="white-space: nowrap;<?php echo $sStyleReadInp_bot_p_o_; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_bot_p_o_" type=text name="bot_p_o_" value="<?php echo NM_encode_input($bot_p_o_) ?>"
 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_bot_p_o__frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_bot_p_o__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['bot_lbs']))
    {
        $this->nm_new_label['bot_lbs'] = "BOT_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);
   $bot_lbs = $this->bot_lbs;
   $sStyleHidden_bot_lbs = '';
   if (isset($this->nmgp_cmp_hidden['bot_lbs']) && $this->nmgp_cmp_hidden['bot_lbs'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['bot_lbs']);
       $sStyleHidden_bot_lbs = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_bot_lbs = 'display: none;';
   $sStyleReadInp_bot_lbs = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['bot_lbs']) && $this->nmgp_cmp_readonly['bot_lbs'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['bot_lbs']);
       $sStyleReadLab_bot_lbs = '';
       $sStyleReadInp_bot_lbs = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['bot_lbs']) && $this->nmgp_cmp_hidden['bot_lbs'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="bot_lbs" value="<?php echo NM_encode_input($bot_lbs) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_bot_lbs" style="<?php echo $sStyleHidden_bot_lbs; ?>;"><span id="id_label_bot_lbs"><?php echo $this->nm_new_label['bot_lbs']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_bot_lbs" style="<?php echo $sStyleHidden_bot_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["bot_lbs"]) &&  $this->nmgp_cmp_readonly["bot_lbs"] == "on") { 

 ?>
<input type=hidden name="bot_lbs" value="<?php echo NM_encode_input($bot_lbs) . "\">" . $bot_lbs . ""; ?>
<?php } else { ?>
<span id="id_read_on_bot_lbs" class="sc-ui-readonly-bot_lbs" style=";<?php echo $sStyleReadLab_bot_lbs; ?>"><?php echo NM_encode_input($this->bot_lbs); ?></span><span id="id_read_off_bot_lbs" style="white-space: nowrap;<?php echo $sStyleReadInp_bot_lbs; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_bot_lbs" type=text name="bot_lbs" value="<?php echo NM_encode_input($bot_lbs) ?>"
 size=8 alt="{datatype: 'integer', maxLength: 8, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['bot_lbs']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['bot_lbs']['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_bot_lbs_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_bot_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['bot_ship']))
    {
        $this->nm_new_label['bot_ship'] = "BOT_SHIP";
    }
?>
<?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);
   $bot_ship = $this->bot_ship;
   $sStyleHidden_bot_ship = '';
   if (isset($this->nmgp_cmp_hidden['bot_ship']) && $this->nmgp_cmp_hidden['bot_ship'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['bot_ship']);
       $sStyleHidden_bot_ship = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_bot_ship = 'display: none;';
   $sStyleReadInp_bot_ship = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['bot_ship']) && $this->nmgp_cmp_readonly['bot_ship'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['bot_ship']);
       $sStyleReadLab_bot_ship = '';
       $sStyleReadInp_bot_ship = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['bot_ship']) && $this->nmgp_cmp_hidden['bot_ship'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="bot_ship" value="<?php echo NM_encode_input($bot_ship) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_bot_ship" style="<?php echo $sStyleHidden_bot_ship; ?>;"><span id="id_label_bot_ship"><?php echo $this->nm_new_label['bot_ship']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_bot_ship" style="<?php echo $sStyleHidden_bot_ship; ?>;"><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["bot_ship"]) &&  $this->nmgp_cmp_readonly["bot_ship"] == "on") { 

 ?>
<input type=hidden name="bot_ship" value="<?php echo NM_encode_input($bot_ship) . "\">" . $bot_ship . ""; ?>
<?php } else { ?>
<span id="id_read_on_bot_ship" class="sc-ui-readonly-bot_ship" style=";<?php echo $sStyleReadLab_bot_ship; ?>"><?php echo NM_encode_input($this->bot_ship); ?></span><span id="id_read_off_bot_ship" style="white-space: nowrap;<?php echo $sStyleReadInp_bot_ship; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_bot_ship" type=text name="bot_ship" value="<?php echo NM_encode_input($bot_ship) ?>"
 size=8 alt="{datatype: 'integer', maxLength: 8, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['bot_ship']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['bot_ship']['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_bot_ship_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_bot_ship_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['bot_cost']))
    {
        $this->nm_new_label['bot_cost'] = "BOT_COST";
    }
?>
<?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);
   $bot_cost = $this->bot_cost;
   $sStyleHidden_bot_cost = '';
   if (isset($this->nmgp_cmp_hidden['bot_cost']) && $this->nmgp_cmp_hidden['bot_cost'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['bot_cost']);
       $sStyleHidden_bot_cost = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_bot_cost = 'display: none;';
   $sStyleReadInp_bot_cost = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['bot_cost']) && $this->nmgp_cmp_readonly['bot_cost'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['bot_cost']);
       $sStyleReadLab_bot_cost = '';
       $sStyleReadInp_bot_cost = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['bot_cost']) && $this->nmgp_cmp_hidden['bot_cost'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="bot_cost" value="<?php echo NM_encode_input($bot_cost) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_bot_cost" style="<?php echo $sStyleHidden_bot_cost; ?>;"><span id="id_label_bot_cost"><?php echo $this->nm_new_label['bot_cost']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_bot_cost" style="<?php echo $sStyleHidden_bot_cost; ?>;"><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["bot_cost"]) &&  $this->nmgp_cmp_readonly["bot_cost"] == "on") { 

 ?>
<input type=hidden name="bot_cost" value="<?php echo NM_encode_input($bot_cost) . "\">" . $bot_cost . ""; ?>
<?php } else { ?>
<span id="id_read_on_bot_cost" class="sc-ui-readonly-bot_cost" style=";<?php echo $sStyleReadLab_bot_cost; ?>"><?php echo NM_encode_input($this->bot_cost); ?></span><span id="id_read_off_bot_cost" style="white-space: nowrap;<?php echo $sStyleReadInp_bot_cost; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_bot_cost" type=text name="bot_cost" value="<?php echo NM_encode_input($bot_cost) ?>"
 size=6 alt="{datatype: 'decimal', maxLength: 6, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['bot_cost']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['bot_cost']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['bot_cost']['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_bot_cost_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_bot_cost_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['terms']))
    {
        $this->nm_new_label['terms'] = "TERMS";
    }
?>
<?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);
   $terms = $this->terms;
   $sStyleHidden_terms = '';
   if (isset($this->nmgp_cmp_hidden['terms']) && $this->nmgp_cmp_hidden['terms'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['terms']);
       $sStyleHidden_terms = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_terms = 'display: none;';
   $sStyleReadInp_terms = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['terms']) && $this->nmgp_cmp_readonly['terms'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['terms']);
       $sStyleReadLab_terms = '';
       $sStyleReadInp_terms = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['terms']) && $this->nmgp_cmp_hidden['terms'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="terms" value="<?php echo NM_encode_input($terms) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_terms" style="<?php echo $sStyleHidden_terms; ?>;"><span id="id_label_terms"><?php echo $this->nm_new_label['terms']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_terms" style="<?php echo $sStyleHidden_terms; ?>;"><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["terms"]) &&  $this->nmgp_cmp_readonly["terms"] == "on") { 

 ?>
<input type=hidden name="terms" value="<?php echo NM_encode_input($terms) . "\">" . $terms . ""; ?>
<?php } else { ?>
<span id="id_read_on_terms" class="sc-ui-readonly-terms" style=";<?php echo $sStyleReadLab_terms; ?>"><?php echo NM_encode_input($this->terms); ?></span><span id="id_read_off_terms" style="white-space: nowrap;<?php echo $sStyleReadInp_terms; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_terms" type=text name="terms" value="<?php echo NM_encode_input($terms) ?>"
 size=15 maxlength=15 alt="{datatype: 'text', maxLength: 15, 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_terms_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_terms_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['delivery']))
    {
        $this->nm_new_label['delivery'] = "DELIVERY";
    }
?>
<?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);
   $delivery = $this->delivery;
   $sStyleHidden_delivery = '';
   if (isset($this->nmgp_cmp_hidden['delivery']) && $this->nmgp_cmp_hidden['delivery'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['delivery']);
       $sStyleHidden_delivery = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_delivery = 'display: none;';
   $sStyleReadInp_delivery = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['delivery']) && $this->nmgp_cmp_readonly['delivery'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['delivery']);
       $sStyleReadLab_delivery = '';
       $sStyleReadInp_delivery = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['delivery']) && $this->nmgp_cmp_hidden['delivery'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="delivery" value="<?php echo NM_encode_input($delivery) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_delivery" style="<?php echo $sStyleHidden_delivery; ?>;"><span id="id_label_delivery"><?php echo $this->nm_new_label['delivery']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_delivery" style="<?php echo $sStyleHidden_delivery; ?>;"><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["delivery"]) &&  $this->nmgp_cmp_readonly["delivery"] == "on") { 

 ?>
<input type=hidden name="delivery" value="<?php echo NM_encode_input($delivery) . "\">" . $delivery . ""; ?>
<?php } else { ?>
<span id="id_read_on_delivery" class="sc-ui-readonly-delivery" style=";<?php echo $sStyleReadLab_delivery; ?>"><?php echo NM_encode_input($this->delivery); ?></span><span id="id_read_off_delivery" style="white-space: nowrap;<?php echo $sStyleReadInp_delivery; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_delivery" type=text name="delivery" value="<?php echo NM_encode_input($delivery) ?>"
 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_delivery_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_delivery_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['order_amt']))
    {
        $this->nm_new_label['order_amt'] = "ORDER_AMT";
    }
?>
<?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);
   $order_amt = $this->order_amt;
   $sStyleHidden_order_amt = '';
   if (isset($this->nmgp_cmp_hidden['order_amt']) && $this->nmgp_cmp_hidden['order_amt'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['order_amt']);
       $sStyleHidden_order_amt = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_order_amt = 'display: none;';
   $sStyleReadInp_order_amt = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['order_amt']) && $this->nmgp_cmp_readonly['order_amt'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['order_amt']);
       $sStyleReadLab_order_amt = '';
       $sStyleReadInp_order_amt = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['order_amt']) && $this->nmgp_cmp_hidden['order_amt'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="order_amt" value="<?php echo NM_encode_input($order_amt) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_order_amt" style="<?php echo $sStyleHidden_order_amt; ?>;"><span id="id_label_order_amt"><?php echo $this->nm_new_label['order_amt']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_order_amt" style="<?php echo $sStyleHidden_order_amt; ?>;"><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["order_amt"]) &&  $this->nmgp_cmp_readonly["order_amt"] == "on") { 

 ?>
<input type=hidden name="order_amt" value="<?php echo NM_encode_input($order_amt) . "\">" . $order_amt . ""; ?>
<?php } else { ?>
<span id="id_read_on_order_amt" class="sc-ui-readonly-order_amt" style=";<?php echo $sStyleReadLab_order_amt; ?>"><?php echo NM_encode_input($this->order_amt); ?></span><span id="id_read_off_order_amt" style="white-space: nowrap;<?php echo $sStyleReadInp_order_amt; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_order_amt" type=text name="order_amt" value="<?php echo NM_encode_input($order_amt) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['order_amt']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['order_amt']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['order_amt']['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_order_amt_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_order_amt_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['lbs_ordere']))
    {
        $this->nm_new_label['lbs_ordere'] = "LBS_ORDERE";
    }
?>
<?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);
   $lbs_ordere = $this->lbs_ordere;
   $sStyleHidden_lbs_ordere = '';
   if (isset($this->nmgp_cmp_hidden['lbs_ordere']) && $this->nmgp_cmp_hidden['lbs_ordere'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['lbs_ordere']);
       $sStyleHidden_lbs_ordere = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_lbs_ordere = 'display: none;';
   $sStyleReadInp_lbs_ordere = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['lbs_ordere']) && $this->nmgp_cmp_readonly['lbs_ordere'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['lbs_ordere']);
       $sStyleReadLab_lbs_ordere = '';
       $sStyleReadInp_lbs_ordere = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['lbs_ordere']) && $this->nmgp_cmp_hidden['lbs_ordere'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="lbs_ordere" value="<?php echo NM_encode_input($lbs_ordere) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_lbs_ordere" style="<?php echo $sStyleHidden_lbs_ordere; ?>;"><span id="id_label_lbs_ordere"><?php echo $this->nm_new_label['lbs_ordere']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_lbs_ordere" style="<?php echo $sStyleHidden_lbs_ordere; ?>;"><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["lbs_ordere"]) &&  $this->nmgp_cmp_readonly["lbs_ordere"] == "on") { 

 ?>
<input type=hidden name="lbs_ordere" value="<?php echo NM_encode_input($lbs_ordere) . "\">" . $lbs_ordere . ""; ?>
<?php } else { ?>
<span id="id_read_on_lbs_ordere" class="sc-ui-readonly-lbs_ordere" style=";<?php echo $sStyleReadLab_lbs_ordere; ?>"><?php echo NM_encode_input($this->lbs_ordere); ?></span><span id="id_read_off_lbs_ordere" style="white-space: nowrap;<?php echo $sStyleReadInp_lbs_ordere; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_lbs_ordere" type=text name="lbs_ordere" value="<?php echo NM_encode_input($lbs_ordere) ?>"
 size=11 alt="{datatype: 'integer', maxLength: 11, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['lbs_ordere']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['lbs_ordere']['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_lbs_ordere_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_lbs_ordere_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['lbs']))
    {
        $this->nm_new_label['lbs'] = "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);
   $lbs = $this->lbs;
   $sStyleHidden_lbs = '';
   if (isset($this->nmgp_cmp_hidden['lbs']) && $this->nmgp_cmp_hidden['lbs'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['lbs']);
       $sStyleHidden_lbs = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_lbs = 'display: none;';
   $sStyleReadInp_lbs = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['lbs']) && $this->nmgp_cmp_readonly['lbs'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['lbs']);
       $sStyleReadLab_lbs = '';
       $sStyleReadInp_lbs = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['lbs']) && $this->nmgp_cmp_hidden['lbs'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="lbs" value="<?php echo NM_encode_input($lbs) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_lbs" style="<?php echo $sStyleHidden_lbs; ?>;"><span id="id_label_lbs"><?php echo $this->nm_new_label['lbs']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_lbs" style="<?php echo $sStyleHidden_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["lbs"]) &&  $this->nmgp_cmp_readonly["lbs"] == "on") { 

 ?>
<input type=hidden name="lbs" value="<?php echo NM_encode_input($lbs) . "\">" . $lbs . ""; ?>
<?php } else { ?>
<span id="id_read_on_lbs" class="sc-ui-readonly-lbs" style=";<?php echo $sStyleReadLab_lbs; ?>"><?php echo NM_encode_input($this->lbs); ?></span><span id="id_read_off_lbs" style="white-space: nowrap;<?php echo $sStyleReadInp_lbs; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_lbs" type=text name="lbs" value="<?php echo NM_encode_input($lbs) ?>"
 size=12 alt="{datatype: 'decimal', maxLength: 12, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['lbs']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['lbs']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['lbs']['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_lbs_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_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['lbs_open']))
    {
        $this->nm_new_label['lbs_open'] = "LBS_OPEN";
    }
?>
<?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);
   $lbs_open = $this->lbs_open;
   $sStyleHidden_lbs_open = '';
   if (isset($this->nmgp_cmp_hidden['lbs_open']) && $this->nmgp_cmp_hidden['lbs_open'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['lbs_open']);
       $sStyleHidden_lbs_open = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_lbs_open = 'display: none;';
   $sStyleReadInp_lbs_open = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['lbs_open']) && $this->nmgp_cmp_readonly['lbs_open'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['lbs_open']);
       $sStyleReadLab_lbs_open = '';
       $sStyleReadInp_lbs_open = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['lbs_open']) && $this->nmgp_cmp_hidden['lbs_open'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="lbs_open" value="<?php echo NM_encode_input($lbs_open) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_lbs_open" style="<?php echo $sStyleHidden_lbs_open; ?>;"><span id="id_label_lbs_open"><?php echo $this->nm_new_label['lbs_open']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_lbs_open" style="<?php echo $sStyleHidden_lbs_open; ?>;"><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["lbs_open"]) &&  $this->nmgp_cmp_readonly["lbs_open"] == "on") { 

 ?>
<input type=hidden name="lbs_open" value="<?php echo NM_encode_input($lbs_open) . "\">" . $lbs_open . ""; ?>
<?php } else { ?>
<span id="id_read_on_lbs_open" class="sc-ui-readonly-lbs_open" style=";<?php echo $sStyleReadLab_lbs_open; ?>"><?php echo NM_encode_input($this->lbs_open); ?></span><span id="id_read_off_lbs_open" style="white-space: nowrap;<?php echo $sStyleReadInp_lbs_open; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_lbs_open" type=text name="lbs_open" value="<?php echo NM_encode_input($lbs_open) ?>"
 size=11 alt="{datatype: 'decimal', maxLength: 11, precision: 0, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['lbs_open']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['lbs_open']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['lbs_open']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: true, 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_lbs_open_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_lbs_open_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['lbs_dyed']))
    {
        $this->nm_new_label['lbs_dyed'] = "LBS_DYED";
    }
?>
<?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);
   $lbs_dyed = $this->lbs_dyed;
   $sStyleHidden_lbs_dyed = '';
   if (isset($this->nmgp_cmp_hidden['lbs_dyed']) && $this->nmgp_cmp_hidden['lbs_dyed'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['lbs_dyed']);
       $sStyleHidden_lbs_dyed = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_lbs_dyed = 'display: none;';
   $sStyleReadInp_lbs_dyed = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['lbs_dyed']) && $this->nmgp_cmp_readonly['lbs_dyed'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['lbs_dyed']);
       $sStyleReadLab_lbs_dyed = '';
       $sStyleReadInp_lbs_dyed = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['lbs_dyed']) && $this->nmgp_cmp_hidden['lbs_dyed'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="lbs_dyed" value="<?php echo NM_encode_input($lbs_dyed) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_lbs_dyed" style="<?php echo $sStyleHidden_lbs_dyed; ?>;"><span id="id_label_lbs_dyed"><?php echo $this->nm_new_label['lbs_dyed']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_lbs_dyed" style="<?php echo $sStyleHidden_lbs_dyed; ?>;"><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["lbs_dyed"]) &&  $this->nmgp_cmp_readonly["lbs_dyed"] == "on") { 

 ?>
<input type=hidden name="lbs_dyed" value="<?php echo NM_encode_input($lbs_dyed) . "\">" . $lbs_dyed . ""; ?>
<?php } else { ?>
<span id="id_read_on_lbs_dyed" class="sc-ui-readonly-lbs_dyed" style=";<?php echo $sStyleReadLab_lbs_dyed; ?>"><?php echo NM_encode_input($this->lbs_dyed); ?></span><span id="id_read_off_lbs_dyed" style="white-space: nowrap;<?php echo $sStyleReadInp_lbs_dyed; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_lbs_dyed" type=text name="lbs_dyed" value="<?php echo NM_encode_input($lbs_dyed) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['lbs_dyed']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['lbs_dyed']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['lbs_dyed']['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_lbs_dyed_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_lbs_dyed_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['adjustment']))
    {
        $this->nm_new_label['adjustment'] = "ADJUSTMENT";
    }
?>
<?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);
   $adjustment = $this->adjustment;
   $sStyleHidden_adjustment = '';
   if (isset($this->nmgp_cmp_hidden['adjustment']) && $this->nmgp_cmp_hidden['adjustment'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['adjustment']);
       $sStyleHidden_adjustment = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_adjustment = 'display: none;';
   $sStyleReadInp_adjustment = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['adjustment']) && $this->nmgp_cmp_readonly['adjustment'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['adjustment']);
       $sStyleReadLab_adjustment = '';
       $sStyleReadInp_adjustment = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['adjustment']) && $this->nmgp_cmp_hidden['adjustment'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="adjustment" value="<?php echo NM_encode_input($adjustment) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_adjustment" style="<?php echo $sStyleHidden_adjustment; ?>;"><span id="id_label_adjustment"><?php echo $this->nm_new_label['adjustment']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_adjustment" style="<?php echo $sStyleHidden_adjustment; ?>;"><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["adjustment"]) &&  $this->nmgp_cmp_readonly["adjustment"] == "on") { 

 ?>
<input type=hidden name="adjustment" value="<?php echo NM_encode_input($adjustment) . "\">" . $adjustment . ""; ?>
<?php } else { ?>
<span id="id_read_on_adjustment" class="sc-ui-readonly-adjustment" style=";<?php echo $sStyleReadLab_adjustment; ?>"><?php echo NM_encode_input($this->adjustment); ?></span><span id="id_read_off_adjustment" style="white-space: nowrap;<?php echo $sStyleReadInp_adjustment; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_adjustment" type=text name="adjustment" value="<?php echo NM_encode_input($adjustment) ?>"
 size=11 alt="{datatype: 'decimal', maxLength: 11, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['adjustment']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['adjustment']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['adjustment']['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_adjustment_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_adjustment_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['inventory']))
    {
        $this->nm_new_label['inventory'] = "INVENTORY";
    }
?>
<?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);
   $inventory = $this->inventory;
   $sStyleHidden_inventory = '';
   if (isset($this->nmgp_cmp_hidden['inventory']) && $this->nmgp_cmp_hidden['inventory'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['inventory']);
       $sStyleHidden_inventory = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_inventory = 'display: none;';
   $sStyleReadInp_inventory = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['inventory']) && $this->nmgp_cmp_readonly['inventory'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['inventory']);
       $sStyleReadLab_inventory = '';
       $sStyleReadInp_inventory = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['inventory']) && $this->nmgp_cmp_hidden['inventory'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="inventory" value="<?php echo NM_encode_input($inventory) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_inventory" style="<?php echo $sStyleHidden_inventory; ?>;"><span id="id_label_inventory"><?php echo $this->nm_new_label['inventory']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_inventory" style="<?php echo $sStyleHidden_inventory; ?>;"><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["inventory"]) &&  $this->nmgp_cmp_readonly["inventory"] == "on") { 

 ?>
<input type=hidden name="inventory" value="<?php echo NM_encode_input($inventory) . "\">" . $inventory . ""; ?>
<?php } else { ?>
<span id="id_read_on_inventory" class="sc-ui-readonly-inventory" style=";<?php echo $sStyleReadLab_inventory; ?>"><?php echo NM_encode_input($this->inventory); ?></span><span id="id_read_off_inventory" style="white-space: nowrap;<?php echo $sStyleReadInp_inventory; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_inventory" type=text name="inventory" value="<?php echo NM_encode_input($inventory) ?>"
 size=11 alt="{datatype: 'decimal', maxLength: 11, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['inventory']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['inventory']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['inventory']['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_inventory_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_inventory_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['pinv']))
    {
        $this->nm_new_label['pinv'] = "PINV";
    }
?>
<?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);
   $pinv = $this->pinv;
   $sStyleHidden_pinv = '';
   if (isset($this->nmgp_cmp_hidden['pinv']) && $this->nmgp_cmp_hidden['pinv'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['pinv']);
       $sStyleHidden_pinv = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_pinv = 'display: none;';
   $sStyleReadInp_pinv = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['pinv']) && $this->nmgp_cmp_readonly['pinv'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['pinv']);
       $sStyleReadLab_pinv = '';
       $sStyleReadInp_pinv = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['pinv']) && $this->nmgp_cmp_hidden['pinv'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="pinv" value="<?php echo NM_encode_input($pinv) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_pinv" style="<?php echo $sStyleHidden_pinv; ?>;"><span id="id_label_pinv"><?php echo $this->nm_new_label['pinv']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_pinv" style="<?php echo $sStyleHidden_pinv; ?>;"><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["pinv"]) &&  $this->nmgp_cmp_readonly["pinv"] == "on") { 

 ?>
<input type=hidden name="pinv" value="<?php echo NM_encode_input($pinv) . "\">" . $pinv . ""; ?>
<?php } else { ?>
<span id="id_read_on_pinv" class="sc-ui-readonly-pinv" style=";<?php echo $sStyleReadLab_pinv; ?>"><?php echo NM_encode_input($this->pinv); ?></span><span id="id_read_off_pinv" style="white-space: nowrap;<?php echo $sStyleReadInp_pinv; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_pinv" type=text name="pinv" value="<?php echo NM_encode_input($pinv) ?>"
 size=11 alt="{datatype: 'decimal', maxLength: 11, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['pinv']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['pinv']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['pinv']['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_pinv_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_pinv_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['knit_price']))
    {
        $this->nm_new_label['knit_price'] = "KNIT_PRICE";
    }
?>
<?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);
   $knit_price = $this->knit_price;
   $sStyleHidden_knit_price = '';
   if (isset($this->nmgp_cmp_hidden['knit_price']) && $this->nmgp_cmp_hidden['knit_price'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['knit_price']);
       $sStyleHidden_knit_price = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_knit_price = 'display: none;';
   $sStyleReadInp_knit_price = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['knit_price']) && $this->nmgp_cmp_readonly['knit_price'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['knit_price']);
       $sStyleReadLab_knit_price = '';
       $sStyleReadInp_knit_price = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['knit_price']) && $this->nmgp_cmp_hidden['knit_price'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="knit_price" value="<?php echo NM_encode_input($knit_price) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_knit_price" style="<?php echo $sStyleHidden_knit_price; ?>;"><span id="id_label_knit_price"><?php echo $this->nm_new_label['knit_price']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_knit_price" style="<?php echo $sStyleHidden_knit_price; ?>;"><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["knit_price"]) &&  $this->nmgp_cmp_readonly["knit_price"] == "on") { 

 ?>
<input type=hidden name="knit_price" value="<?php echo NM_encode_input($knit_price) . "\">" . $knit_price . ""; ?>
<?php } else { ?>
<span id="id_read_on_knit_price" class="sc-ui-readonly-knit_price" style=";<?php echo $sStyleReadLab_knit_price; ?>"><?php echo NM_encode_input($this->knit_price); ?></span><span id="id_read_off_knit_price" style="white-space: nowrap;<?php echo $sStyleReadInp_knit_price; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_knit_price" type=text name="knit_price" value="<?php echo NM_encode_input($knit_price) ?>"
 size=6 alt="{datatype: 'decimal', maxLength: 6, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['knit_price']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['knit_price']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['knit_price']['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_knit_price_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_knit_price_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['cost_lb_k']))
    {
        $this->nm_new_label['cost_lb_k'] = "COST_LB_K";
    }
?>
<?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);
   $cost_lb_k = $this->cost_lb_k;
   $sStyleHidden_cost_lb_k = '';
   if (isset($this->nmgp_cmp_hidden['cost_lb_k']) && $this->nmgp_cmp_hidden['cost_lb_k'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cost_lb_k']);
       $sStyleHidden_cost_lb_k = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cost_lb_k = 'display: none;';
   $sStyleReadInp_cost_lb_k = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['cost_lb_k']) && $this->nmgp_cmp_readonly['cost_lb_k'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cost_lb_k']);
       $sStyleReadLab_cost_lb_k = '';
       $sStyleReadInp_cost_lb_k = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cost_lb_k']) && $this->nmgp_cmp_hidden['cost_lb_k'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cost_lb_k" value="<?php echo NM_encode_input($cost_lb_k) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cost_lb_k" style="<?php echo $sStyleHidden_cost_lb_k; ?>;"><span id="id_label_cost_lb_k"><?php echo $this->nm_new_label['cost_lb_k']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cost_lb_k" style="<?php echo $sStyleHidden_cost_lb_k; ?>;"><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["cost_lb_k"]) &&  $this->nmgp_cmp_readonly["cost_lb_k"] == "on") { 

 ?>
<input type=hidden name="cost_lb_k" value="<?php echo NM_encode_input($cost_lb_k) . "\">" . $cost_lb_k . ""; ?>
<?php } else { ?>
<span id="id_read_on_cost_lb_k" class="sc-ui-readonly-cost_lb_k" style=";<?php echo $sStyleReadLab_cost_lb_k; ?>"><?php echo NM_encode_input($this->cost_lb_k); ?></span><span id="id_read_off_cost_lb_k" style="white-space: nowrap;<?php echo $sStyleReadInp_cost_lb_k; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_cost_lb_k" type=text name="cost_lb_k" value="<?php echo NM_encode_input($cost_lb_k) ?>"
 size=6 alt="{datatype: 'decimal', maxLength: 6, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_lb_k']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_lb_k']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['cost_lb_k']['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_cost_lb_k_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cost_lb_k_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['totalkc']))
    {
        $this->nm_new_label['totalkc'] = "TOTALKC";
    }
?>
<?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);
   $totalkc = $this->totalkc;
   $sStyleHidden_totalkc = '';
   if (isset($this->nmgp_cmp_hidden['totalkc']) && $this->nmgp_cmp_hidden['totalkc'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['totalkc']);
       $sStyleHidden_totalkc = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_totalkc = 'display: none;';
   $sStyleReadInp_totalkc = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['totalkc']) && $this->nmgp_cmp_readonly['totalkc'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['totalkc']);
       $sStyleReadLab_totalkc = '';
       $sStyleReadInp_totalkc = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['totalkc']) && $this->nmgp_cmp_hidden['totalkc'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="totalkc" value="<?php echo NM_encode_input($totalkc) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_totalkc" style="<?php echo $sStyleHidden_totalkc; ?>;"><span id="id_label_totalkc"><?php echo $this->nm_new_label['totalkc']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_totalkc" style="<?php echo $sStyleHidden_totalkc; ?>;"><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["totalkc"]) &&  $this->nmgp_cmp_readonly["totalkc"] == "on") { 

 ?>
<input type=hidden name="totalkc" value="<?php echo NM_encode_input($totalkc) . "\">" . $totalkc . ""; ?>
<?php } else { ?>
<span id="id_read_on_totalkc" class="sc-ui-readonly-totalkc" style=";<?php echo $sStyleReadLab_totalkc; ?>"><?php echo NM_encode_input($this->totalkc); ?></span><span id="id_read_off_totalkc" style="white-space: nowrap;<?php echo $sStyleReadInp_totalkc; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_totalkc" type=text name="totalkc" value="<?php echo NM_encode_input($totalkc) ?>"
 size=11 alt="{datatype: 'decimal', maxLength: 11, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['totalkc']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['totalkc']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['totalkc']['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_totalkc_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_totalkc_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['cost_lb_y']))
    {
        $this->nm_new_label['cost_lb_y'] = "COST_LB_Y";
    }
?>
<?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);
   $cost_lb_y = $this->cost_lb_y;
   $sStyleHidden_cost_lb_y = '';
   if (isset($this->nmgp_cmp_hidden['cost_lb_y']) && $this->nmgp_cmp_hidden['cost_lb_y'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cost_lb_y']);
       $sStyleHidden_cost_lb_y = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cost_lb_y = 'display: none;';
   $sStyleReadInp_cost_lb_y = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['cost_lb_y']) && $this->nmgp_cmp_readonly['cost_lb_y'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cost_lb_y']);
       $sStyleReadLab_cost_lb_y = '';
       $sStyleReadInp_cost_lb_y = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cost_lb_y']) && $this->nmgp_cmp_hidden['cost_lb_y'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cost_lb_y" value="<?php echo NM_encode_input($cost_lb_y) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cost_lb_y" style="<?php echo $sStyleHidden_cost_lb_y; ?>;"><span id="id_label_cost_lb_y"><?php echo $this->nm_new_label['cost_lb_y']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cost_lb_y" style="<?php echo $sStyleHidden_cost_lb_y; ?>;"><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["cost_lb_y"]) &&  $this->nmgp_cmp_readonly["cost_lb_y"] == "on") { 

 ?>
<input type=hidden name="cost_lb_y" value="<?php echo NM_encode_input($cost_lb_y) . "\">" . $cost_lb_y . ""; ?>
<?php } else { ?>
<span id="id_read_on_cost_lb_y" class="sc-ui-readonly-cost_lb_y" style=";<?php echo $sStyleReadLab_cost_lb_y; ?>"><?php echo NM_encode_input($this->cost_lb_y); ?></span><span id="id_read_off_cost_lb_y" style="white-space: nowrap;<?php echo $sStyleReadInp_cost_lb_y; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_cost_lb_y" type=text name="cost_lb_y" value="<?php echo NM_encode_input($cost_lb_y) ?>"
 size=6 alt="{datatype: 'decimal', maxLength: 6, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_lb_y']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_lb_y']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['cost_lb_y']['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_cost_lb_y_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cost_lb_y_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['cost_lb']))
    {
        $this->nm_new_label['cost_lb'] = "COST_LB";
    }
?>
<?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);
   $cost_lb = $this->cost_lb;
   $sStyleHidden_cost_lb = '';
   if (isset($this->nmgp_cmp_hidden['cost_lb']) && $this->nmgp_cmp_hidden['cost_lb'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cost_lb']);
       $sStyleHidden_cost_lb = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cost_lb = 'display: none;';
   $sStyleReadInp_cost_lb = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['cost_lb']) && $this->nmgp_cmp_readonly['cost_lb'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cost_lb']);
       $sStyleReadLab_cost_lb = '';
       $sStyleReadInp_cost_lb = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cost_lb']) && $this->nmgp_cmp_hidden['cost_lb'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cost_lb" value="<?php echo NM_encode_input($cost_lb) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cost_lb" style="<?php echo $sStyleHidden_cost_lb; ?>;"><span id="id_label_cost_lb"><?php echo $this->nm_new_label['cost_lb']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cost_lb" style="<?php echo $sStyleHidden_cost_lb; ?>;"><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["cost_lb"]) &&  $this->nmgp_cmp_readonly["cost_lb"] == "on") { 

 ?>
<input type=hidden name="cost_lb" value="<?php echo NM_encode_input($cost_lb) . "\">" . $cost_lb . ""; ?>
<?php } else { ?>
<span id="id_read_on_cost_lb" class="sc-ui-readonly-cost_lb" style=";<?php echo $sStyleReadLab_cost_lb; ?>"><?php echo NM_encode_input($this->cost_lb); ?></span><span id="id_read_off_cost_lb" style="white-space: nowrap;<?php echo $sStyleReadInp_cost_lb; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_cost_lb" type=text name="cost_lb" value="<?php echo NM_encode_input($cost_lb) ?>"
 size=7 alt="{datatype: 'decimal', maxLength: 7, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_lb']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_lb']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['cost_lb']['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_cost_lb_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cost_lb_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['status']))
    {
        $this->nm_new_label['status'] = "STATUS";
    }
?>
<?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);
   $status = $this->status;
   $sStyleHidden_status = '';
   if (isset($this->nmgp_cmp_hidden['status']) && $this->nmgp_cmp_hidden['status'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['status']);
       $sStyleHidden_status = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_status = 'display: none;';
   $sStyleReadInp_status = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['status']) && $this->nmgp_cmp_readonly['status'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['status']);
       $sStyleReadLab_status = '';
       $sStyleReadInp_status = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['status']) && $this->nmgp_cmp_hidden['status'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="status" value="<?php echo NM_encode_input($status) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_status" style="<?php echo $sStyleHidden_status; ?>;"><span id="id_label_status"><?php echo $this->nm_new_label['status']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_status" style="<?php echo $sStyleHidden_status; ?>;"><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["status"]) &&  $this->nmgp_cmp_readonly["status"] == "on") { 

 ?>
<input type=hidden name="status" value="<?php echo NM_encode_input($status) . "\">" . $status . ""; ?>
<?php } else { ?>
<span id="id_read_on_status" class="sc-ui-readonly-status" style=";<?php echo $sStyleReadLab_status; ?>"><?php echo NM_encode_input($this->status); ?></span><span id="id_read_off_status" style="white-space: nowrap;<?php echo $sStyleReadInp_status; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_status" type=text name="status" value="<?php echo NM_encode_input($status) ?>"
 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_status_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_status_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 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['amount']))
    {
        $this->nm_new_label['amount'] = "AMOUNT";
    }
?>
<?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);
   $amount = $this->amount;
   $sStyleHidden_amount = '';
   if (isset($this->nmgp_cmp_hidden['amount']) && $this->nmgp_cmp_hidden['amount'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['amount']);
       $sStyleHidden_amount = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_amount = 'display: none;';
   $sStyleReadInp_amount = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['amount']) && $this->nmgp_cmp_readonly['amount'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['amount']);
       $sStyleReadLab_amount = '';
       $sStyleReadInp_amount = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['amount']) && $this->nmgp_cmp_hidden['amount'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="amount" value="<?php echo NM_encode_input($amount) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_amount" style="<?php echo $sStyleHidden_amount; ?>;"><span id="id_label_amount"><?php echo $this->nm_new_label['amount']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_amount" style="<?php echo $sStyleHidden_amount; ?>;"><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["amount"]) &&  $this->nmgp_cmp_readonly["amount"] == "on") { 

 ?>
<input type=hidden name="amount" value="<?php echo NM_encode_input($amount) . "\">" . $amount . ""; ?>
<?php } else { ?>
<span id="id_read_on_amount" class="sc-ui-readonly-amount" style=";<?php echo $sStyleReadLab_amount; ?>"><?php echo NM_encode_input($this->amount); ?></span><span id="id_read_off_amount" style="white-space: nowrap;<?php echo $sStyleReadInp_amount; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_amount" type=text name="amount" value="<?php echo NM_encode_input($amount) ?>"
 size=11 alt="{datatype: 'decimal', maxLength: 11, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['amount']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['amount']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['amount']['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_amount_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_amount_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['roll_size']))
    {
        $this->nm_new_label['roll_size'] = "ROLL_SIZE";
    }
?>
<?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);
   $roll_size = $this->roll_size;
   $sStyleHidden_roll_size = '';
   if (isset($this->nmgp_cmp_hidden['roll_size']) && $this->nmgp_cmp_hidden['roll_size'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['roll_size']);
       $sStyleHidden_roll_size = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_roll_size = 'display: none;';
   $sStyleReadInp_roll_size = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['roll_size']) && $this->nmgp_cmp_readonly['roll_size'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['roll_size']);
       $sStyleReadLab_roll_size = '';
       $sStyleReadInp_roll_size = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['roll_size']) && $this->nmgp_cmp_hidden['roll_size'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="roll_size" value="<?php echo NM_encode_input($roll_size) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_roll_size" style="<?php echo $sStyleHidden_roll_size; ?>;"><span id="id_label_roll_size"><?php echo $this->nm_new_label['roll_size']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_roll_size" style="<?php echo $sStyleHidden_roll_size; ?>;"><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["roll_size"]) &&  $this->nmgp_cmp_readonly["roll_size"] == "on") { 

 ?>
<input type=hidden name="roll_size" value="<?php echo NM_encode_input($roll_size) . "\">" . $roll_size . ""; ?>
<?php } else { ?>
<span id="id_read_on_roll_size" class="sc-ui-readonly-roll_size" style=";<?php echo $sStyleReadLab_roll_size; ?>"><?php echo NM_encode_input($this->roll_size); ?></span><span id="id_read_off_roll_size" style="white-space: nowrap;<?php echo $sStyleReadInp_roll_size; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_roll_size" type=text name="roll_size" value="<?php echo NM_encode_input($roll_size) ?>"
 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_roll_size_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_roll_size_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['spec']))
    {
        $this->nm_new_label['spec'] = "SPEC";
    }
?>
<?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);
   $spec = $this->spec;
   $sStyleHidden_spec = '';
   if (isset($this->nmgp_cmp_hidden['spec']) && $this->nmgp_cmp_hidden['spec'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['spec']);
       $sStyleHidden_spec = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_spec = 'display: none;';
   $sStyleReadInp_spec = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['spec']) && $this->nmgp_cmp_readonly['spec'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['spec']);
       $sStyleReadLab_spec = '';
       $sStyleReadInp_spec = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['spec']) && $this->nmgp_cmp_hidden['spec'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="spec" value="<?php echo NM_encode_input($spec) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_spec" style="<?php echo $sStyleHidden_spec; ?>;"><span id="id_label_spec"><?php echo $this->nm_new_label['spec']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_spec" style="<?php echo $sStyleHidden_spec; ?>;"><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["spec"]) &&  $this->nmgp_cmp_readonly["spec"] == "on") { 

 ?>
<input type=hidden name="spec" value="<?php echo NM_encode_input($spec) . "\">" . $spec . ""; ?>
<?php } else { ?>
<span id="id_read_on_spec" class="sc-ui-readonly-spec" style=";<?php echo $sStyleReadLab_spec; ?>"><?php echo NM_encode_input($this->spec); ?></span><span id="id_read_off_spec" style="white-space: nowrap;<?php echo $sStyleReadInp_spec; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_spec" type=text name="spec" value="<?php echo NM_encode_input($spec) ?>"
 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_spec_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_spec_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['mach']))
    {
        $this->nm_new_label['mach'] = "MACH";
    }
?>
<?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);
   $mach = $this->mach;
   $sStyleHidden_mach = '';
   if (isset($this->nmgp_cmp_hidden['mach']) && $this->nmgp_cmp_hidden['mach'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['mach']);
       $sStyleHidden_mach = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_mach = 'display: none;';
   $sStyleReadInp_mach = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['mach']) && $this->nmgp_cmp_readonly['mach'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['mach']);
       $sStyleReadLab_mach = '';
       $sStyleReadInp_mach = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['mach']) && $this->nmgp_cmp_hidden['mach'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="mach" value="<?php echo NM_encode_input($mach) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_mach" style="<?php echo $sStyleHidden_mach; ?>;"><span id="id_label_mach"><?php echo $this->nm_new_label['mach']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_mach" style="<?php echo $sStyleHidden_mach; ?>;"><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["mach"]) &&  $this->nmgp_cmp_readonly["mach"] == "on") { 

 ?>
<input type=hidden name="mach" value="<?php echo NM_encode_input($mach) . "\">" . $mach . ""; ?>
<?php } else { ?>
<span id="id_read_on_mach" class="sc-ui-readonly-mach" style=";<?php echo $sStyleReadLab_mach; ?>"><?php echo NM_encode_input($this->mach); ?></span><span id="id_read_off_mach" style="white-space: nowrap;<?php echo $sStyleReadInp_mach; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_mach" type=text name="mach" value="<?php echo NM_encode_input($mach) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, 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_mach_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_mach_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['production']))
    {
        $this->nm_new_label['production'] = "PRODUCTION";
    }
?>
<?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);
   $production = $this->production;
   $sStyleHidden_production = '';
   if (isset($this->nmgp_cmp_hidden['production']) && $this->nmgp_cmp_hidden['production'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['production']);
       $sStyleHidden_production = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_production = 'display: none;';
   $sStyleReadInp_production = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['production']) && $this->nmgp_cmp_readonly['production'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['production']);
       $sStyleReadLab_production = '';
       $sStyleReadInp_production = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['production']) && $this->nmgp_cmp_hidden['production'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="production" value="<?php echo NM_encode_input($production) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_production" style="<?php echo $sStyleHidden_production; ?>;"><span id="id_label_production"><?php echo $this->nm_new_label['production']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_production" style="<?php echo $sStyleHidden_production; ?>;"><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["production"]) &&  $this->nmgp_cmp_readonly["production"] == "on") { 

 ?>
<input type=hidden name="production" value="<?php echo NM_encode_input($production) . "\">" . $production . ""; ?>
<?php } else { ?>
<span id="id_read_on_production" class="sc-ui-readonly-production" style=";<?php echo $sStyleReadLab_production; ?>"><?php echo NM_encode_input($this->production); ?></span><span id="id_read_off_production" style="white-space: nowrap;<?php echo $sStyleReadInp_production; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_production" type=text name="production" value="<?php echo NM_encode_input($production) ?>"
 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_production_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_production_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['ac']))
    {
        $this->nm_new_label['ac'] = "AC";
    }
?>
<?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);
   $ac = $this->ac;
   $sStyleHidden_ac = '';
   if (isset($this->nmgp_cmp_hidden['ac']) && $this->nmgp_cmp_hidden['ac'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['ac']);
       $sStyleHidden_ac = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_ac = 'display: none;';
   $sStyleReadInp_ac = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['ac']) && $this->nmgp_cmp_readonly['ac'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['ac']);
       $sStyleReadLab_ac = '';
       $sStyleReadInp_ac = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['ac']) && $this->nmgp_cmp_hidden['ac'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="ac" value="<?php echo NM_encode_input($ac) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_ac" style="<?php echo $sStyleHidden_ac; ?>;"><span id="id_label_ac"><?php echo $this->nm_new_label['ac']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_ac" style="<?php echo $sStyleHidden_ac; ?>;"><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["ac"]) &&  $this->nmgp_cmp_readonly["ac"] == "on") { 

 ?>
<input type=hidden name="ac" value="<?php echo NM_encode_input($ac) . "\">" . $ac . ""; ?>
<?php } else { ?>
<span id="id_read_on_ac" class="sc-ui-readonly-ac" style=";<?php echo $sStyleReadLab_ac; ?>"><?php echo NM_encode_input($this->ac); ?></span><span id="id_read_off_ac" style="white-space: nowrap;<?php echo $sStyleReadInp_ac; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_ac" type=text name="ac" value="<?php echo NM_encode_input($ac) ?>"
 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_ac_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ac_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['lbs_rack']))
    {
        $this->nm_new_label['lbs_rack'] = "LBS_RACK";
    }
?>
<?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);
   $lbs_rack = $this->lbs_rack;
   $sStyleHidden_lbs_rack = '';
   if (isset($this->nmgp_cmp_hidden['lbs_rack']) && $this->nmgp_cmp_hidden['lbs_rack'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['lbs_rack']);
       $sStyleHidden_lbs_rack = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_lbs_rack = 'display: none;';
   $sStyleReadInp_lbs_rack = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['lbs_rack']) && $this->nmgp_cmp_readonly['lbs_rack'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['lbs_rack']);
       $sStyleReadLab_lbs_rack = '';
       $sStyleReadInp_lbs_rack = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['lbs_rack']) && $this->nmgp_cmp_hidden['lbs_rack'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="lbs_rack" value="<?php echo NM_encode_input($lbs_rack) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_lbs_rack" style="<?php echo $sStyleHidden_lbs_rack; ?>;"><span id="id_label_lbs_rack"><?php echo $this->nm_new_label['lbs_rack']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_lbs_rack" style="<?php echo $sStyleHidden_lbs_rack; ?>;"><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["lbs_rack"]) &&  $this->nmgp_cmp_readonly["lbs_rack"] == "on") { 

 ?>
<input type=hidden name="lbs_rack" value="<?php echo NM_encode_input($lbs_rack) . "\">" . $lbs_rack . ""; ?>
<?php } else { ?>
<span id="id_read_on_lbs_rack" class="sc-ui-readonly-lbs_rack" style=";<?php echo $sStyleReadLab_lbs_rack; ?>"><?php echo NM_encode_input($this->lbs_rack); ?></span><span id="id_read_off_lbs_rack" style="white-space: nowrap;<?php echo $sStyleReadInp_lbs_rack; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_lbs_rack" type=text name="lbs_rack" value="<?php echo NM_encode_input($lbs_rack) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 4, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['lbs_rack']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['lbs_rack']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['lbs_rack']['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_lbs_rack_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_lbs_rack_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]['greige_greigepo_greige_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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]['greige_greigepo_greige_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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]['greige_greigepo_greige_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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]['greige_greigepo_greige_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['run_iframe'] != "F") { ?><script>summary_atualiza(<?php echo ($_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['reg_start'] + 1). ", " . $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_form']['reg_qtd'] . ", " . ($_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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]['greige_greigepo_greige_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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("greige_greigepo_greige_form");
 parent.scAjaxDetailHeight("greige_greigepo_greige_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("greige_greigepo_greige_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]['greige_greigepo_greige_form']['sc_modal']) && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_greigepo_greige_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> 
