<?php

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

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

<html<?php echo $_SESSION['scriptcase']['reg_conf']['html_dir'] ?>>
<HEAD>
 <TITLE><?php if ('novo' == $this->nmgp_opcao) { echo strip_tags("" . $this->Ini->Nm_lang['lang_othr_frmi_titl'] . " - `order`"); } else { echo strip_tags("" . $this->Ini->Nm_lang['lang_othr_frmu_titl'] . " - `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("orders_orders_RO_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('orders_orders_RO_form_jquery.php');

?>

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

  scJQElementsAdd('');

  scJQGeneralAdd();

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

  $("#hidden_bloco_0,#hidden_bloco_1,#hidden_bloco_2,#hidden_bloco_3,#hidden_bloco_4,#hidden_bloco_5,#hidden_bloco_6,#hidden_bloco_7,#hidden_bloco_8,#hidden_bloco_9,#hidden_bloco_10,#hidden_bloco_11,#hidden_bloco_12,#hidden_bloco_13,#hidden_bloco_14,#hidden_bloco_15").each(function() {
   $(this.rows[0]).bind("click", {block: this}, toggleBlock)
                  .mouseover(function() { $(this).css("cursor", "pointer"); })
                  .mouseout(function() { $(this).css("cursor", ""); });
  });

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

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

<?php
    }
}
?>
 });

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

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

 var show_block = {
    "hidden_bloco_0": true,
    "hidden_bloco_1": true,
    "hidden_bloco_2": true,
    "hidden_bloco_3": true,
    "hidden_bloco_4": true,
    "hidden_bloco_5": true,
    "hidden_bloco_6": true,
    "hidden_bloco_7": false,
    "hidden_bloco_8": false,
    "hidden_bloco_9": true,
    "hidden_bloco_10": true,
    "hidden_bloco_11": true,
    "hidden_bloco_12": false,
    "hidden_bloco_13": false,
    "hidden_bloco_14": false,
    "hidden_bloco_15": false
 };

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

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

  show_block[block_id] = !show_block[block_id];

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

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

  if (show_block[block_id]) {
    if ("hidden_bloco_10" == block_id) {
      scAjaxDetailHeight("orders_asst_form", $($("#nmsc_iframe_liga_orders_asst_form")[0].contentWindow.document).innerHeight());
    }
  }
 }

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

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

<div style="width: 100%">
 <div class="scFormHeader" style="height:11px; display: block; border-width:0px; "></div>
 <div style="height:37px; border-width:0px 0px 1px 0px;  border-style: dashed; border-color:#ddd; display: block">
 	<table style="width:100%; border-collapse:collapse; padding:0;">
    	<tr>
        	<td id="lin1_col1" class="scFormHeaderFont"><span><?php if ($this->nmgp_opcao == "novo") { echo "" . $this->Ini->Nm_lang['lang_othr_frmi_titl'] . " - `order`"; } else { echo "" . $this->Ini->Nm_lang['lang_othr_frmu_titl'] . " - `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]['orders_orders_RO_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_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]['orders_orders_RO_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_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]['orders_orders_RO_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['fast_search'][0] : "";
          $OPC_arg = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['fast_search'][1] : "";
          $OPC_dat = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['fast_search'][2] : "";
?> 
           <script type="text/javascript">var change_fast_t = "";</script>
          <input type="hidden" name="nmgp_fast_search_t" value="SC_all_Cmp">
          <input type="hidden" name="nmgp_cond_fast_search_t" value="qp">
          <script type="text/javascript">var scQSInitVal = "<?php echo $OPC_dat ?>";</script>
          <span id="quicksearchph_t">
           <input type="text" id="SC_fast_search_t" class="scFormToolbarInput" style="vertical-align: middle" name="nmgp_arg_fast_search_t" value="<?php echo NM_encode_input($OPC_dat) ?>" size="10" onChange="change_fast_t = 'CH';" alt="{watermark:'<?php echo $this->Ini->Nm_lang['lang_othr_qk_watermark'] ?>', watermarkClass: 'scFormToolbarInputWm', maxLength: 255}">
           <img style="position: absolute; display: none; height: 16px; width: 16px" id="SC_fast_search_close_t" src="<?php echo $this->Ini->path_botoes ?>/<?php echo $this->Ini->Img_qs_clean; ?>" onclick="document.getElementById('SC_fast_search_t').value = ''; nm_move('fast_search', 't');">
           <img style="position: absolute; display: none; height: 16px; width: 16px" id="SC_fast_search_submit_t" src="<?php echo $this->Ini->path_botoes ?>/<?php echo $this->Ini->Img_qs_search; ?>" onclick="scQuickSearchSubmit_t();">
          </span>
<?php 
      }
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['new'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bnovo", "nm_move ('novo'); return false;", "nm_move ('novo'); return false;", "sc_b_new_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!$this->Embutida_call || $this->sc_evento == "novo" || $this->sc_evento == "insert" || $this->sc_evento == "incluir")) {
        $sCondStyle = ($this->nmgp_botoes['insert'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bincluir", "nm_atualiza ('incluir'); return false;", "nm_atualiza ('incluir'); return false;", "sc_b_ins_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!$this->Embutida_call || $this->sc_evento == "novo" || $this->sc_evento == "insert" || $this->sc_evento == "incluir")) {
        $sCondStyle = ($this->nmgp_botoes['insert'] == "on") && ($this->nm_flag_saida_novo != "S" || $this->nmgp_botoes['exit'] != "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bcancelar", "document.F5.submit();return false;", "document.F5.submit();return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['update'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "balterar", "nm_atualiza ('alterar'); return false;", "nm_atualiza ('alterar'); return false;", "sc_b_upd_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['delete'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bexcluir", "nm_atualiza ('excluir'); return false;", "nm_atualiza ('excluir'); return false;", "sc_b_del_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    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;
    }
?> 
     </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]['orders_orders_RO_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_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]['orders_orders_RO_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_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]['orders_orders_RO_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_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]['orders_orders_RO_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_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]['orders_orders_RO_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_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]['orders_orders_RO_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] != "R")
{
?>
   </td></tr> 
   </table> 
   </td></tr></table> 
<?php
}
?>
<?php
if (!$NM_btn && isset($NM_ult_sep))
{
    echo "    <script language=\"javascript\">";
    echo "      document.getElementById('" .  $NM_ult_sep . "').style.display='none';";
    echo "    </script>";
}
unset($NM_ult_sep);
?>
<?php if ('novo' != $this->nmgp_opcao || $this->Embutida_form) { ?><script>nav_atualiza(Nav_permite_ret, Nav_permite_ava, 't');</script><?php } ?>
</td></tr> 
<tr><td>
<?php
  if ($this->nmgp_form_empty)
  {
       echo "</td></tr><tr><td align=center>";
       echo "<font face=\"" . $this->Ini->pag_fonte_tipo . "\" color=\"" . $this->Ini->cor_txt_grid . "\" size=\"2\"><b>" . $this->Ini->Nm_lang['lang_errm_empt'] . "</b></font>";
       echo "</td></tr>";
  }
  else
  {
?>
<?php $sc_hidden_no = 1; $sc_hidden_yes = 0; ?>
   <a name="bloco_0"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="50%" height="">
<div id="div_hidden_bloco_0"><!-- bloco_c -->
<?php
?>
<TABLE align="center" id="hidden_bloco_0" class="scFormTable" width="100%" style="height: 100%;"><?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['order']))
           {
               $this->nmgp_cmp_readonly['order'] = 'on';
           }
