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

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

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

include_once('shipping_doship_form_jquery.php');

?>

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

  scJQElementsAdd('');

  scJQGeneralAdd();

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

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

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

<?php
    }
}
?>
 });

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

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

 var show_block = {
  
 };

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

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

  show_block[block_id] = !show_block[block_id];

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

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

  if (show_block[block_id]) {
    if ("hidden_bloco_1" == block_id) {
      scAjaxDetailHeight("shippinig_doit_form", "425");
    }
  }
 }

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

</script>
</HEAD>
<?php
$str_iframe_body = 'margin-left: 0px; margin-top: 0px;';
 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]['shipping_doship_form']['opc_ant'] = "novo";
    $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['recarga'] = "novo";
}
if (empty($_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['recarga']))
{
    $opcao_botoes = $this->nmgp_opcao;
}
else
{
    $opcao_botoes = $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_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("shipping_doship_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"> 
nmdg_enter_tab = true;
 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]['shipping_doship_form']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe']) ? 0 : "0px";
?>
<?php
$_SESSION['scriptcase']['error_span_title']['shipping_doship_form'] = $this->Ini->Error_icon_span;
$_SESSION['scriptcase']['error_icon_title']['shipping_doship_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"  width="100%">
<?php
  if (!$this->Embutida_call && (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['mostra_cab']) || $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_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 "Shipping Order"; } else { echo "Shipping Order"; } ?></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]['shipping_doship_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] != "R")
{
?>
    <table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormToolbar" style="padding: 0px; spacing: 0px">
    <table style="border-collapse: collapse; border-width: 0px; width: 100%">
    <tr> 
     <td nowrap align="left" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] != "R")
{
    $NM_btn = false;
      if ($this->nmgp_botoes['qsearch'] == "on" && $opcao_botoes != "novo")
      {
          $OPC_cmp = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['fast_search'][0] : "";
          $OPC_arg = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['fast_search'][1] : "";
          $OPC_dat = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['fast_search'][2] : "";
?> 
           <script type="text/javascript">var change_fast_t = "";</script>
          <select class="scFormToolbarInput" style="vertical-align: middle;" name="nmgp_fast_search_t" onChange="change_fast_t = 'CH';">
<?php 
          $SC_Label_atu['sm'] = (isset($this->nm_new_label['sm'])) ? $this->nm_new_label['sm'] : 'SM'; 
          $SC_Label_atu['b1'] = (isset($this->nm_new_label['b1'])) ? $this->nm_new_label['b1'] : 'B1'; 
          $SC_Label_atu['s1'] = (isset($this->nm_new_label['s1'])) ? $this->nm_new_label['s1'] : 'S1'; 
          $SC_Label_atu['q1'] = (isset($this->nm_new_label['q1'])) ? $this->nm_new_label['q1'] : 'Q1'; 
          foreach ($SC_Label_atu as $CMP => $LABEL)
          {
              $OPC_sel = ($CMP == $OPC_cmp) ? " selected" : "";
              echo "           <option value='" . $CMP . "'" . $OPC_sel . ">" . $LABEL . "</option>";
          }
?> 
          </select>
          <select class="scFormToolbarInput" style="vertical-align: middle;" name="nmgp_cond_fast_search_t" onChange="change_fast_t = 'CH';">
<?php 
          $OPC_sel = ("eq" == $OPC_arg) ? " selected" : "";
           echo "           <option value='eq'" . $OPC_sel . ">" . $this->Ini->Nm_lang['lang_srch_exac'] . "</option>";
          $OPC_sel = ("ii" == $OPC_arg) ? " selected" : "";
           echo "           <option value='ii'" . $OPC_sel . ">" . $this->Ini->Nm_lang['lang_srch_stts_with'] . "</option>";
          $OPC_sel = ("qp" == $OPC_arg) ? " selected" : "";
           echo "           <option value='qp'" . $OPC_sel . ">" . $this->Ini->Nm_lang['lang_srch_like'] . "</option>";
?> 
          </select>
          <script type="text/javascript">var scQSInitVal = "<?php echo $OPC_dat ?>";</script>
          <span id="quicksearchph_t">
           <input type="text" id="SC_fast_search_t" class="scFormToolbarInput" style="vertical-align: middle" name="nmgp_arg_fast_search_t" value="<?php echo NM_encode_input($OPC_dat) ?>" size="10" onChange="change_fast_t = 'CH';" alt="{watermark:'<?php echo $this->Ini->Nm_lang['lang_othr_qk_watermark'] ?>', watermarkClass: 'scFormToolbarInputWm', maxLength: 255}">
           <img style="position: absolute; display: none; height: 16px; width: 16px" id="SC_fast_search_close_t" src="<?php echo $this->Ini->path_botoes ?>/<?php echo $this->Ini->Img_qs_clean; ?>" onclick="document.getElementById('SC_fast_search_t').value = ''; nm_move('fast_search', 't');">
           <img style="position: absolute; display: none; height: 16px; width: 16px" id="SC_fast_search_submit_t" src="<?php echo $this->Ini->path_botoes ?>/<?php echo $this->Ini->Img_qs_search; ?>" onclick="scQuickSearchSubmit_t();">
          </span>
<?php 
      }
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['new'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bnovo", "nm_move ('novo'); return false;", "nm_move ('novo'); return false;", "sc_b_new_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!$this->Embutida_call || $this->sc_evento == "novo" || $this->sc_evento == "insert" || $this->sc_evento == "incluir")) {
        $sCondStyle = ($this->nmgp_botoes['insert'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bincluir", "nm_atualiza ('incluir'); return false;", "nm_atualiza ('incluir'); return false;", "sc_b_ins_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!$this->Embutida_call || $this->sc_evento == "novo" || $this->sc_evento == "insert" || $this->sc_evento == "incluir")) {
        $sCondStyle = ($this->nmgp_botoes['insert'] == "on") && ($this->nm_flag_saida_novo != "S" || $this->nmgp_botoes['exit'] != "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bcancelar", "document.F5.submit();return false;", "document.F5.submit();return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['update'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "balterar", "nm_atualiza ('alterar'); return false;", "nm_atualiza ('alterar'); return false;", "sc_b_upd_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['delete'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bexcluir", "nm_atualiza ('excluir'); return false;", "nm_atualiza ('excluir'); return false;", "sc_b_del_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && ($opcao_botoes != "novo")) {
        $sCondStyle = ($this->nmgp_botoes['sc_btn_0'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "sc_btn_0", "sc_btn_sc_btn_0()", "sc_btn_sc_btn_0()", "sc_sc_btn_0_top", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && ($opcao_botoes != "novo")) {
        $sCondStyle = ($this->nmgp_botoes['sc_btn_0'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "sc_btn_0", "sc_btn_sc_btn_0()", "sc_btn_sc_btn_0()", "sc_sc_btn_0_top", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && ($opcao_botoes != "novo")) {
        $sCondStyle = ($this->nmgp_botoes['sc_btn_1'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "sc_btn_1", "sc_btn_sc_btn_1()", "sc_btn_sc_btn_1()", "sc_sc_btn_1_top", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && ($opcao_botoes != "novo")) {
        $sCondStyle = ($this->nmgp_botoes['sc_btn_1'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "sc_btn_1", "sc_btn_sc_btn_1()", "sc_btn_sc_btn_1()", "sc_sc_btn_1_top", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ('' != $this->url_webhelp) {
        $sCondStyle = '';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bhelp", "window.open('" . $this->url_webhelp. "', '', 'resizable, scrollbars'); ", "window.open('" . $this->url_webhelp. "', '', 'resizable, scrollbars'); ", "", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (isset($_SESSION['scriptcase']['nm_sc_retorno']) && !empty($_SESSION['scriptcase']['nm_sc_retorno']) && ($nm_apl_dependente != 1 || $this->nm_Start_new) && $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] != "R") && (!$this->Embutida_call)) {
        $sCondStyle = (($this->nm_flag_saida_novo == "S" || ($this->nm_Start_new && !$this->aba_iframe)) && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] == "R") && (!$this->Embutida_call)) {
        $sCondStyle = ($this->nm_flag_saida_novo == "S" && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!$this->Embutida_call)) {
        $sCondStyle = (isset($_SESSION['scriptcase']['nm_sc_retorno']) && !empty($_SESSION['scriptcase']['nm_sc_retorno']) && $nm_apl_dependente != 1 && $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] != "R" && (!$this->aba_iframe || $this->is_calendar_app) && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bsair", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!$this->Embutida_call)) {
        $sCondStyle = (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] != "F" && $this->nmgp_botoes['exit'] == "on") && ($nm_apl_dependente == 1 && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!$this->Embutida_call)) {
        $sCondStyle = (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] != "F" && $this->nmgp_botoes['exit'] == "on") && ($nm_apl_dependente != 1 || $this->nmgp_botoes['exit'] != "on") && (!$this->aba_iframe && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bsair", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['shipping_doship_form']['run_iframe'] != "R")
{
?>
   </td></tr> 
   </table> 
   </td></tr></table> 
<?php
}
?>
<?php
if (!$NM_btn && isset($NM_ult_sep))
{
    echo "    <script language=\"javascript\">";
    echo "      document.getElementById('" .  $NM_ult_sep . "').style.display='none';";
    echo "    </script>";
}
unset($NM_ult_sep);
?>
<?php if ('novo' != $this->nmgp_opcao || $this->Embutida_form) { ?><script>nav_atualiza(Nav_permite_ret, Nav_permite_ava, 't');</script><?php } ?>
</td></tr> 
<tr><td>
<?php
  if ($this->nmgp_form_empty)
  {
       echo "</td></tr><tr><td align=center>";
       echo "<font face=\"" . $this->Ini->pag_fonte_tipo . "\" color=\"" . $this->Ini->cor_txt_grid . "\" size=\"2\"><b>" . $this->Ini->Nm_lang['lang_errm_empt'] . "</b></font>";
       echo "</td></tr>";
  }
  else
  {
?>
<script type="text/javascript">
var pag_ativa = "shipping_doship_form_form0";
</script>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" BGCOLOR="" width=100%>
<tr>
<?php
    if (empty($nmgp_num_form) || $nmgp_num_form == "shipping_doship_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_shipping_doship_form_form0_tl" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTL; ?>" BORDER="0"></TD>
           <TD ID="id_shipping_doship_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_shipping_doship_form_form0_tr" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTR;  ?>" BORDER="0"></TD>
          </TR>
          <TR>
           <TD ID="id_shipping_doship_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_shipping_doship_form_form0_5" nowrap class="<?php echo $css_celula; ?> <?php echo $css_celula; ?>Bg"><A HREF="javascript:sc_exib_ocult_pag ('shipping_doship_form_form0')" class="<?php echo $css_fonte; ?>" ID="id_shipping_doship_form_form0_font">Main</TD>
           <TD ID="id_shipping_doship_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 == "shipping_doship_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_shipping_doship_form_form1_tl" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTL; ?>" BORDER="0"></TD>
           <TD ID="id_shipping_doship_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_shipping_doship_form_form1_tr" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTR;  ?>" BORDER="0"></TD>
          </TR>
          <TR>
           <TD ID="id_shipping_doship_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_shipping_doship_form_form1_5" nowrap class="<?php echo $css_celula; ?> <?php echo $css_celula; ?>Bg"><A HREF="javascript:sc_exib_ocult_pag ('shipping_doship_form_form1')" class="<?php echo $css_fonte; ?>" ID="id_shipping_doship_form_form1_font">Shipping Order Items</TD>
           <TD ID="id_shipping_doship_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>
<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="shipping_doship_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 ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


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

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

 ?>
<input type=hidden name="sm" value="<?php echo NM_encode_input($sm) . "\">" . $sm . ""; ?>
<?php } else { ?>
<span id="id_read_on_sm" class="sc-ui-readonly-sm" style=";<?php echo $sStyleReadLab_sm; ?>"><?php echo NM_encode_input($this->sm); ?></span><span id="id_read_off_sm" style="white-space: nowrap;<?php echo $sStyleReadInp_sm; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_sm" type=text name="sm" value="<?php echo NM_encode_input($sm) ?>"
 size=5 maxlength=5 alt="{datatype: 'text', maxLength: 5, allowedChars: '', lettersCase: '', enterTab: true, 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_sm_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_sm_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" && */isset($this->nmgp_cmp_readonly['date']) && $this->nmgp_cmp_readonly['date'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['date']);
       $sStyleReadLab_date = '';
       $sStyleReadInp_date = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['date']) && $this->nmgp_cmp_hidden['date'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="date" value="<?php echo NM_encode_input($date) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

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

 ?>
<input type=hidden name="date" value="<?php echo NM_encode_input($date) . "\">" . $date . ""; ?>
<?php } else { ?>
<span id="id_read_on_date" class="sc-ui-readonly-date" style=";<?php echo $sStyleReadLab_date; ?>"><?php echo NM_encode_input($this->date); ?></span><span id="id_read_off_date" style="white-space: nowrap;<?php echo $sStyleReadInp_date; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_date" type=text name="date" value="<?php echo NM_encode_input($date) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['date']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['date']['date_format']; ?>', enterTab: true, 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['p_o_number']))
    {
        $this->nm_new_label['p_o_number'] = "P O NUMBER";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $p_o_number = $this->p_o_number;
   $sStyleHidden_p_o_number = '';
   if (isset($this->nmgp_cmp_hidden['p_o_number']) && $this->nmgp_cmp_hidden['p_o_number'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['p_o_number']);
       $sStyleHidden_p_o_number = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_p_o_number = 'display: none;';
   $sStyleReadInp_p_o_number = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['p_o_number']) && $this->nmgp_cmp_readonly['p_o_number'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['p_o_number']);
       $sStyleReadLab_p_o_number = '';
       $sStyleReadInp_p_o_number = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['p_o_number']) && $this->nmgp_cmp_hidden['p_o_number'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="p_o_number" value="<?php echo NM_encode_input($p_o_number) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

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

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


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

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

 ?>
<input type=hidden name="q1" value="<?php echo NM_encode_input($q1) . "\">" . $q1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_q1" class="sc-ui-readonly-q1" style=";<?php echo $sStyleReadLab_q1; ?>"><?php echo NM_encode_input($this->q1); ?></span><span id="id_read_off_q1" style="white-space: nowrap;<?php echo $sStyleReadInp_q1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_q1" type=text name="q1" value="<?php echo NM_encode_input($q1) ?>"
 size=15 maxlength=15 alt="{datatype: 'text', maxLength: 15, allowedChars: '', lettersCase: '', enterTab: true, 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_q1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_q1_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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

 ?>
<input type=hidden name="s1" value="<?php echo NM_encode_input($s1) . "\">" . $s1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_s1" class="sc-ui-readonly-s1" style=";<?php echo $sStyleReadLab_s1; ?>"><?php echo NM_encode_input($this->s1); ?></span><span id="id_read_off_s1" style="white-space: nowrap;<?php echo $sStyleReadInp_s1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_s1" type=text name="s1" value="<?php echo NM_encode_input($s1) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: true, 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_s1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_s1_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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

 ?>
<input type=hidden name="po1" value="<?php echo NM_encode_input($po1) . "\">" . $po1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_po1" class="sc-ui-readonly-po1" style=";<?php echo $sStyleReadLab_po1; ?>"><?php echo NM_encode_input($this->po1); ?></span><span id="id_read_off_po1" style="white-space: nowrap;<?php echo $sStyleReadInp_po1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_po1" type=text name="po1" value="<?php echo NM_encode_input($po1) ?>"
 size=12 maxlength=12 alt="{datatype: 'text', maxLength: 12, allowedChars: '', lettersCase: '', enterTab: true, 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_po1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_po1_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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


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

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


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

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

 ?>
<input type=hidden name="via1" value="<?php echo NM_encode_input($via1) . "\">" . $via1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_via1" class="sc-ui-readonly-via1" style=";<?php echo $sStyleReadLab_via1; ?>"><?php echo NM_encode_input($this->via1); ?></span><span id="id_read_off_via1" style="white-space: nowrap;<?php echo $sStyleReadInp_via1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_via1" type=text name="via1" value="<?php echo NM_encode_input($via1) ?>"
 size=25 maxlength=25 alt="{datatype: 'text', maxLength: 25, allowedChars: '', lettersCase: '', enterTab: true, 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_via1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_via1_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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

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


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

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

 ?>
<input type=hidden name="b1" value="<?php echo NM_encode_input($b1) . "\">" . $b1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_b1" class="sc-ui-readonly-b1" style=";<?php echo $sStyleReadLab_b1; ?>"><?php echo NM_encode_input($this->b1); ?></span><span id="id_read_off_b1" style="white-space: nowrap;<?php echo $sStyleReadInp_b1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_b1" type=text name="b1" value="<?php echo NM_encode_input($b1) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: true, 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_b1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_b1_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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

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


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

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

 ?>
<input type=hidden name="bl" value="<?php echo NM_encode_input($bl) . "\">" . $bl . ""; ?>
<?php } else { ?>
<span id="id_read_on_bl" class="sc-ui-readonly-bl" style=";<?php echo $sStyleReadLab_bl; ?>"><?php echo NM_encode_input($this->bl); ?></span><span id="id_read_off_bl" style="white-space: nowrap;<?php echo $sStyleReadInp_bl; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_bl" type=text name="bl" value="<?php echo NM_encode_input($bl) ?>"
 size=18 maxlength=18 alt="{datatype: 'text', maxLength: 18, allowedChars: '', lettersCase: '', enterTab: true, 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_bl_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_bl_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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

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


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


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

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


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

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

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


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

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

 ?>
<input type=hidden name="spoke" value="<?php echo NM_encode_input($spoke) . "\">" . $spoke . ""; ?>
<?php } else { ?>
<span id="id_read_on_spoke" class="sc-ui-readonly-spoke" style=";<?php echo $sStyleReadLab_spoke; ?>"><?php echo NM_encode_input($this->spoke); ?></span><span id="id_read_off_spoke" style="white-space: nowrap;<?php echo $sStyleReadInp_spoke; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_spoke" type=text name="spoke" value="<?php echo NM_encode_input($spoke) ?>"
 size=15 maxlength=15 alt="{datatype: 'text', maxLength: 15, allowedChars: '', lettersCase: '', enterTab: true, 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_spoke_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_spoke_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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

 ?>
<input type=hidden name="pro" value="<?php echo NM_encode_input($pro) . "\">" . $pro . ""; ?>
<?php } else { ?>
<span id="id_read_on_pro" class="sc-ui-readonly-pro" style=";<?php echo $sStyleReadLab_pro; ?>"><?php echo NM_encode_input($this->pro); ?></span><span id="id_read_off_pro" style="white-space: nowrap;<?php echo $sStyleReadInp_pro; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_pro" type=text name="pro" value="<?php echo NM_encode_input($pro) ?>"
 size=15 maxlength=15 alt="{datatype: 'text', maxLength: 15, allowedChars: '', lettersCase: '', enterTab: true, 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_pro_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_pro_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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

 ?>
<input type=hidden name="from" value="<?php echo NM_encode_input($from) . "\">" . $from . ""; ?>
<?php } else { ?>
<span id="id_read_on_from" class="sc-ui-readonly-from" style=";<?php echo $sStyleReadLab_from; ?>"><?php echo NM_encode_input($this->from); ?></span><span id="id_read_off_from" style="white-space: nowrap;<?php echo $sStyleReadInp_from; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_from" type=text name="from" value="<?php echo NM_encode_input($from) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: true, 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_from_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_from_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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

 ?>
<input type=hidden name="cases" value="<?php echo NM_encode_input($cases) . "\">" . $cases . ""; ?>
<?php } else { ?>
<span id="id_read_on_cases" class="sc-ui-readonly-cases" style=";<?php echo $sStyleReadLab_cases; ?>"><?php echo NM_encode_input($this->cases); ?></span><span id="id_read_off_cases" style="white-space: nowrap;<?php echo $sStyleReadInp_cases; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_cases" type=text name="cases" value="<?php echo NM_encode_input($cases) ?>"
 size=3 maxlength=3 alt="{datatype: 'text', maxLength: 3, allowedChars: '', lettersCase: '', enterTab: true, 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_cases_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cases_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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

 ?>
<input type=hidden name="comment" value="<?php echo NM_encode_input($comment) . "\">" . $comment . ""; ?>
<?php } else { ?>
<span id="id_read_on_comment" class="sc-ui-readonly-comment" style=";<?php echo $sStyleReadLab_comment; ?>"><?php echo NM_encode_input($this->comment); ?></span><span id="id_read_off_comment" style="white-space: nowrap;<?php echo $sStyleReadInp_comment; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_comment" type=text name="comment" value="<?php echo NM_encode_input($comment) ?>"
 size=35 maxlength=35 alt="{datatype: 'text', maxLength: 35, allowedChars: '', lettersCase: '', enterTab: true, 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_comment_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_comment_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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


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

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


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

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

 ?>
<input type=hidden name="add_charge" value="<?php echo NM_encode_input($add_charge) . "\">" . $add_charge . ""; ?>
<?php } else { ?>
<span id="id_read_on_add_charge" class="sc-ui-readonly-add_charge" style=";<?php echo $sStyleReadLab_add_charge; ?>"><?php echo NM_encode_input($this->add_charge); ?></span><span id="id_read_off_add_charge" style="white-space: nowrap;<?php echo $sStyleReadInp_add_charge; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_add_charge" type=text name="add_charge" value="<?php echo NM_encode_input($add_charge) ?>"
 size=8 alt="{datatype: 'decimal', maxLength: 8, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['add_charge']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['add_charge']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['add_charge']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: true, 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_add_charge_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_add_charge_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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

 ?>
<input type=hidden name="add_ons" value="<?php echo NM_encode_input($add_ons) . "\">" . $add_ons . ""; ?>
<?php } else { ?>
<span id="id_read_on_add_ons" class="sc-ui-readonly-add_ons" style=";<?php echo $sStyleReadLab_add_ons; ?>"><?php echo NM_encode_input($this->add_ons); ?></span><span id="id_read_off_add_ons" style="white-space: nowrap;<?php echo $sStyleReadInp_add_ons; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_add_ons" type=text name="add_ons" value="<?php echo NM_encode_input($add_ons) ?>"
 size=25 maxlength=25 alt="{datatype: 'text', maxLength: 25, allowedChars: '', lettersCase: '', enterTab: true, 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_add_ons_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_add_ons_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_spec" style="<?php echo $sStyleHidden_spec; ?>;"><span id="id_label_spec"><?php echo $this->nm_new_label['spec']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_spec" style="<?php echo $sStyleHidden_spec; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php
$spec_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($spec));

?>

<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["spec"]) &&  $this->nmgp_cmp_readonly["spec"] == "on") { 

 ?>
<input type=hidden name="spec" value="<?php echo NM_encode_input($spec) . "\">" . $spec_val . ""; ?>
<?php } else { ?>
<span id="id_read_on_spec" class="sc-ui-readonly-spec" style=";<?php echo $sStyleReadLab_spec; ?>"><?php echo NM_encode_input($spec_val); ?></span><span id="id_read_off_spec" style="white-space: nowrap;<?php echo $sStyleReadInp_spec; ?>">
 <textarea  class="sc-js-input scFormObjectOdd" style=";" name="spec" id="id_sc_field_spec" rows=2 cols=50
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}">
<?php echo str_replace(array('\r\n', '\n\r', '\n', '\r'), array("\r\n", "\n\r", "\n", "\r"), $spec); ?>
</textarea>
</span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_spec_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_spec_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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

 ?>
<input type=hidden name="att" value="<?php echo NM_encode_input($att) . "\">" . $att . ""; ?>
<?php } else { ?>
<span id="id_read_on_att" class="sc-ui-readonly-att" style=";<?php echo $sStyleReadLab_att; ?>"><?php echo NM_encode_input($this->att); ?></span><span id="id_read_off_att" style="white-space: nowrap;<?php echo $sStyleReadInp_att; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_att" type=text name="att" value="<?php echo NM_encode_input($att) ?>"
 size=25 maxlength=25 alt="{datatype: 'text', maxLength: 25, allowedChars: '', lettersCase: '', enterTab: true, 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_att_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_att_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

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

 ?>
<input type=hidden name="how" value="<?php echo NM_encode_input($how) . "\">" . $how . ""; ?>
<?php } else { ?>
<span id="id_read_on_how" class="sc-ui-readonly-how" style=";<?php echo $sStyleReadLab_how; ?>"><?php echo NM_encode_input($this->how); ?></span><span id="id_read_off_how" style="white-space: nowrap;<?php echo $sStyleReadInp_how; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_how" type=text name="how" value="<?php echo NM_encode_input($how) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, allowedChars: '', lettersCase: '', enterTab: true, 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_how_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_how_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_howwho" style="<?php echo $sStyleHidden_howwho; ?>;"><span id="id_label_howwho"><?php echo $this->nm_new_label['howwho']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_howwho" style="<?php echo $sStyleHidden_howwho; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php
$howwho_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($howwho));

?>

<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["howwho"]) &&  $this->nmgp_cmp_readonly["howwho"] == "on") { 

 ?>
<input type=hidden name="howwho" value="<?php echo NM_encode_input($howwho) . "\">" . $howwho_val . ""; ?>
<?php } else { ?>
<span id="id_read_on_howwho" class="sc-ui-readonly-howwho" style=";<?php echo $sStyleReadLab_howwho; ?>"><?php echo NM_encode_input($howwho_val); ?></span><span id="id_read_off_howwho" style="white-space: nowrap;<?php echo $sStyleReadInp_howwho; ?>">
 <textarea  class="sc-js-input scFormObjectOdd" style=";" name="howwho" id="id_sc_field_howwho" rows=2 cols=50
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}">
<?php echo str_replace(array('\r\n', '\n\r', '\n', '\r'), array("\r\n", "\n\r", "\n", "\r"), $howwho); ?>
</textarea>
</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_howwho_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_howwho_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 } ?>
   </td></tr></table>
   </tr>
</TABLE></div><!-- bloco_f -->
   </div>
