<?php

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

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

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

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

<?php
include_once("greige_ngo_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;
}
<?php

include_once('greige_ngo_form_jquery.php');

?>

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

  scJQElementsAdd('');

  scJQGeneralAdd();

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

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

<?php
    }
}
?>
 });

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

 var show_block = {
  
 };

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

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

  show_block[block_id] = !show_block[block_id];

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

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

  if (show_block[block_id]) {
    if ("hidden_bloco_1" == block_id) {
      scAjaxDetailHeight("greige_grpcs_edit_grid", $($("#nmsc_iframe_liga_greige_grpcs_edit_grid")[0].contentWindow.document).innerHeight());
    }
  }
 }

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

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

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

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

<div style="width: 100%">
 <div class="scFormHeader" style="height:11px; display: block; border-width:0px; "></div>
 <div style="height:37px; border-width:0px 0px 1px 0px;  border-style: dashed; border-color:#ddd; display: block">
 	<table style="width:100%; border-collapse:collapse; padding:0;">
    	<tr>
        	<td id="lin1_col1" class="scFormHeaderFont"><span><?php if ($this->nmgp_opcao == "novo") { echo "Greige Receivers"; } else { echo "Greige Receivers"; } ?></span></td>
            <td id="lin1_col2" class="scFormHeaderFont"><span><span id="head_mark_p_o_number_0"><?php echo $this->p_o_number ?></span></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]['greige_ngo_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_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]['greige_ngo_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['run_iframe'] != "R")
{
    $NM_btn = false;
?> 
     </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]['greige_ngo_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_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]['greige_ngo_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_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]['greige_ngo_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_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]['greige_ngo_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_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]['greige_ngo_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_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]['greige_ngo_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['run_iframe'] != "R")
{
?>
   </td></tr> 
   </table> 
   </td></tr></table> 
<?php
}
?>
<?php
if (!$NM_btn && isset($NM_ult_sep))
{
    echo "    <script language=\"javascript\">";
    echo "      document.getElementById('" .  $NM_ult_sep . "').style.display='none';";
    echo "    </script>";
}
unset($NM_ult_sep);
?>
<?php if ('novo' != $this->nmgp_opcao || $this->Embutida_form) { ?><script>nav_atualiza(Nav_permite_ret, Nav_permite_ava, 't');</script><?php } ?>
</td></tr> 
<tr><td>
<?php
  if ($this->nmgp_form_empty)
  {
       echo "</td></tr><tr><td align=center>";
       echo "<font face=\"" . $this->Ini->pag_fonte_tipo . "\" color=\"" . $this->Ini->cor_txt_grid . "\" size=\"2\"><b>" . $this->Ini->Nm_lang['lang_errm_empt'] . "</b></font>";
       echo "</td></tr>";
  }
  else
  {
?>
<script type="text/javascript">
var pag_ativa = "greige_ngo_form_form0";
</script>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" BGCOLOR="" width=100%>
<tr>
<?php
    if (empty($nmgp_num_form) || $nmgp_num_form == "greige_ngo_form_form0")
    {
        $css_celula = "scTabActive";
        $css_fonte  = "scTabActiveFont scTabActiveFontCustom";
        $sImgTL     = $str_active_top_esq;
        $sImgT      = $str_active_lin_top;
        $sImgTR     = $str_active_top_dir;
        $sImgL      = $str_active_col_esq;
        $sImgR      = $str_active_col_dir;
    }
    else
    {
        $css_celula = "scTabInactive";
        $css_fonte  = "scTabInactiveFont scTabInactiveFontCustom";
        $sImgTL     = $str_inactive_top_esq;
        $sImgT      = $str_inactive_lin_top;
        $sImgTR     = $str_inactive_top_dir;
        $sImgL      = $str_inactive_col_esq;
        $sImgR      = $str_inactive_col_dir;
    }
?>
   <td>
         <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
          <TR HEIGHT="1">
           <TD WIDTH="1"><IMG ID="id_greige_ngo_form_form0_tl" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTL; ?>" BORDER="0"></TD>
           <TD ID="id_greige_ngo_form_form0_t" HEIGHT="3" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgT;  ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD WIDTH="1"><IMG ID="id_greige_ngo_form_form0_tr" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTR;  ?>" BORDER="0"></TD>
          </TR>
          <TR>
           <TD ID="id_greige_ngo_form_form0_4" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgL; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD ID="id_greige_ngo_form_form0_5" nowrap class="<?php echo $css_celula; ?> <?php echo $css_celula; ?>Bg"><A HREF="javascript:sc_exib_ocult_pag ('greige_ngo_form_form0')" class="<?php echo $css_fonte; ?>" ID="id_greige_ngo_form_form0_font">Main</TD>
           <TD ID="id_greige_ngo_form_form0_6" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgR; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
          </TR>
         </TABLE>
   </td>
<td><img src="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" border="0" width="1px"/></td>
<?php
    if ($nmgp_num_form == "greige_ngo_form_form1")
    {
        $css_celula = "scTabActive";
        $css_fonte  = "scTabActiveFont scTabActiveFontCustom";
        $sImgTL     = $str_active_top_esq;
        $sImgT      = $str_active_lin_top;
        $sImgTR     = $str_active_top_dir;
        $sImgL      = $str_active_col_esq;
        $sImgR      = $str_active_col_dir;
    }
    else
    {
        $css_celula = "scTabInactive";
        $css_fonte  = "scTabInactiveFont scTabInactiveFontCustom";
        $sImgTL     = $str_inactive_top_esq;
        $sImgT      = $str_inactive_lin_top;
        $sImgTR     = $str_inactive_top_dir;
        $sImgL      = $str_inactive_col_esq;
        $sImgR      = $str_inactive_col_dir;
    }
?>
   <td>
         <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
          <TR HEIGHT="1">
           <TD WIDTH="1"><IMG ID="id_greige_ngo_form_form1_tl" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTL; ?>" BORDER="0"></TD>
           <TD ID="id_greige_ngo_form_form1_t" HEIGHT="3" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgT;  ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD WIDTH="1"><IMG ID="id_greige_ngo_form_form1_tr" SRC="<?php echo $this->Ini->path_img_global . '/' . $sImgTR;  ?>" BORDER="0"></TD>
          </TR>
          <TR>
           <TD ID="id_greige_ngo_form_form1_4" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgL; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
           <TD ID="id_greige_ngo_form_form1_5" nowrap class="<?php echo $css_celula; ?> <?php echo $css_celula; ?>Bg"><A HREF="javascript:sc_exib_ocult_pag ('greige_ngo_form_form1')" class="<?php echo $css_fonte; ?>" ID="id_greige_ngo_form_form1_font">Greige Pieces</TD>
           <TD ID="id_greige_ngo_form_form1_6" class="<?php echo $css_celula; ?>" BACKGROUND="<?php echo $this->Ini->path_img_global . '/' . $sImgR; ?>"><IMG SRC="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" BORDER="0"></TD>
          </TR>
         </TABLE>
   </td>
<td><img src="<?php echo $this->Ini->path_img_global ?>/scriptcase__NM__nm_transparent.gif" border="0" width="1px"/></td>
<td width=100%></td>
</tr>
</TABLE>
</td></tr> 
<tr><td style="padding: 0px <?php echo ('' == $int_iframe_padding) ? '0' : $int_iframe_padding; ?>px">
<div id="greige_ngo_form_form0" style='display: none; width: 1px; height: 0px; overflow: scroll'>
<?php $sc_hidden_no = 1; $sc_hidden_yes = 0; ?>
   <a name="bloco_0"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_0"><!-- bloco_c -->
<?php
?>
<TABLE align="center" id="hidden_bloco_0" class="scFormTable" width="100%" style="height: 100%;"><?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['id2']))
           {
               $this->nmgp_cmp_readonly['id2'] = 'on';
           }
