<?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("Dye Orders"); } else { echo strip_tags("Dye Orders"); } ?></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("line_dyeorder_grid_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('line_dyeorder_grid_jquery.php');

?>

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

  scJQElementsAdd('');

  scJQGeneralAdd();

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

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

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

  var i, iTestWidth, iMaxLabelWidth = 0, $labelList = $(".scUiLabelWidthFix");
  for (i = 0; i < $labelList.length; i++) {
    iTestWidth = $($labelList[i]).width();
    sTestWidth = iTestWidth + "";
    if ("" == iTestWidth) {
      iTestWidth = 0;
    }
    else if ("px" == sTestWidth.substr(sTestWidth.length - 2)) {
      iTestWidth = parseInt(sTestWidth.substr(0, sTestWidth.length - 2));
    }
    iMaxLabelWidth = Math.max(iMaxLabelWidth, iTestWidth);
  }
  if (0 < iMaxLabelWidth) {
    $(".scUiLabelWidthFix").css("width", iMaxLabelWidth + "px");
  }
<?php
if (!$this->NM_ajax_flag && isset($this->NM_non_ajax_info['ajaxJavascript']) && !empty($this->NM_non_ajax_info['ajaxJavascript']))
{
    foreach ($this->NM_non_ajax_info['ajaxJavascript'] as $aFnData)
    {
?>
  <?php echo $aFnData[0]; ?>(<?php echo implode(', ', $aFnData[1]); ?>);

<?php
    }
}
?>
 });

   $(window).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 = {
    "hidden_bloco_0": true,
    "hidden_bloco_1": false,
    "hidden_bloco_2": false,
    "hidden_bloco_3": false,
    "hidden_bloco_4": false
 };

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

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

  show_block[block_id] = !show_block[block_id];

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

  for (var i = 1; i < block.rows.length; i++) {
   if (show_block[block_id])
    $(block.rows[i]).show();
   else
    $(block.rows[i]).hide();
  }

  if (show_block[block_id]) {
    if ("hidden_bloco_6" == block_id) {
      scAjaxDetailHeight("dye_grpcs_edit_grid", $($("#nmsc_iframe_liga_dye_grpcs_edit_grid")[0].contentWindow.document).innerHeight());
    }
    if ("hidden_bloco_7" == block_id) {
      scAjaxDetailHeight("dye_doco_edit_grid", $($("#nmsc_iframe_liga_dye_doco_edit_grid")[0].contentWindow.document).innerHeight());
    }
    if ("hidden_bloco_8" == block_id) {
      scAjaxDetailHeight("dye_fgtemp_form", $($("#nmsc_iframe_liga_dye_fgtemp_form")[0].contentWindow.document).innerHeight());
    }
    if ("hidden_bloco_9" == block_id) {
      scAjaxDetailHeight("dye_grpcs_add_grid", $($("#nmsc_iframe_liga_dye_grpcs_add_grid")[0].contentWindow.document).innerHeight());
    }
  }
 }

 function changeImgName(imgOld, imgNew) {
   var aOld = imgOld.split("/");
   aOld.pop();
   aOld.push(imgNew);
   return aOld.join("/");
 }

