<?php
class dye_n3case_edit_grid_form extends dye_n3case_edit_grid_apl
{
function Form_Init()
{
   global $sc_seq_vert, $nm_apl_dependente, $opcao_botoes, $nm_url_saida; 
?>
<?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("Cases on Dye Lot " . $_SESSION['var_dyelot'] . ""); } else { echo strip_tags("Cases on Dye Lot " . $_SESSION['var_dyelot'] . ""); } ?></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; ?>';
<?php
if ($this->Embutida_form && isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['sc_modal']) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['sc_modal'] && isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['sc_redir_atualiz']) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['sc_redir_atualiz'] == 'ok')
{
?>
  var sc_closeChange = true;
<?php
}
else
{
?>
  var sc_closeChange = false;
<?php
}
?>
 </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("dye_n3case_edit_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 $this->Ini->Nm_lang['lang_othr_smry_info']?>]";
    nm_sumario = nm_sumario.replace("?start?", reg_ini);
    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('dye_n3case_edit_grid_jquery.php');

?>

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


  scJQGeneralAdd();

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

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

<?php
if (!$this->NM_ajax_flag && isset($this->NM_non_ajax_info['ajaxJavascript']) && !empty($this->NM_non_ajax_info['ajaxJavascript']))
{
    foreach ($this->NM_non_ajax_info['ajaxJavascript'] as $aFnData)
    {
?>
  <?php echo $aFnData[0]; ?>(<?php echo implode(', ', $aFnData[1]); ?>);

<?php
    }
}
?>
 });

   $(window).load(function() {
     scQuickSearchInit(false, '');
     $('#SC_fast_search_t').listen();
     scQuickSearchKeyUp('t', null);
     scQSInit = false;
   });
   function scQuickSearchSubmit_t() {
     nm_move('fast_search', 't');
   }

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

 var show_block = {
  
 };

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

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

  show_block[block_id] = !show_block[block_id];

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

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

  if (show_block[block_id]) {
  }
 }

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

</script>
</HEAD>
<?php
$str_iframe_body = ('F' == $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_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]['dye_n3case_edit_grid']['opc_ant'] = "novo";
    $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['recarga'] = "novo";
}
if (empty($_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['recarga']))
{
    $opcao_botoes = $this->nmgp_opcao;
}
else
{
    $opcao_botoes = $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['recarga'];
}
if ('novo' == $opcao_botoes && $this->Embutida_form)
{
    $opcao_botoes = 'inicio';
}
?>
<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("dye_n3case_edit_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"> 
  sc_quant_excl = <?php echo count($sc_check_excl); ?>; 
 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]['dye_n3case_edit_grid']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe']) ? 0 : "0px";
?>
<?php
$_SESSION['scriptcase']['error_span_title']['dye_n3case_edit_grid'] = $this->Ini->Error_icon_span;
$_SESSION['scriptcase']['error_icon_title']['dye_n3case_edit_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="center" cellpadding="<?php echo $int_iframe_padding; ?>" cellspacing=0 class="scFormBorder" >
<?php
  if (!$this->Embutida_call && (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['mostra_cab']) || $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_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 "Cases on Dye Lot " . $_SESSION['var_dyelot'] . ""; } else { echo "Cases on Dye Lot " . $_SESSION['var_dyelot'] . ""; } ?></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]['dye_n3case_edit_grid']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_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]['dye_n3case_edit_grid']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_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]['dye_n3case_edit_grid']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['fast_search'][0] : "";
          $OPC_arg = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['fast_search'][1] : "";
          $OPC_dat = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['fast_search'][2] : "";
?> 
           <script type="text/javascript">var change_fast_t = "";</script>
          <input type="hidden" name="nmgp_fast_search_t" value="SC_all_Cmp">
          <input type="hidden" name="nmgp_cond_fast_search_t" value="qp">
          <script type="text/javascript">var scQSInitVal = "<?php echo $OPC_dat ?>";</script>
          <span id="quicksearchph_t">
           <input type="text" id="SC_fast_search_t" class="scFormToolbarInput" style="vertical-align: middle" name="nmgp_arg_fast_search_t" value="<?php echo NM_encode_input($OPC_dat) ?>" size="10" onChange="change_fast_t = 'CH';" alt="{watermark:'<?php echo $this->Ini->Nm_lang['lang_othr_qk_watermark'] ?>', watermarkClass: 'scFormToolbarInputWm', maxLength: 255}">
           <img style="position: absolute; display: none; height: 16px; width: 16px" id="SC_fast_search_close_t" src="<?php echo $this->Ini->path_botoes ?>/<?php echo $this->Ini->Img_qs_clean; ?>" onclick="document.getElementById('SC_fast_search_t').value = ''; nm_move('fast_search', 't');">
           <img style="position: absolute; display: none; height: 16px; width: 16px" id="SC_fast_search_submit_t" src="<?php echo $this->Ini->path_botoes ?>/<?php echo $this->Ini->Img_qs_search; ?>" onclick="scQuickSearchSubmit_t();">
          </span>
<?php 
      }
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ($this->Embutida_form) {
        $sCondStyle = ($this->nmgp_botoes['new'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bnovo", "do_ajax_dye_n3case_edit_grid_add_new_line(); return false;", "do_ajax_dye_n3case_edit_grid_add_new_line(); return false;", "sc_b_new_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!isset($this->Grid_editavel) || !$this->Grid_editavel) && (!$this->Embutida_form) && (!$this->Embutida_call || $this->Embutida_multi)) {
        $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") && (!isset($this->Grid_editavel) || !$this->Grid_editavel) && (!$this->Embutida_form) && (!$this->Embutida_call || $this->Embutida_multi)) {
        $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") && (!isset($this->Grid_editavel) || !$this->Grid_editavel) && (!$this->Embutida_form) && (!$this->Embutida_call || $this->Embutida_multi)) {
        $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 ('' != $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]['dye_n3case_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_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]['dye_n3case_edit_grid']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_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]['dye_n3case_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_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]['dye_n3case_edit_grid']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_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]['dye_n3case_edit_grid']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_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]['dye_n3case_edit_grid']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_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>";
       echo "<tr><td>";
  }
?>
<?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 -->
     <div id="SC_tab_mult_reg">
<?php
}