?>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['p_o_number']))
           {
               $this->nmgp_cmp_readonly['p_o_number'] = 'on';
           }
?>


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

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

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


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

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

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_date" style="<?php echo $sStyleHidden_date; ?>;"><span id="id_label_date"><?php echo $this->nm_new_label['date']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['php_cmp_required']['date']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_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" && isset($this->nmgp_cmp_readonly["date"]) &&  $this->nmgp_cmp_readonly["date"] == "on") { 

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


<?php if ($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['style']))
           {
               $this->nmgp_cmp_readonly['style'] = 'on';
           }
?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_mill" style="<?php echo $sStyleHidden_mill; ?>;"><span id="id_label_mill"><?php echo $this->nm_new_label['mill']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['php_cmp_required']['mill']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['php_cmp_required']['mill'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_mill" style="<?php echo $sStyleHidden_mill; ?>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["mill"]) &&  $this->nmgp_cmp_readonly["mill"] == "on") { 

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_location" style="<?php echo $sStyleHidden_location; ?>;"><span id="id_label_location"><?php echo $this->nm_new_label['location']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['php_cmp_required']['location']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['php_cmp_required']['location'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_location" style="<?php echo $sStyleHidden_location; ?>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["location"]) &&  $this->nmgp_cmp_readonly["location"] == "on") { 

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_invoice" style="<?php echo $sStyleHidden_invoice; ?>;"><span id="id_label_invoice"><?php echo $this->nm_new_label['invoice']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['php_cmp_required']['invoice']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['php_cmp_required']['invoice'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_invoice" style="<?php echo $sStyleHidden_invoice; ?>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["invoice"]) &&  $this->nmgp_cmp_readonly["invoice"] == "on") { 

 ?>