?>
   <tr>


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

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


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

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

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


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


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

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


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

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

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


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


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

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


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

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

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


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


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

<?php } 
?> 


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


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

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


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

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

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


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


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

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


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

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

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


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


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

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


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

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

 ?>
<input type=hidden name="edate" value="<?php echo NM_encode_input($edate) . "\"><span id=\"id_ajax_label_edate\">" . $edate . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_edate" class="sc-ui-readonly-edate" style=";<?php echo $sStyleReadLab_edate; ?>"><?php echo NM_encode_input($this->edate); ?></span><span id="id_read_off_edate" style="white-space: nowrap;<?php echo $sStyleReadInp_edate; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_edate" type=text name="edate" value="<?php echo NM_encode_input($edate) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['edate']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['edate']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"><?php
$tmp_form_data = $this->field_config['edate']['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_edate_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_edate_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['noship']))
    {
        $this->nm_new_label['noship'] = "NOSHIP";
    }
?>
<?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);
   $noship = $this->noship;
   $sStyleHidden_noship = '';
   if (isset($this->nmgp_cmp_hidden['noship']) && $this->nmgp_cmp_hidden['noship'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['noship']);
       $sStyleHidden_noship = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_noship = 'display: none;';
   $sStyleReadInp_noship = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["noship"]) &&  $this->nmgp_cmp_readonly["noship"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['noship']);
       $sStyleReadLab_noship = '';
       $sStyleReadInp_noship = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['noship']) && $this->nmgp_cmp_hidden['noship'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="noship" value="<?php echo NM_encode_input($noship) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

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

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


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


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

<?php } 
?> 


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


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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_bcode" style="<?php echo $sStyleHidden_bcode; ?>;"><span id="id_label_bcode"><?php echo $this->nm_new_label['bcode']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['bcode']) || $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['bcode'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_bcode" style="<?php echo $sStyleHidden_bcode; ?>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["bcode"]) &&  $this->nmgp_cmp_readonly["bcode"] == "on") { 

 ?>