</script>
</HEAD>
<?php
$str_iframe_body = ('F' == $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['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]['line_dyeorder_grid']['opc_ant'] = "novo";
    $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['recarga'] = "novo";
}
if (empty($_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['recarga']))
{
    $opcao_botoes = $this->nmgp_opcao;
}
else
{
    $opcao_botoes = $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['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("line_dyeorder_grid_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]['line_dyeorder_grid']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['run_iframe']) ? 0 : "0px";
?>
<?php
$_SESSION['scriptcase']['error_span_title']['line_dyeorder_grid'] = $this->Ini->Error_icon_span;
$_SESSION['scriptcase']['error_icon_title']['line_dyeorder_grid'] = '' != $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="left" cellpadding="<?php echo $int_iframe_padding; ?>" cellspacing=0 class="scFormBorder"  width="100%">
<?php
  if (!$this->Embutida_call && (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['mostra_cab']) || $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['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 "Dye Orders"; } else { echo "Dye Orders"; } ?></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]['line_dyeorder_grid']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['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]['line_dyeorder_grid']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['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]['line_dyeorder_grid']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['fast_search'][0] : "";
          $OPC_arg = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['fast_search'][1] : "";
          $OPC_dat = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['fast_search'][2] : "";
?> 
           <script type="text/javascript">var change_fast_t = "";</script>
          <select class="scFormToolbarInput" style="vertical-align: middle;" name="nmgp_fast_search_t" onChange="change_fast_t = 'CH';">
<?php 
          $SC_Label_atu['p_o_number'] = (isset($this->nm_new_label['p_o_number'])) ? $this->nm_new_label['p_o_number'] : 'P O NUMBER'; 
          $SC_Label_atu['dyer'] = (isset($this->nm_new_label['dyer'])) ? $this->nm_new_label['dyer'] : 'DYER'; 
          $SC_Label_atu['status'] = (isset($this->nm_new_label['status'])) ? $this->nm_new_label['status'] : 'STATUS'; 
          $SC_Label_atu['color'] = (isset($this->nm_new_label['color'])) ? $this->nm_new_label['color'] : 'COLOR'; 
          $SC_Label_atu['fs'] = (isset($this->nm_new_label['fs'])) ? $this->nm_new_label['fs'] : 'FS'; 
          $SC_Label_atu['gs'] = (isset($this->nm_new_label['gs'])) ? $this->nm_new_label['gs'] : 'GS'; 
          foreach ($SC_Label_atu as $CMP => $LABEL)
          {
              $OPC_sel = ($CMP == $OPC_cmp) ? " selected" : "";
              echo "           <option value='" . $CMP . "'" . $OPC_sel . ">" . $LABEL . "</option>";
          }
?> 
          </select>
          <select class="scFormToolbarInput" style="vertical-align: middle;" name="nmgp_cond_fast_search_t" onChange="change_fast_t = 'CH';">
<?php 
          $OPC_sel = ("eq" == $OPC_arg) ? " selected" : "";
           echo "           <option value='eq'" . $OPC_sel . ">" . $this->Ini->Nm_lang['lang_srch_exac'] . "</option>";
          $OPC_sel = ("ii" == $OPC_arg) ? " selected" : "";
           echo "           <option value='ii'" . $OPC_sel . ">" . $this->Ini->Nm_lang['lang_srch_stts_with'] . "</option>";
          $OPC_sel = ("qp" == $OPC_arg) ? " selected" : "";
           echo "           <option value='qp'" . $OPC_sel . ">" . $this->Ini->Nm_lang['lang_srch_like'] . "</option>";
?> 
          </select>
          <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;
    }
    if (($opcao_botoes != "novo") && ($opcao_botoes != "novo")) {
        $sCondStyle = ($this->nmgp_botoes['sc_btn_0'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "sc_btn_0", "sc_btn_sc_btn_0()", "sc_btn_sc_btn_0()", "sc_sc_btn_0_top", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && ($opcao_botoes != "novo")) {
        $sCondStyle = ($this->nmgp_botoes['sc_btn_0'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "sc_btn_0", "sc_btn_sc_btn_0()", "sc_btn_sc_btn_0()", "sc_sc_btn_0_top", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && ($opcao_botoes != "novo")) {
        $sCondStyle = ($this->nmgp_botoes['sc_btn_1'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "sc_btn_1", "sc_btn_sc_btn_1()", "sc_btn_sc_btn_1()", "sc_sc_btn_1_top", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && ($opcao_botoes != "novo")) {
        $sCondStyle = ($this->nmgp_botoes['sc_btn_1'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "sc_btn_1", "sc_btn_sc_btn_1()", "sc_btn_sc_btn_1()", "sc_sc_btn_1_top", "", "", "" . $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]['line_dyeorder_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['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]['line_dyeorder_grid']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['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]['line_dyeorder_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['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]['line_dyeorder_grid']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['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]['line_dyeorder_grid']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['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]['line_dyeorder_grid']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['line_dyeorder_grid']['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
  {
?>
<script type="text/javascript">
var pag_ativa = "line_dyeorder_grid_form0";
</script>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" BGCOLOR="" width=100%>
<tr>
<?php
    if (empty($nmgp_num_form) || $nmgp_num_form == "line_dyeorder_grid_form0")
    {
        $css_celula = "scTabActive";
        $css_fonte  = "scTabActiveFont scTabActiveFontCustom";
        $sImgTL     = $str_active_top_esq;
        $sImgT      = $str_active_lin_top;
        $sImgTR     = $str_active_top_dir;
        $sImgL      = $str_active_col_esq;
        $sImgR      = $str_active_col_dir;
    }
    else
    {
        $css_celula = "scTabInactive";
        $css_fonte  = "scTabInactiveFont scTabInactiveFontCustom";
        $sImgTL     = $str_inactive_top_esq;
        $sImgT      = $str_inactive_lin_top;
        $sImgTR     = $str_inactive_top_dir;
        $sImgL      = $str_inactive_col_esq;
        $sImgR      = $str_inactive_col_dir;
    }
?>
   <td>
         <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
          <TR HEIGHT="1">
           <TD WIDTH="1"><IMG ID="id_line_dyeorder_grid_form0_tl" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTL; ?>" BORDER="0"></TD>
           <TD ID="id_line_dyeorder_grid_form0_t" HEIGHT="3" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgT;  ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD WIDTH="1"><IMG ID="id_line_dyeorder_grid_form0_tr" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTR;  ?>" BORDER="0"></TD>
          </TR>
          <TR>
           <TD ID="id_line_dyeorder_grid_form0_4" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgL; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD ID="id_line_dyeorder_grid_form0_5" nowrap class="<?php echo $css_celula; ?> <?php echo $css_celula; ?>Bg"><A HREF="javascript:sc_exib_ocult_pag ('line_dyeorder_grid_form0')" class="<?php echo $css_fonte; ?>" ID="id_line_dyeorder_grid_form0_font">Main</TD>
           <TD ID="id_line_dyeorder_grid_form0_6" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgR; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
          </TR>
         </TABLE>
   </td>
<td><img src="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" border="0" width="1px"/></td>
<?php
    if ($nmgp_num_form == "line_dyeorder_grid_form1")
    {
        $css_celula = "scTabActive";
        $css_fonte  = "scTabActiveFont scTabActiveFontCustom";
        $sImgTL     = $str_active_top_esq;
        $sImgT      = $str_active_lin_top;
        $sImgTR     = $str_active_top_dir;
        $sImgL      = $str_active_col_esq;
        $sImgR      = $str_active_col_dir;
    }
    else
    {
        $css_celula = "scTabInactive";
        $css_fonte  = "scTabInactiveFont scTabInactiveFontCustom";
        $sImgTL     = $str_inactive_top_esq;
        $sImgT      = $str_inactive_lin_top;
        $sImgTR     = $str_inactive_top_dir;
        $sImgL      = $str_inactive_col_esq;
        $sImgR      = $str_inactive_col_dir;
    }
?>
   <td>
         <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
          <TR HEIGHT="1">
           <TD WIDTH="1"><IMG ID="id_line_dyeorder_grid_form1_tl" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTL; ?>" BORDER="0"></TD>
           <TD ID="id_line_dyeorder_grid_form1_t" HEIGHT="3" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgT;  ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD WIDTH="1"><IMG ID="id_line_dyeorder_grid_form1_tr" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTR;  ?>" BORDER="0"></TD>
          </TR>
          <TR>
           <TD ID="id_line_dyeorder_grid_form1_4" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgL; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD ID="id_line_dyeorder_grid_form1_5" nowrap class="<?php echo $css_celula; ?> <?php echo $css_celula; ?>Bg"><A HREF="javascript:sc_exib_ocult_pag ('line_dyeorder_grid_form1')" class="<?php echo $css_fonte; ?>" ID="id_line_dyeorder_grid_form1_font">Submit</TD>
           <TD ID="id_line_dyeorder_grid_form1_6" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgR; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
          </TR>
         </TABLE>
   </td>
<td><img src="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" border="0" width="1px"/></td>
<?php
    if ($nmgp_num_form == "line_dyeorder_grid_form2")
    {
        $css_celula = "scTabActive";
        $css_fonte  = "scTabActiveFont scTabActiveFontCustom";
        $sImgTL     = $str_active_top_esq;
        $sImgT      = $str_active_lin_top;
        $sImgTR     = $str_active_top_dir;
        $sImgL      = $str_active_col_esq;
        $sImgR      = $str_active_col_dir;
    }
    else
    {
        $css_celula = "scTabInactive";
        $css_fonte  = "scTabInactiveFont scTabInactiveFontCustom";
        $sImgTL     = $str_inactive_top_esq;
        $sImgT      = $str_inactive_lin_top;
        $sImgTR     = $str_inactive_top_dir;
        $sImgL      = $str_inactive_col_esq;
        $sImgR      = $str_inactive_col_dir;
    }
?>
   <td>
         <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
          <TR HEIGHT="1">
           <TD WIDTH="1"><IMG ID="id_line_dyeorder_grid_form2_tl" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTL; ?>" BORDER="0"></TD>
           <TD ID="id_line_dyeorder_grid_form2_t" HEIGHT="3" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgT;  ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD WIDTH="1"><IMG ID="id_line_dyeorder_grid_form2_tr" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTR;  ?>" BORDER="0"></TD>
          </TR>
          <TR>
           <TD ID="id_line_dyeorder_grid_form2_4" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgL; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD ID="id_line_dyeorder_grid_form2_5" nowrap class="<?php echo $css_celula; ?> <?php echo $css_celula; ?>Bg"><A HREF="javascript:sc_exib_ocult_pag ('line_dyeorder_grid_form2')" class="<?php echo $css_fonte; ?>" ID="id_line_dyeorder_grid_form2_font">Greige Pieces On Dye Order</TD>
           <TD ID="id_line_dyeorder_grid_form2_6" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgR; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
          </TR>
         </TABLE>
   </td>
<td><img src="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" border="0" width="1px"/></td>
<?php
    if ($nmgp_num_form == "line_dyeorder_grid_form3")
    {
        $css_celula = "scTabActive";
        $css_fonte  = "scTabActiveFont scTabActiveFontCustom";
        $sImgTL     = $str_active_top_esq;
        $sImgT      = $str_active_lin_top;
        $sImgTR     = $str_active_top_dir;
        $sImgL      = $str_active_col_esq;
        $sImgR      = $str_active_col_dir;
    }
    else
    {
        $css_celula = "scTabInactive";
        $css_fonte  = "scTabInactiveFont scTabInactiveFontCustom";
        $sImgTL     = $str_inactive_top_esq;
        $sImgT      = $str_inactive_lin_top;
        $sImgTR     = $str_inactive_top_dir;
        $sImgL      = $str_inactive_col_esq;
        $sImgR      = $str_inactive_col_dir;
    }
?>
   <td>
         <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
          <TR HEIGHT="1">
           <TD WIDTH="1"><IMG ID="id_line_dyeorder_grid_form3_tl" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTL; ?>" BORDER="0"></TD>
           <TD ID="id_line_dyeorder_grid_form3_t" HEIGHT="3" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgT;  ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD WIDTH="1"><IMG ID="id_line_dyeorder_grid_form3_tr" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTR;  ?>" BORDER="0"></TD>
          </TR>
          <TR>
           <TD ID="id_line_dyeorder_grid_form3_4" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgL; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD ID="id_line_dyeorder_grid_form3_5" nowrap class="<?php echo $css_celula; ?> <?php echo $css_celula; ?>Bg"><A HREF="javascript:sc_exib_ocult_pag ('line_dyeorder_grid_form3')" class="<?php echo $css_fonte; ?>" ID="id_line_dyeorder_grid_form3_font">Customer Orders</TD>
           <TD ID="id_line_dyeorder_grid_form3_6" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgR; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
          </TR>
         </TABLE>
   </td>
<td><img src="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" border="0" width="1px"/></td>
<?php
    if ($nmgp_num_form == "line_dyeorder_grid_form4")
    {
        $css_celula = "scTabActive";
        $css_fonte  = "scTabActiveFont scTabActiveFontCustom";
        $sImgTL     = $str_active_top_esq;
        $sImgT      = $str_active_lin_top;
        $sImgTR     = $str_active_top_dir;
        $sImgL      = $str_active_col_esq;
        $sImgR      = $str_active_col_dir;
    }
    else
    {
        $css_celula = "scTabInactive";
        $css_fonte  = "scTabInactiveFont scTabInactiveFontCustom";
        $sImgTL     = $str_inactive_top_esq;
        $sImgT      = $str_inactive_lin_top;
        $sImgTR     = $str_inactive_top_dir;
        $sImgL      = $str_inactive_col_esq;
        $sImgR      = $str_inactive_col_dir;
    }
?>
   <td>
         <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
          <TR HEIGHT="1">
           <TD WIDTH="1"><IMG ID="id_line_dyeorder_grid_form4_tl" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTL; ?>" BORDER="0"></TD>
           <TD ID="id_line_dyeorder_grid_form4_t" HEIGHT="3" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgT;  ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD WIDTH="1"><IMG ID="id_line_dyeorder_grid_form4_tr" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTR;  ?>" BORDER="0"></TD>
          </TR>
          <TR>
           <TD ID="id_line_dyeorder_grid_form4_4" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgL; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD ID="id_line_dyeorder_grid_form4_5" nowrap class="<?php echo $css_celula; ?> <?php echo $css_celula; ?>Bg"><A HREF="javascript:sc_exib_ocult_pag ('line_dyeorder_grid_form4')" class="<?php echo $css_fonte; ?>" ID="id_line_dyeorder_grid_form4_font">Receivers</TD>
           <TD ID="id_line_dyeorder_grid_form4_6" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgR; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
          </TR>
         </TABLE>
   </td>
<td><img src="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" border="0" width="1px"/></td>
<?php
    if ($nmgp_num_form == "line_dyeorder_grid_form5")
    {
        $css_celula = "scTabActive";
        $css_fonte  = "scTabActiveFont scTabActiveFontCustom";
        $sImgTL     = $str_active_top_esq;
        $sImgT      = $str_active_lin_top;
        $sImgTR     = $str_active_top_dir;
        $sImgL      = $str_active_col_esq;
        $sImgR      = $str_active_col_dir;
    }
    else
    {
        $css_celula = "scTabInactive";
        $css_fonte  = "scTabInactiveFont scTabInactiveFontCustom";
        $sImgTL     = $str_inactive_top_esq;
        $sImgT      = $str_inactive_lin_top;
        $sImgTR     = $str_inactive_top_dir;
        $sImgL      = $str_inactive_col_esq;
        $sImgR      = $str_inactive_col_dir;
    }
?>
   <td>
         <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
          <TR HEIGHT="1">
           <TD WIDTH="1"><IMG ID="id_line_dyeorder_grid_form5_tl" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTL; ?>" BORDER="0"></TD>
           <TD ID="id_line_dyeorder_grid_form5_t" HEIGHT="3" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgT;  ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD WIDTH="1"><IMG ID="id_line_dyeorder_grid_form5_tr" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTR;  ?>" BORDER="0"></TD>
          </TR>
          <TR>
           <TD ID="id_line_dyeorder_grid_form5_4" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgL; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD ID="id_line_dyeorder_grid_form5_5" nowrap class="<?php echo $css_celula; ?> <?php echo $css_celula; ?>Bg"><A HREF="javascript:sc_exib_ocult_pag ('line_dyeorder_grid_form5')" class="<?php echo $css_fonte; ?>" ID="id_line_dyeorder_grid_form5_font">Add Greige</TD>
           <TD ID="id_line_dyeorder_grid_form5_6" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgR; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
          </TR>
         </TABLE>
   </td>
<td><img src="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" border="0" width="1px"/></td>
<td width=100%></td>
</tr>
</TABLE>
</td></tr> 
<tr><td style="padding: 0px <?php echo ('' == $int_iframe_padding) ? '0' : $int_iframe_padding; ?>px">
<div id="line_dyeorder_grid_form0" style='display: none; width: 1px; height: 0px; overflow: scroll'>
<?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 ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['id2']))
           {
               $this->nmgp_cmp_readonly['id2'] = 'on';
           }
?>
   <tr>


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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_id2" style="<?php echo $sStyleHidden_id2; ?>;"><span id="id_label_id2"><?php echo $this->nm_new_label['id2']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_id2" style="<?php echo $sStyleHidden_id2; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ((isset($this->Embutida_form) && $this->Embutida_form) || ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir")) { 
 ?>
<span id="id_read_on_id2" style=";<?php echo $sStyleReadLab_id2; ?>"><?php echo NM_encode_input($this->id2); ?></span><span id="id_read_off_id2" style="<?php echo $sStyleReadInp_id2; ?>"><input type=hidden name="id2" value="<?php echo NM_encode_input($id2) . "\">"?><span id="id_ajax_label_id2"><?php echo nl2br($id2); ?></span>
</span><?php } else { ?>
&nbsp;
<?php } ?>
</span></td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_id2_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_id2_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?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" && $this->nmgp_opc_ant != "incluir") || */(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; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ((isset($this->Embutida_form) && $this->Embutida_form) || ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir")) { 
 ?>
<span id="id_read_on_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="<?php echo $sStyleReadInp_p_o_number; ?>"><input type=hidden name="p_o_number" value="<?php echo NM_encode_input($p_o_number) . "\">"?><span id="id_ajax_label_p_o_number"><?php echo nl2br($p_o_number); ?></span>
</span><?php } else { ?>
&nbsp;
<?php } ?>
</span></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 (!isset($this->nm_new_label['fin_no']))
    {
        $this->nm_new_label['fin_no'] = "FIN NO";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $fin_no = $this->fin_no;
   $sStyleHidden_fin_no = '';
   if (isset($this->nmgp_cmp_hidden['fin_no']) && $this->nmgp_cmp_hidden['fin_no'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['fin_no']);
       $sStyleHidden_fin_no = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_fin_no = 'display: none;';
   $sStyleReadInp_fin_no = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['fin_no']) && $this->nmgp_cmp_readonly['fin_no'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['fin_no']);
       $sStyleReadLab_fin_no = '';
       $sStyleReadInp_fin_no = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['fin_no']) && $this->nmgp_cmp_hidden['fin_no'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="fin_no" value="<?php echo NM_encode_input($fin_no) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

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

 ?>
<input type=hidden name="fin_no" value="<?php echo NM_encode_input($fin_no) . "\">" . $fin_no . ""; ?>
<?php } else { ?>
<span id="id_read_on_fin_no" class="sc-ui-readonly-fin_no" style=";<?php echo $sStyleReadLab_fin_no; ?>"><?php echo NM_encode_input($this->fin_no); ?></span><span id="id_read_off_fin_no" style="white-space: nowrap;<?php echo $sStyleReadInp_fin_no; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_fin_no" type=text name="fin_no" value="<?php echo NM_encode_input($fin_no) ?>"
 size=5 maxlength=5 alt="{datatype: 'text', maxLength: 5, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_fin_no_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_fin_no_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?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" && $this->nmgp_opc_ant != "incluir") || */(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; ?>vertical-align: top;;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["status"]) &&  $this->nmgp_cmp_readonly["status"] == "on")) { 

 ?>
<input type=hidden name="status" value="<?php echo NM_encode_input($status) . "\"><span id=\"id_ajax_label_status\">" . $status . "</span>"; ?>
<?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['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" && $this->nmgp_opc_ant != "incluir") || */(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; ?>vertical-align: top;;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["date"]) &&  $this->nmgp_cmp_readonly["date"] == "on")) { 

 ?>
<input type=hidden name="date" value="<?php echo NM_encode_input($date) . "\"><span id=\"id_ajax_label_date\">" . $date . "</span>"; ?>
<?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 (!isset($this->nm_new_label['dyer']))
    {
        $this->nm_new_label['dyer'] = "DYER";
    }
?>
<?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);
   $dyer = $this->dyer;
   $sStyleHidden_dyer = '';
   if (isset($this->nmgp_cmp_hidden['dyer']) && $this->nmgp_cmp_hidden['dyer'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['dyer']);
       $sStyleHidden_dyer = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_dyer = 'display: none;';
   $sStyleReadInp_dyer = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['dyer']) && $this->nmgp_cmp_readonly['dyer'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['dyer']);
       $sStyleReadLab_dyer = '';
       $sStyleReadInp_dyer = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['dyer']) && $this->nmgp_cmp_hidden['dyer'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="dyer" value="<?php echo NM_encode_input($dyer) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_dyer" style="<?php echo $sStyleHidden_dyer; ?>;"><span id="id_label_dyer"><?php echo $this->nm_new_label['dyer']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_dyer" style="<?php echo $sStyleHidden_dyer; ?>vertical-align: top;;"><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["dyer"]) &&  $this->nmgp_cmp_readonly["dyer"] == "on") { 

 ?>
<input type=hidden name="dyer" value="<?php echo NM_encode_input($dyer) . "\">" . $dyer . ""; ?>
<?php } else { ?>
<span id="id_read_on_dyer" class="sc-ui-readonly-dyer" style=";<?php echo $sStyleReadLab_dyer; ?>"><?php echo NM_encode_input($this->dyer); ?></span><span id="id_read_off_dyer" style="white-space: nowrap;<?php echo $sStyleReadInp_dyer; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_dyer" type=text name="dyer" value="<?php echo NM_encode_input($dyer) ?>"
 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_dyer_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_dyer_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?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; ?>vertical-align: top;;"><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=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_desc1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_desc1_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?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; ?>vertical-align: top;;"><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=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_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['gs']))
    {
        $this->nm_new_label['gs'] = "GS";
    }
?>
<?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);
   $gs = $this->gs;
   $sStyleHidden_gs = '';
   if (isset($this->nmgp_cmp_hidden['gs']) && $this->nmgp_cmp_hidden['gs'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['gs']);
       $sStyleHidden_gs = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_gs = 'display: none;';
   $sStyleReadInp_gs = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['gs']) && $this->nmgp_cmp_readonly['gs'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['gs']);
       $sStyleReadLab_gs = '';
       $sStyleReadInp_gs = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['gs']) && $this->nmgp_cmp_hidden['gs'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="gs" value="<?php echo NM_encode_input($gs) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_gs" style="<?php echo $sStyleHidden_gs; ?>;"><span id="id_label_gs"><?php echo $this->nm_new_label['gs']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_gs" style="<?php echo $sStyleHidden_gs; ?>vertical-align: top;;"><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["gs"]) &&  $this->nmgp_cmp_readonly["gs"] == "on") { 

 ?>
<input type=hidden name="gs" value="<?php echo NM_encode_input($gs) . "\">" . $gs . ""; ?>
<?php } else { ?>
<span id="id_read_on_gs" class="sc-ui-readonly-gs" style=";<?php echo $sStyleReadLab_gs; ?>"><?php echo NM_encode_input($this->gs); ?></span><span id="id_read_off_gs" style="white-space: nowrap;<?php echo $sStyleReadInp_gs; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_gs" type=text name="gs" value="<?php echo NM_encode_input($gs) ?>"
 size=12 maxlength=12 alt="{datatype: 'text', maxLength: 12, 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_gs_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gs_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_knitter" style="<?php echo $sStyleHidden_knitter; ?>;"><span id="id_label_knitter"><?php echo $this->nm_new_label['knitter']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_knitter" style="<?php echo $sStyleHidden_knitter; ?>vertical-align: top;;"><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["knitter"]) &&  $this->nmgp_cmp_readonly["knitter"] == "on") { 

 ?>
<input type=hidden name="knitter" value="<?php echo NM_encode_input($knitter) . "\">" . $knitter . ""; ?>
<?php } else { ?>
<span id="id_read_on_knitter" class="sc-ui-readonly-knitter" style=";<?php echo $sStyleReadLab_knitter; ?>"><?php echo NM_encode_input($this->knitter); ?></span><span id="id_read_off_knitter" style="white-space: nowrap;<?php echo $sStyleReadInp_knitter; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_knitter" type=text name="knitter" value="<?php echo NM_encode_input($knitter) ?>"
 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_knitter_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_knitter_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_ggd" style="<?php echo $sStyleHidden_ggd; ?>;"><span id="id_label_ggd"><?php echo $this->nm_new_label['ggd']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_ggd" style="<?php echo $sStyleHidden_ggd; ?>vertical-align: top;;"><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["ggd"]) &&  $this->nmgp_cmp_readonly["ggd"] == "on") { 

 ?>
<input type=hidden name="ggd" value="<?php echo NM_encode_input($ggd) . "\">" . $ggd . ""; ?>
<?php } else { ?>
<span id="id_read_on_ggd" class="sc-ui-readonly-ggd" style=";<?php echo $sStyleReadLab_ggd; ?>"><?php echo NM_encode_input($this->ggd); ?></span><span id="id_read_off_ggd" style="white-space: nowrap;<?php echo $sStyleReadInp_ggd; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_ggd" type=text name="ggd" value="<?php echo NM_encode_input($ggd) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['ggd']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['ggd']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"><?php
$tmp_form_data = $this->field_config['ggd']['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_ggd_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ggd_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_fs" style="<?php echo $sStyleHidden_fs; ?>;"><span id="id_label_fs"><?php echo $this->nm_new_label['fs']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_fs" style="<?php echo $sStyleHidden_fs; ?>vertical-align: top;;"><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["fs"]) &&  $this->nmgp_cmp_readonly["fs"] == "on") { 

 ?>
<input type=hidden name="fs" value="<?php echo NM_encode_input($fs) . "\">" . $fs . ""; ?>
<?php } else { ?>
<span id="id_read_on_fs" class="sc-ui-readonly-fs" style=";<?php echo $sStyleReadLab_fs; ?>"><?php echo NM_encode_input($this->fs); ?></span><span id="id_read_off_fs" style="white-space: nowrap;<?php echo $sStyleReadInp_fs; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_fs" type=text name="fs" value="<?php echo NM_encode_input($fs) ?>"
 size=12 maxlength=12 alt="{datatype: 'text', maxLength: 12, 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_fs_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_fs_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['greige_wi']))
    {
        $this->nm_new_label['greige_wi'] = "GREIGE WI";
    }
?>
<?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);
   $greige_wi = $this->greige_wi;
   $sStyleHidden_greige_wi = '';
   if (isset($this->nmgp_cmp_hidden['greige_wi']) && $this->nmgp_cmp_hidden['greige_wi'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['greige_wi']);
       $sStyleHidden_greige_wi = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_greige_wi = 'display: none;';
   $sStyleReadInp_greige_wi = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['greige_wi']) && $this->nmgp_cmp_readonly['greige_wi'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['greige_wi']);
       $sStyleReadLab_greige_wi = '';
       $sStyleReadInp_greige_wi = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['greige_wi']) && $this->nmgp_cmp_hidden['greige_wi'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="greige_wi" value="<?php echo NM_encode_input($greige_wi) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_greige_wi" style="<?php echo $sStyleHidden_greige_wi; ?>;"><span id="id_label_greige_wi"><?php echo $this->nm_new_label['greige_wi']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_greige_wi" style="<?php echo $sStyleHidden_greige_wi; ?>vertical-align: top;;"><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["greige_wi"]) &&  $this->nmgp_cmp_readonly["greige_wi"] == "on") { 

 ?>
<input type=hidden name="greige_wi" value="<?php echo NM_encode_input($greige_wi) . "\">" . $greige_wi . ""; ?>
<?php } else { ?>
<span id="id_read_on_greige_wi" class="sc-ui-readonly-greige_wi" style=";<?php echo $sStyleReadLab_greige_wi; ?>"><?php echo NM_encode_input($this->greige_wi); ?></span><span id="id_read_off_greige_wi" style="white-space: nowrap;<?php echo $sStyleReadInp_greige_wi; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_greige_wi" type=text name="greige_wi" value="<?php echo NM_encode_input($greige_wi) ?>"
 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_greige_wi_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_greige_wi_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_put_up" style="<?php echo $sStyleHidden_put_up; ?>;"><span id="id_label_put_up"><?php echo $this->nm_new_label['put_up']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_put_up" style="<?php echo $sStyleHidden_put_up; ?>vertical-align: top;;"><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["put_up"]) &&  $this->nmgp_cmp_readonly["put_up"] == "on") { 

 ?>
<input type=hidden name="put_up" value="<?php echo NM_encode_input($put_up) . "\">" . $put_up . ""; ?>
<?php } else { ?>
<span id="id_read_on_put_up" class="sc-ui-readonly-put_up" style=";<?php echo $sStyleReadLab_put_up; ?>"><?php echo NM_encode_input($this->put_up); ?></span><span id="id_read_off_put_up" style="white-space: nowrap;<?php echo $sStyleReadInp_put_up; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_put_up" type=text name="put_up" value="<?php echo NM_encode_input($put_up) ?>"
 size=30 maxlength=30 alt="{datatype: 'text', maxLength: 30, 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_put_up_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_put_up_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_price_lb_d" style="<?php echo $sStyleHidden_price_lb_d; ?>;"><span id="id_label_price_lb_d"><?php echo $this->nm_new_label['price_lb_d']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_price_lb_d" style="<?php echo $sStyleHidden_price_lb_d; ?>vertical-align: top;;"><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["price_lb_d"]) &&  $this->nmgp_cmp_readonly["price_lb_d"] == "on") { 

 ?>
<input type=hidden name="price_lb_d" value="<?php echo NM_encode_input($price_lb_d) . "\">" . $price_lb_d . ""; ?>
<?php } else { ?>
<span id="id_read_on_price_lb_d" class="sc-ui-readonly-price_lb_d" style=";<?php echo $sStyleReadLab_price_lb_d; ?>"><?php echo NM_encode_input($this->price_lb_d); ?></span><span id="id_read_off_price_lb_d" style="white-space: nowrap;<?php echo $sStyleReadInp_price_lb_d; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_price_lb_d" type=text name="price_lb_d" value="<?php echo NM_encode_input($price_lb_d) ?>"
 size=8 alt="{datatype: 'decimal', maxLength: 8, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['price_lb_d']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['price_lb_d']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['price_lb_d']['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_price_lb_d_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_price_lb_d_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_spec1" style="<?php echo $sStyleHidden_spec1; ?>;"><span id="id_label_spec1"><?php echo $this->nm_new_label['spec1']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_spec1" style="<?php echo $sStyleHidden_spec1; ?>vertical-align: top;;"><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["spec1"]) &&  $this->nmgp_cmp_readonly["spec1"] == "on") { 

 ?>
<input type=hidden name="spec1" value="<?php echo NM_encode_input($spec1) . "\">" . $spec1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_spec1" class="sc-ui-readonly-spec1" style=";<?php echo $sStyleReadLab_spec1; ?>"><?php echo NM_encode_input($this->spec1); ?></span><span id="id_read_off_spec1" style="white-space: nowrap;<?php echo $sStyleReadInp_spec1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_spec1" type=text name="spec1" value="<?php echo NM_encode_input($spec1) ?>"
 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_spec1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_spec1_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['spec2']))
    {
        $this->nm_new_label['spec2'] = "SPEC2";
    }
?>
<?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);
   $spec2 = $this->spec2;
   $sStyleHidden_spec2 = '';
   if (isset($this->nmgp_cmp_hidden['spec2']) && $this->nmgp_cmp_hidden['spec2'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['spec2']);
       $sStyleHidden_spec2 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_spec2 = 'display: none;';
   $sStyleReadInp_spec2 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['spec2']) && $this->nmgp_cmp_readonly['spec2'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['spec2']);
       $sStyleReadLab_spec2 = '';
       $sStyleReadInp_spec2 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['spec2']) && $this->nmgp_cmp_hidden['spec2'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="spec2" value="<?php echo NM_encode_input($spec2) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_spec2" style="<?php echo $sStyleHidden_spec2; ?>;"><span id="id_label_spec2"><?php echo $this->nm_new_label['spec2']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_spec2" style="<?php echo $sStyleHidden_spec2; ?>vertical-align: top;;"><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["spec2"]) &&  $this->nmgp_cmp_readonly["spec2"] == "on") { 

 ?>
<input type=hidden name="spec2" value="<?php echo NM_encode_input($spec2) . "\">" . $spec2 . ""; ?>
<?php } else { ?>
<span id="id_read_on_spec2" class="sc-ui-readonly-spec2" style=";<?php echo $sStyleReadLab_spec2; ?>"><?php echo NM_encode_input($this->spec2); ?></span><span id="id_read_off_spec2" style="white-space: nowrap;<?php echo $sStyleReadInp_spec2; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_spec2" type=text name="spec2" value="<?php echo NM_encode_input($spec2) ?>"
 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_spec2_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_spec2_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_spec3" style="<?php echo $sStyleHidden_spec3; ?>;"><span id="id_label_spec3"><?php echo $this->nm_new_label['spec3']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_spec3" style="<?php echo $sStyleHidden_spec3; ?>vertical-align: top;;"><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["spec3"]) &&  $this->nmgp_cmp_readonly["spec3"] == "on") { 

 ?>
<input type=hidden name="spec3" value="<?php echo NM_encode_input($spec3) . "\">" . $spec3 . ""; ?>
<?php } else { ?>
<span id="id_read_on_spec3" class="sc-ui-readonly-spec3" style=";<?php echo $sStyleReadLab_spec3; ?>"><?php echo NM_encode_input($this->spec3); ?></span><span id="id_read_off_spec3" style="white-space: nowrap;<?php echo $sStyleReadInp_spec3; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_spec3" type=text name="spec3" value="<?php echo NM_encode_input($spec3) ?>"
 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_spec3_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_spec3_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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


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

<?php } ?>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_1"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_1"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_1" class="scFormTable" width="100%" style="height: 100%;">   <tr>


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

   </tr>