function Form_Table($Table_refresh = false)
{
   global $sc_seq_vert, $nm_apl_dependente, $opcao_botoes, $nm_url_saida; 
   if ($Table_refresh) 
   { 
       ob_start();
   }
?>
<?php
?>
<TABLE align="center" id="hidden_bloco_0" class="scFormTable" width="100%" style="height: 100%;">   <tr>
<?php
$orderColName = '';
$orderColOrient = '';
?>
    <script type="text/javascript">
     var orderImgAsc = "<?php echo $this->Ini->path_img_global . "/" . $this->Ini->Label_sort_asc ?>";
     var orderImgDesc = "<?php echo $this->Ini->path_img_global . "/" . $this->Ini->Label_sort_desc ?>";
     var orderImgNone = "<?php echo $this->Ini->path_img_global . "/" . $this->Ini->Label_sort ?>";
     var orderColName = "";
     function scSetOrderColumn(clickedColumn) {
      $(".sc-ui-img-order-column").attr("src", orderImgNone);
      if (clickedColumn != orderColName) {
       orderColName = clickedColumn;
       orderColOrient = orderImgAsc;
      }
      else if ("" != orderColName) {
       orderColOrient = orderColOrient == orderImgAsc ? orderImgDesc : orderImgAsc;
      }
      else {
       orderColName = "";
       orderColOrient = "";
      }
      $("#sc-id-img-order-" + orderColName).attr("src", orderColOrient);
     }
    </script>
<?php
     $Col_span = "";


       if (!$this->Embutida_form && $this->nmgp_opcao != "novo" && $this->nmgp_botoes['delete'] == "on") { $Col_span = " colspan=2"; }
    if (!$this->Embutida_form && $this->nmgp_opcao == "novo") { $Col_span = " colspan=2"; }
 ?>

    <TD class="scFormLabelOddMult" style="display: none;" <?php echo $Col_span ?>> &nbsp; </TD>
   

   <?php if ($this->Embutida_form && $this->nmgp_botoes['insert'] == "on") {?>
    <TD class="scFormLabelOddMult"  width="10">  </TD>
   <?php }?>

   <?php if ($this->Embutida_form && $this->nmgp_botoes['insert'] != "on") {?>
    <TD class="scFormLabelOddMult"  width="10"> &nbsp; </TD>
   <?php }?>

   <?php if (isset($this->nmgp_cmp_hidden['ndate_']) && $this->nmgp_cmp_hidden['ndate_'] == 'off') { $sStyleHidden_ndate_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['ndate_']) || $this->nmgp_cmp_hidden['ndate_'] == 'on') {
      if (!isset($this->nm_new_label['ndate_'])) {
          $this->nm_new_label['ndate_'] = "NDATE"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_ndate_" style=";<?php echo $sStyleHidden_ndate_; ?>" > <?php echo $this->nm_new_label['ndate_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['p_o_number_']) && $this->nmgp_cmp_hidden['p_o_number_'] == 'off') { $sStyleHidden_p_o_number_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['p_o_number_']) || $this->nmgp_cmp_hidden['p_o_number_'] == 'on') {
      if (!isset($this->nm_new_label['p_o_number_'])) {
          $this->nm_new_label['p_o_number_'] = "P O NUMBER"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_p_o_number_" style=";<?php echo $sStyleHidden_p_o_number_; ?>" > <?php echo $this->nm_new_label['p_o_number_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['dye_lot_']) && $this->nmgp_cmp_hidden['dye_lot_'] == 'off') { $sStyleHidden_dye_lot_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['dye_lot_']) || $this->nmgp_cmp_hidden['dye_lot_'] == 'on') {
      if (!isset($this->nm_new_label['dye_lot_'])) {
          $this->nm_new_label['dye_lot_'] = "DYE LOT"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_dye_lot_" style=";<?php echo $sStyleHidden_dye_lot_; ?>" > <?php echo $this->nm_new_label['dye_lot_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['case_']) && $this->nmgp_cmp_hidden['case_'] == 'off') { $sStyleHidden_case_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['case_']) || $this->nmgp_cmp_hidden['case_'] == 'on') {
      if (!isset($this->nm_new_label['case_'])) {
          $this->nm_new_label['case_'] = "CASE"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_case_" style="text-align:right;<?php echo $sStyleHidden_case_; ?>" > <?php echo $this->nm_new_label['case_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['yds_']) && $this->nmgp_cmp_hidden['yds_'] == 'off') { $sStyleHidden_yds_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['yds_']) || $this->nmgp_cmp_hidden['yds_'] == 'on') {
      if (!isset($this->nm_new_label['yds_'])) {
          $this->nm_new_label['yds_'] = "YDS"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_yds_" style="text-align:right;<?php echo $sStyleHidden_yds_; ?>" > <?php echo $this->nm_new_label['yds_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['grade_']) && $this->nmgp_cmp_hidden['grade_'] == 'off') { $sStyleHidden_grade_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['grade_']) || $this->nmgp_cmp_hidden['grade_'] == 'on') {
      if (!isset($this->nm_new_label['grade_'])) {
          $this->nm_new_label['grade_'] = "GRADE"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_grade_" style=";<?php echo $sStyleHidden_grade_; ?>" > <?php echo $this->nm_new_label['grade_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['grwt_']) && $this->nmgp_cmp_hidden['grwt_'] == 'off') { $sStyleHidden_grwt_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['grwt_']) || $this->nmgp_cmp_hidden['grwt_'] == 'on') {
      if (!isset($this->nm_new_label['grwt_'])) {
          $this->nm_new_label['grwt_'] = "GRWT"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_grwt_" style="text-align:right;<?php echo $sStyleHidden_grwt_; ?>" > <?php echo $this->nm_new_label['grwt_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['trwt_']) && $this->nmgp_cmp_hidden['trwt_'] == 'off') { $sStyleHidden_trwt_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['trwt_']) || $this->nmgp_cmp_hidden['trwt_'] == 'on') {
      if (!isset($this->nm_new_label['trwt_'])) {
          $this->nm_new_label['trwt_'] = "TRWT"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_trwt_" style="text-align:right;<?php echo $sStyleHidden_trwt_; ?>" > <?php echo $this->nm_new_label['trwt_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['lbs_']) && $this->nmgp_cmp_hidden['lbs_'] == 'off') { $sStyleHidden_lbs_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['lbs_']) || $this->nmgp_cmp_hidden['lbs_'] == 'on') {
      if (!isset($this->nm_new_label['lbs_'])) {
          $this->nm_new_label['lbs_'] = "LBS"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_lbs_" style="text-align:right;<?php echo $sStyleHidden_lbs_; ?>" > <?php echo $this->nm_new_label['lbs_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['style_']) && $this->nmgp_cmp_hidden['style_'] == 'off') { $sStyleHidden_style_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['style_']) || $this->nmgp_cmp_hidden['style_'] == 'on') {
      if (!isset($this->nm_new_label['style_'])) {
          $this->nm_new_label['style_'] = "STYLE"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_style_" style=";<?php echo $sStyleHidden_style_; ?>" > <?php echo $this->nm_new_label['style_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['shade_']) && $this->nmgp_cmp_hidden['shade_'] == 'off') { $sStyleHidden_shade_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['shade_']) || $this->nmgp_cmp_hidden['shade_'] == 'on') {
      if (!isset($this->nm_new_label['shade_'])) {
          $this->nm_new_label['shade_'] = "SHADE"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_shade_" style="text-align:right;<?php echo $sStyleHidden_shade_; ?>" > <?php echo $this->nm_new_label['shade_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['color_no_']) && $this->nmgp_cmp_hidden['color_no_'] == 'off') { $sStyleHidden_color_no_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['color_no_']) || $this->nmgp_cmp_hidden['color_no_'] == 'on') {
      if (!isset($this->nm_new_label['color_no_'])) {
          $this->nm_new_label['color_no_'] = "COLOR NO"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_color_no_" style="text-align:right;<?php echo $sStyleHidden_color_no_; ?>" > <?php echo $this->nm_new_label['color_no_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['color_']) && $this->nmgp_cmp_hidden['color_'] == 'off') { $sStyleHidden_color_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['color_']) || $this->nmgp_cmp_hidden['color_'] == 'on') {
      if (!isset($this->nm_new_label['color_'])) {
          $this->nm_new_label['color_'] = "COLOR"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_color_" style=";<?php echo $sStyleHidden_color_; ?>" > <?php echo $this->nm_new_label['color_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['width_']) && $this->nmgp_cmp_hidden['width_'] == 'off') { $sStyleHidden_width_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['width_']) || $this->nmgp_cmp_hidden['width_'] == 'on') {
      if (!isset($this->nm_new_label['width_'])) {
          $this->nm_new_label['width_'] = "WIDTH"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_width_" style=";<?php echo $sStyleHidden_width_; ?>" > <?php echo $this->nm_new_label['width_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['smit_']) && $this->nmgp_cmp_hidden['smit_'] == 'off') { $sStyleHidden_smit_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['smit_']) || $this->nmgp_cmp_hidden['smit_'] == 'on') {
      if (!isset($this->nm_new_label['smit_'])) {
          $this->nm_new_label['smit_'] = "SMIT"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_smit_" style=";<?php echo $sStyleHidden_smit_; ?>" > <?php echo $this->nm_new_label['smit_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['bl_']) && $this->nmgp_cmp_hidden['bl_'] == 'off') { $sStyleHidden_bl_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['bl_']) || $this->nmgp_cmp_hidden['bl_'] == 'on') {
      if (!isset($this->nm_new_label['bl_'])) {
          $this->nm_new_label['bl_'] = "BL"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_bl_" style="text-align:right;<?php echo $sStyleHidden_bl_; ?>" > <?php echo $this->nm_new_label['bl_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['invoice_']) && $this->nmgp_cmp_hidden['invoice_'] == 'off') { $sStyleHidden_invoice_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['invoice_']) || $this->nmgp_cmp_hidden['invoice_'] == 'on') {
      if (!isset($this->nm_new_label['invoice_'])) {
          $this->nm_new_label['invoice_'] = "INVOICE"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_invoice_" style=";<?php echo $sStyleHidden_invoice_; ?>" > <?php echo $this->nm_new_label['invoice_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['it_']) && $this->nmgp_cmp_hidden['it_'] == 'off') { $sStyleHidden_it_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['it_']) || $this->nmgp_cmp_hidden['it_'] == 'on') {
      if (!isset($this->nm_new_label['it_'])) {
          $this->nm_new_label['it_'] = "IT"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_it_" style="text-align:right;<?php echo $sStyleHidden_it_; ?>" > <?php echo $this->nm_new_label['it_'] ?> </TD>
   <?php } ?>






    <script type="text/javascript">
     var orderColOrient = "<?php echo $orderColOrient ?>";
     scSetOrderColumn("<?php echo $orderColName ?>");
    </script>
   </tr>
<?php   
} 
function Form_Corpo($Line_Add = false, $Table_refresh = false) 
{ 
   global $sc_seq_vert; 
   if ($Line_Add) 
   { 
       ob_start();
       $iStart = sizeof($this->form_vert_dye_n3case_edit_grid);
       $guarda_nmgp_opcao = $this->nmgp_opcao;
       $guarda_form_vert_dye_n3case_edit_grid = $this->form_vert_dye_n3case_edit_grid;
       $this->nmgp_opcao = 'novo';
   } 
   if ($this->Embutida_form && empty($this->form_vert_dye_n3case_edit_grid))
   {
       $sc_seq_vert = 0;
   }
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['ndate_']))
           {
               $this->nmgp_cmp_readonly['ndate_'] = 'on';
           }
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['p_o_number_']))
           {
               $this->nmgp_cmp_readonly['p_o_number_'] = 'on';
           }
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['dye_lot_']))
           {
               $this->nmgp_cmp_readonly['dye_lot_'] = 'on';
           }
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['style_']))
           {
               $this->nmgp_cmp_readonly['style_'] = 'on';
           }
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['shade_']))
           {
               $this->nmgp_cmp_readonly['shade_'] = 'on';
           }
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['color_no_']))
           {
               $this->nmgp_cmp_readonly['color_no_'] = 'on';
           }
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['color_']))
           {
               $this->nmgp_cmp_readonly['color_'] = 'on';
           }
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['smit_']))
           {
               $this->nmgp_cmp_readonly['smit_'] = 'on';
           }
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['bl_']))
           {
               $this->nmgp_cmp_readonly['bl_'] = 'on';
           }
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['invoice_']))
           {
               $this->nmgp_cmp_readonly['invoice_'] = 'on';
           }
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['it_']))
           {
               $this->nmgp_cmp_readonly['it_'] = 'on';
           }
   foreach ($this->form_vert_dye_n3case_edit_grid as $sc_seq_vert => $sc_lixo)
   {
       $this->suffix_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['suffix_'];
       $this->type_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['type_'];
       $this->status_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['status_'];
       $this->pafdot_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['pafdot_'];
       $this->pafdos_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['pafdos_'];
       $this->pcs_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['pcs_'];
       $this->sm_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['sm_'];
       $this->loc_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['loc_'];
       $this->bin_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['bin_'];
       if (isset($this->Embutida_ronly) && $this->Embutida_ronly && !$Line_Add)
       {
           $this->nmgp_cmp_readonly['ndate_'] = true;
           $this->nmgp_cmp_readonly['p_o_number_'] = true;
           $this->nmgp_cmp_readonly['dye_lot_'] = true;
           $this->nmgp_cmp_readonly['case_'] = true;
           $this->nmgp_cmp_readonly['yds_'] = true;
           $this->nmgp_cmp_readonly['grade_'] = true;
           $this->nmgp_cmp_readonly['grwt_'] = true;
           $this->nmgp_cmp_readonly['trwt_'] = true;
           $this->nmgp_cmp_readonly['lbs_'] = true;
           $this->nmgp_cmp_readonly['style_'] = true;
           $this->nmgp_cmp_readonly['shade_'] = true;
           $this->nmgp_cmp_readonly['color_no_'] = true;
           $this->nmgp_cmp_readonly['color_'] = true;
           $this->nmgp_cmp_readonly['width_'] = true;
           $this->nmgp_cmp_readonly['smit_'] = true;
           $this->nmgp_cmp_readonly['bl_'] = true;
           $this->nmgp_cmp_readonly['invoice_'] = true;
           $this->nmgp_cmp_readonly['it_'] = true;
       }
       elseif ($Line_Add)
       {
           if (!isset($this->nmgp_cmp_readonly['ndate_']) || $this->nmgp_cmp_readonly['ndate_'] != "on") {$this->nmgp_cmp_readonly['ndate_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['p_o_number_']) || $this->nmgp_cmp_readonly['p_o_number_'] != "on") {$this->nmgp_cmp_readonly['p_o_number_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['dye_lot_']) || $this->nmgp_cmp_readonly['dye_lot_'] != "on") {$this->nmgp_cmp_readonly['dye_lot_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['case_']) || $this->nmgp_cmp_readonly['case_'] != "on") {$this->nmgp_cmp_readonly['case_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['yds_']) || $this->nmgp_cmp_readonly['yds_'] != "on") {$this->nmgp_cmp_readonly['yds_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['grade_']) || $this->nmgp_cmp_readonly['grade_'] != "on") {$this->nmgp_cmp_readonly['grade_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['grwt_']) || $this->nmgp_cmp_readonly['grwt_'] != "on") {$this->nmgp_cmp_readonly['grwt_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['trwt_']) || $this->nmgp_cmp_readonly['trwt_'] != "on") {$this->nmgp_cmp_readonly['trwt_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['lbs_']) || $this->nmgp_cmp_readonly['lbs_'] != "on") {$this->nmgp_cmp_readonly['lbs_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['style_']) || $this->nmgp_cmp_readonly['style_'] != "on") {$this->nmgp_cmp_readonly['style_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['shade_']) || $this->nmgp_cmp_readonly['shade_'] != "on") {$this->nmgp_cmp_readonly['shade_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['color_no_']) || $this->nmgp_cmp_readonly['color_no_'] != "on") {$this->nmgp_cmp_readonly['color_no_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['color_']) || $this->nmgp_cmp_readonly['color_'] != "on") {$this->nmgp_cmp_readonly['color_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['width_']) || $this->nmgp_cmp_readonly['width_'] != "on") {$this->nmgp_cmp_readonly['width_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['smit_']) || $this->nmgp_cmp_readonly['smit_'] != "on") {$this->nmgp_cmp_readonly['smit_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['bl_']) || $this->nmgp_cmp_readonly['bl_'] != "on") {$this->nmgp_cmp_readonly['bl_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['invoice_']) || $this->nmgp_cmp_readonly['invoice_'] != "on") {$this->nmgp_cmp_readonly['invoice_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['it_']) || $this->nmgp_cmp_readonly['it_'] != "on") {$this->nmgp_cmp_readonly['it_'] = false;}
       }
              foreach ($this->form_vert_form_preenchimento[$sc_seq_vert] as $sCmpNome => $mCmpVal)
              {
                  eval("\$this->" . $sCmpNome . " = \$mCmpVal;");
              }
        $this->ndate_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['ndate_']; 
       $ndate_ = $this->ndate_; 
       $sStyleHidden_ndate_ = '';
       if (isset($sCheckRead_ndate_))
       {
           unset($sCheckRead_ndate_);
       }
       if (isset($this->nmgp_cmp_readonly['ndate_']))
       {
           $sCheckRead_ndate_ = $this->nmgp_cmp_readonly['ndate_'];
       }
       if (isset($this->nmgp_cmp_hidden['ndate_']) && $this->nmgp_cmp_hidden['ndate_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['ndate_']);
           $sStyleHidden_ndate_ = 'display: none;';
       }
       $bTestReadOnly_ndate_ = true;
       $sStyleReadLab_ndate_ = 'display: none;';
       $sStyleReadInp_ndate_ = '';
       if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["ndate_"]) &&  $this->nmgp_cmp_readonly["ndate_"] == "on"))
       {
           $bTestReadOnly_ndate_ = false;
           unset($this->nmgp_cmp_readonly['ndate_']);
           $sStyleReadLab_ndate_ = '';
           $sStyleReadInp_ndate_ = 'display: none;';
       }
       $this->p_o_number_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['p_o_number_']; 
       $p_o_number_ = $this->p_o_number_; 
       $sStyleHidden_p_o_number_ = '';
       if (isset($sCheckRead_p_o_number_))
       {
           unset($sCheckRead_p_o_number_);
       }
       if (isset($this->nmgp_cmp_readonly['p_o_number_']))
       {
           $sCheckRead_p_o_number_ = $this->nmgp_cmp_readonly['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_p_o_number_ = 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_p_o_number_ = false;
           unset($this->nmgp_cmp_readonly['p_o_number_']);
           $sStyleReadLab_p_o_number_ = '';
           $sStyleReadInp_p_o_number_ = 'display: none;';
       }
       $this->dye_lot_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['dye_lot_']; 
       $dye_lot_ = $this->dye_lot_; 
       $sStyleHidden_dye_lot_ = '';
       if (isset($sCheckRead_dye_lot_))
       {
           unset($sCheckRead_dye_lot_);
       }
       if (isset($this->nmgp_cmp_readonly['dye_lot_']))
       {
           $sCheckRead_dye_lot_ = $this->nmgp_cmp_readonly['dye_lot_'];
       }
       if (isset($this->nmgp_cmp_hidden['dye_lot_']) && $this->nmgp_cmp_hidden['dye_lot_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['dye_lot_']);
           $sStyleHidden_dye_lot_ = 'display: none;';
       }
       $bTestReadOnly_dye_lot_ = true;
       $sStyleReadLab_dye_lot_ = 'display: none;';
       $sStyleReadInp_dye_lot_ = '';
       if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["dye_lot_"]) &&  $this->nmgp_cmp_readonly["dye_lot_"] == "on"))
       {
           $bTestReadOnly_dye_lot_ = false;
           unset($this->nmgp_cmp_readonly['dye_lot_']);
           $sStyleReadLab_dye_lot_ = '';
           $sStyleReadInp_dye_lot_ = 'display: none;';
       }
       $this->case_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['case_']; 
       $case_ = $this->case_; 
       $sStyleHidden_case_ = '';
       if (isset($sCheckRead_case_))
       {
           unset($sCheckRead_case_);
       }
       if (isset($this->nmgp_cmp_readonly['case_']))
       {
           $sCheckRead_case_ = $this->nmgp_cmp_readonly['case_'];
       }
       if (isset($this->nmgp_cmp_hidden['case_']) && $this->nmgp_cmp_hidden['case_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['case_']);
           $sStyleHidden_case_ = 'display: none;';
       }
       $bTestReadOnly_case_ = true;
       $sStyleReadLab_case_ = 'display: none;';
       $sStyleReadInp_case_ = '';
       if (isset($this->nmgp_cmp_readonly['case_']) && $this->nmgp_cmp_readonly['case_'] == 'on')
       {
           $bTestReadOnly_case_ = false;
           unset($this->nmgp_cmp_readonly['case_']);
           $sStyleReadLab_case_ = '';
           $sStyleReadInp_case_ = 'display: none;';
       }
       $this->yds_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['yds_']; 
       $yds_ = $this->yds_; 
       $sStyleHidden_yds_ = '';
       if (isset($sCheckRead_yds_))
       {
           unset($sCheckRead_yds_);
       }
       if (isset($this->nmgp_cmp_readonly['yds_']))
       {
           $sCheckRead_yds_ = $this->nmgp_cmp_readonly['yds_'];
       }
       if (isset($this->nmgp_cmp_hidden['yds_']) && $this->nmgp_cmp_hidden['yds_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['yds_']);
           $sStyleHidden_yds_ = 'display: none;';
       }
       $bTestReadOnly_yds_ = true;
       $sStyleReadLab_yds_ = 'display: none;';
       $sStyleReadInp_yds_ = '';
       if (isset($this->nmgp_cmp_readonly['yds_']) && $this->nmgp_cmp_readonly['yds_'] == 'on')
       {
           $bTestReadOnly_yds_ = false;
           unset($this->nmgp_cmp_readonly['yds_']);
           $sStyleReadLab_yds_ = '';
           $sStyleReadInp_yds_ = 'display: none;';
       }
       $this->grade_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['grade_']; 
       $grade_ = $this->grade_; 
       $sStyleHidden_grade_ = '';
       if (isset($sCheckRead_grade_))
       {
           unset($sCheckRead_grade_);
       }
       if (isset($this->nmgp_cmp_readonly['grade_']))
       {
           $sCheckRead_grade_ = $this->nmgp_cmp_readonly['grade_'];
       }
       if (isset($this->nmgp_cmp_hidden['grade_']) && $this->nmgp_cmp_hidden['grade_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['grade_']);
           $sStyleHidden_grade_ = 'display: none;';
       }
       $bTestReadOnly_grade_ = true;
       $sStyleReadLab_grade_ = 'display: none;';
       $sStyleReadInp_grade_ = '';
       if (isset($this->nmgp_cmp_readonly['grade_']) && $this->nmgp_cmp_readonly['grade_'] == 'on')
       {
           $bTestReadOnly_grade_ = false;
           unset($this->nmgp_cmp_readonly['grade_']);
           $sStyleReadLab_grade_ = '';
           $sStyleReadInp_grade_ = 'display: none;';
       }
       $this->grwt_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['grwt_']; 
       $grwt_ = $this->grwt_; 
       $sStyleHidden_grwt_ = '';
       if (isset($sCheckRead_grwt_))
       {
           unset($sCheckRead_grwt_);
       }
       if (isset($this->nmgp_cmp_readonly['grwt_']))
       {
           $sCheckRead_grwt_ = $this->nmgp_cmp_readonly['grwt_'];
       }
       if (isset($this->nmgp_cmp_hidden['grwt_']) && $this->nmgp_cmp_hidden['grwt_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['grwt_']);
           $sStyleHidden_grwt_ = 'display: none;';
       }
       $bTestReadOnly_grwt_ = true;
       $sStyleReadLab_grwt_ = 'display: none;';
       $sStyleReadInp_grwt_ = '';
       if (isset($this->nmgp_cmp_readonly['grwt_']) && $this->nmgp_cmp_readonly['grwt_'] == 'on')
       {
           $bTestReadOnly_grwt_ = false;
           unset($this->nmgp_cmp_readonly['grwt_']);
           $sStyleReadLab_grwt_ = '';
           $sStyleReadInp_grwt_ = 'display: none;';
       }
       $this->trwt_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['trwt_']; 
       $trwt_ = $this->trwt_; 
       $sStyleHidden_trwt_ = '';
       if (isset($sCheckRead_trwt_))
       {
           unset($sCheckRead_trwt_);
       }
       if (isset($this->nmgp_cmp_readonly['trwt_']))
       {
           $sCheckRead_trwt_ = $this->nmgp_cmp_readonly['trwt_'];
       }
       if (isset($this->nmgp_cmp_hidden['trwt_']) && $this->nmgp_cmp_hidden['trwt_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['trwt_']);
           $sStyleHidden_trwt_ = 'display: none;';
       }
       $bTestReadOnly_trwt_ = true;
       $sStyleReadLab_trwt_ = 'display: none;';
       $sStyleReadInp_trwt_ = '';
       if (isset($this->nmgp_cmp_readonly['trwt_']) && $this->nmgp_cmp_readonly['trwt_'] == 'on')
       {
           $bTestReadOnly_trwt_ = false;
           unset($this->nmgp_cmp_readonly['trwt_']);
           $sStyleReadLab_trwt_ = '';
           $sStyleReadInp_trwt_ = 'display: none;';
       }
       $this->lbs_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['lbs_']; 
       $lbs_ = $this->lbs_; 
       $sStyleHidden_lbs_ = '';
       if (isset($sCheckRead_lbs_))
       {
           unset($sCheckRead_lbs_);
       }
       if (isset($this->nmgp_cmp_readonly['lbs_']))
       {
           $sCheckRead_lbs_ = $this->nmgp_cmp_readonly['lbs_'];
       }
       if (isset($this->nmgp_cmp_hidden['lbs_']) && $this->nmgp_cmp_hidden['lbs_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['lbs_']);
           $sStyleHidden_lbs_ = 'display: none;';
       }
       $bTestReadOnly_lbs_ = true;
       $sStyleReadLab_lbs_ = 'display: none;';
       $sStyleReadInp_lbs_ = '';
       if (isset($this->nmgp_cmp_readonly['lbs_']) && $this->nmgp_cmp_readonly['lbs_'] == 'on')
       {
           $bTestReadOnly_lbs_ = false;
           unset($this->nmgp_cmp_readonly['lbs_']);
           $sStyleReadLab_lbs_ = '';
           $sStyleReadInp_lbs_ = 'display: none;';
       }
       $this->style_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['style_']; 
       $style_ = $this->style_; 
       $sStyleHidden_style_ = '';
       if (isset($sCheckRead_style_))
       {
           unset($sCheckRead_style_);
       }
       if (isset($this->nmgp_cmp_readonly['style_']))
       {
           $sCheckRead_style_ = $this->nmgp_cmp_readonly['style_'];
       }
       if (isset($this->nmgp_cmp_hidden['style_']) && $this->nmgp_cmp_hidden['style_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['style_']);
           $sStyleHidden_style_ = 'display: none;';
       }
       $bTestReadOnly_style_ = true;
       $sStyleReadLab_style_ = 'display: none;';
       $sStyleReadInp_style_ = '';
       if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["style_"]) &&  $this->nmgp_cmp_readonly["style_"] == "on"))
       {
           $bTestReadOnly_style_ = false;
           unset($this->nmgp_cmp_readonly['style_']);
           $sStyleReadLab_style_ = '';
           $sStyleReadInp_style_ = 'display: none;';
       }
       $this->shade_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['shade_']; 
       $shade_ = $this->shade_; 
       $sStyleHidden_shade_ = '';
       if (isset($sCheckRead_shade_))
       {
           unset($sCheckRead_shade_);
       }
       if (isset($this->nmgp_cmp_readonly['shade_']))
       {
           $sCheckRead_shade_ = $this->nmgp_cmp_readonly['shade_'];
       }
       if (isset($this->nmgp_cmp_hidden['shade_']) && $this->nmgp_cmp_hidden['shade_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['shade_']);
           $sStyleHidden_shade_ = 'display: none;';
       }
       $bTestReadOnly_shade_ = true;
       $sStyleReadLab_shade_ = 'display: none;';
       $sStyleReadInp_shade_ = '';
       if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["shade_"]) &&  $this->nmgp_cmp_readonly["shade_"] == "on"))
       {
           $bTestReadOnly_shade_ = false;
           unset($this->nmgp_cmp_readonly['shade_']);
           $sStyleReadLab_shade_ = '';
           $sStyleReadInp_shade_ = 'display: none;';
       }
       $this->color_no_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['color_no_']; 
       $color_no_ = $this->color_no_; 
       $sStyleHidden_color_no_ = '';
       if (isset($sCheckRead_color_no_))
       {
           unset($sCheckRead_color_no_);
       }
       if (isset($this->nmgp_cmp_readonly['color_no_']))
       {
           $sCheckRead_color_no_ = $this->nmgp_cmp_readonly['color_no_'];
       }
       if (isset($this->nmgp_cmp_hidden['color_no_']) && $this->nmgp_cmp_hidden['color_no_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['color_no_']);
           $sStyleHidden_color_no_ = 'display: none;';
       }
       $bTestReadOnly_color_no_ = true;
       $sStyleReadLab_color_no_ = 'display: none;';
       $sStyleReadInp_color_no_ = '';
       if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["color_no_"]) &&  $this->nmgp_cmp_readonly["color_no_"] == "on"))
       {
           $bTestReadOnly_color_no_ = false;
           unset($this->nmgp_cmp_readonly['color_no_']);
           $sStyleReadLab_color_no_ = '';
           $sStyleReadInp_color_no_ = 'display: none;';
       }
       $this->color_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['color_']; 
       $color_ = $this->color_; 
       $sStyleHidden_color_ = '';
       if (isset($sCheckRead_color_))
       {
           unset($sCheckRead_color_);
       }
       if (isset($this->nmgp_cmp_readonly['color_']))
       {
           $sCheckRead_color_ = $this->nmgp_cmp_readonly['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_color_ = true;
       $sStyleReadLab_color_ = 'display: none;';
       $sStyleReadInp_color_ = '';
       if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["color_"]) &&  $this->nmgp_cmp_readonly["color_"] == "on"))
       {
           $bTestReadOnly_color_ = false;
           unset($this->nmgp_cmp_readonly['color_']);
           $sStyleReadLab_color_ = '';
           $sStyleReadInp_color_ = 'display: none;';
       }
       $this->width_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['width_']; 
       $width_ = $this->width_; 
       $sStyleHidden_width_ = '';
       if (isset($sCheckRead_width_))
       {
           unset($sCheckRead_width_);
       }
       if (isset($this->nmgp_cmp_readonly['width_']))
       {
           $sCheckRead_width_ = $this->nmgp_cmp_readonly['width_'];
       }
       if (isset($this->nmgp_cmp_hidden['width_']) && $this->nmgp_cmp_hidden['width_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['width_']);
           $sStyleHidden_width_ = 'display: none;';
       }
       $bTestReadOnly_width_ = true;
       $sStyleReadLab_width_ = 'display: none;';
       $sStyleReadInp_width_ = '';
       if (isset($this->nmgp_cmp_readonly['width_']) && $this->nmgp_cmp_readonly['width_'] == 'on')
       {
           $bTestReadOnly_width_ = false;
           unset($this->nmgp_cmp_readonly['width_']);
           $sStyleReadLab_width_ = '';
           $sStyleReadInp_width_ = 'display: none;';
       }
       $this->smit_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['smit_']; 
       $smit_ = $this->smit_; 
       $sStyleHidden_smit_ = '';
       if (isset($sCheckRead_smit_))
       {
           unset($sCheckRead_smit_);
       }
       if (isset($this->nmgp_cmp_readonly['smit_']))
       {
           $sCheckRead_smit_ = $this->nmgp_cmp_readonly['smit_'];
       }
       if (isset($this->nmgp_cmp_hidden['smit_']) && $this->nmgp_cmp_hidden['smit_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['smit_']);
           $sStyleHidden_smit_ = 'display: none;';
       }
       $bTestReadOnly_smit_ = true;
       $sStyleReadLab_smit_ = 'display: none;';
       $sStyleReadInp_smit_ = '';
       if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["smit_"]) &&  $this->nmgp_cmp_readonly["smit_"] == "on"))
       {
           $bTestReadOnly_smit_ = false;
           unset($this->nmgp_cmp_readonly['smit_']);
           $sStyleReadLab_smit_ = '';
           $sStyleReadInp_smit_ = 'display: none;';
       }
       $this->bl_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['bl_']; 
       $bl_ = $this->bl_; 
       $sStyleHidden_bl_ = '';
       if (isset($sCheckRead_bl_))
       {
           unset($sCheckRead_bl_);
       }
       if (isset($this->nmgp_cmp_readonly['bl_']))
       {
           $sCheckRead_bl_ = $this->nmgp_cmp_readonly['bl_'];
       }
       if (isset($this->nmgp_cmp_hidden['bl_']) && $this->nmgp_cmp_hidden['bl_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['bl_']);
           $sStyleHidden_bl_ = 'display: none;';
       }
       $bTestReadOnly_bl_ = true;
       $sStyleReadLab_bl_ = 'display: none;';
       $sStyleReadInp_bl_ = '';
       if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["bl_"]) &&  $this->nmgp_cmp_readonly["bl_"] == "on"))
       {
           $bTestReadOnly_bl_ = false;
           unset($this->nmgp_cmp_readonly['bl_']);
           $sStyleReadLab_bl_ = '';
           $sStyleReadInp_bl_ = 'display: none;';
       }
       $this->invoice_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['invoice_']; 
       $invoice_ = $this->invoice_; 
       $sStyleHidden_invoice_ = '';
       if (isset($sCheckRead_invoice_))
       {
           unset($sCheckRead_invoice_);
       }
       if (isset($this->nmgp_cmp_readonly['invoice_']))
       {
           $sCheckRead_invoice_ = $this->nmgp_cmp_readonly['invoice_'];
       }
       if (isset($this->nmgp_cmp_hidden['invoice_']) && $this->nmgp_cmp_hidden['invoice_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['invoice_']);
           $sStyleHidden_invoice_ = 'display: none;';
       }
       $bTestReadOnly_invoice_ = true;
       $sStyleReadLab_invoice_ = 'display: none;';
       $sStyleReadInp_invoice_ = '';
       if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["invoice_"]) &&  $this->nmgp_cmp_readonly["invoice_"] == "on"))
       {
           $bTestReadOnly_invoice_ = false;
           unset($this->nmgp_cmp_readonly['invoice_']);
           $sStyleReadLab_invoice_ = '';
           $sStyleReadInp_invoice_ = 'display: none;';
       }
       $this->it_ = $this->form_vert_dye_n3case_edit_grid[$sc_seq_vert]['it_']; 
       $it_ = $this->it_; 
       $sStyleHidden_it_ = '';
       if (isset($sCheckRead_it_))
       {
           unset($sCheckRead_it_);
       }
       if (isset($this->nmgp_cmp_readonly['it_']))
       {
           $sCheckRead_it_ = $this->nmgp_cmp_readonly['it_'];
       }
       if (isset($this->nmgp_cmp_hidden['it_']) && $this->nmgp_cmp_hidden['it_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['it_']);
           $sStyleHidden_it_ = 'display: none;';
       }
       $bTestReadOnly_it_ = true;
       $sStyleReadLab_it_ = 'display: none;';
       $sStyleReadInp_it_ = '';
       if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["it_"]) &&  $this->nmgp_cmp_readonly["it_"] == "on"))
       {
           $bTestReadOnly_it_ = false;
           unset($this->nmgp_cmp_readonly['it_']);
           $sStyleReadLab_it_ = '';
           $sStyleReadInp_it_ = 'display: none;';
       }

       $nm_cor_fun_vert = ($nm_cor_fun_vert == $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);

       $sHideNewLine = '';