<input type=hidden name="bcode" value="<?php echo NM_encode_input($bcode) . "\">" . $bcode . ""; ?>
<?php } else { ?>
<span id="id_read_on_bcode" class="sc-ui-readonly-bcode" style=";<?php echo $sStyleReadLab_bcode; ?>"><?php echo NM_encode_input($this->bcode); ?></span><span id="id_read_off_bcode" style="white-space: nowrap;<?php echo $sStyleReadInp_bcode; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_bcode" type=text name="bcode" value="<?php echo NM_encode_input($bcode) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span>
&nbsp;<?php echo nmButtonOutput($this->arr_buttons, "bform_captura", "scModalCapture('" . $this->Ini->link_custbill_grid_cons_psq . "?script_case_init=" . $this->Ini->sc_page . "&script_case_session=" . session_id() . "&nmgp_url_saida=modal&nmgp_parms=&nmgp_outra_jan=true&nmgp_parms_ret=F1,bcode,bcode&nm_evt_ret_busca=&KeepThis=true&TB_iframe=true&height=440&width=630&modal=true')", "scModalCapture('" . $this->Ini->link_custbill_grid_cons_psq . "?script_case_init=" . $this->Ini->sc_page . "&script_case_session=" . session_id() . "&nmgp_url_saida=modal&nmgp_parms=&nmgp_outra_jan=true&nmgp_parms_ret=F1,bcode,bcode&nm_evt_ret_busca=&KeepThis=true&TB_iframe=true&height=440&width=630&modal=true')", "cap_bcode", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>

<?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_bcode_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_bcode_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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


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

<?php } 
?> 


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


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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_scode" style="<?php echo $sStyleHidden_scode; ?>;"><span id="id_label_scode"><?php echo $this->nm_new_label['scode']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['scode']) || $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['scode'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_scode" style="<?php echo $sStyleHidden_scode; ?>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["scode"]) &&  $this->nmgp_cmp_readonly["scode"] == "on") { 

 ?>
<input type=hidden name="scode" value="<?php echo NM_encode_input($scode) . "\">" . $scode . ""; ?>
<?php } else { ?>
<span id="id_read_on_scode" class="sc-ui-readonly-scode" style=";<?php echo $sStyleReadLab_scode; ?>"><?php echo NM_encode_input($this->scode); ?></span><span id="id_read_off_scode" style="white-space: nowrap;<?php echo $sStyleReadInp_scode; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_scode" type=text name="scode" value="<?php echo NM_encode_input($scode) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span>
&nbsp;<?php echo nmButtonOutput($this->arr_buttons, "bform_captura", "Window_cap = window.open('" . $this->Ini->link_custship_grid_cons_psq . "?nmgp_url_saida=&nmgp_parms=&nmgp_outra_jan=true&nmgp_parms_ret=F1,scode,scode&nm_evt_ret_busca=". "', '', 'location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no')", "Window_cap = window.open('" . $this->Ini->link_custship_grid_cons_psq . "?nmgp_url_saida=&nmgp_parms=&nmgp_outra_jan=true&nmgp_parms_ret=F1,scode,scode&nm_evt_ret_busca=". "', '', 'location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no')", "cap_scode", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>

<?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_scode_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_scode_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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


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

<?php } 
?> 


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


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

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


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

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

 ?>
<input type=hidden name="ship_via" value="<?php echo NM_encode_input($ship_via) . "\"><span id=\"id_ajax_label_ship_via\">" . $ship_via . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_ship_via" class="sc-ui-readonly-ship_via" style=";<?php echo $sStyleReadLab_ship_via; ?>"><?php echo NM_encode_input($this->ship_via); ?></span><span id="id_read_off_ship_via" style="white-space: nowrap;<?php echo $sStyleReadInp_ship_via; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_ship_via" type=text name="ship_via" value="<?php echo NM_encode_input($ship_via) ?>"
 size=15 maxlength=15 alt="{datatype: 'text', maxLength: 15, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_ship_via_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ship_via_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" && $this->nmgp_opc_ant != "incluir") || */(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><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['how']) || $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['how'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["how"]) &&  $this->nmgp_cmp_readonly["how"] == "on")) { 

 ?>
<input type=hidden name="how" value="<?php echo NM_encode_input($how) . "\"><span id=\"id_ajax_label_how\">" . $how . "</span>"; ?>
<?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: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_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><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['howwho']) || $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['howwho'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></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: false, 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 } 
?> 


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


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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_terms" style="<?php echo $sStyleHidden_terms; ?>;"><span id="id_label_terms"><?php echo $this->nm_new_label['terms']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['terms']) || $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['terms'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_terms" style="<?php echo $sStyleHidden_terms; ?>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["terms"]) &&  $this->nmgp_cmp_readonly["terms"] == "on") { 

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


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


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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_terms2" style="<?php echo $sStyleHidden_terms2; ?>;"><span id="id_label_terms2"><?php echo $this->nm_new_label['terms2']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_terms2" style="<?php echo $sStyleHidden_terms2; ?>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["terms2"]) &&  $this->nmgp_cmp_readonly["terms2"] == "on") { 

 ?>