<?php if ($sc_hidden_no > 0) { echo "<tr style=\"display: none;\">"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


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

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

 ?>
<input type=hidden name="color" value="<?php echo NM_encode_input($color) . "\">" . $color . ""; ?>
<?php } else { ?>
<span id="id_read_on_color" class="sc-ui-readonly-color" style=";<?php echo $sStyleReadLab_color; ?>"><?php echo NM_encode_input($this->color); ?></span><span id="id_read_off_color" style="white-space: nowrap;<?php echo $sStyleReadInp_color; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_color" type=text name="color" value="<?php echo NM_encode_input($color) ?>"
 size=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_color_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_color_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['color_numb']))
    {
        $this->nm_new_label['color_numb'] = "COLOR NUMB";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $color_numb = $this->color_numb;
   $sStyleHidden_color_numb = '';
   if (isset($this->nmgp_cmp_hidden['color_numb']) && $this->nmgp_cmp_hidden['color_numb'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['color_numb']);
       $sStyleHidden_color_numb = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_color_numb = 'display: none;';
   $sStyleReadInp_color_numb = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['color_numb']) && $this->nmgp_cmp_readonly['color_numb'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['color_numb']);
       $sStyleReadLab_color_numb = '';
       $sStyleReadInp_color_numb = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['color_numb']) && $this->nmgp_cmp_hidden['color_numb'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="color_numb" value="<?php echo NM_encode_input($color_numb) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

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

 ?>
<input type=hidden name="color_numb" value="<?php echo NM_encode_input($color_numb) . "\">" . $color_numb . ""; ?>
<?php } else { ?>
<span id="id_read_on_color_numb" class="sc-ui-readonly-color_numb" style=";<?php echo $sStyleReadLab_color_numb; ?>"><?php echo NM_encode_input($this->color_numb); ?></span><span id="id_read_off_color_numb" style="white-space: nowrap;<?php echo $sStyleReadInp_color_numb; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_color_numb" type=text name="color_numb" value="<?php echo NM_encode_input($color_numb) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_color_numb_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_color_numb_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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

 ?>
<input type=hidden name="finish" value="<?php echo NM_encode_input($finish) . "\">" . $finish . ""; ?>
<?php } else { ?>
<span id="id_read_on_finish" class="sc-ui-readonly-finish" style=";<?php echo $sStyleReadLab_finish; ?>"><?php echo NM_encode_input($this->finish); ?></span><span id="id_read_off_finish" style="white-space: nowrap;<?php echo $sStyleReadInp_finish; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_finish" type=text name="finish" value="<?php echo NM_encode_input($finish) ?>"
 size=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_finish_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_finish_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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

 ?>
<input type=hidden name="finish_no" value="<?php echo NM_encode_input($finish_no) . "\">" . $finish_no . ""; ?>
<?php } else { ?>
<span id="id_read_on_finish_no" class="sc-ui-readonly-finish_no" style=";<?php echo $sStyleReadLab_finish_no; ?>"><?php echo NM_encode_input($this->finish_no); ?></span><span id="id_read_off_finish_no" style="white-space: nowrap;<?php echo $sStyleReadInp_finish_no; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_finish_no" type=text name="finish_no" value="<?php echo NM_encode_input($finish_no) ?>"
 size=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_finish_no_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_finish_no_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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


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

<?php } 
?> 


   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_2"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_2"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_2" class="scFormTable" width="100%" style="height: 100%;">   <tr>


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

   </tr>
