<?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("Greige Style Specs"); } else { echo strip_tags("Greige Style Specs"); } ?></TITLE>
 <META http-equiv="Content-Type" content="text/html; charset=<?php echo $_SESSION['scriptcase']['charset_html'] ?>" />
 <META http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"/>
 <META http-equiv="Last-Modified" content="<?php echo gmdate("D, d M Y H:i:s"); ?> GMT"/>
 <META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"/>
 <META http-equiv="Cache-Control" content="post-check=0, pre-check=0"/>
 <META http-equiv="Pragma" content="no-cache"/>
 <link rel="stylesheet" href="<?php echo $this->Ini->path_prod ?>/third/jquery_plugin/thickbox/thickbox.css" type="text/css" media="screen" />
 <SCRIPT type="text/javascript">
  var sc_pathToTB = '<?php echo $this->Ini->path_prod ?>/third/jquery_plugin/thickbox/';
  var sc_blockCol = '<?php echo $this->Ini->Block_img_col; ?>';
  var sc_blockExp = '<?php echo $this->Ini->Block_img_exp; ?>';
  var sc_ajaxBg = '<?php echo $this->Ini->Color_bg_ajax; ?>';
  var sc_ajaxBordC = '<?php echo $this->Ini->Border_c_ajax; ?>';
  var sc_ajaxBordS = '<?php echo $this->Ini->Border_s_ajax; ?>';
  var sc_ajaxBordW = '<?php echo $this->Ini->Border_w_ajax; ?>';
  var sc_ajaxMsgTime = 2;
  var sc_img_status_ok = '<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Img_status_ok; ?>';
  var sc_img_status_err = '<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Img_status_err; ?>';
  var sc_css_status = '<?php echo $this->Ini->Css_status; ?>';
 </SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery/js/jquery.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery/js/jquery-ui.js"></SCRIPT>
 <link rel="stylesheet" href="<?php echo $this->Ini->path_prod ?>/third/jquery/css/smoothness/jquery-ui.css" type="text/css" media="screen" />
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.iframe-transport.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.fileupload.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery_plugin/malsup-blockui/jquery.blockUI.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery_plugin/thickbox/thickbox-compressed.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.scInput.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.fieldSelection.js"></SCRIPT>
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_form.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_tab.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/buttons/<?php echo $this->Ini->Str_btn_form . '/' . $this->Ini->Str_btn_form ?>.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_calendar.css" />
<?php
include_once("../_lib/css/" . $this->Ini->str_schema_all . "_tab.php");
?>

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