<input type=hidden name="terms2" value="<?php echo NM_encode_input($terms2) . "\">" . $terms2 . ""; ?>
<?php } else { ?>
<span id="id_read_on_terms2" class="sc-ui-readonly-terms2" style=";<?php echo $sStyleReadLab_terms2; ?>"><?php echo NM_encode_input($this->terms2); ?></span><span id="id_read_off_terms2" style="white-space: nowrap;<?php echo $sStyleReadInp_terms2; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_terms2" type=text name="terms2" value="<?php echo NM_encode_input($terms2) ?>"
 size=15 maxlength=15 alt="{datatype: 'text', maxLength: 15, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_terms2_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_terms2_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['dday']))
    {
        $this->nm_new_label['dday'] = "DDAY";
    }
?>
<?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);
   $dday = $this->dday;
   $sStyleHidden_dday = '';
   if (isset($this->nmgp_cmp_hidden['dday']) && $this->nmgp_cmp_hidden['dday'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['dday']);
       $sStyleHidden_dday = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_dday = 'display: none;';
   $sStyleReadInp_dday = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["dday"]) &&  $this->nmgp_cmp_readonly["dday"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['dday']);
       $sStyleReadLab_dday = '';
       $sStyleReadInp_dday = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['dday']) && $this->nmgp_cmp_hidden['dday'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="dday" value="<?php echo NM_encode_input($dday) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

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

 ?>
<input type=hidden name="dday" value="<?php echo NM_encode_input($dday) . "\"><span id=\"id_ajax_label_dday\">" . $dday . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_dday" class="sc-ui-readonly-dday" style=";<?php echo $sStyleReadLab_dday; ?>"><?php echo NM_encode_input($this->dday); ?></span><span id="id_read_off_dday" style="white-space: nowrap;<?php echo $sStyleReadInp_dday; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_dday" type=text name="dday" value="<?php echo NM_encode_input($dday) ?>"
 size=6 alt="{datatype: 'integer', maxLength: 6, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['dday']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['dday']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_dday_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_dday_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['natwest']))
    {
        $this->nm_new_label['natwest'] = "NATWEST";
    }
?>
<?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);
   $natwest = $this->natwest;
   $sStyleHidden_natwest = '';
   if (isset($this->nmgp_cmp_hidden['natwest']) && $this->nmgp_cmp_hidden['natwest'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['natwest']);
       $sStyleHidden_natwest = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_natwest = 'display: none;';
   $sStyleReadInp_natwest = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['natwest']) && $this->nmgp_cmp_readonly['natwest'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['natwest']);
       $sStyleReadLab_natwest = '';
       $sStyleReadInp_natwest = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['natwest']) && $this->nmgp_cmp_hidden['natwest'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="natwest" value="<?php echo NM_encode_input($natwest) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_natwest" style="<?php echo $sStyleHidden_natwest; ?>;"><span id="id_label_natwest"><?php echo $this->nm_new_label['natwest']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_natwest" style="<?php echo $sStyleHidden_natwest; ?>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["natwest"]) &&  $this->nmgp_cmp_readonly["natwest"] == "on") { 

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


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


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

<?php } 
?> 


   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   <td width="50%" height="">
   <a name="bloco_6"></a>
<div id="div_hidden_bloco_6"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_6" class="scFormTable" width="100%" style="height: 100%;">   <tr>


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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_acknow" style="<?php echo $sStyleHidden_acknow; ?>;"><span id="id_label_acknow"><?php echo $this->nm_new_label['acknow']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_acknow" style="<?php echo $sStyleHidden_acknow; ?>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["acknow"]) &&  $this->nmgp_cmp_readonly["acknow"] == "on") { 

 ?>
<input type=hidden name="acknow" value="<?php echo NM_encode_input($acknow) . "\">" . $acknow . ""; ?>
<?php } else { ?>
<span id="id_read_on_acknow" class="sc-ui-readonly-acknow" style=";<?php echo $sStyleReadLab_acknow; ?>"><?php echo NM_encode_input($this->acknow); ?></span><span id="id_read_off_acknow" style="white-space: nowrap;<?php echo $sStyleReadInp_acknow; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_acknow" type=text name="acknow" value="<?php echo NM_encode_input($acknow) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_acknow_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_acknow_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['dup']))
    {
        $this->nm_new_label['dup'] = "DUP";
    }
?>
<?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);
   $dup = $this->dup;
   $sStyleHidden_dup = '';
   if (isset($this->nmgp_cmp_hidden['dup']) && $this->nmgp_cmp_hidden['dup'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['dup']);
       $sStyleHidden_dup = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_dup = 'display: none;';
   $sStyleReadInp_dup = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['dup']) && $this->nmgp_cmp_readonly['dup'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['dup']);
       $sStyleReadLab_dup = '';
       $sStyleReadInp_dup = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['dup']) && $this->nmgp_cmp_hidden['dup'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="dup" value="<?php echo NM_encode_input($dup) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_dup" style="<?php echo $sStyleHidden_dup; ?>;"><span id="id_label_dup"><?php echo $this->nm_new_label['dup']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_dup" style="<?php echo $sStyleHidden_dup; ?>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["dup"]) &&  $this->nmgp_cmp_readonly["dup"] == "on") { 

 ?>
<input type=hidden name="dup" value="<?php echo NM_encode_input($dup) . "\">" . $dup . ""; ?>
<?php } else { ?>
<span id="id_read_on_dup" class="sc-ui-readonly-dup" style=";<?php echo $sStyleReadLab_dup; ?>"><?php echo NM_encode_input($this->dup); ?></span><span id="id_read_off_dup" style="white-space: nowrap;<?php echo $sStyleReadInp_dup; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_dup" type=text name="dup" value="<?php echo NM_encode_input($dup) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_dup_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_dup_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['dupwho']))
    {
        $this->nm_new_label['dupwho'] = "DUPWHO";
    }
?>
<?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);
   $dupwho = $this->dupwho;
   $sStyleHidden_dupwho = '';
   if (isset($this->nmgp_cmp_hidden['dupwho']) && $this->nmgp_cmp_hidden['dupwho'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['dupwho']);
       $sStyleHidden_dupwho = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_dupwho = 'display: none;';
   $sStyleReadInp_dupwho = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['dupwho']) && $this->nmgp_cmp_readonly['dupwho'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['dupwho']);
       $sStyleReadLab_dupwho = '';
       $sStyleReadInp_dupwho = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['dupwho']) && $this->nmgp_cmp_hidden['dupwho'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="dupwho" value="<?php echo NM_encode_input($dupwho) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_dupwho" style="<?php echo $sStyleHidden_dupwho; ?>;"><span id="id_label_dupwho"><?php echo $this->nm_new_label['dupwho']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_dupwho" style="<?php echo $sStyleHidden_dupwho; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php
$dupwho_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($dupwho));