<?php if ($sc_hidden_no > 0) { echo "<tr style=\"display: none;\">"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_frame" style="<?php echo $sStyleHidden_frame; ?>;"><span id="id_label_frame"><?php echo $this->nm_new_label['frame']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_frame" style="<?php echo $sStyleHidden_frame; ?>vertical-align: top;;"><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["frame"]) &&  $this->nmgp_cmp_readonly["frame"] == "on") { 

 ?>
<input type=hidden name="frame" value="<?php echo NM_encode_input($frame) . "\">" . $frame . ""; ?>
<?php } else { ?>
<span id="id_read_on_frame" class="sc-ui-readonly-frame" style=";<?php echo $sStyleReadLab_frame; ?>"><?php echo NM_encode_input($this->frame); ?></span><span id="id_read_off_frame" style="white-space: nowrap;<?php echo $sStyleReadInp_frame; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_frame" type=text name="frame" value="<?php echo NM_encode_input($frame) ?>"
 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_frame_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_frame_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_fwidth" style="<?php echo $sStyleHidden_fwidth; ?>;"><span id="id_label_fwidth"><?php echo $this->nm_new_label['fwidth']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_fwidth" style="<?php echo $sStyleHidden_fwidth; ?>vertical-align: top;;"><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["fwidth"]) &&  $this->nmgp_cmp_readonly["fwidth"] == "on") { 

 ?>
<input type=hidden name="fwidth" value="<?php echo NM_encode_input($fwidth) . "\">" . $fwidth . ""; ?>
<?php } else { ?>
<span id="id_read_on_fwidth" class="sc-ui-readonly-fwidth" style=";<?php echo $sStyleReadLab_fwidth; ?>"><?php echo NM_encode_input($this->fwidth); ?></span><span id="id_read_off_fwidth" style="white-space: nowrap;<?php echo $sStyleReadInp_fwidth; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_fwidth" type=text name="fwidth" value="<?php echo NM_encode_input($fwidth) ?>"
 size=6 alt="{datatype: 'integer', maxLength: 6, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['fwidth']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['fwidth']['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_fwidth_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_fwidth_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_panels" style="<?php echo $sStyleHidden_panels; ?>;"><span id="id_label_panels"><?php echo $this->nm_new_label['panels']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_panels" style="<?php echo $sStyleHidden_panels; ?>vertical-align: top;;"><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["panels"]) &&  $this->nmgp_cmp_readonly["panels"] == "on") { 

 ?>
<input type=hidden name="panels" value="<?php echo NM_encode_input($panels) . "\">" . $panels . ""; ?>
<?php } else { ?>
<span id="id_read_on_panels" class="sc-ui-readonly-panels" style=";<?php echo $sStyleReadLab_panels; ?>"><?php echo NM_encode_input($this->panels); ?></span><span id="id_read_off_panels" style="white-space: nowrap;<?php echo $sStyleReadInp_panels; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_panels" type=text name="panels" value="<?php echo NM_encode_input($panels) ?>"
 size=4 alt="{datatype: 'integer', maxLength: 4, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['panels']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['panels']['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_panels_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_panels_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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


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

<?php } ?>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_3"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_3"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_3" class="scFormTable" width="100%" style="height: 100%;">   <tr>


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

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


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

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

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


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

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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_req_fin_wt" style="<?php echo $sStyleHidden_req_fin_wt; ?>;"><span id="id_label_req_fin_wt"><?php echo $this->nm_new_label['req_fin_wt']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_req_fin_wt" style="<?php echo $sStyleHidden_req_fin_wt; ?>vertical-align: top;;"><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["req_fin_wt"]) &&  $this->nmgp_cmp_readonly["req_fin_wt"] == "on") { 

 ?>
<input type=hidden name="req_fin_wt" value="<?php echo NM_encode_input($req_fin_wt) . "\">" . $req_fin_wt . ""; ?>
<?php } else { ?>
<span id="id_read_on_req_fin_wt" class="sc-ui-readonly-req_fin_wt" style=";<?php echo $sStyleReadLab_req_fin_wt; ?>"><?php echo NM_encode_input($this->req_fin_wt); ?></span><span id="id_read_off_req_fin_wt" style="white-space: nowrap;<?php echo $sStyleReadInp_req_fin_wt; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_req_fin_wt" type=text name="req_fin_wt" value="<?php echo NM_encode_input($req_fin_wt) ?>"
 size=16 maxlength=16 alt="{datatype: 'text', maxLength: 16, 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_req_fin_wt_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_req_fin_wt_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_req_gr_yld" style="<?php echo $sStyleHidden_req_gr_yld; ?>;"><span id="id_label_req_gr_yld"><?php echo $this->nm_new_label['req_gr_yld']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_req_gr_yld" style="<?php echo $sStyleHidden_req_gr_yld; ?>vertical-align: top;;"><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["req_gr_yld"]) &&  $this->nmgp_cmp_readonly["req_gr_yld"] == "on") { 

 ?>
<input type=hidden name="req_gr_yld" value="<?php echo NM_encode_input($req_gr_yld) . "\">" . $req_gr_yld . ""; ?>
<?php } else { ?>
<span id="id_read_on_req_gr_yld" class="sc-ui-readonly-req_gr_yld" style=";<?php echo $sStyleReadLab_req_gr_yld; ?>"><?php echo NM_encode_input($this->req_gr_yld); ?></span><span id="id_read_off_req_gr_yld" style="white-space: nowrap;<?php echo $sStyleReadInp_req_gr_yld; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_req_gr_yld" type=text name="req_gr_yld" value="<?php echo NM_encode_input($req_gr_yld) ?>"
 size=16 maxlength=16 alt="{datatype: 'text', maxLength: 16, 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_req_gr_yld_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_req_gr_yld_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 } 
?> 


   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_4"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_4"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_4" class="scFormTable" width="100%" style="height: 100%;">   <tr>


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

   </tr>
<?php if ($sc_hidden_no > 0) { echo "<tr style=\"display: none;\">"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['dye_cost']))
           {
               $this->nmgp_cmp_readonly['dye_cost'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['gr_lbs_o']))
           {
               $this->nmgp_cmp_readonly['gr_lbs_o'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['gr_lbs_d']))
           {
               $this->nmgp_cmp_readonly['gr_lbs_d'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['gr_lbs_op']))
           {
               $this->nmgp_cmp_readonly['gr_lbs_op'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['cost_lb_d']))
    {
        $this->nm_new_label['cost_lb_d'] = "COST LB D";
    }