<?php
include_once("greige_grstyle_ro2_form_sajax_js.php");
?>
<script type="text/javascript">
if (document.getElementById("id_error_display_fixed"))
{
 scCenterFixedElement("id_error_display_fixed");
}
var posDispLeft = 0;
var posDispTop = 0;
var Nm_Proc_Atualiz = false;
function findPos(obj)
{
 var posCurLeft = posCurTop = 0;
 if (obj.offsetParent)
 {
  posCurLeft = obj.offsetLeft
  posCurTop = obj.offsetTop
  while (obj = obj.offsetParent)
  {
   posCurLeft += obj.offsetLeft
   posCurTop += obj.offsetTop
  }
 }
 posDispLeft = posCurLeft - 10;
 posDispTop = posCurTop + 30;
}
var Nav_permite_ret = "<?php if ($this->Nav_permite_ret) { echo 'S'; } else { echo 'N'; } ?>";
var Nav_permite_ava = "<?php if ($this->Nav_permite_ava) { echo 'S'; } else { echo 'N'; } ?>";
var Nav_binicio     = "<?php echo $this->arr_buttons['binicio']['type']; ?>";
var Nav_binicio_off = "<?php echo $this->arr_buttons['binicio_off']['type']; ?>";
var Nav_bavanca     = "<?php echo $this->arr_buttons['bavanca']['type']; ?>";
var Nav_bavanca_off = "<?php echo $this->arr_buttons['bavanca_off']['type']; ?>";
var Nav_bretorna    = "<?php echo $this->arr_buttons['bretorna']['type']; ?>";
var Nav_bretorna_off = "<?php echo $this->arr_buttons['bretorna_off']['type']; ?>";
var Nav_bfinal      = "<?php echo $this->arr_buttons['bfinal']['type']; ?>";
var Nav_bfinal_off  = "<?php echo $this->arr_buttons['bfinal_off']['type']; ?>";
function nav_atualiza(str_ret, str_ava, str_pos)
{
 if ('S' == str_ret)
 {
  if (Nav_binicio == 'image')
  {
      if (document.getElementById("sc_b_ini_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        document.getElementById("sc_b_ini_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ini_" + str_pos)){
        document.getElementById("sc_b_ini_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['binicio']['style'] ?>";
        document.getElementById("sc_b_ini_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['binicio']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['binicio']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bretorna == 'image')
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        document.getElementById("sc_b_ret_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        document.getElementById("sc_b_ret_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bretorna']['style'] ?>";
        document.getElementById("sc_b_ret_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['bretorna']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bretorna']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        }
      }
  }
 }
 else
 {
  if (Nav_binicio_off == 'image')
  {
      if (document.getElementById("sc_b_ini_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        document.getElementById("sc_b_ini_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ini_" + str_pos)) {
        document.getElementById("sc_b_ini_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['binicio_off']['style'] ?>";
        document.getElementById("sc_b_ini_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['binicio_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['binicio_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bretorna_off == 'image')
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        document.getElementById("sc_b_ret_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        document.getElementById("sc_b_ret_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bretorna_off']['style'] ?>";
        document.getElementById("sc_b_ret_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['bretorna_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bretorna_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        }
      }
  }
 }
 if ('S' == str_ava)
 {
  if (Nav_bavanca == 'image')
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        document.getElementById("sc_b_avc_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        document.getElementById("sc_b_avc_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bavanca']['style'] ?>";
        document.getElementById("sc_b_avc_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['bavanca']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bavanca']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bfinal == 'image')
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        document.getElementById("sc_b_fim_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        document.getElementById("sc_b_fim_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bfinal']['style'] ?>";
        document.getElementById("sc_b_fim_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['bfinal']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bfinal']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        }
      }
  }
 }
 else
 {
  if (Nav_bavanca_off == 'image')
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        document.getElementById("sc_b_avc_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        document.getElementById("sc_b_avc_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bavanca_off']['style'] ?>";
        document.getElementById("sc_b_avc_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['bavanca_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bavanca_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bfinal_off == 'image')
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        document.getElementById("sc_b_fim_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        document.getElementById("sc_b_fim_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bfinal_off']['style'] ?>";
        document.getElementById("sc_b_fim_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['bfinal_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bfinal_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        }
      }
  }
 }
}
function nav_liga_img()
{
 sExt = sImg.substr(sImg.length - 4);
 sImg = sImg.substr(0, sImg.length - 4);
 if ('_off' == sImg.substr(sImg.length - 4))
 {
  sImg = sImg.substr(0, sImg.length - 4);
 }
 sImg += sExt;
}
function nav_desliga_img()
{
 sExt = sImg.substr(sImg.length - 4);
 sImg = sImg.substr(0, sImg.length - 4);
 if ('_off' != sImg.substr(sImg.length - 4))
 {
  sImg += '_off';
 }
 sImg += sExt;
}
<?php

include_once('greige_grstyle_ro2_form_jquery.php');

?>

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

  scJQElementsAdd('');

  scJQGeneralAdd();

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

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

<?php
    }
}
?>
 });

   $(window).load(function() {
   });
 if($(".sc-ui-block-control").length) {
  preloadBlock = new Image();
  preloadBlock.src = "<?php echo $this->Ini->path_icones; ?>/" + sc_blockExp;
 }

 var show_block = {
  
 };

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

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

  show_block[block_id] = !show_block[block_id];

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

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

  if (show_block[block_id]) {
  }
 }

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

</script>
</HEAD>
<?php
$str_iframe_body = ('F' == $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['run_iframe']) ? 'margin: 2px;' : '';
 if (isset($_SESSION['nm_aba_bg_color']))
 {
     $this->Ini->cor_bg_grid = $_SESSION['nm_aba_bg_color'];
     $this->Ini->img_fun_pag = $_SESSION['nm_aba_bg_img'];
 }
if ($GLOBALS["erro_incl"] == 1)
{
    $this->nmgp_opcao = "novo";
    $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['opc_ant'] = "novo";
    $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['recarga'] = "novo";
}
if (empty($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['recarga']))
{
    $opcao_botoes = $this->nmgp_opcao;
}
else
{
    $opcao_botoes = $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['recarga'];
}
?>
<body class="scFormPage" style="<?php echo $str_iframe_body; ?>">
<?php

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

?>
<div id="idJSSpecChar" style="display: none;"></div>
<script type="text/javascript">
function NM_tp_critica(TP)
{
    if (TP == 0 || TP == 1 || TP == 2)
    {
        nmdg_tipo_crit = TP;
    }
}
</script> 
<?php
 include_once("greige_grstyle_ro2_form_js0.php");
?>
<script type="text/javascript" src="<?php echo str_replace("{str_idioma}", $this->Ini->str_lang, "../_lib/js/tab_erro_{str_idioma}.js"); ?>"> 
</script> 
<script type="text/javascript"> 
 function setLocale(oSel)
 {
  var sLocale = "";
  if (-1 < oSel.selectedIndex)
  {
   sLocale = oSel.options[oSel.selectedIndex].value;
  }
  document.F1.nmgp_idioma_novo.value = sLocale;
 }
 function setSchema(oSel)
 {
  var sLocale = "";
  if (-1 < oSel.selectedIndex)
  {
   sLocale = oSel.options[oSel.selectedIndex].value;
  }
  document.F1.nmgp_schema_f.value = sLocale;
 }
 </script>
<form name="F1" method=post 
               action="./" 
               target="_self"> 
<input type=hidden name="nm_form_submit" value="1">
<input type=hidden name="nmgp_idioma_novo" value="">
<input type=hidden name="nmgp_schema_f" value="">
<input type=hidden name="nmgp_url_saida" value="">
<input type=hidden name="nmgp_opcao" value="">
<input type=hidden name="nmgp_ancora" value="">
<input type=hidden name="nmgp_num_form" value="<?php  echo NM_encode_input($nmgp_num_form); ?>">
<input type=hidden name="nmgp_parms" value="">
<input type=hidden name="script_case_init" value="<?php  echo NM_encode_input($this->Ini->sc_page); ?>"> 
<input type=hidden name="script_case_session" value="<?php  echo NM_encode_input(session_id()); ?>"> 
<?php
$int_iframe_padding = ('F' == $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['run_iframe']) ? 0 : "0px";
?>
<?php
$_SESSION['scriptcase']['error_span_title']['greige_grstyle_ro2_form'] = $this->Ini->Error_icon_span;
$_SESSION['scriptcase']['error_icon_title']['greige_grstyle_ro2_form'] = '' != $this->Ini->Err_ico_title ? $this->Ini->path_icones . '/' . $this->Ini->Err_ico_title : '';
?>
<div style="display: none; position: absolute" id="id_error_display_table_frame">
<table class="scFormErrorTable">
<tr><?php if ($this->Ini->Error_icon_span && '' != $this->Ini->Err_ico_title) { ?><td style="padding: 0px" rowspan="2"><img src="<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Err_ico_title; ?>" style="border-width: 0px" align="top"></td><?php } ?><td class="scFormErrorTitle"><table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormErrorTitleFont" style="padding: 0px; vertical-align: top; width: 100%"><?php if (!$this->Ini->Error_icon_span && '' != $this->Ini->Err_ico_title) { ?><img src="<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Err_ico_title; ?>" style="border-width: 0px" align="top">&nbsp;<?php } ?><?php echo $this->Ini->Nm_lang['lang_errm_errt'] ?></td><td style="padding: 0px; vertical-align: top"><?php echo nmButtonOutput($this->arr_buttons, "berrm_clse", "scAjaxHideErrorDisplay('table')", "scAjaxHideErrorDisplay('table')", "", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
</td></tr></table></td></tr>
<tr><td class="scFormErrorMessage"><span id="id_error_display_table_text"></span></td></tr>
</table>
</div>
<div style="display: none; position: absolute" id="id_message_display_frame">
 <table class="scFormMessageTable" id="id_message_display_content" style="width: 100%">
  <tr id="id_message_display_title_line">
   <td class="scFormMessageTitle" style="height: 20px"><?php
if ('' != $this->Ini->Msg_ico_title) {
?>
<img src="<?php echo $this->Ini->path_icones . '/' . $this->Ini->Msg_ico_title; ?>" style="border-width: 0px; vertical-align: middle">&nbsp;<?php
}
?>
<?php echo nmButtonOutput($this->arr_buttons, "bmessageclose", "_scAjaxMessageBtnClose()", "_scAjaxMessageBtnClose()", "id_message_display_close_icon", "", "", "float: right", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<span id="id_message_display_title" style="vertical-align: middle"></span></td>
  </tr>
  <tr>
   <td class="scFormMessageMessage"><?php
if ('' != $this->Ini->Msg_ico_body) {
?>
<img id="id_message_display_body_icon" src="<?php echo $this->Ini->path_icones . '/' . $this->Ini->Msg_ico_body; ?>" style="border-width: 0px; vertical-align: middle">&nbsp;<?php
}
?>
<span id="id_message_display_text"></span><div id="id_message_display_buttond" style="display: none; text-align: center"><br /><input id="id_message_display_buttone" type="button" class="scButton_default" value="Ok" onClick="_scAjaxMessageBtnClick()" ></div></td>
  </tr>
 </table>
</div>
<script type="text/javascript">
var scMsgDefTitle = "<?php echo $this->Ini->Nm_lang['lang_usr_lang_othr_msgs_titl']; ?>";
var scMsgDefButton = "Ok";
var scMsgDefClick = "close";
var scMsgDefScInit = "<?php echo $this->Ini->page; ?>";
</script>
<table id="main_table_form"  align="left" cellpadding="<?php echo $int_iframe_padding; ?>" cellspacing=0 class="scFormBorder" >
<?php
  if (!$this->Embutida_call && (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['mostra_cab']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['mostra_cab'] != "N"))
  {
?>
<tr><td>
<style>
#lin1_col1 { padding-left:9px; padding-top:7px;  height:27px; overflow:hidden; text-align:left;}			 
#lin1_col2 { padding-right:9px; padding-top:7px; height:27px; text-align:right; overflow:hidden;   font-size:12px; font-weight:normal;}
</style>

<div style="width: 100%">
 <div class="scFormHeader" style="height:11px; display: block; border-width:0px; "></div>
 <div style="height:37px; border-width:0px 0px 1px 0px;  border-style: dashed; border-color:#ddd; display: block">
 	<table style="width:100%; border-collapse:collapse; padding:0;">
    	<tr>
        	<td id="lin1_col1" class="scFormHeaderFont"><span><?php if ($this->nmgp_opcao == "novo") { echo "Greige Style Specs"; } else { echo "Greige Style Specs"; } ?></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->nmgp_form_empty)
  {
       echo "</td></tr><tr><td align=center>";
       echo "<font face=\"" . $this->Ini->pag_fonte_tipo . "\" color=\"" . $this->Ini->cor_txt_grid . "\" size=\"2\"><b>" . $this->Ini->Nm_lang['lang_errm_empt'] . "</b></font>";
       echo "</td></tr>";
  }
  else
  {
?>
<script type="text/javascript">
var pag_ativa = "greige_grstyle_ro2_form_form0";
</script>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" BGCOLOR="" width=100%>
<tr>
<?php
    if (empty($nmgp_num_form) || $nmgp_num_form == "greige_grstyle_ro2_form_form0")
    {
        $css_celula = "scTabActive";
        $css_fonte  = "scTabActiveFont scTabActiveFontCustom";
        $sImgTL     = $str_active_top_esq;
        $sImgT      = $str_active_lin_top;
        $sImgTR     = $str_active_top_dir;
        $sImgL      = $str_active_col_esq;
        $sImgR      = $str_active_col_dir;
    }
    else
    {
        $css_celula = "scTabInactive";
        $css_fonte  = "scTabInactiveFont scTabInactiveFontCustom";
        $sImgTL     = $str_inactive_top_esq;
        $sImgT      = $str_inactive_lin_top;
        $sImgTR     = $str_inactive_top_dir;
        $sImgL      = $str_inactive_col_esq;
        $sImgR      = $str_inactive_col_dir;
    }
?>
   <td>
         <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
          <TR HEIGHT="1">
           <TD WIDTH="1"><IMG ID="id_greige_grstyle_ro2_form_form0_tl" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTL; ?>" BORDER="0"></TD>
           <TD ID="id_greige_grstyle_ro2_form_form0_t" HEIGHT="3" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgT;  ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD WIDTH="1"><IMG ID="id_greige_grstyle_ro2_form_form0_tr" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTR;  ?>" BORDER="0"></TD>
          </TR>
          <TR>
           <TD ID="id_greige_grstyle_ro2_form_form0_4" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgL; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD ID="id_greige_grstyle_ro2_form_form0_5" nowrap class="<?php echo $css_celula; ?> <?php echo $css_celula; ?>Bg"><A HREF="javascript:sc_exib_ocult_pag ('greige_grstyle_ro2_form_form0')" class="<?php echo $css_fonte; ?>" ID="id_greige_grstyle_ro2_form_form0_font">Main</TD>
           <TD ID="id_greige_grstyle_ro2_form_form0_6" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgR; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
          </TR>
         </TABLE>
   </td>
<td><img src="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" border="0" width="1px"/></td>
<?php
    if ($nmgp_num_form == "greige_grstyle_ro2_form_form1")
    {
        $css_celula = "scTabActive";
        $css_fonte  = "scTabActiveFont scTabActiveFontCustom";
        $sImgTL     = $str_active_top_esq;
        $sImgT      = $str_active_lin_top;
        $sImgTR     = $str_active_top_dir;
        $sImgL      = $str_active_col_esq;
        $sImgR      = $str_active_col_dir;
    }
    else
    {
        $css_celula = "scTabInactive";
        $css_fonte  = "scTabInactiveFont scTabInactiveFontCustom";
        $sImgTL     = $str_inactive_top_esq;
        $sImgT      = $str_inactive_lin_top;
        $sImgTR     = $str_inactive_top_dir;
        $sImgL      = $str_inactive_col_esq;
        $sImgR      = $str_inactive_col_dir;
    }
?>
   <td>
         <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
          <TR HEIGHT="1">
           <TD WIDTH="1"><IMG ID="id_greige_grstyle_ro2_form_form1_tl" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTL; ?>" BORDER="0"></TD>
           <TD ID="id_greige_grstyle_ro2_form_form1_t" HEIGHT="3" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgT;  ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD WIDTH="1"><IMG ID="id_greige_grstyle_ro2_form_form1_tr" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTR;  ?>" BORDER="0"></TD>
          </TR>
          <TR>
           <TD ID="id_greige_grstyle_ro2_form_form1_4" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgL; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD ID="id_greige_grstyle_ro2_form_form1_5" nowrap class="<?php echo $css_celula; ?> <?php echo $css_celula; ?>Bg"><A HREF="javascript:sc_exib_ocult_pag ('greige_grstyle_ro2_form_form1')" class="<?php echo $css_fonte; ?>" ID="id_greige_grstyle_ro2_form_form1_font">L1 (Bottom) Bar</TD>
           <TD ID="id_greige_grstyle_ro2_form_form1_6" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgR; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
          </TR>
         </TABLE>
   </td>
<td><img src="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" border="0" width="1px"/></td>
<?php
    if ($nmgp_num_form == "greige_grstyle_ro2_form_form2")
    {
        $css_celula = "scTabActive";
        $css_fonte  = "scTabActiveFont scTabActiveFontCustom";
        $sImgTL     = $str_active_top_esq;
        $sImgT      = $str_active_lin_top;
        $sImgTR     = $str_active_top_dir;
        $sImgL      = $str_active_col_esq;
        $sImgR      = $str_active_col_dir;
    }
    else
    {
        $css_celula = "scTabInactive";
        $css_fonte  = "scTabInactiveFont scTabInactiveFontCustom";
        $sImgTL     = $str_inactive_top_esq;
        $sImgT      = $str_inactive_lin_top;
        $sImgTR     = $str_inactive_top_dir;
        $sImgL      = $str_inactive_col_esq;
        $sImgR      = $str_inactive_col_dir;
    }
?>
   <td>
         <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
          <TR HEIGHT="1">
           <TD WIDTH="1"><IMG ID="id_greige_grstyle_ro2_form_form2_tl" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTL; ?>" BORDER="0"></TD>
           <TD ID="id_greige_grstyle_ro2_form_form2_t" HEIGHT="3" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgT;  ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD WIDTH="1"><IMG ID="id_greige_grstyle_ro2_form_form2_tr" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTR;  ?>" BORDER="0"></TD>
          </TR>
          <TR>
           <TD ID="id_greige_grstyle_ro2_form_form2_4" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgL; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD ID="id_greige_grstyle_ro2_form_form2_5" nowrap class="<?php echo $css_celula; ?> <?php echo $css_celula; ?>Bg"><A HREF="javascript:sc_exib_ocult_pag ('greige_grstyle_ro2_form_form2')" class="<?php echo $css_fonte; ?>" ID="id_greige_grstyle_ro2_form_form2_font">L2 (Top) Bar</TD>
           <TD ID="id_greige_grstyle_ro2_form_form2_6" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgR; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
          </TR>
         </TABLE>
   </td>
<td><img src="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" border="0" width="1px"/></td>
<?php
    if ($nmgp_num_form == "greige_grstyle_ro2_form_form3")
    {
        $css_celula = "scTabActive";
        $css_fonte  = "scTabActiveFont scTabActiveFontCustom";
        $sImgTL     = $str_active_top_esq;
        $sImgT      = $str_active_lin_top;
        $sImgTR     = $str_active_top_dir;
        $sImgL      = $str_active_col_esq;
        $sImgR      = $str_active_col_dir;
    }
    else
    {
        $css_celula = "scTabInactive";
        $css_fonte  = "scTabInactiveFont scTabInactiveFontCustom";
        $sImgTL     = $str_inactive_top_esq;
        $sImgT      = $str_inactive_lin_top;
        $sImgTR     = $str_inactive_top_dir;
        $sImgL      = $str_inactive_col_esq;
        $sImgR      = $str_inactive_col_dir;
    }
?>
   <td>
         <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
          <TR HEIGHT="1">
           <TD WIDTH="1"><IMG ID="id_greige_grstyle_ro2_form_form3_tl" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTL; ?>" BORDER="0"></TD>
           <TD ID="id_greige_grstyle_ro2_form_form3_t" HEIGHT="3" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgT;  ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD WIDTH="1"><IMG ID="id_greige_grstyle_ro2_form_form3_tr" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTR;  ?>" BORDER="0"></TD>
          </TR>
          <TR>
           <TD ID="id_greige_grstyle_ro2_form_form3_4" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgL; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD ID="id_greige_grstyle_ro2_form_form3_5" nowrap class="<?php echo $css_celula; ?> <?php echo $css_celula; ?>Bg"><A HREF="javascript:sc_exib_ocult_pag ('greige_grstyle_ro2_form_form3')" class="<?php echo $css_fonte; ?>" ID="id_greige_grstyle_ro2_form_form3_font">L3 Bar</TD>
           <TD ID="id_greige_grstyle_ro2_form_form3_6" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgR; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
          </TR>
         </TABLE>
   </td>
<td><img src="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" border="0" width="1px"/></td>
<?php
    if ($nmgp_num_form == "greige_grstyle_ro2_form_form4")
    {
        $css_celula = "scTabActive";
        $css_fonte  = "scTabActiveFont scTabActiveFontCustom";
        $sImgTL     = $str_active_top_esq;
        $sImgT      = $str_active_lin_top;
        $sImgTR     = $str_active_top_dir;
        $sImgL      = $str_active_col_esq;
        $sImgR      = $str_active_col_dir;
    }
    else
    {
        $css_celula = "scTabInactive";
        $css_fonte  = "scTabInactiveFont scTabInactiveFontCustom";
        $sImgTL     = $str_inactive_top_esq;
        $sImgT      = $str_inactive_lin_top;
        $sImgTR     = $str_inactive_top_dir;
        $sImgL      = $str_inactive_col_esq;
        $sImgR      = $str_inactive_col_dir;
    }
?>
   <td>
         <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
          <TR HEIGHT="1">
           <TD WIDTH="1"><IMG ID="id_greige_grstyle_ro2_form_form4_tl" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTL; ?>" BORDER="0"></TD>
           <TD ID="id_greige_grstyle_ro2_form_form4_t" HEIGHT="3" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgT;  ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD WIDTH="1"><IMG ID="id_greige_grstyle_ro2_form_form4_tr" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTR;  ?>" BORDER="0"></TD>
          </TR>
          <TR>
           <TD ID="id_greige_grstyle_ro2_form_form4_4" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgL; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD ID="id_greige_grstyle_ro2_form_form4_5" nowrap class="<?php echo $css_celula; ?> <?php echo $css_celula; ?>Bg"><A HREF="javascript:sc_exib_ocult_pag ('greige_grstyle_ro2_form_form4')" class="<?php echo $css_fonte; ?>" ID="id_greige_grstyle_ro2_form_form4_font">L4 Bar</TD>
           <TD ID="id_greige_grstyle_ro2_form_form4_6" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgR; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
          </TR>
         </TABLE>
   </td>
<td><img src="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" border="0" width="1px"/></td>
<td width=100%></td>
</tr>
</TABLE>
</td></tr> 
<tr><td style="padding: 0px <?php echo ('' == $int_iframe_padding) ? '0' : $int_iframe_padding; ?>px">
<div id="greige_grstyle_ro2_form_form0" style='display: none; width: 1px; height: 0px; overflow: scroll'>
<?php $sc_hidden_no = 1; $sc_hidden_yes = 0; ?>
   <a name="bloco_0"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_0"><!-- bloco_c -->
<?php
?>
<TABLE align="center" id="hidden_bloco_0" class="scFormTable" width="100%" style="height: 100%;"><?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['gr_style']))
           {
               $this->nmgp_cmp_readonly['gr_style'] = 'on';
           }
?>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['date']))
           {
               $this->nmgp_cmp_readonly['date'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['type']))
           {
               $this->nmgp_cmp_readonly['type'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['width']))
           {
               $this->nmgp_cmp_readonly['width'] = 'on';
           }
?>


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

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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_date" style="<?php echo $sStyleHidden_date; ?>;"><span id="id_label_date"><?php echo $this->nm_new_label['date']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['php_cmp_required']['date']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['php_cmp_required']['date'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_date" style="<?php echo $sStyleHidden_date; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["date"]) &&  $this->nmgp_cmp_readonly["date"] == "on")) { 

 ?>
<input type=hidden name="date" value="<?php echo NM_encode_input($date) . "\"><span id=\"id_ajax_label_date\">" . $date . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_date" class="sc-ui-readonly-date" style=";<?php echo $sStyleReadLab_date; ?>"><?php echo NM_encode_input($this->date); ?></span><span id="id_read_off_date" style="white-space: nowrap;<?php echo $sStyleReadInp_date; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_date" type=text name="date" value="<?php echo NM_encode_input($date) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['date']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['date']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"><?php
$tmp_form_data = $this->field_config['date']['date_format'];
$tmp_form_data = str_replace('aaaa', 'yyyy', $tmp_form_data);
$tmp_form_data = str_replace('dd'  , $this->Ini->Nm_lang['lang_othr_date_days'], $tmp_form_data);
$tmp_form_data = str_replace('mm'  , $this->Ini->Nm_lang['lang_othr_date_mnth'], $tmp_form_data);
$tmp_form_data = str_replace('yyyy', $this->Ini->Nm_lang['lang_othr_date_year'], $tmp_form_data);
$tmp_form_data = str_replace('hh'  , $this->Ini->Nm_lang['lang_othr_date_hour'], $tmp_form_data);
$tmp_form_data = str_replace('ii'  , $this->Ini->Nm_lang['lang_othr_date_mint'], $tmp_form_data);
$tmp_form_data = str_replace('ss'  , $this->Ini->Nm_lang['lang_othr_date_scnd'], $tmp_form_data);
$tmp_form_data = str_replace(';'   , ' '                                       , $tmp_form_data);
?>
&nbsp;<?php echo $tmp_form_data; ?></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_date_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_date_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_type" style="<?php echo $sStyleHidden_type; ?>;"><span id="id_label_type"><?php echo $this->nm_new_label['type']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['php_cmp_required']['type']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['php_cmp_required']['type'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_type" style="<?php echo $sStyleHidden_type; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["type"]) &&  $this->nmgp_cmp_readonly["type"] == "on")) { 

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


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


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

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


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

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

 ?>
<input type=hidden name="width" value="<?php echo NM_encode_input($width) . "\"><span id=\"id_ajax_label_width\">" . $width . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_width" class="sc-ui-readonly-width" style=";<?php echo $sStyleReadLab_width; ?>"><?php echo NM_encode_input($this->width); ?></span><span id="id_read_off_width" style="white-space: nowrap;<?php echo $sStyleReadInp_width; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_width" type=text name="width" value="<?php echo NM_encode_input($width) ?>"
 size=6 alt="{datatype: 'integer', maxLength: 6, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['width']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['width']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_width_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_width_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_gauge" style="<?php echo $sStyleHidden_gauge; ?>;"><span id="id_label_gauge"><?php echo $this->nm_new_label['gauge']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['php_cmp_required']['gauge']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['php_cmp_required']['gauge'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_gauge" style="<?php echo $sStyleHidden_gauge; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["gauge"]) &&  $this->nmgp_cmp_readonly["gauge"] == "on")) { 

 ?>
<input type=hidden name="gauge" value="<?php echo NM_encode_input($gauge) . "\"><span id=\"id_ajax_label_gauge\">" . $gauge . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_gauge" class="sc-ui-readonly-gauge" style=";<?php echo $sStyleReadLab_gauge; ?>"><?php echo NM_encode_input($this->gauge); ?></span><span id="id_read_off_gauge" style="white-space: nowrap;<?php echo $sStyleReadInp_gauge; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_gauge" type=text name="gauge" value="<?php echo NM_encode_input($gauge) ?>"
 size=4 alt="{datatype: 'integer', maxLength: 4, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['gauge']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['gauge']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_gauge_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gauge_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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

 ?>
<input type=hidden name="lbs_rack" value="<?php echo NM_encode_input($lbs_rack) . "\"><span id=\"id_ajax_label_lbs_rack\">" . $lbs_rack . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_lbs_rack" class="sc-ui-readonly-lbs_rack" style=";<?php echo $sStyleReadLab_lbs_rack; ?>"><?php echo NM_encode_input($this->lbs_rack); ?></span><span id="id_read_off_lbs_rack" style="white-space: nowrap;<?php echo $sStyleReadInp_lbs_rack; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_lbs_rack" type=text name="lbs_rack" value="<?php echo NM_encode_input($lbs_rack) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 4, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['lbs_rack']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['lbs_rack']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['lbs_rack']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_lbs_rack_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_lbs_rack_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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


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

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


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

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

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


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

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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_new_style" style="<?php echo $sStyleHidden_new_style; ?>;"><span id="id_label_new_style"><?php echo $this->nm_new_label['new_style']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['php_cmp_required']['new_style']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle_ro2_form']['php_cmp_required']['new_style'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_new_style" style="<?php echo $sStyleHidden_new_style; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["new_style"]) &&  $this->nmgp_cmp_readonly["new_style"] == "on")) { 

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


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


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

<?php } 
?> 
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['bot_yarn']))
           {
               $this->nmgp_cmp_readonly['bot_yarn'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['bot_ends']))
           {
               $this->nmgp_cmp_readonly['bot_ends'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['bot_patter']))
           {
               $this->nmgp_cmp_readonly['bot_patter'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['bot_thread']))
           {
               $this->nmgp_cmp_readonly['bot_thread'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['bot_runnrs']))
           {
               $this->nmgp_cmp_readonly['bot_runnrs'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['bot_weight']))
           {
               $this->nmgp_cmp_readonly['bot_weight'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['bot_percen']))
           {
               $this->nmgp_cmp_readonly['bot_percen'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['td']))
           {
               $this->nmgp_cmp_readonly['td'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['top_yarn']))
           {
               $this->nmgp_cmp_readonly['top_yarn'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['top_ends']))
           {
               $this->nmgp_cmp_readonly['top_ends'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['top_patter']))
           {
               $this->nmgp_cmp_readonly['top_patter'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['top_thread']))
           {
               $this->nmgp_cmp_readonly['top_thread'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['top_runnrs']))
           {
               $this->nmgp_cmp_readonly['top_runnrs'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['top_weight']))
           {
               $this->nmgp_cmp_readonly['top_weight'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['top_percen']))
           {
               $this->nmgp_cmp_readonly['top_percen'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l3d']))
           {
               $this->nmgp_cmp_readonly['l3d'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l3_yarn']))
           {
               $this->nmgp_cmp_readonly['l3_yarn'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l3_patter']))
           {
               $this->nmgp_cmp_readonly['l3_patter'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l3_thread']))
           {
               $this->nmgp_cmp_readonly['l3_thread'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l3_runnrs']))
           {
               $this->nmgp_cmp_readonly['l3_runnrs'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l3_weight']))
           {
               $this->nmgp_cmp_readonly['l3_weight'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l3_percen']))
           {
               $this->nmgp_cmp_readonly['l3_percen'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l3_ends']))
           {
               $this->nmgp_cmp_readonly['l3_ends'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4d']))
           {
               $this->nmgp_cmp_readonly['l4d'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_yarn']))
           {
               $this->nmgp_cmp_readonly['l4_yarn'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_patter']))
           {
               $this->nmgp_cmp_readonly['l4_patter'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_thread']))
           {
               $this->nmgp_cmp_readonly['l4_thread'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_runnrs']))
           {
               $this->nmgp_cmp_readonly['l4_runnrs'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_weight']))
           {
               $this->nmgp_cmp_readonly['l4_weight'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_percen']))
           {
               $this->nmgp_cmp_readonly['l4_percen'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_ends']))
           {
               $this->nmgp_cmp_readonly['l4_ends'] = 'on';
           }
?>


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