?>

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

 ?>
<input type=hidden name="dupwho" value="<?php echo NM_encode_input($dupwho) . "\">" . $dupwho_val . ""; ?>
<?php } else { ?>
<span id="id_read_on_dupwho" class="sc-ui-readonly-dupwho" style=";<?php echo $sStyleReadLab_dupwho; ?>"><?php echo NM_encode_input($dupwho_val); ?></span><span id="id_read_off_dupwho" style="white-space: nowrap;<?php echo $sStyleReadInp_dupwho; ?>">
 <textarea  class="sc-js-input scFormObjectOdd" style=";" name="dupwho" id="id_sc_field_dupwho" rows=2 cols=50
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '', lettersCase: '', enterTab: false, 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"), $dupwho); ?>
</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_dupwho_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_dupwho_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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


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

<?php } 
?> 


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


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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_she" style="<?php echo $sStyleHidden_she; ?>;"><span id="id_label_she"><?php echo $this->nm_new_label['she']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['she']) || $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['she'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_she" style="<?php echo $sStyleHidden_she; ?>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["she"]) &&  $this->nmgp_cmp_readonly["she"] == "on") { 

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


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


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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_whoshe" style="<?php echo $sStyleHidden_whoshe; ?>;"><span id="id_label_whoshe"><?php echo $this->nm_new_label['whoshe']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_whoshe" style="<?php echo $sStyleHidden_whoshe; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php
$whoshe_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($whoshe));

?>

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

 ?>
<input type=hidden name="whoshe" value="<?php echo NM_encode_input($whoshe) . "\">" . $whoshe_val . ""; ?>
<?php } else { ?>
<span id="id_read_on_whoshe" class="sc-ui-readonly-whoshe" style=";<?php echo $sStyleReadLab_whoshe; ?>"><?php echo NM_encode_input($whoshe_val); ?></span><span id="id_read_off_whoshe" style="white-space: nowrap;<?php echo $sStyleReadInp_whoshe; ?>">
 <textarea  class="sc-js-input scFormObjectOdd" style=";" name="whoshe" id="id_sc_field_whoshe" rows=2 cols=50
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '', lettersCase: '', enterTab: false, 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"), $whoshe); ?>
</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_whoshe_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_whoshe_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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


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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_hvia" style="<?php echo $sStyleHidden_hvia; ?>;"><span id="id_label_hvia"><?php echo $this->nm_new_label['hvia']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_hvia" style="<?php echo $sStyleHidden_hvia; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php
$hvia_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($hvia));

?>

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

 ?>
<input type=hidden name="hvia" value="<?php echo NM_encode_input($hvia) . "\">" . $hvia_val . ""; ?>
<?php } else { ?>
<span id="id_read_on_hvia" class="sc-ui-readonly-hvia" style=";<?php echo $sStyleReadLab_hvia; ?>"><?php echo NM_encode_input($hvia_val); ?></span><span id="id_read_off_hvia" style="white-space: nowrap;<?php echo $sStyleReadInp_hvia; ?>">
 <textarea  class="sc-js-input scFormObjectOdd" style=";" name="hvia" id="id_sc_field_hvia" rows=2 cols=50
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '', lettersCase: '', enterTab: false, 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"), $hvia); ?>
</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_hvia_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_hvia_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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


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

<?php } 
?> 


   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   <td width="50%" height="">
   <a name="bloco_8"></a>
<div id="div_hidden_bloco_8"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_8" class="scFormTable" width="100%" style="height: 100%;">   <tr>


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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_sld" style="<?php echo $sStyleHidden_sld; ?>;"><span id="id_label_sld"><?php echo $this->nm_new_label['sld']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['sld']) || $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['sld'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_sld" style="<?php echo $sStyleHidden_sld; ?>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["sld"]) &&  $this->nmgp_cmp_readonly["sld"] == "on") { 

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


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


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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_whosld" style="<?php echo $sStyleHidden_whosld; ?>;"><span id="id_label_whosld"><?php echo $this->nm_new_label['whosld']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_whosld" style="<?php echo $sStyleHidden_whosld; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php
$whosld_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($whosld));

?>

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

 ?>
<input type=hidden name="whosld" value="<?php echo NM_encode_input($whosld) . "\">" . $whosld_val . ""; ?>
<?php } else { ?>
<span id="id_read_on_whosld" class="sc-ui-readonly-whosld" style=";<?php echo $sStyleReadLab_whosld; ?>"><?php echo NM_encode_input($whosld_val); ?></span><span id="id_read_off_whosld" style="white-space: nowrap;<?php echo $sStyleReadInp_whosld; ?>">
 <textarea  class="sc-js-input scFormObjectOdd" style=";" name="whosld" id="id_sc_field_whosld" rows=2 cols=50
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '', lettersCase: '', enterTab: false, 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"), $whosld); ?>
</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_whosld_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_whosld_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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


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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_lvia" style="<?php echo $sStyleHidden_lvia; ?>;"><span id="id_label_lvia"><?php echo $this->nm_new_label['lvia']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_lvia" style="<?php echo $sStyleHidden_lvia; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php
$lvia_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($lvia));

?>

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

 ?>