?>
<?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_d = $this->cost_lb_d;
   $sStyleHidden_cost_lb_d = '';
   if (isset($this->nmgp_cmp_hidden['cost_lb_d']) && $this->nmgp_cmp_hidden['cost_lb_d'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cost_lb_d']);
       $sStyleHidden_cost_lb_d = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cost_lb_d = 'display: none;';
   $sStyleReadInp_cost_lb_d = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["cost_lb_d"]) &&  $this->nmgp_cmp_readonly["cost_lb_d"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cost_lb_d']);
       $sStyleReadLab_cost_lb_d = '';
       $sStyleReadInp_cost_lb_d = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cost_lb_d']) && $this->nmgp_cmp_hidden['cost_lb_d'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cost_lb_d" value="<?php echo NM_encode_input($cost_lb_d) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cost_lb_d" style="<?php echo $sStyleHidden_cost_lb_d; ?>;"><span id="id_label_cost_lb_d"><?php echo $this->nm_new_label['cost_lb_d']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cost_lb_d" style="<?php echo $sStyleHidden_cost_lb_d; ?>vertical-align: top;;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["cost_lb_d"]) &&  $this->nmgp_cmp_readonly["cost_lb_d"] == "on")) { 

 ?>
<input type=hidden name="cost_lb_d" value="<?php echo NM_encode_input($cost_lb_d) . "\"><span id=\"id_ajax_label_cost_lb_d\">" . $cost_lb_d . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_cost_lb_d" class="sc-ui-readonly-cost_lb_d" style=";<?php echo $sStyleReadLab_cost_lb_d; ?>"><?php echo NM_encode_input($this->cost_lb_d); ?></span><span id="id_read_off_cost_lb_d" style="white-space: nowrap;<?php echo $sStyleReadInp_cost_lb_d; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_cost_lb_d" type=text name="cost_lb_d" value="<?php echo NM_encode_input($cost_lb_d) ?>"
 size=8 alt="{datatype: 'decimal', maxLength: 8, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_lb_d']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_lb_d']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['cost_lb_d']['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_cost_lb_d_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cost_lb_d_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_dye_cost" style="<?php echo $sStyleHidden_dye_cost; ?>;"><span id="id_label_dye_cost"><?php echo $this->nm_new_label['dye_cost']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_dye_cost" style="<?php echo $sStyleHidden_dye_cost; ?>vertical-align: top;;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["dye_cost"]) &&  $this->nmgp_cmp_readonly["dye_cost"] == "on")) { 

 ?>
<input type=hidden name="dye_cost" value="<?php echo NM_encode_input($dye_cost) . "\"><span id=\"id_ajax_label_dye_cost\">" . $dye_cost . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_dye_cost" class="sc-ui-readonly-dye_cost" style=";<?php echo $sStyleReadLab_dye_cost; ?>"><?php echo NM_encode_input($this->dye_cost); ?></span><span id="id_read_off_dye_cost" style="white-space: nowrap;<?php echo $sStyleReadInp_dye_cost; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_dye_cost" type=text name="dye_cost" value="<?php echo NM_encode_input($dye_cost) ?>"
 size=9 alt="{datatype: 'decimal', maxLength: 9, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['dye_cost']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['dye_cost']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['dye_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_dye_cost_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_dye_cost_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_gr_lbs_o" style="<?php echo $sStyleHidden_gr_lbs_o; ?>;"><span id="id_label_gr_lbs_o"><?php echo $this->nm_new_label['gr_lbs_o']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_gr_lbs_o" style="<?php echo $sStyleHidden_gr_lbs_o; ?>vertical-align: top;;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["gr_lbs_o"]) &&  $this->nmgp_cmp_readonly["gr_lbs_o"] == "on")) { 

 ?>
<input type=hidden name="gr_lbs_o" value="<?php echo NM_encode_input($gr_lbs_o) . "\"><span id=\"id_ajax_label_gr_lbs_o\">" . $gr_lbs_o . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_gr_lbs_o" class="sc-ui-readonly-gr_lbs_o" style=";<?php echo $sStyleReadLab_gr_lbs_o; ?>"><?php echo NM_encode_input($this->gr_lbs_o); ?></span><span id="id_read_off_gr_lbs_o" style="white-space: nowrap;<?php echo $sStyleReadInp_gr_lbs_o; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_gr_lbs_o" type=text name="gr_lbs_o" value="<?php echo NM_encode_input($gr_lbs_o) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['gr_lbs_o']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['gr_lbs_o']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['gr_lbs_o']['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_gr_lbs_o_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gr_lbs_o_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_gr_lbs_d" style="<?php echo $sStyleHidden_gr_lbs_d; ?>;"><span id="id_label_gr_lbs_d"><?php echo $this->nm_new_label['gr_lbs_d']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_gr_lbs_d" style="<?php echo $sStyleHidden_gr_lbs_d; ?>vertical-align: top;;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["gr_lbs_d"]) &&  $this->nmgp_cmp_readonly["gr_lbs_d"] == "on")) { 

 ?>
<input type=hidden name="gr_lbs_d" value="<?php echo NM_encode_input($gr_lbs_d) . "\"><span id=\"id_ajax_label_gr_lbs_d\">" . $gr_lbs_d . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_gr_lbs_d" class="sc-ui-readonly-gr_lbs_d" style=";<?php echo $sStyleReadLab_gr_lbs_d; ?>"><?php echo NM_encode_input($this->gr_lbs_d); ?></span><span id="id_read_off_gr_lbs_d" style="white-space: nowrap;<?php echo $sStyleReadInp_gr_lbs_d; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_gr_lbs_d" type=text name="gr_lbs_d" value="<?php echo NM_encode_input($gr_lbs_d) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['gr_lbs_d']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['gr_lbs_d']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['gr_lbs_d']['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_gr_lbs_d_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gr_lbs_d_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 style=\"display: none;\">"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['fin_lbs']))
           {
               $this->nmgp_cmp_readonly['fin_lbs'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['work_loss']))
           {
               $this->nmgp_cmp_readonly['work_loss'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['cost_lb_g']))
           {
               $this->nmgp_cmp_readonly['cost_lb_g'] = 'on';
           }
?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_gr_lbs_op" style="<?php echo $sStyleHidden_gr_lbs_op; ?>;"><span id="id_label_gr_lbs_op"><?php echo $this->nm_new_label['gr_lbs_op']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_gr_lbs_op" style="<?php echo $sStyleHidden_gr_lbs_op; ?>vertical-align: top;;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["gr_lbs_op"]) &&  $this->nmgp_cmp_readonly["gr_lbs_op"] == "on")) { 

 ?>
<input type=hidden name="gr_lbs_op" value="<?php echo NM_encode_input($gr_lbs_op) . "\"><span id=\"id_ajax_label_gr_lbs_op\">" . $gr_lbs_op . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_gr_lbs_op" class="sc-ui-readonly-gr_lbs_op" style=";<?php echo $sStyleReadLab_gr_lbs_op; ?>"><?php echo NM_encode_input($this->gr_lbs_op); ?></span><span id="id_read_off_gr_lbs_op" style="white-space: nowrap;<?php echo $sStyleReadInp_gr_lbs_op; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_gr_lbs_op" type=text name="gr_lbs_op" value="<?php echo NM_encode_input($gr_lbs_op) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['gr_lbs_op']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['gr_lbs_op']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['gr_lbs_op']['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_gr_lbs_op_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gr_lbs_op_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_fin_lbs" style="<?php echo $sStyleHidden_fin_lbs; ?>;"><span id="id_label_fin_lbs"><?php echo $this->nm_new_label['fin_lbs']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_fin_lbs" style="<?php echo $sStyleHidden_fin_lbs; ?>vertical-align: top;;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["fin_lbs"]) &&  $this->nmgp_cmp_readonly["fin_lbs"] == "on")) { 

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_work_loss" style="<?php echo $sStyleHidden_work_loss; ?>;"><span id="id_label_work_loss"><?php echo $this->nm_new_label['work_loss']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_work_loss" style="<?php echo $sStyleHidden_work_loss; ?>vertical-align: top;;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["work_loss"]) &&  $this->nmgp_cmp_readonly["work_loss"] == "on")) { 

 ?>
<input type=hidden name="work_loss" value="<?php echo NM_encode_input($work_loss) . "\"><span id=\"id_ajax_label_work_loss\">" . $work_loss . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_work_loss" class="sc-ui-readonly-work_loss" style=";<?php echo $sStyleReadLab_work_loss; ?>"><?php echo NM_encode_input($this->work_loss); ?></span><span id="id_read_off_work_loss" style="white-space: nowrap;<?php echo $sStyleReadInp_work_loss; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_work_loss" type=text name="work_loss" value="<?php echo NM_encode_input($work_loss) ?>"
 size=7 alt="{datatype: 'decimal', maxLength: 7, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['work_loss']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['work_loss']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['work_loss']['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_work_loss_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_work_loss_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['cost_lb_g']))
    {
        $this->nm_new_label['cost_lb_g'] = "COST LB G";
    }
?>
<?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_g = $this->cost_lb_g;
   $sStyleHidden_cost_lb_g = '';
   if (isset($this->nmgp_cmp_hidden['cost_lb_g']) && $this->nmgp_cmp_hidden['cost_lb_g'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cost_lb_g']);
       $sStyleHidden_cost_lb_g = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cost_lb_g = 'display: none;';
   $sStyleReadInp_cost_lb_g = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["cost_lb_g"]) &&  $this->nmgp_cmp_readonly["cost_lb_g"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cost_lb_g']);
       $sStyleReadLab_cost_lb_g = '';
       $sStyleReadInp_cost_lb_g = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cost_lb_g']) && $this->nmgp_cmp_hidden['cost_lb_g'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cost_lb_g" value="<?php echo NM_encode_input($cost_lb_g) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cost_lb_g" style="<?php echo $sStyleHidden_cost_lb_g; ?>;"><span id="id_label_cost_lb_g"><?php echo $this->nm_new_label['cost_lb_g']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cost_lb_g" style="<?php echo $sStyleHidden_cost_lb_g; ?>vertical-align: top;;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["cost_lb_g"]) &&  $this->nmgp_cmp_readonly["cost_lb_g"] == "on")) { 

 ?>
<input type=hidden name="cost_lb_g" value="<?php echo NM_encode_input($cost_lb_g) . "\"><span id=\"id_ajax_label_cost_lb_g\">" . $cost_lb_g . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_cost_lb_g" class="sc-ui-readonly-cost_lb_g" style=";<?php echo $sStyleReadLab_cost_lb_g; ?>"><?php echo NM_encode_input($this->cost_lb_g); ?></span><span id="id_read_off_cost_lb_g" style="white-space: nowrap;<?php echo $sStyleReadInp_cost_lb_g; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_cost_lb_g" type=text name="cost_lb_g" value="<?php echo NM_encode_input($cost_lb_g) ?>"
 size=7 alt="{datatype: 'decimal', maxLength: 7, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_lb_g']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_lb_g']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['cost_lb_g']['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_g_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cost_lb_g_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 style=\"display: none;\">"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['yards_recd']))
           {
               $this->nmgp_cmp_readonly['yards_recd'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['cost_lb_t']))
           {
               $this->nmgp_cmp_readonly['cost_lb_t'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['gr_yield']))
           {
               $this->nmgp_cmp_readonly['gr_yield'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['cost_yd_t']))
           {
               $this->nmgp_cmp_readonly['cost_yd_t'] = 'on';
           }
?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_est_yards" style="<?php echo $sStyleHidden_est_yards; ?>;"><span id="id_label_est_yards"><?php echo $this->nm_new_label['est_yards']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_est_yards" style="<?php echo $sStyleHidden_est_yards; ?>vertical-align: top;;"><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["est_yards"]) &&  $this->nmgp_cmp_readonly["est_yards"] == "on") { 

 ?>
<input type=hidden name="est_yards" value="<?php echo NM_encode_input($est_yards) . "\">" . $est_yards . ""; ?>
<?php } else { ?>
<span id="id_read_on_est_yards" class="sc-ui-readonly-est_yards" style=";<?php echo $sStyleReadLab_est_yards; ?>"><?php echo NM_encode_input($this->est_yards); ?></span><span id="id_read_off_est_yards" style="white-space: nowrap;<?php echo $sStyleReadInp_est_yards; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_est_yards" type=text name="est_yards" value="<?php echo NM_encode_input($est_yards) ?>"
 size=11 alt="{datatype: 'integer', maxLength: 11, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['est_yards']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['est_yards']['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_est_yards_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_est_yards_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_yards_recd" style="<?php echo $sStyleHidden_yards_recd; ?>;"><span id="id_label_yards_recd"><?php echo $this->nm_new_label['yards_recd']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_yards_recd" style="<?php echo $sStyleHidden_yards_recd; ?>vertical-align: top;;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["yards_recd"]) &&  $this->nmgp_cmp_readonly["yards_recd"] == "on")) { 

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


   <?php
    if (!isset($this->nm_new_label['cost_lb_t']))
    {
        $this->nm_new_label['cost_lb_t'] = "COST LB T";
    }
?>
<?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_t = $this->cost_lb_t;
   $sStyleHidden_cost_lb_t = '';
   if (isset($this->nmgp_cmp_hidden['cost_lb_t']) && $this->nmgp_cmp_hidden['cost_lb_t'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cost_lb_t']);
       $sStyleHidden_cost_lb_t = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cost_lb_t = 'display: none;';
   $sStyleReadInp_cost_lb_t = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["cost_lb_t"]) &&  $this->nmgp_cmp_readonly["cost_lb_t"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cost_lb_t']);
       $sStyleReadLab_cost_lb_t = '';
       $sStyleReadInp_cost_lb_t = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cost_lb_t']) && $this->nmgp_cmp_hidden['cost_lb_t'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cost_lb_t" value="<?php echo NM_encode_input($cost_lb_t) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cost_lb_t" style="<?php echo $sStyleHidden_cost_lb_t; ?>;"><span id="id_label_cost_lb_t"><?php echo $this->nm_new_label['cost_lb_t']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cost_lb_t" style="<?php echo $sStyleHidden_cost_lb_t; ?>vertical-align: top;;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["cost_lb_t"]) &&  $this->nmgp_cmp_readonly["cost_lb_t"] == "on")) { 

 ?>
<input type=hidden name="cost_lb_t" value="<?php echo NM_encode_input($cost_lb_t) . "\"><span id=\"id_ajax_label_cost_lb_t\">" . $cost_lb_t . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_cost_lb_t" class="sc-ui-readonly-cost_lb_t" style=";<?php echo $sStyleReadLab_cost_lb_t; ?>"><?php echo NM_encode_input($this->cost_lb_t); ?></span><span id="id_read_off_cost_lb_t" style="white-space: nowrap;<?php echo $sStyleReadInp_cost_lb_t; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_cost_lb_t" type=text name="cost_lb_t" value="<?php echo NM_encode_input($cost_lb_t) ?>"
 size=7 alt="{datatype: 'decimal', maxLength: 7, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_lb_t']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_lb_t']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['cost_lb_t']['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_t_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cost_lb_t_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_gr_yield" style="<?php echo $sStyleHidden_gr_yield; ?>;"><span id="id_label_gr_yield"><?php echo $this->nm_new_label['gr_yield']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_gr_yield" style="<?php echo $sStyleHidden_gr_yield; ?>vertical-align: top;;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["gr_yield"]) &&  $this->nmgp_cmp_readonly["gr_yield"] == "on")) { 

 ?>
<input type=hidden name="gr_yield" value="<?php echo NM_encode_input($gr_yield) . "\"><span id=\"id_ajax_label_gr_yield\">" . $gr_yield . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_gr_yield" class="sc-ui-readonly-gr_yield" style=";<?php echo $sStyleReadLab_gr_yield; ?>"><?php echo NM_encode_input($this->gr_yield); ?></span><span id="id_read_off_gr_yield" style="white-space: nowrap;<?php echo $sStyleReadInp_gr_yield; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_gr_yield" type=text name="gr_yield" value="<?php echo NM_encode_input($gr_yield) ?>"
 size=9 alt="{datatype: 'decimal', maxLength: 9, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['gr_yield']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['gr_yield']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['gr_yield']['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_gr_yield_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gr_yield_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 style=\"display: none;\">"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['gr_value']))
           {
               $this->nmgp_cmp_readonly['gr_value'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['cost_yd_t']))
    {
        $this->nm_new_label['cost_yd_t'] = "COST YD T";
    }