?>   
   <tr id="idVertRow<?php echo $sc_seq_vert; ?>"<?php echo $sHideNewLine; ?>>


   
    <TD class="scFormDataOddMult"  id="hidden_field_data_sc_seq<?php echo $sc_seq_vert; ?>"  style="display: none;"> <?php echo $sc_seq_vert; ?> </TD>
   

   <?php if (!$this->Embutida_form && $this->nmgp_opcao != "novo" && $this->nmgp_botoes['delete'] == "on") {?>
    <TD class="scFormDataOddMult" > 
<input type=checkbox name="sc_check_vert[<?php echo $sc_seq_vert ?>]" value="<?php echo $sc_seq_vert . "\""; if (in_array($sc_seq_vert, $sc_check_excl)) { echo " checked";} ?> onclick="if (this.checked) {sc_quant_excl++; } else {sc_quant_excl--; }"> </TD>
   <?php }?>

   <?php if (!$this->Embutida_form && $this->nmgp_opcao == "novo") {?>
    <TD class="scFormDataOddMult" > 
<input type=checkbox name="sc_check_vert[<?php echo $sc_seq_vert ?>]" value="<?php echo $sc_seq_vert . "\"" ; if (in_array($sc_seq_vert, $sc_check_incl)) { echo " checked";} ?>> </TD>
   <?php }?>

   <?php if ($this->Embutida_form) {?>
    <TD class="scFormDataOddMult"  id="hidden_field_data_sc_actions<?php echo $sc_seq_vert; ?>" NOWRAP> <?php if ($this->nmgp_botoes['delete'] == "on" && $this->nmgp_opcao != "novo") {?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_excluir", "nm_atualiza_line('excluir', " . $sc_seq_vert . ")", "nm_atualiza_line('excluir', " . $sc_seq_vert . ")", "sc_exc_line_" . $sc_seq_vert . "", "", "", "display: ''", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php }?>

<?php
if ($this->nmgp_botoes['update'] == "on" && $this->nmgp_opcao != "novo") {
    if ($this->Embutida_ronly) {
?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_edit", "mdOpenLine(" . $sc_seq_vert . ")", "mdOpenLine(" . $sc_seq_vert . ")", "sc_open_line_" . $sc_seq_vert . "", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php
        $sButDisp = 'display: none';
    }
    else
    {
        $sButDisp = '';
    }
?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_alterar", "findPos(this); nm_atualiza_line('alterar', " . $sc_seq_vert . ")", "findPos(this); nm_atualiza_line('alterar', " . $sc_seq_vert . ")", "sc_upd_line_" . $sc_seq_vert . "", "", "", "" . $sButDisp. "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php
}
?>

<?php if ($this->nmgp_botoes['insert'] == "on" && $this->nmgp_opcao == "novo") {?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_incluir", "findPos(this); nm_atualiza_line('incluir', " . $sc_seq_vert . ")", "findPos(this); nm_atualiza_line('incluir', " . $sc_seq_vert . ")", "sc_ins_line_" . $sc_seq_vert . "", "", "", "display: ''", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php if ($this->nmgp_botoes['delete'] == "on") {?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_excluir", "nm_atualiza_line('excluir', " . $sc_seq_vert . ")", "nm_atualiza_line('excluir', " . $sc_seq_vert . ")", "sc_exc_line_" . $sc_seq_vert . "", "", "", "display: none", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php }?>

<?php if ($Line_Add && $this->Embutida_ronly) {?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_edit", "mdOpenLine(" . $sc_seq_vert . ")", "mdOpenLine(" . $sc_seq_vert . ")", "sc_open_line_" . $sc_seq_vert . "", "", "", "display: none", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php }?>

<?php if ($this->nmgp_botoes['update'] == "on") {?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_alterar", "findPos(this); nm_atualiza_line('alterar', " . $sc_seq_vert . ")", "findPos(this); nm_atualiza_line('alterar', " . $sc_seq_vert . ")", "sc_upd_line_" . $sc_seq_vert . "", "", "", "display: none", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php }?>
<?php }?>
<?php if ($this->nmgp_botoes['insert'] == "on") {?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_novo", "do_ajax_dye_n3case_edit_grid_add_new_line(" . $sc_seq_vert . ")", "do_ajax_dye_n3case_edit_grid_add_new_line(" . $sc_seq_vert . ")", "sc_new_line_" . $sc_seq_vert . "", "", "", "display: none", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php }?>
<?php
  $Style_add_line = (!$Line_Add) ? "display: none" : "";
?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_cancelar", "do_ajax_dye_n3case_edit_grid_cancel_insert(" . $sc_seq_vert . ")", "do_ajax_dye_n3case_edit_grid_cancel_insert(" . $sc_seq_vert . ")", "sc_canceli_line_" . $sc_seq_vert . "", "", "", "" . $Style_add_line . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_cancelar", "do_ajax_dye_n3case_edit_grid_cancel_update(" . $sc_seq_vert . ")", "do_ajax_dye_n3case_edit_grid_cancel_update(" . $sc_seq_vert . ")", "sc_cancelu_line_" . $sc_seq_vert . "", "", "", "display: none", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 </TD>
   <?php }?>

   <?php if (isset($this->nmgp_cmp_hidden['ndate_']) && $this->nmgp_cmp_hidden['ndate_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="ndate_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($ndate_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_ndate_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_ndate_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_ndate_ && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["ndate_"]) &&  $this->nmgp_cmp_readonly["ndate_"] == "on")) { 

 ?>
<input type=hidden name="ndate_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($ndate_) . "\"><span id=\"id_ajax_label_ndate_" . $sc_seq_vert . "\">" . $ndate_ . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_ndate_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-ndate_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_ndate_; ?>"><?php echo NM_encode_input($this->ndate_); ?></span><span id="id_read_off_ndate_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_ndate_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_ndate_<?php echo $sc_seq_vert ?>" type=text name="ndate_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($ndate_) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['ndate_']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['ndate_']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"><?php
$tmp_form_data = $this->field_config['ndate_']['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);
?>
</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_ndate_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ndate_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?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_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($p_o_number_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_p_o_number_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_p_o_number_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_p_o_number_ && ($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")) { 

 ?>
<input type=hidden name="p_o_number_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($p_o_number_) . "\"><span id=\"id_ajax_label_p_o_number_" . $sc_seq_vert . "\">" . $p_o_number_ . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_p_o_number_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-p_o_number_<?php echo $sc_seq_vert ?>" 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_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_p_o_number_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_p_o_number_<?php echo $sc_seq_vert ?>" type=text name="p_o_number_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($p_o_number_) ?>"
 size=12 maxlength=12 alt="{datatype: 'text', maxLength: 12, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_p_o_number_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_p_o_number_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['dye_lot_']) && $this->nmgp_cmp_hidden['dye_lot_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="dye_lot_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($dye_lot_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_dye_lot_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_dye_lot_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_dye_lot_ && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["dye_lot_"]) &&  $this->nmgp_cmp_readonly["dye_lot_"] == "on")) { 

 ?>
<input type=hidden name="dye_lot_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($dye_lot_) . "\"><span id=\"id_ajax_label_dye_lot_" . $sc_seq_vert . "\">" . $dye_lot_ . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_dye_lot_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-dye_lot_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_dye_lot_; ?>"><?php echo NM_encode_input($this->dye_lot_); ?></span><span id="id_read_off_dye_lot_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_dye_lot_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_dye_lot_<?php echo $sc_seq_vert ?>" type=text name="dye_lot_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($dye_lot_) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_dye_lot_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_dye_lot_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['case_']) && $this->nmgp_cmp_hidden['case_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="case_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($case_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_case_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_case_; ?>text-align:right;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOddMult" style="text-align:right;;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_case_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["case_"]) &&  $this->nmgp_cmp_readonly["case_"] == "on") { 

 ?>
<input type=hidden name="case_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($case_) . "\">" . $case_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_case_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-case_<?php echo $sc_seq_vert ?>" style="text-align:right;<?php echo $sStyleReadLab_case_; ?>"><?php echo NM_encode_input($this->case_); ?></span><span id="id_read_off_case_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_case_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style="text-align:left;" id="id_sc_field_case_<?php echo $sc_seq_vert ?>" type=text name="case_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($case_) ?>"
 size=20 alt="{datatype: 'integer', maxLength: 20, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['case_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['case_']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', 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_case_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_case_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['yds_']) && $this->nmgp_cmp_hidden['yds_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="yds_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($yds_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_yds_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_yds_; ?>text-align:right;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOddMult" style="text-align:right;;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_yds_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["yds_"]) &&  $this->nmgp_cmp_readonly["yds_"] == "on") { 

 ?>
<input type=hidden name="yds_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($yds_) . "\">" . $yds_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_yds_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-yds_<?php echo $sc_seq_vert ?>" style="text-align:right;<?php echo $sStyleReadLab_yds_; ?>"><?php echo NM_encode_input($this->yds_); ?></span><span id="id_read_off_yds_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_yds_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style="text-align:left;" id="id_sc_field_yds_<?php echo $sc_seq_vert ?>" type=text name="yds_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($yds_) ?>"
 size=9 alt="{datatype: 'decimal', maxLength: 9, precision: 1, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['yds_']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['yds_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['yds_']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_yds_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_yds_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['grade_']) && $this->nmgp_cmp_hidden['grade_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="grade_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($grade_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_grade_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_grade_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_grade_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["grade_"]) &&  $this->nmgp_cmp_readonly["grade_"] == "on") { 

 ?>
<input type=hidden name="grade_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($grade_) . "\">" . $grade_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_grade_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-grade_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_grade_; ?>"><?php echo NM_encode_input($this->grade_); ?></span><span id="id_read_off_grade_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_grade_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_grade_<?php echo $sc_seq_vert ?>" type=text name="grade_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($grade_) ?>"
 size=2 maxlength=2 alt="{datatype: 'text', maxLength: 2, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', 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_grade_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_grade_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['grwt_']) && $this->nmgp_cmp_hidden['grwt_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="grwt_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($grwt_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_grwt_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_grwt_; ?>text-align:right;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOddMult" style="text-align:right;;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_grwt_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["grwt_"]) &&  $this->nmgp_cmp_readonly["grwt_"] == "on") { 

 ?>
<input type=hidden name="grwt_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($grwt_) . "\">" . $grwt_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_grwt_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-grwt_<?php echo $sc_seq_vert ?>" style="text-align:right;<?php echo $sStyleReadLab_grwt_; ?>"><?php echo NM_encode_input($this->grwt_); ?></span><span id="id_read_off_grwt_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_grwt_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style="text-align:left;" id="id_sc_field_grwt_<?php echo $sc_seq_vert ?>" type=text name="grwt_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($grwt_) ?>"
 size=8 alt="{datatype: 'decimal', maxLength: 8, precision: 1, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['grwt_']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['grwt_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['grwt_']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', 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_grwt_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_grwt_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['trwt_']) && $this->nmgp_cmp_hidden['trwt_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="trwt_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($trwt_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_trwt_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_trwt_; ?>text-align:right;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOddMult" style="text-align:right;;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_trwt_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["trwt_"]) &&  $this->nmgp_cmp_readonly["trwt_"] == "on") { 

 ?>
<input type=hidden name="trwt_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($trwt_) . "\">" . $trwt_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_trwt_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-trwt_<?php echo $sc_seq_vert ?>" style="text-align:right;<?php echo $sStyleReadLab_trwt_; ?>"><?php echo NM_encode_input($this->trwt_); ?></span><span id="id_read_off_trwt_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_trwt_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style="text-align:left;" id="id_sc_field_trwt_<?php echo $sc_seq_vert ?>" type=text name="trwt_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($trwt_) ?>"
 size=6 alt="{datatype: 'decimal', maxLength: 6, precision: 1, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['trwt_']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['trwt_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['trwt_']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', 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_trwt_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_trwt_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['lbs_']) && $this->nmgp_cmp_hidden['lbs_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="lbs_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($lbs_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_lbs_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_lbs_; ?>text-align:right;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOddMult" style="text-align:right;;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_lbs_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["lbs_"]) &&  $this->nmgp_cmp_readonly["lbs_"] == "on") { 

 ?>
<input type=hidden name="lbs_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($lbs_) . "\">" . $lbs_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_lbs_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-lbs_<?php echo $sc_seq_vert ?>" style="text-align:right;<?php echo $sStyleReadLab_lbs_; ?>"><?php echo NM_encode_input($this->lbs_); ?></span><span id="id_read_off_lbs_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_lbs_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style="text-align:left;" id="id_sc_field_lbs_<?php echo $sc_seq_vert ?>" type=text name="lbs_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($lbs_) ?>"
 size=9 alt="{datatype: 'decimal', maxLength: 9, precision: 1, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['lbs_']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['lbs_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['lbs_']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_lbs_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_lbs_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['style_']) && $this->nmgp_cmp_hidden['style_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="style_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($style_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_style_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_style_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_style_ && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["style_"]) &&  $this->nmgp_cmp_readonly["style_"] == "on")) { 

 ?>
<input type=hidden name="style_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($style_) . "\"><span id=\"id_ajax_label_style_" . $sc_seq_vert . "\">" . $style_ . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_style_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-style_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_style_; ?>"><?php echo NM_encode_input($this->style_); ?></span><span id="id_read_off_style_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_style_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_style_<?php echo $sc_seq_vert ?>" type=text name="style_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($style_) ?>"
 size=15 maxlength=15 alt="{datatype: 'text', maxLength: 15, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_style_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_style_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['shade_']) && $this->nmgp_cmp_hidden['shade_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="shade_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($shade_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_shade_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_shade_; ?>text-align:right;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOddMult" style="text-align:right;;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_shade_ && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["shade_"]) &&  $this->nmgp_cmp_readonly["shade_"] == "on")) { 

 ?>
<input type=hidden name="shade_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($shade_) . "\"><span id=\"id_ajax_label_shade_" . $sc_seq_vert . "\">" . $shade_ . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_shade_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-shade_<?php echo $sc_seq_vert ?>" style="text-align:right;<?php echo $sStyleReadLab_shade_; ?>"><?php echo NM_encode_input($this->shade_); ?></span><span id="id_read_off_shade_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_shade_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style="text-align:left;" id="id_sc_field_shade_<?php echo $sc_seq_vert ?>" type=text name="shade_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($shade_) ?>"
 size=4 alt="{datatype: 'integer', maxLength: 4, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['shade_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['shade_']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', 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_shade_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_shade_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['color_no_']) && $this->nmgp_cmp_hidden['color_no_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="color_no_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($color_no_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_color_no_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_color_no_; ?>text-align:right;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOddMult" style="text-align:right;;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_color_no_ && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["color_no_"]) &&  $this->nmgp_cmp_readonly["color_no_"] == "on")) { 

 ?>
<input type=hidden name="color_no_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($color_no_) . "\"><span id=\"id_ajax_label_color_no_" . $sc_seq_vert . "\">" . $color_no_ . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_color_no_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-color_no_<?php echo $sc_seq_vert ?>" style="text-align:right;<?php echo $sStyleReadLab_color_no_; ?>"><?php echo NM_encode_input($this->color_no_); ?></span><span id="id_read_off_color_no_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_color_no_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style="text-align:left;" id="id_sc_field_color_no_<?php echo $sc_seq_vert ?>" type=text name="color_no_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($color_no_) ?>"
 size=11 alt="{datatype: 'integer', maxLength: 11, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['color_no_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['color_no_']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_color_no_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_color_no_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['color_']) && $this->nmgp_cmp_hidden['color_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="color_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($color_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_color_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_color_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_color_ && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["color_"]) &&  $this->nmgp_cmp_readonly["color_"] == "on")) { 

 ?>
<input type=hidden name="color_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($color_) . "\"><span id=\"id_ajax_label_color_" . $sc_seq_vert . "\">" . $color_ . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_color_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-color_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_color_; ?>"><?php echo NM_encode_input($this->color_); ?></span><span id="id_read_off_color_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_color_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_color_<?php echo $sc_seq_vert ?>" type=text name="color_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($color_) ?>"
 size=20 maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', 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_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_color_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['width_']) && $this->nmgp_cmp_hidden['width_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="width_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($width_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_width_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_width_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_width_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["width_"]) &&  $this->nmgp_cmp_readonly["width_"] == "on") { 

 ?>
<input type=hidden name="width_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($width_) . "\">" . $width_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_width_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-width_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_width_; ?>"><?php echo NM_encode_input($this->width_); ?></span><span id="id_read_off_width_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_width_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_width_<?php echo $sc_seq_vert ?>" type=text name="width_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($width_) ?>"
 size=10 maxlength=10 alt="{datatype: 'text', maxLength: 10, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_width_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_width_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['smit_']) && $this->nmgp_cmp_hidden['smit_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="smit_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($smit_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_smit_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_smit_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_smit_ && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["smit_"]) &&  $this->nmgp_cmp_readonly["smit_"] == "on")) { 

 ?>
<input type=hidden name="smit_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($smit_) . "\"><span id=\"id_ajax_label_smit_" . $sc_seq_vert . "\">" . $smit_ . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_smit_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-smit_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_smit_; ?>"><?php echo NM_encode_input($this->smit_); ?></span><span id="id_read_off_smit_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_smit_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_smit_<?php echo $sc_seq_vert ?>" type=text name="smit_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($smit_) ?>"
 size=10 maxlength=10 alt="{datatype: 'text', maxLength: 10, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', 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_smit_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_smit_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['bl_']) && $this->nmgp_cmp_hidden['bl_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="bl_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($bl_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_bl_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_bl_; ?>text-align:right;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOddMult" style="text-align:right;;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_bl_ && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["bl_"]) &&  $this->nmgp_cmp_readonly["bl_"] == "on")) { 

 ?>
<input type=hidden name="bl_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($bl_) . "\"><span id=\"id_ajax_label_bl_" . $sc_seq_vert . "\">" . $bl_ . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_bl_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-bl_<?php echo $sc_seq_vert ?>" style="text-align:right;<?php echo $sStyleReadLab_bl_; ?>"><?php echo NM_encode_input($this->bl_); ?></span><span id="id_read_off_bl_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_bl_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style="text-align:left;" id="id_sc_field_bl_<?php echo $sc_seq_vert ?>" type=text name="bl_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($bl_) ?>"
 size=11 alt="{datatype: 'integer', maxLength: 11, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['bl_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['bl_']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', 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_bl_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_bl_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['invoice_']) && $this->nmgp_cmp_hidden['invoice_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="invoice_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($invoice_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_invoice_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_invoice_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_invoice_ && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["invoice_"]) &&  $this->nmgp_cmp_readonly["invoice_"] == "on")) { 

 ?>
<input type=hidden name="invoice_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($invoice_) . "\"><span id=\"id_ajax_label_invoice_" . $sc_seq_vert . "\">" . $invoice_ . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_invoice_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-invoice_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_invoice_; ?>"><?php echo NM_encode_input($this->invoice_); ?></span><span id="id_read_off_invoice_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_invoice_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_invoice_<?php echo $sc_seq_vert ?>" type=text name="invoice_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($invoice_) ?>"
 size=5 maxlength=5 alt="{datatype: 'text', maxLength: 5, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', 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_invoice_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_invoice_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['it_']) && $this->nmgp_cmp_hidden['it_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="it_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($it_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_it_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_it_; ?>text-align:right;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOddMult" style="text-align:right;;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_it_ && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["it_"]) &&  $this->nmgp_cmp_readonly["it_"] == "on")) { 

 ?>
<input type=hidden name="it_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($it_) . "\"><span id=\"id_ajax_label_it_" . $sc_seq_vert . "\">" . $it_ . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_it_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-it_<?php echo $sc_seq_vert ?>" style="text-align:right;<?php echo $sStyleReadLab_it_; ?>"><?php echo NM_encode_input($this->it_); ?></span><span id="id_read_off_it_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_it_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style="text-align:left;" id="id_sc_field_it_<?php echo $sc_seq_vert ?>" type=text name="it_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($it_) ?>"
 size=4 alt="{datatype: 'integer', maxLength: 4, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['it_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['it_']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', 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_it_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_it_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>






   </tr>
<?php   
        if (isset($sCheckRead_ndate_))
       {
           $this->nmgp_cmp_readonly['ndate_'] = $sCheckRead_ndate_;
       }
       if ('display: none;' == $sStyleHidden_ndate_)
       {
           $this->nmgp_cmp_hidden['ndate_'] = 'off';
       }
       if (isset($sCheckRead_p_o_number_))
       {
           $this->nmgp_cmp_readonly['p_o_number_'] = $sCheckRead_p_o_number_;
       }
       if ('display: none;' == $sStyleHidden_p_o_number_)
       {
           $this->nmgp_cmp_hidden['p_o_number_'] = 'off';
       }
       if (isset($sCheckRead_dye_lot_))
       {
           $this->nmgp_cmp_readonly['dye_lot_'] = $sCheckRead_dye_lot_;
       }
       if ('display: none;' == $sStyleHidden_dye_lot_)
       {
           $this->nmgp_cmp_hidden['dye_lot_'] = 'off';
       }
       if (isset($sCheckRead_case_))
       {
           $this->nmgp_cmp_readonly['case_'] = $sCheckRead_case_;
       }
       if ('display: none;' == $sStyleHidden_case_)
       {
           $this->nmgp_cmp_hidden['case_'] = 'off';
       }
       if (isset($sCheckRead_yds_))
       {
           $this->nmgp_cmp_readonly['yds_'] = $sCheckRead_yds_;
       }
       if ('display: none;' == $sStyleHidden_yds_)
       {
           $this->nmgp_cmp_hidden['yds_'] = 'off';
       }
       if (isset($sCheckRead_grade_))
       {
           $this->nmgp_cmp_readonly['grade_'] = $sCheckRead_grade_;
       }
       if ('display: none;' == $sStyleHidden_grade_)
       {
           $this->nmgp_cmp_hidden['grade_'] = 'off';
       }
       if (isset($sCheckRead_grwt_))
       {
           $this->nmgp_cmp_readonly['grwt_'] = $sCheckRead_grwt_;
       }
       if ('display: none;' == $sStyleHidden_grwt_)
       {
           $this->nmgp_cmp_hidden['grwt_'] = 'off';
       }
       if (isset($sCheckRead_trwt_))
       {
           $this->nmgp_cmp_readonly['trwt_'] = $sCheckRead_trwt_;
       }
       if ('display: none;' == $sStyleHidden_trwt_)
       {
           $this->nmgp_cmp_hidden['trwt_'] = 'off';
       }
       if (isset($sCheckRead_lbs_))
       {
           $this->nmgp_cmp_readonly['lbs_'] = $sCheckRead_lbs_;
       }
       if ('display: none;' == $sStyleHidden_lbs_)
       {
           $this->nmgp_cmp_hidden['lbs_'] = 'off';
       }
       if (isset($sCheckRead_style_))
       {
           $this->nmgp_cmp_readonly['style_'] = $sCheckRead_style_;
       }
       if ('display: none;' == $sStyleHidden_style_)
       {
           $this->nmgp_cmp_hidden['style_'] = 'off';
       }
       if (isset($sCheckRead_shade_))
       {
           $this->nmgp_cmp_readonly['shade_'] = $sCheckRead_shade_;
       }
       if ('display: none;' == $sStyleHidden_shade_)
       {
           $this->nmgp_cmp_hidden['shade_'] = 'off';
       }
       if (isset($sCheckRead_color_no_))
       {
           $this->nmgp_cmp_readonly['color_no_'] = $sCheckRead_color_no_;
       }
       if ('display: none;' == $sStyleHidden_color_no_)
       {
           $this->nmgp_cmp_hidden['color_no_'] = 'off';
       }
       if (isset($sCheckRead_color_))
       {
           $this->nmgp_cmp_readonly['color_'] = $sCheckRead_color_;
       }
       if ('display: none;' == $sStyleHidden_color_)
       {
           $this->nmgp_cmp_hidden['color_'] = 'off';
       }
       if (isset($sCheckRead_width_))
       {
           $this->nmgp_cmp_readonly['width_'] = $sCheckRead_width_;
       }
       if ('display: none;' == $sStyleHidden_width_)
       {
           $this->nmgp_cmp_hidden['width_'] = 'off';
       }
       if (isset($sCheckRead_smit_))
       {
           $this->nmgp_cmp_readonly['smit_'] = $sCheckRead_smit_;
       }
       if ('display: none;' == $sStyleHidden_smit_)
       {
           $this->nmgp_cmp_hidden['smit_'] = 'off';
       }
       if (isset($sCheckRead_bl_))
       {
           $this->nmgp_cmp_readonly['bl_'] = $sCheckRead_bl_;
       }
       if ('display: none;' == $sStyleHidden_bl_)
       {
           $this->nmgp_cmp_hidden['bl_'] = 'off';
       }
       if (isset($sCheckRead_invoice_))
       {
           $this->nmgp_cmp_readonly['invoice_'] = $sCheckRead_invoice_;
       }
       if ('display: none;' == $sStyleHidden_invoice_)
       {
           $this->nmgp_cmp_hidden['invoice_'] = 'off';
       }
       if (isset($sCheckRead_it_))
       {
           $this->nmgp_cmp_readonly['it_'] = $sCheckRead_it_;
       }
       if ('display: none;' == $sStyleHidden_it_)
       {
           $this->nmgp_cmp_hidden['it_'] = 'off';
       }

   }
   if ($Line_Add) 
   { 
       $this->New_Line = ob_get_contents();
       ob_end_clean();
       $this->nmgp_opcao = $guarda_nmgp_opcao;
       $this->form_vert_dye_n3case_edit_grid = $guarda_form_vert_dye_n3case_edit_grid;
   } 
   if ($Table_refresh) 
   { 
       $this->Table_refresh = ob_get_contents();
       ob_end_clean();
   } 
}