<input type=hidden name="lvia" value="<?php echo NM_encode_input($lvia) . "\">" . $lvia_val . ""; ?>
<?php } else { ?>
<span id="id_read_on_lvia" class="sc-ui-readonly-lvia" style=";<?php echo $sStyleReadLab_lvia; ?>"><?php echo NM_encode_input($lvia_val); ?></span><span id="id_read_off_lvia" style="white-space: nowrap;<?php echo $sStyleReadInp_lvia; ?>">
 <textarea  class="sc-js-input scFormObjectOdd" style=";" name="lvia" id="id_sc_field_lvia" rows=2 cols=50
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '', lettersCase: '', enterTab: false, 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"), $lvia); ?>
</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_lvia_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_lvia_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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


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

<?php } 
?> 


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


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





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


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

    <TD class="scFormDataOdd" id="hidden_field_data_style" style="<?php echo $sStyleHidden_style; ?>vertical-align: top;;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat" style=";" ><span id="id_label_style"><?php echo $this->nm_new_label['style']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['style']) || $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['style'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></span><br>
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["style"]) &&  $this->nmgp_cmp_readonly["style"] == "on") { 

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


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

    <TD class="scFormDataOdd" id="hidden_field_data_bill_descr" style="<?php echo $sStyleHidden_bill_descr; ?>vertical-align: top;;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat" style=";" ><span id="id_label_bill_descr"><?php echo $this->nm_new_label['bill_descr']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['bill_descr']) || $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['bill_descr'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></span><br>
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["bill_descr"]) &&  $this->nmgp_cmp_readonly["bill_descr"] == "on") { 

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


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

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

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


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

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

 ?>
<input type=hidden name="finish" value="<?php echo NM_encode_input($finish) . "\">" . $finish . ""; ?>
<?php } else { ?>
<span id="id_read_on_finish" class="sc-ui-readonly-finish" style=";<?php echo $sStyleReadLab_finish; ?>"><?php echo NM_encode_input($this->finish); ?></span><span id="id_read_off_finish" style="white-space: nowrap;<?php echo $sStyleReadInp_finish; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_finish" type=text name="finish" value="<?php echo NM_encode_input($finish) ?>"
 size=30 maxlength=30 alt="{datatype: 'text', maxLength: 30, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_finish_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_finish_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 * 1; ?>" >&nbsp;</TD>





<?php } 
?> 
<?php $sStyleHidden_style_dumb = ('' == $sStyleHidden_style) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_style_dumb" style="<?php echo $sStyleHidden_style_dumb; ?>"></TD>
<?php $sStyleHidden_bill_descr_dumb = ('' == $sStyleHidden_bill_descr) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_bill_descr_dumb" style="<?php echo $sStyleHidden_bill_descr_dumb; ?>"></TD>
<?php $sStyleHidden_width_dumb = ('' == $sStyleHidden_width) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_width_dumb" style="<?php echo $sStyleHidden_width_dumb; ?>"></TD>
<?php $sStyleHidden_finish_dumb = ('' == $sStyleHidden_finish) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_finish_dumb" style="<?php echo $sStyleHidden_finish_dumb; ?>"></TD>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


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

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

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


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

    <TD class="scFormDataOdd" id="hidden_field_data_bp" style="<?php echo $sStyleHidden_bp; ?>vertical-align: top;;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat" style=";" ><span id="id_label_bp"><?php echo $this->nm_new_label['bp']; ?></span></span><br>
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["bp"]) &&  $this->nmgp_cmp_readonly["bp"] == "on") { 

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


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

    <TD class="scFormDataOdd" id="hidden_field_data_lin_sq" style="<?php echo $sStyleHidden_lin_sq; ?>vertical-align: top;;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat" style=";" ><span id="id_label_lin_sq"><?php echo $this->nm_new_label['lin_sq']; ?></span></span><br>
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["lin_sq"]) &&  $this->nmgp_cmp_readonly["lin_sq"] == "on") { 

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


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

    <TD class="scFormDataOdd" id="hidden_field_data_put_up" style="<?php echo $sStyleHidden_put_up; ?>vertical-align: top;;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat" style=";" ><span id="id_label_put_up"><?php echo $this->nm_new_label['put_up']; ?></span></span><br>
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["put_up"]) &&  $this->nmgp_cmp_readonly["put_up"] == "on") { 

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






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


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





<?php } 
?> 
<?php $sStyleHidden_finish_no_dumb = ('' == $sStyleHidden_finish_no) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_finish_no_dumb" style="<?php echo $sStyleHidden_finish_no_dumb; ?>"></TD>
<?php $sStyleHidden_bp_dumb = ('' == $sStyleHidden_bp) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_bp_dumb" style="<?php echo $sStyleHidden_bp_dumb; ?>"></TD>
<?php $sStyleHidden_lin_sq_dumb = ('' == $sStyleHidden_lin_sq) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_lin_sq_dumb" style="<?php echo $sStyleHidden_lin_sq_dumb; ?>"></TD>
<?php $sStyleHidden_put_up_dumb = ('' == $sStyleHidden_put_up) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_put_up_dumb" style="<?php echo $sStyleHidden_put_up_dumb; ?>"></TD>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['quantity']))
           {
               $this->nmgp_cmp_readonly['quantity'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['amount']))
           {
               $this->nmgp_cmp_readonly['amount'] = 'on';
           }