?>
<?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_yd_t = $this->cost_yd_t;
   $sStyleHidden_cost_yd_t = '';
   if (isset($this->nmgp_cmp_hidden['cost_yd_t']) && $this->nmgp_cmp_hidden['cost_yd_t'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cost_yd_t']);
       $sStyleHidden_cost_yd_t = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cost_yd_t = 'display: none;';
   $sStyleReadInp_cost_yd_t = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["cost_yd_t"]) &&  $this->nmgp_cmp_readonly["cost_yd_t"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cost_yd_t']);
       $sStyleReadLab_cost_yd_t = '';
       $sStyleReadInp_cost_yd_t = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cost_yd_t']) && $this->nmgp_cmp_hidden['cost_yd_t'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cost_yd_t" value="<?php echo NM_encode_input($cost_yd_t) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cost_yd_t" style="<?php echo $sStyleHidden_cost_yd_t; ?>;"><span id="id_label_cost_yd_t"><?php echo $this->nm_new_label['cost_yd_t']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cost_yd_t" style="<?php echo $sStyleHidden_cost_yd_t; ?>vertical-align: top;;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["cost_yd_t"]) &&  $this->nmgp_cmp_readonly["cost_yd_t"] == "on")) { 

 ?>
<input type=hidden name="cost_yd_t" value="<?php echo NM_encode_input($cost_yd_t) . "\"><span id=\"id_ajax_label_cost_yd_t\">" . $cost_yd_t . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_cost_yd_t" class="sc-ui-readonly-cost_yd_t" style=";<?php echo $sStyleReadLab_cost_yd_t; ?>"><?php echo NM_encode_input($this->cost_yd_t); ?></span><span id="id_read_off_cost_yd_t" style="white-space: nowrap;<?php echo $sStyleReadInp_cost_yd_t; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_cost_yd_t" type=text name="cost_yd_t" value="<?php echo NM_encode_input($cost_yd_t) ?>"
 size=7 alt="{datatype: 'decimal', maxLength: 7, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_yd_t']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_yd_t']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['cost_yd_t']['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_yd_t_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cost_yd_t_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_gr_value" style="<?php echo $sStyleHidden_gr_value; ?>;"><span id="id_label_gr_value"><?php echo $this->nm_new_label['gr_value']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_gr_value" style="<?php echo $sStyleHidden_gr_value; ?>vertical-align: top;;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["gr_value"]) &&  $this->nmgp_cmp_readonly["gr_value"] == "on")) { 

 ?>
<input type=hidden name="gr_value" value="<?php echo NM_encode_input($gr_value) . "\"><span id=\"id_ajax_label_gr_value\">" . $gr_value . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_gr_value" class="sc-ui-readonly-gr_value" style=";<?php echo $sStyleReadLab_gr_value; ?>"><?php echo NM_encode_input($this->gr_value); ?></span><span id="id_read_off_gr_value" style="white-space: nowrap;<?php echo $sStyleReadInp_gr_value; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_gr_value" type=text name="gr_value" value="<?php echo NM_encode_input($gr_value) ?>"
 size=11 alt="{datatype: 'decimal', maxLength: 11, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['gr_value']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['gr_value']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['gr_value']['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_gr_value_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gr_value_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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


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

<?php } ?>
<?php } ?>
   </td></tr></table>
   </tr>
</TABLE></div><!-- bloco_f -->
   </div>