function Form_Fim() 
{
   global $sc_seq_vert, $opcao_botoes, $nm_url_saida; 
?>   
</TABLE></div><!-- bloco_f -->
 </div> 
<?php
$iContrVert = $this->Embutida_form ? $sc_seq_vert + 1 : $sc_seq_vert + 1;
if ($sc_seq_vert < $this->sc_max_reg)
{
    echo " <script type=\"text/javascript\">";
    echo "    bRefreshTable = true;";
    echo "</script>";
}
?>
<input type=hidden name="sc_contr_vert" value="<?php echo NM_encode_input($iContrVert); ?>">
<?php
    $sEmptyStyle = 0 == $sc_seq_vert ? '' : 'display: none;';
?>
</td></tr>
<tr id="sc-ui-empty-form" style="<?php echo $sEmptyStyle; ?>"><td class="scFormPageText" style="padding: 10px; text-align: center">
<?php echo $this->Ini->Nm_lang['lang_errm_empt'];
?>
</td></tr> 
<tr><td>
<?php
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_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]['dye_n3case_edit_grid']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] != "R")
{
    $NM_btn = false;
    if (($opcao_botoes != "novo") && ('total' != $this->form_paginacao)) {
        $sCondStyle = ($this->nmgp_botoes['first'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "binicio", "nm_move ('inicio'); return false;", "nm_move ('inicio'); return false;", "sc_b_ini_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && ('total' != $this->form_paginacao)) {
        $sCondStyle = ($this->nmgp_botoes['back'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bretorna", "nm_move ('retorna'); return false;", "nm_move ('retorna'); return false;", "sc_b_ret_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
if ($opcao_botoes != "novo" && $this->nmgp_botoes['navpage'] == "on")
{
?> 
     <span nowrap id="sc_b_navpage_b" class="scFormToolbarPadding"></span> 
<?php 
}
    if (($opcao_botoes != "novo") && ('total' != $this->form_paginacao)) {
        $sCondStyle = ($this->nmgp_botoes['forward'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bavanca", "nm_move ('avanca'); return false;", "nm_move ('avanca'); return false;", "sc_b_avc_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && ('total' != $this->form_paginacao)) {
        $sCondStyle = ($this->nmgp_botoes['last'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bfinal", "nm_move ('final'); return false;", "nm_move ('final'); return false;", "sc_b_fim_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
if ($opcao_botoes != "novo" && $this->nmgp_botoes['summary'] == "on")
{
?> 
     <span nowrap id="sc_b_summary_b" class="scFormToolbarPadding"></span> 
<?php 
}
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_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, 'b');</script><?php } ?>
<?php if (('novo' != $this->nmgp_opcao || $this->Embutida_form) && !$this->nmgp_form_empty && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] != "F") { ?><script>summary_atualiza(<?php echo ($_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['reg_start'] + 1). ", " . $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['reg_qtd'] . ", " . ($_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['total'] + 1)?>);</script><?php } ?>
<?php if (('novo' != $this->nmgp_opcao || $this->Embutida_form) && !$this->nmgp_form_empty && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['run_iframe'] != "F") { ?><script>navpage_atualiza('<?php echo $this->SC_nav_page ?>');</script><?php } ?>
</td></tr> 
<?php
  if (!$this->Embutida_call && (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['mostra_cab']) || $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['mostra_cab'] != "N"))
  {
?>
</td></tr> 
<tr><td><table width="100%"> 
<style>
#rod_col1 { margin:0px; padding: 3px 0 0 5px; float:left; overflow:hidden;}
#rod_col2 { margin:0px; padding: 3px 5px 0 0; float:right; overflow:hidden; text-align:right;}

</style>

<table style="width: 100%; height:20px;" cellpadding="0px" cellspacing="0px" class="scFormFooter">
    <tr>
        <td>
            <span class="scFormFooterFont" id="rod_col1"><?php echo "Total Case Yards = " . $_SESSION['var_totalyds'] . "" ?></span>
        </td>
        <td>
            <span class="scFormFooterFont" id="rod_col2"><?php echo "application=dye_n3case_edit_grid" ?></span>
        </td>
    </tr>
</table><?php
  }
?>
</table> 

<div id="id_debug_window" style="display: none; position: absolute; left: 50px; top: 50px"><table class="scFormMessageTable">
<tr><td class="scFormMessageTitle"><?php echo nmButtonOutput($this->arr_buttons, "berrm_clse", "scAjaxHideDebug()", "scAjaxHideDebug()", "", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
&nbsp;&nbsp;Output</td></tr>
<tr><td class="scFormMessageMessage" style="padding: 0px; vertical-align: top"><div style="padding: 2px; height: 200px; width: 350px; overflow: auto" id="id_debug_text"></div></td></tr>
</table></div>
<script> 
 var iAjaxNewLine = <?php echo $sc_seq_vert; ?>;
 for (var iLine = 1; iLine <= iAjaxNewLine; iLine++) {
  scJQElementsAdd(iLine);
 }
</script> 
<div id="new_line_dummy" style="display: none">
</div>

</form> 
<script> 
<?php
  $nm_sc_blocos_da_pag = array(0);

  foreach ($this->Ini->nm_hidden_blocos as $bloco => $hidden)
  {
      if ($hidden == "off" && in_array($bloco, $nm_sc_blocos_da_pag))
      {
          echo "document.getElementById('hidden_bloco_" . $bloco . "').style.display = 'none';";
          if (isset($nm_sc_blocos_aba[$bloco]))
          {
               echo "document.getElementById('id_tabs_" . $nm_sc_blocos_aba[$bloco] . "_" . $bloco . "').style.display = 'none';";
          }
      }
  }
?>
</script> 
   </td></tr></table>
<script>
function updateHeaderFooter(sFldName, sFldValue)
{
  if (sFldValue[0] && sFldValue[0]["value"])
  {
    sFldValue = sFldValue[0]["value"];
  }
}
</script>
<?php
if (isset($_POST['master_nav']) && 'on' == $_POST['master_nav'])
{
    $sTamanhoIframe = isset($_POST['sc_ifr_height']) && '' != $_POST['sc_ifr_height'] ? '"' . $_POST['sc_ifr_height'] . '"' : '$(document).innerHeight()';
?>
<script>
 parent.scAjaxDetailStatus("dye_n3case_edit_grid");
 parent.scAjaxDetailHeight("dye_n3case_edit_grid", <?php echo $sTamanhoIframe; ?>);
</script>
<?php
}
elseif (isset($_GET['script_case_detail']) && 'Y' == $_GET['script_case_detail'])
{
    $sTamanhoIframe = isset($_GET['sc_ifr_height']) && '' != $_GET['sc_ifr_height'] ? '"' . $_GET['sc_ifr_height'] . '"' : '$(document).innerHeight()';
?>
<script>
 parent.scAjaxDetailHeight("dye_n3case_edit_grid", <?php echo $sTamanhoIframe; ?>);
</script>
<?php
}
?>
<?php
if (isset($this->NM_ajax_info['displayMsg']) && $this->NM_ajax_info['displayMsg'])
{
?>
<script type="text/javascript">
_scAjaxShowMessage(scMsgDefTitle, "<?php echo $this->NM_ajax_info['displayMsgTxt']; ?>", false, sc_ajaxMsgTime, false, "Ok", 0, 0, 0, 0, "", "", "", false, true);
</script>
<?php
}
?>
<?php
if ('' != $this->scFormFocusErrorName)
{
?>
<script>
scAjaxFocusError();
</script>
<?php
}
?>
<script>
bLigEditLookupCall = <?php if ($this->lig_edit_lookup_call) { ?>true<?php } else { ?>false<?php } ?>;
function scLigEditLookupCall()
{
<?php
if ($this->lig_edit_lookup && isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['sc_modal']) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_n3case_edit_grid']['sc_modal'])
{
?>
  parent.<?php echo $this->lig_edit_lookup_cb; ?>(<?php echo $this->lig_edit_lookup_row; ?>);
<?php
}
elseif ($this->lig_edit_lookup)
{
?>
  opener.<?php echo $this->lig_edit_lookup_cb; ?>(<?php echo $this->lig_edit_lookup_row; ?>);
<?php
}
?>
}
if (bLigEditLookupCall)
{
  scLigEditLookupCall();
}
<?php
if (isset($this->redir_modal) && !empty($this->redir_modal))
{
    echo $this->redir_modal;
}
?>
</script>
</body> 
</html> 
<?php 
 } 
} 
?> 