<input type=hidden name="invoice" value="<?php echo NM_encode_input($invoice) . "\">" . $invoice . ""; ?>
<?php } else { ?>
<span id="id_read_on_invoice" class="sc-ui-readonly-invoice" style=";<?php echo $sStyleReadLab_invoice; ?>"><?php echo NM_encode_input($this->invoice); ?></span><span id="id_read_off_invoice" style="white-space: nowrap;<?php echo $sStyleReadInp_invoice; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_invoice" type=text name="invoice" value="<?php echo NM_encode_input($invoice) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_invoice_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_invoice_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['cost_lb_k']))
           {
               $this->nmgp_cmp_readonly['cost_lb_k'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['lbs']))
           {
               $this->nmgp_cmp_readonly['lbs'] = 'on';
           }
?>


   <?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" && $this->nmgp_opc_ant != "incluir") || */(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="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_style" style="<?php echo $sStyleHidden_style; ?>;"><span id="id_label_style"><?php echo $this->nm_new_label['style']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['php_cmp_required']['style']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['php_cmp_required']['style'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <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">
<?php if ($bTestReadOnly && ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["style"]) &&  $this->nmgp_cmp_readonly["style"] == "on")) { 

 ?>
<input type=hidden name="style" value="<?php echo NM_encode_input($style) . "\"><span id=\"id_ajax_label_style\">" . $style . "</span>"; ?>
<?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=14 maxlength=14 alt="{datatype: 'text', maxLength: 14, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_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['cost_lb_k']))
    {
        $this->nm_new_label['cost_lb_k'] = "COST PER LB";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $cost_lb_k = $this->cost_lb_k;
   $sStyleHidden_cost_lb_k = '';
   if (isset($this->nmgp_cmp_hidden['cost_lb_k']) && $this->nmgp_cmp_hidden['cost_lb_k'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cost_lb_k']);
       $sStyleHidden_cost_lb_k = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cost_lb_k = 'display: none;';
   $sStyleReadInp_cost_lb_k = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["cost_lb_k"]) &&  $this->nmgp_cmp_readonly["cost_lb_k"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cost_lb_k']);
       $sStyleReadLab_cost_lb_k = '';
       $sStyleReadInp_cost_lb_k = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cost_lb_k']) && $this->nmgp_cmp_hidden['cost_lb_k'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cost_lb_k" value="<?php echo NM_encode_input($cost_lb_k) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

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

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


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

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

 ?>
<input type=hidden name="lbs" value="<?php echo NM_encode_input($lbs) . "\"><span id=\"id_ajax_label_lbs\">" . $lbs . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_lbs" class="sc-ui-readonly-lbs" style=";<?php echo $sStyleReadLab_lbs; ?>"><?php echo NM_encode_input($this->lbs); ?></span><span id="id_read_off_lbs" style="white-space: nowrap;<?php echo $sStyleReadInp_lbs; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_lbs" type=text name="lbs" value="<?php echo NM_encode_input($lbs) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['lbs']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['lbs']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['lbs']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_lbs_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_lbs_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['adate']))
           {
               $this->nmgp_cmp_readonly['adate'] = 'on';
           }
?>
<?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['totalkc']))
    {
        $this->nm_new_label['totalkc'] = "INVOICE 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);
   $totalkc = $this->totalkc;
   $sStyleHidden_totalkc = '';
   if (isset($this->nmgp_cmp_hidden['totalkc']) && $this->nmgp_cmp_hidden['totalkc'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['totalkc']);
       $sStyleHidden_totalkc = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_totalkc = 'display: none;';
   $sStyleReadInp_totalkc = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['totalkc']) && $this->nmgp_cmp_readonly['totalkc'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['totalkc']);
       $sStyleReadLab_totalkc = '';
       $sStyleReadInp_totalkc = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['totalkc']) && $this->nmgp_cmp_hidden['totalkc'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="totalkc" value="<?php echo NM_encode_input($totalkc) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_totalkc" style="<?php echo $sStyleHidden_totalkc; ?>;"><span id="id_label_totalkc"><?php echo $this->nm_new_label['totalkc']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['php_cmp_required']['totalkc']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['php_cmp_required']['totalkc'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_totalkc" style="<?php echo $sStyleHidden_totalkc; ?>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["totalkc"]) &&  $this->nmgp_cmp_readonly["totalkc"] == "on") { 

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


   <?php
    if (!isset($this->nm_new_label['adate']))
    {
        $this->nm_new_label['adate'] = "DATE ADDED";
    }
?>
<?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><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['php_cmp_required']['adate']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['php_cmp_required']['adate'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></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: true, 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 (!isset($this->nm_new_label['edate']))
    {
        $this->nm_new_label['edate'] = "DATE EDITED";
    }
?>
<?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><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['php_cmp_required']['edate']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_ngo_form']['php_cmp_required']['edate'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></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: true, 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 } ?>
   </td></tr></table>
   </tr>
</TABLE></div><!-- bloco_f -->
   </div>