?>


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

    <TD class="scFormDataOdd" id="hidden_field_data_rolls" style="<?php echo $sStyleHidden_rolls; ?>vertical-align: top;;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat" style=";" ><span id="id_label_rolls"><?php echo $this->nm_new_label['rolls']; ?></span></span><br>
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["rolls"]) &&  $this->nmgp_cmp_readonly["rolls"] == "on") { 

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


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

    <TD class="scFormDataOdd" id="hidden_field_data_tubes" style="<?php echo $sStyleHidden_tubes; ?>vertical-align: top;;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat" style=";" ><span id="id_label_tubes"><?php echo $this->nm_new_label['tubes']; ?></span></span><br>
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["tubes"]) &&  $this->nmgp_cmp_readonly["tubes"] == "on") { 

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


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

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

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


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

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

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






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


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





<?php } 
?> 






<?php $sStyleHidden_rolls_dumb = ('' == $sStyleHidden_rolls) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_rolls_dumb" style="<?php echo $sStyleHidden_rolls_dumb; ?>"></TD>
<?php $sStyleHidden_tubes_dumb = ('' == $sStyleHidden_tubes) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_tubes_dumb" style="<?php echo $sStyleHidden_tubes_dumb; ?>"></TD>
<?php $sStyleHidden_quantity_dumb = ('' == $sStyleHidden_quantity) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_quantity_dumb" style="<?php echo $sStyleHidden_quantity_dumb; ?>"></TD>
<?php $sStyleHidden_amount_dumb = ('' == $sStyleHidden_amount) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_amount_dumb" style="<?php echo $sStyleHidden_amount_dumb; ?>"></TD>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_10"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_10"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_10" class="scFormTable" width="100%" style="height: 100%;">   <tr>


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





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


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

    <TD class="scFormDataOdd" id="hidden_field_data_detail" style="<?php echo $sStyleHidden_detail; ?>vertical-align: top;;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td width="100%" class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px"><span class="scFormLabelOddFormat" style=";" ><span id="id_label_detail"><?php echo $this->nm_new_label['detail']; ?></span></span><br>
<?php
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['embutida_proc']  = false;
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['embutida_form']  = true;
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['embutida_call']  = true;
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['embutida_multi'] = true;
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['embutida_liga_form_insert'] = 'on';
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['embutida_liga_form_update'] = 'on';
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['embutida_liga_form_delete'] = 'on';
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['embutida_liga_form_btn_nav'] = 'off';
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['embutida_liga_grid_edit'] = '';
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['embutida_liga_grid_edit_link'] = '';
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['embutida_liga_qtd_reg'] = '10';
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['embutida_liga_tp_pag'] = 'parcial';
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['embutida_parms'] = "NM_btn_insert?#?S?@?NM_btn_update?#?S?@?NM_btn_delete?#?S?@?NM_btn_navega?#?N?@?";
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['foreign_key']['order'] = $this->nmgp_dados_form['order'];
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['where_filter'] = "`ORDER` = '" . $this->nmgp_dados_form['order'] . "'";
 $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['where_detal']  = "`ORDER` = '" . $this->nmgp_dados_form['order'] . "'";
 if ($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['total'] < 0)
 {
     $_SESSION['sc_session'][$this->Ini->sc_page]['orders_asst_form']['where_filter'] = "1 <> 1";
 }
 $sDetailSrc = ('novo' == $this->nmgp_opcao) ? 'orders_orders_RO_form_empty.htm' : $this->Ini->link_orders_asst_form_edit . '?script_case_init=' . NM_encode_input($this->Ini->sc_page . '&script_case_session=' . session_id() . '&script_case_detail=Y');
?>
<iframe border="0" id="nmsc_iframe_liga_orders_asst_form"  marginWidth="0" marginHeight="0" frameborder="0" valign="top" height="100" width="100%" name="nmsc_iframe_liga_orders_asst_form"  scrolling="auto" src="<?php echo $sDetailSrc; ?>"></iframe>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_detail_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_detail_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


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





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


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





<?php } ?>
<?php $sStyleHidden_detail_dumb = ('' == $sStyleHidden_detail) ? 'display: none' : ''; ?>
    <TD class="scFormDataOdd" id="hidden_field_data_detail_dumb" style="<?php echo $sStyleHidden_detail_dumb; ?>"></TD>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_11"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_11"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_11" class="scFormTable" width="100%" style="height: 100%;">   <tr>


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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_salesman" style="<?php echo $sStyleHidden_salesman; ?>;"><span id="id_label_salesman"><?php echo $this->nm_new_label['salesman']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['salesman']) || $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['php_cmp_required']['salesman'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_salesman" style="<?php echo $sStyleHidden_salesman; ?>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["salesman"]) &&  $this->nmgp_cmp_readonly["salesman"] == "on") { 

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_comyd" style="<?php echo $sStyleHidden_comyd; ?>;"><span id="id_label_comyd"><?php echo $this->nm_new_label['comyd']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_comyd" style="<?php echo $sStyleHidden_comyd; ?>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["comyd"]) &&  $this->nmgp_cmp_readonly["comyd"] == "on") { 

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_comdol" style="<?php echo $sStyleHidden_comdol; ?>;"><span id="id_label_comdol"><?php echo $this->nm_new_label['comdol']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_comdol" style="<?php echo $sStyleHidden_comdol; ?>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["comdol"]) &&  $this->nmgp_cmp_readonly["comdol"] == "on") { 

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


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


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

<?php } 
?> 


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


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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_addfor" style="<?php echo $sStyleHidden_addfor; ?>;"><span id="id_label_addfor"><?php echo $this->nm_new_label['addfor']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_addfor" style="<?php echo $sStyleHidden_addfor; ?>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["addfor"]) &&  $this->nmgp_cmp_readonly["addfor"] == "on") { 

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_addcharge" style="<?php echo $sStyleHidden_addcharge; ?>;"><span id="id_label_addcharge"><?php echo $this->nm_new_label['addcharge']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_addcharge" style="<?php echo $sStyleHidden_addcharge; ?>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["addcharge"]) &&  $this->nmgp_cmp_readonly["addcharge"] == "on") { 

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


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


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

<?php } 
?> 


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


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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_message" style="<?php echo $sStyleHidden_message; ?>;"><span id="id_label_message"><?php echo $this->nm_new_label['message']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_message" style="<?php echo $sStyleHidden_message; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php
$message_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($message));

?>

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

 ?>
<input type=hidden name="message" value="<?php echo NM_encode_input($message) . "\">" . $message_val . ""; ?>
<?php } else { ?>
<span id="id_read_on_message" class="sc-ui-readonly-message" style=";<?php echo $sStyleReadLab_message; ?>"><?php echo NM_encode_input($message_val); ?></span><span id="id_read_off_message" style="white-space: nowrap;<?php echo $sStyleReadInp_message; ?>">
 <textarea  class="sc-js-input scFormObjectOdd" style=";" name="message" id="id_sc_field_message" rows=2 cols=50
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '', lettersCase: '', enterTab: false, 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"), $message); ?>
</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_message_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_message_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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


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

<?php } 
?> 


   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   <td width="50%" height="">
   <a name="bloco_14"></a>
<div id="div_hidden_bloco_14"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_14" class="scFormTable" width="100%" style="height: 100%;">   <tr>


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

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


   <?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: false, 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 ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?>


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

<?php } 
?> 


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


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

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


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

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

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


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


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

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


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

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

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


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


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

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


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

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

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


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


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

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


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

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

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


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


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

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


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

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

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


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


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

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


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

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

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


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


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

<?php } ?>
   </td></tr></table>
   </tr>
</TABLE></div><!-- bloco_f -->
</td></tr>
<tr><td class="scFormPageText">
<span class="scFormRequiredOddColor">* <?php echo $this->Ini->Nm_lang['lang_othr_reqr']; ?></span>
</td></tr> 
<tr><td>
<?php
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_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]['orders_orders_RO_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] != "R")
{
    $NM_btn = false;
      if ($opcao_botoes != "novo" && $this->nmgp_botoes['goto'] == "on")
      {
        $sCondStyle = '';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "birpara", " nm_navpage(document.F1.nmgp_rec_b.value, 'P');document.F1.nmgp_rec_b.value = ''", " nm_navpage(document.F1.nmgp_rec_b.value, 'P');document.F1.nmgp_rec_b.value = ''", "brec_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
?> 
   <input type="text" class="scFormToolbarInput" name="nmgp_rec_b" value="" style="width:25px;vertical-align: middle;"/> 
<?php 
      }
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['first'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "binicio", "nm_move ('inicio'); return false;", "nm_move ('inicio'); return false;", "sc_b_ini_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['back'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bretorna", "nm_move ('retorna'); return false;", "nm_move ('retorna'); return false;", "sc_b_ret_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
if ($opcao_botoes != "novo" && $this->nmgp_botoes['navpage'] == "on")
{
?> 
     <span nowrap id="sc_b_navpage_b" class="scFormToolbarPadding"></span> 
<?php 
}
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['forward'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bavanca", "nm_move ('avanca'); return false;", "nm_move ('avanca'); return false;", "sc_b_avc_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['last'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bfinal", "nm_move ('final'); return false;", "nm_move ('final'); return false;", "sc_b_fim_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
if ($opcao_botoes != "novo" && $this->nmgp_botoes['summary'] == "on")
{
?> 
     <span nowrap id="sc_b_summary_b" class="scFormToolbarPadding"></span> 
<?php 
}
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] != "R")
{
?>
   </td></tr> 
   </table> 
   </td></tr></table> 
<?php
}
?>
<?php
if (!$NM_btn && isset($NM_ult_sep))
{
    echo "    <script language=\"javascript\">";
    echo "      document.getElementById('" .  $NM_ult_sep . "').style.display='none';";
    echo "    </script>";
}
unset($NM_ult_sep);
?>
<?php if ('novo' != $this->nmgp_opcao || $this->Embutida_form) { ?><script>nav_atualiza(Nav_permite_ret, Nav_permite_ava, 'b');</script><?php } ?>
<?php if (('novo' != $this->nmgp_opcao || $this->Embutida_form) && !$this->nmgp_form_empty && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] != "F") { ?><script>summary_atualiza(<?php echo ($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['reg_start'] + 1). ", " . $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['reg_qtd'] . ", " . ($_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['total'] + 1)?>);</script><?php } ?>
<?php if (('novo' != $this->nmgp_opcao || $this->Embutida_form) && !$this->nmgp_form_empty && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['orders_orders_RO_form']['run_iframe'] != "F") { ?><script>navpage_atualiza('<?php echo $this->SC_nav_page ?>');</script><?php } ?>
</td></tr> 
<?php
  }
?>
</table> 

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

</form> 
<script> 
<?php
  $nm_sc_blocos_da_pag = array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);

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