<?
    session_start();
    if (!(isset($_SESSION['cod_rentacar'])))
       header("location: login.php");
    else
       include('main.php');
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Preços por Grupo</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="Generator" CONTENT="NetObjects Fusion 8 for Windows">
<link rel="stylesheet" href="../assets/clases.css" type="text/css" />
<script language="javascript" src="../assets/car_func.js"></script>
<script language="javascript" src="../assets/functions.js"></script>
<script language="javascript" src="../assets/help_functions.js"></script>
<SCRIPT>
<!--
var F_A,F_B,F_CH,F_CL,F_DB,F_E,F_F,F_L,F_MT,F_MV,F_R,F_SE,F_SU,F_U,F_HR,F_MU,F_MD;
function F_e(){} function F_n(){} function F_onLoaded(){}
function F_loadRollover(){} function F_roll(){}
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2">
<!--
document.write("<SCRIPT SRC=\"../assets/script.js\"><\/SCRIPT>");
document.write("<SCRIPT SRC=\"../assets/effects.js\"><\/SCRIPT>");
//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2" SRC="../assets/rollover.js"></SCRIPT>
<SCRIPT>
<!--
function F_doLoaded() {
	document.main = new F_cMain();
	document.objectModel = new Object();
	F_OM('Layout','LayoutLYR', 'doc', '', new Array());
	F_OM('FormsButton61' , '', 'btn', 'Layout',new Array(
	'Clicked',F_functFormsButton61Action0,'','',0),'LayoutTarifasGrupos',0,'btSave');
	F_pageLoaded('Layout');
}
function F_functFormsButton61Action0(params) {
valida_tarifa_grupos()
}

//-->
</SCRIPT>
<LINK REL=STYLESHEET TYPE="text/css" HREF="../html/style.css">
<LINK REL=STYLESHEET TYPE="text/css" HREF="../html/site.css">
<STYLE>
</STYLE><NOLAYER>
<STYLE ID="NOF_STYLE_SHEET">
<!--
DIV#LayoutLYR { position:relative; top:0; left:0; z-index: 1; visibility:inherit; }

DIV#NavigationBar1_1LYR { 
position:absolute; visibility:hidden; top:0; left:0; z-index:1;
}
-->
</STYLE>

</NOLAYER>
</HEAD>
<BODY NOF="(MB=(DefaultMasterBorder, 213, 77, 0, 0), L=(precosgruposLayout, 761, 493))" STYLE="text-align: center; background-color: rgb(255,255,255);" onLoad="F_onLoaded();">
    <DIV ID="LayoutLYR"><LAYER ID="LayoutLYR" TOP=0 LEFT=0 VISIBILITY=INHERIT WIDTH=761 HEIGHT=783 Z-INDEX=1>
    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF=LY>
        <TR VALIGN=TOP ALIGN=LEFT>
            <TD WIDTH=761>
                <TABLE ID="Table1" BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" HEIGHT=213>
                    <TR HEIGHT=41>
                        <TD WIDTH=761 STYLE="background-color: rgb(255,255,255);">
                            <P>
                                <TABLE WIDTH=760 BORDER=0 CELLSPACING=0 CELLPADDING=0 ALIGN=LEFT NOF=TE>
                                    <TR>
                                        <TD>
                                            <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=760 HEIGHT=41 NOF="LayoutRegion1">
                                                <TR ALIGN=LEFT VALIGN=TOP>
                                                    <TD>
                                                        <TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH=736 NOF="LayoutRegion1">
                                                            <TR VALIGN=TOP ALIGN=LEFT>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=425 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=409 HEIGHT=16><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=409 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD HEIGHT=15></TD>
                                                                            <TD WIDTH=16><IMG ID="Picture2" HEIGHT=15 WIDTH=16 SRC="../assets/images/ihhomicon1.jpg" BORDER=0 ALT="ihhomicon" TITLE="ihhomicon"></TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=56 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=2 HEIGHT=17><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=2 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD WIDTH=54><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=54 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD></TD>
                                                                            <TD WIDTH=54 CLASS="TextObject">
                                                                                <P><B><U><SPAN STYLE="font-size: 10px;">Home</SPAN></U></B></P>
                                                                            </TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=21 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=5 HEIGHT=16><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=5 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD HEIGHT=15></TD>
                                                                            <TD WIDTH=16><IMG ID="Picture3" HEIGHT=15 WIDTH=16 SRC="../assets/images/ihemail1.jpg" BORDER=0 ALT="ihemail" TITLE="ihemail"></TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=78 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=2 HEIGHT=17><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=2 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD WIDTH=76><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=76 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD></TD>
                                                                            <TD WIDTH=76 CLASS="TextObject">
                                                                                <P><B><U><SPAN STYLE="font-size: 10px;">Contacte-nos</SPAN></U></B></P>
                                                                            </TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=30 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=13 HEIGHT=15><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=13 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD HEIGHT=17></TD>
                                                                            <TD WIDTH=17><IMG ID="Picture7" HEIGHT=17 WIDTH=17 SRC="../assets/images/ihgobutton031.jpg" BORDER=0 ALT="ihgobutton03" TITLE="ihgobutton03"></TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=44 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=6 HEIGHT=17><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=6 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD WIDTH=38><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=38 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD></TD>
                                                                            <TD WIDTH=38 CLASS="TextObject">
                                                                                <P><B><U><SPAN STYLE="color: rgb(51,102,204);">Ajuda</SPAN></U></B></P>
                                                                            </TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=29 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=22 HEIGHT=21><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=22 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD HEIGHT=5></TD>
                                                                            <TD WIDTH=7><IMG ID="Picture8" HEIGHT=5 WIDTH=7 SRC="../assets/images/ihbullet.jpg" BORDER=0 ALT="ihbullet" TITLE="ihbullet"></TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                                <TD>
                                                                    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=53 NOF="LayoutRegion1">
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD WIDTH=4 HEIGHT=17><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=4 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                            <TD WIDTH=49><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=49 HEIGHT=1 BORDER=0 ALT=""></TD>
                                                                        </TR>
                                                                        <TR VALIGN=TOP ALIGN=LEFT>
                                                                            <TD></TD>
                                                                            <TD WIDTH=49 CLASS="TextObject">
                                                                                <P><B><SPAN STYLE="font-size: 10px;" class="link_azul"><A HREF="./logout.php">Sair</A></SPAN></B>&nbsp;</P>
                                                                            </TD>
                                                                        </TR>
                                                                    </TABLE>
                                                                </TD>
                                                            </TR>
                                                        </TABLE>
                                                    </TD>
                                                </TR>
                                            </TABLE>
                                        </TD>
                                    </TR>
                                </TABLE>
                            </P>
                        </TD>
                    </TR>
                    <TR HEIGHT=137>
                        <TD>
                            <P><IMG ID="Banner2" HEIGHT=137 WIDTH=760 SRC="../assets/images/autogen/Precos_por_Grupo_NDefault.jpg" VSPACE=0 HSPACE=0 ALIGN="TOP" BORDER=0 ALT="Preços por Grupo" TITLE="Preços por Grupo" NOF=B_H></P>
                        </TD>
                    </TR>
                    <TR HEIGHT=35>
                        <TD VALIGN=MIDDLE STYLE="background-color: rgb(255,255,255); background-image: url('../assets/images/ihnavbg1.jpg');">
                            <H1>
                                <TABLE WIDTH="100%" BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF=TE>
                                    <TR>
                                        <TD ALIGN="CENTER">
                                            <TABLE ID="NavigationBar1" BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF=NB_UYHPNY020 WIDTH=576>
                                                <TR VALIGN=TOP ALIGN=LEFT>
                                                    <TD WIDTH=96><A HREF="../html/dados_gerais.php" style="cursor:hand; text-decoration:none;" onMouseOver="F_loadRollover('NavigationButton7','',0);F_roll('NavigationButton7',1)" onMouseOut="F_roll('NavigationButton7',0)"><IMG ID="NavigationButton7" NAME="NavigationButton7" HEIGHT=35 WIDTH=96 SRC="../assets/images/autogen/Dados_Gerais_Nregular_1.jpg" onLoad="F_loadRollover(this,'Dados_Gerais_NRregularrollover_1.jpg',0)" BORDER=0 ALT="Dados Gerais" TITLE="Dados Gerais"></A></TD>
                                                    <TD WIDTH=96><A HREF="../html/balcoes.php" style="cursor:hand; text-decoration:none;" onMouseOver="F_loadRollover('NavigationButton8','',0);F_roll('NavigationButton8',1)" onMouseOut="F_roll('NavigationButton8',0)"><IMG ID="NavigationButton8" NAME="NavigationButton8" HEIGHT=35 WIDTH=96 SRC="../assets/images/autogen/Balcoes_Nregular_1.jpg" onLoad="F_loadRollover(this,'Balcoes_NRregularrollover_1.jpg',0)" BORDER=0 ALT="Balcões" TITLE="Balcões"></A></TD>
                                                    <TD WIDTH=96><A HREF="../html/grupos.php" style="cursor:hand; text-decoration:none;" onMouseOver="F_loadRollover('NavigationButton9','',0);F_roll('NavigationButton9',1)" onMouseOut="F_roll('NavigationButton9',0)"><IMG ID="NavigationButton9" NAME="NavigationButton9" HEIGHT=35 WIDTH=96 SRC="../assets/images/autogen/Grupos_Nregular_1.jpg" onLoad="F_loadRollover(this,'Grupos_NRregularrollover_1.jpg',0)" BORDER=0 ALT="Grupos" TITLE="Grupos"></A></TD>
                                                    <TD WIDTH=96><A HREF="../html/extras.php" style="cursor:hand; text-decoration:none;" onMouseOver="F_loadRollover('NavigationButton10','',0);F_roll('NavigationButton10',1)" onMouseOut="F_roll('NavigationButton10',0)"><IMG ID="NavigationButton10" NAME="NavigationButton10" HEIGHT=35 WIDTH=96 SRC="../assets/images/autogen/Extras_Nregular_1.jpg" onLoad="F_loadRollover(this,'Extras_NRregularrollover_1.jpg',0)" BORDER=0 ALT="Extras" TITLE="Extras"></A></TD>
                                                    <TD WIDTH=96><A HREF="../html/tarifas.php" style="cursor:hand; text-decoration:none;" onMouseOver="F_loadRollover('NavigationButton11','',0);F_roll('NavigationButton11',1)" onMouseOut="F_roll('NavigationButton11',0)"><ILAYER ID="NavigationButton11"></ILAYER><IMG ID="NavigationButton11" NAME="NavigationButton11" HEIGHT=35 WIDTH=96 SRC="../assets/images/autogen/Tarifas_Hhighlighted_1.jpg" onLoad="F_loadRollover(this,'Tarifas_HRhighlightedrollover_1.jpg',new Array('NavigationBar1_1', 'vertical', 'slideBottom', 0, 35))" BORDER=0 ALT="Tarifas" TITLE="Tarifas"></A></TD>
                                                    <TD WIDTH=96 HEIGHT=35><A HREF="../html/stop_sales.php" style="cursor:hand; text-decoration:none;" onMouseOver="F_loadRollover('NavigationButton12','',0);F_roll('NavigationButton12',1)" onMouseOut="F_roll('NavigationButton12',0)"><IMG ID="NavigationButton12" NAME="NavigationButton12" HEIGHT=35 WIDTH=96 SRC="../assets/images/autogen/Stop_Sales_Nregular_1.jpg" onLoad="F_loadRollover(this,'Stop_Sales_NRregularrollover_1.jpg',0)" BORDER=0 ALT="Stop Sales" TITLE="Stop Sales"></A></TD>
                                                </TR>
                                            </TABLE>
                                        </TD>
                                    </TR>
                                </TABLE>
                        </TD>
                    </TR>
                    <TR HEIGHT=0>
                        <TD STYLE="background-color: rgb(255,255,255); background-image: url('../assets/images/ihtop31.gif');">
                            <P></P>
                        </TD>
                    </TR>
                </TABLE>
            </TD>
        </TR>
    </TABLE>
    <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=760 NOF=LY>
        <TR VALIGN=TOP ALIGN=LEFT>
            <TD HEIGHT=493 WIDTH=760>
                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=760 HEIGHT=493 STYLE="background-color: rgb(237,237,237);" NOF="LayoutRegion9">
                    <TR ALIGN=LEFT VALIGN=TOP>
                        <TD>
                            <FORM NAME="LayoutTarifasGrupos" ACTION="precosgrupos2.php" METHOD=POST>
                                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=502 NOF="LayoutRegion9">
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD WIDTH=26 HEIGHT=28><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=26 HEIGHT=1 BORDER=0 ALT=""></TD>
                                        <TD WIDTH=476><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=476 HEIGHT=1 BORDER=0 ALT=""></TD>
                                    </TR>
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD></TD>
                                        <TD WIDTH=476 CLASS="TextObject">
                                            <P><?
db_connect();

$sql = "select nome, pasta from tr_rentacar where cod_rentacar = ".$_SESSION['cod_rentacar'];
$result = mysql_query($sql);
$num_row = mysql_num_rows($result);

if($num_row!=0) 
{   
   $row   = mysql_fetch_row($result);
   $nome  = strtoupper($row[0]); 
   $pasta = $row[1];

   echo '<B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: medium;">'.$nome.'</SPAN></B>';
}

?>
&nbsp;</P>
                                        </TD>
                                    </TR>
                                </TABLE>
                                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=750 NOF="LayoutRegion9">
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD WIDTH=10 HEIGHT=7><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=10 HEIGHT=1 BORDER=0 ALT=""></TD>
                                        <TD WIDTH=740><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=740 HEIGHT=1 BORDER=0 ALT=""></TD>
                                    </TR>
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD></TD>
                                        <TD WIDTH=740 CLASS="TextObject" STYLE="background-color: rgb(237,237,237);">
                                            <P STYLE="text-align: center;"><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 18px;">Preços por Grupo</SPAN></B></P>
                                        </TD>
                                    </TR>
                                </TABLE>
                                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=728 NOF="LayoutRegion9">
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD WIDTH=28 HEIGHT=13><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=28 HEIGHT=1 BORDER=0 ALT=""></TD>
                                        <TD WIDTH=700><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=700 HEIGHT=1 BORDER=0 ALT=""></TD>
                                    </TR>
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD></TD>
                                        <TD WIDTH=700 CLASS="TextObject">
                                            <P><?
function Format_Data($Data) 
{ 
    $date_array = explode("-",$Data);
     
    $var_year  = $date_array[0]; 
    $var_month = $date_array[1]; 
    $var_day  = $date_array[2]; 

    $format_data   = date("d/m/Y", mktime(0,0,0,$var_month,$var_day,$var_year)); 
    return($format_data);  
} 

$sql = "select a.codigo, a.cod_tarifa, a.cod_grupo, a.day_from, a.day_to, a.preco, ";
$sql = $sql." b.descricao, b.data_inicio, b.data_fim, c.descricao ";
$sql = $sql." from tr_rentacar_tarifas_precos a, tr_rentacar_tarifas b, tr_rentacar_grupos c ";
$sql = $sql." where a.cod_rentacar = ".$_SESSION['cod_rentacar'];
$sql = $sql." and b.cod_rentacar   = ".$_SESSION['cod_rentacar'];
$sql = $sql." and c.cod_rentacar   = ".$_SESSION['cod_rentacar'];
$sql = $sql." and a.cod_grupo      = c.cod_grupo ";
$sql = $sql." and a.cod_tarifa     = b.cod_tarifa ";
$sql = $sql." order by b.data_inicio, a.cod_grupo, a.day_from ";

$result = mysql_query($sql);
$num_row = mysql_num_rows($result);

if($num_row!=0) 
{
   echo '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=500>
          <TR HEIGHT=25>
            <TD STYLE="text-align: left;">
                <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 14px;">Altere ou apague seus preços aqui</SPAN></B>
            </TD>
          </TR></TABLE>';

   $cod_grupo_ant  = '';   
   $cod_tarifa_ant = '';
   while($row = mysql_fetch_row($result))
   {      
      $codigo        = $row[0];
      $cod_tarifa    = $row[1];
      $cod_grupo     = "'".$row[2]."'";
      $cod_grupo_sc  = $row[2];
      $day_from      = $row[3];
      $day_to        = $row[4];
      $preco         = $row[5];
      $desc_tarifa   = $row[6];      
      $inicio        = Format_Data($row[7]);
      $fim           = Format_Data($row[8]);      
      $desc_grupo    = $row[9];
      $descricao     = $desc_tarifa.' - From: '.$inicio.' to: '.$fim;
      
      $mod_check     = 'mod_check'.$codigo;
      $del_check     = 'del_check'.$codigo;
      $num_tarifa    = 'num_tarifa'.$codigo;
      $text_grupo    = 'text_grupo'.$codigo;
      $num_day_from  = 'num_day_from'.$codigo;
      $num_day_to    = 'num_day_to'.$codigo;
      $num_preco     = 'num_preco'.$codigo;
 
      if ($cod_grupo_ant != $cod_grupo)
      {
         if ($cod_grupo_ant != '')
             echo '</TABLE><BR>';

         $cod_grupo_ant = $cod_grupo;
         echo '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=700>
                 <TR HEIGHT=25 VALIGN=BOTTOM>
                    <TD STYLE="text-align: left;">
                        <B><SPAN STYLE="font-size: 11px;">Grupo: '.$cod_grupo_sc.' - '.$desc_grupo.'</SPAN>
                    </TD>
                 </TR></TABLE>';

         if ($cod_tarifa_ant != $cod_tarifa)
         {
             $cod_tarifa_ant = $cod_tarifa;
             $color_tarifa   = 'rgb(255,102,0)';
         }
         else
             $color_tarifa   = 'rgb(3,109,183)';                  

         echo '<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 WIDTH=700>
                 <TR HEIGHT=25>
                    <TD STYLE="text-align: center;" STYLE="background-color: '.$color_tarifa.';" >
                        <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px; color: rgb(255,255,255);">Tarifa: '.$descricao.'</SPAN></B>
                    </TD>
                 </TR></TABLE>';
         
         echo '<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 WIDTH=700>
                 <TR HEIGHT=18>
                    <TD WIDTH=95 STYLE="background-color: rgb(255,251,236);" ALIGN=CENTER>
                       <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">
                       Alterar</SPAN></B>
                    </TD>
                    <TD WIDTH=95 STYLE="background-color: rgb(255,251,236);" ALIGN=CENTER>
                       <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">
                       Apagar</SPAN></B>
                    </TD>
                    <TD WIDTH=365 STYLE="background-color: rgb(255,251,236);" ALIGN=CENTER>
                       <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">
                       Número de Dias</SPAN></B>
                    </TD>
                    <TD WIDTH=145 STYLE="background-color: rgb(255,251,236);" ALIGN=CENTER>
                       <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">
                       Preço</SPAN></B>
                    </TD>
                 </TR>';
      }

      echo '<TR HEIGHT=23>
               <TD ALIGN=CENTER>
                  <P><INPUT TYPE=CHECKBOX NAME='.$mod_check.' VALUE="">&nbsp;</P>
               </TD>
               <TD ALIGN=CENTER>
                  <P><INPUT TYPE=CHECKBOX NAME='.$del_check.' VALUE="">&nbsp;</P>
               </TD>
               <TD ALIGN=CENTER>
                 <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">
                 De: </SPAN></B><INPUT TYPE=TEXT NAME='.$num_day_from.' VALUE='.$day_from.' SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right">
                 <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">
                 &nbsp;A: </SPAN></B><INPUT TYPE=TEXT NAME='.$num_day_to.' VALUE='.$day_to.' SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right">
               </TD>
               <TD ALIGN=CENTER>
                 <P><INPUT TYPE=TEXT NAME='.$num_preco.' VALUE='.$preco.' SIZE=8 MAXLENGTH=18 class="text_objects" style="text-align:right"></P>
               </TD>
            </TR>';
   }
   echo '</TABLE>';   
}

$sql = "select cod_tarifa, descricao, data_inicio, data_fim from tr_rentacar_tarifas ";
$sql = $sql." where cod_rentacar=".$_SESSION['cod_rentacar'];
$sql = $sql." order by data_inicio ";

$result1  = mysql_query($sql);
$num_row1 = mysql_num_rows($result1);

$sql = "select cod_grupo, descricao, SIPP from tr_rentacar_grupos ";
$sql = $sql." where cod_rentacar=".$_SESSION['cod_rentacar'];
$sql = $sql." order by cod_grupo ";

$result2  = mysql_query($sql);
$num_row2 = mysql_num_rows($result2);

$result3  = mysql_query($sql);
$num_row3 = mysql_num_rows($result3);

$result4  = mysql_query($sql);
$num_row4 = mysql_num_rows($result4);

$result5  = mysql_query($sql);
$num_row5 = mysql_num_rows($result5);

$result6  = mysql_query($sql);
$num_row6 = mysql_num_rows($result6);

$result7  = mysql_query($sql);
$num_row7 = mysql_num_rows($result7);

$result8  = mysql_query($sql);
$num_row8 = mysql_num_rows($result8);

$result9  = mysql_query($sql);
$num_row9 = mysql_num_rows($result9);

$result10  = mysql_query($sql);
$num_row10 = mysql_num_rows($result10);

$result11  = mysql_query($sql);
$num_row11 = mysql_num_rows($result11);
?>
&nbsp;</P>
                                        </TD>
                                    </TR>
                                </TABLE>
                                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=294 NOF="LayoutRegion9">
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD WIDTH=28 HEIGHT=18><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=28 HEIGHT=1 BORDER=0 ALT=""></TD>
                                        <TD WIDTH=266><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=266 HEIGHT=1 BORDER=0 ALT=""></TD>
                                    </TR>
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD></TD>
                                        <TD WIDTH=266 CLASS="TextObject">
                                            <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 14px; color: rgb(0,0,0);">Insira novos preços por grupo aqui</SPAN></B></P>
                                        </TD>
                                    </TR>
                                </TABLE>
                                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF="LayoutRegion9">
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD WIDTH=28 HEIGHT=3><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=28 HEIGHT=1 BORDER=0 ALT=""></TD>
                                        <TD></TD>
                                    </TR>
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD></TD>
                                        <TD WIDTH=700>
                                            <TABLE ID="Table34" BORDER=1 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" HEIGHT=290>
                                                <TR HEIGHT=24>
                                                    <TD WIDTH=38 STYLE="background-color: rgb(255,251,236);">
                                                        <P STYLE="text-align: center;"><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Linha</SPAN></B></P>
                                                    </TD>
                                                    <TD WIDTH=44 STYLE="background-color: rgb(255,251,236);">
                                                        <P STYLE="text-align: center;"><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Novo</SPAN></B></P>
                                                    </TD>
                                                    <TD WIDTH=50 STYLE="background-color: rgb(255,251,236); padding-left: 4pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Tarifa: </SPAN></B></P>
                                                    </TD>
                                                    <TD WIDTH=289 STYLE="padding-left: 4pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox2" NAME="new_tarifa" class="text_objects" style="width:280px">
<option value=0 selected>Escolha uma tarifa</option>
<?
if($num_row1!=0) 
{   
   while($row = mysql_fetch_row($result1))
   {      
      $cod_rate    = $row[0];
      $desc_rate   = $row[1];        
      $data_begin  = Format_Data($row[2]);
      $data_end    = Format_Data($row[3]);
      
      $descricao   = $desc_rate.' - From: '.$data_begin.' to: '.$data_end;
      echo '<option value='.$cod_rate.'>'.$descricao.'</option>'; 
   }
}
?>>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                    <TD ALIGN=CENTER WIDTH=192 STYLE="background-color: rgb(255,251,236);">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Número de Dias</SPAN></B></P>
                                                    </TD>
                                                    <TD WIDTH=73 STYLE="background-color: rgb(255,251,236); padding-left: 4pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Preço</SPAN></B></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=24>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">1</SPAN></B></P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><INPUT ID="FormsCheckbox1" TYPE=CHECKBOX NAME="new_check1" VALUE="">&nbsp;</P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Grupo:</SPAN></B></P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox1" NAME="new_grupo1" class="text_objects" style="width:230px">
<option value=0 selected>Escolha um grupo</option>
<?
if($num_row2!=0) 
{      
   while($row = mysql_fetch_row($result2))
   {      
      $grupo       = "'".$row[0]."'";
      $desc_grupo  = $row[1];          
      $sipp_grupo  = $row[2];
      $desc_total  = $row[0].' - '.$row[1].' - '.$row[2];
      echo '<option value='.$grupo.'>'.$desc_total.'</option>'; 
   }
}
?>>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">&nbsp;De:  </SPAN></B><INPUT ID="FormsEditField3" TYPE=TEXT NAME="new_day_from1" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"> &nbsp;  <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">A:  </SPAN></B><INPUT ID="FormsEditField4" TYPE=TEXT NAME="new_day_to1" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><INPUT ID="FormsEditField5" TYPE=TEXT NAME="new_preco1" VALUE="" SIZE=8 MAXLENGTH=18 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=24>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">2</SPAN></B></P>
                                                    </TD>
                                                    <TD>
                                                        <P STYLE="text-align: center;"><INPUT ID="FormsCheckbox2" TYPE=CHECKBOX NAME="new_check2" VALUE="">&nbsp;</P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Grupo:</SPAN></B></P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox3" NAME="new_grupo2" class="text_objects" style="width:230px">
<option value=0 selected>Escolha um grupo</option>
<?
if($num_row3!=0) 
{      
   while($row = mysql_fetch_row($result3))
   {      
      $grupo       = "'".$row[0]."'";
      $desc_grupo  = $row[1];          
      $sipp_grupo  = $row[2];
      $desc_total  = $row[0].' - '.$row[1].' - '.$row[2];
      echo '<option value='.$grupo.'>'.$desc_total.'</option>'; 
   }
}
?>>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">&nbsp;De:  </SPAN></B><INPUT ID="FormsEditField6" TYPE=TEXT NAME="new_day_from2" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"> &nbsp;  <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">A:  </SPAN></B><INPUT ID="FormsEditField7" TYPE=TEXT NAME="new_day_to2" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><INPUT ID="FormsEditField24" TYPE=TEXT NAME="new_preco2" VALUE="" SIZE=8 MAXLENGTH=18 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=24>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">3</SPAN></B></P>
                                                    </TD>
                                                    <TD>
                                                        <P STYLE="text-align: center;"><INPUT ID="FormsCheckbox3" TYPE=CHECKBOX NAME="new_check3" VALUE="">&nbsp;</P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Grupo:</SPAN></B></P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox4" NAME="new_grupo3" class="text_objects" style="width:230px">
<option value=0 selected>Escolha um grupo</option>
<?
if($num_row4!=0) 
{      
   while($row = mysql_fetch_row($result4))
   {      
      $grupo       = "'".$row[0]."'";
      $desc_grupo  = $row[1];          
      $sipp_grupo  = $row[2];
      $desc_total  = $row[0].' - '.$row[1].' - '.$row[2];
      echo '<option value='.$grupo.'>'.$desc_total.'</option>'; 
   }
}
?>>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">&nbsp;De:  </SPAN></B><INPUT ID="FormsEditField8" TYPE=TEXT NAME="new_day_from3" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"> &nbsp;  <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">A:  </SPAN></B><INPUT ID="FormsEditField9" TYPE=TEXT NAME="new_day_to3" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><INPUT ID="FormsEditField25" TYPE=TEXT NAME="new_preco3" VALUE="" SIZE=8 MAXLENGTH=18 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=24>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">4</SPAN></B></P>
                                                    </TD>
                                                    <TD>
                                                        <P STYLE="text-align: center;"><INPUT ID="FormsCheckbox4" TYPE=CHECKBOX NAME="new_check4" VALUE="">&nbsp;</P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Grupo:</SPAN></B></P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox5" NAME="new_grupo4" class="text_objects" style="width:230px">
<option value=0 selected>Escolha um grupo</option>
<?
if($num_row5!=0) 
{   
   while($row = mysql_fetch_row($result5))
   {      
      $grupo       = "'".$row[0]."'";
      $desc_grupo  = $row[1];          
      $sipp_grupo  = $row[2];
      $desc_total  = $row[0].' - '.$row[1].' - '.$row[2];
      echo '<option value='.$grupo.'>'.$desc_total.'</option>'; 
   }
}
?>>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">&nbsp;De:  </SPAN></B><INPUT ID="FormsEditField10" TYPE=TEXT NAME="new_day_from4" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"> &nbsp;  <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">A:  </SPAN></B><INPUT ID="FormsEditField11" TYPE=TEXT NAME="new_day_to4" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><INPUT ID="FormsEditField26" TYPE=TEXT NAME="new_preco4" VALUE="" SIZE=8 MAXLENGTH=18 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=24>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">5</SPAN></B></P>
                                                    </TD>
                                                    <TD>
                                                        <P STYLE="text-align: center;"><INPUT ID="FormsCheckbox5" TYPE=CHECKBOX NAME="new_check5" VALUE="">&nbsp;</P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Grupo:</SPAN></B></P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox6" NAME="new_grupo5" class="text_objects" style="width:230px">
<option value=0 selected>Escolha um grupo</option>
<?
if($num_row6!=0) 
{   
   while($row = mysql_fetch_row($result6))
   {      
      $grupo       = "'".$row[0]."'";
      $desc_grupo  = $row[1];          
      $sipp_grupo  = $row[2];
      $desc_total  = $row[0].' - '.$row[1].' - '.$row[2];
      echo '<option value='.$grupo.'>'.$desc_total.'</option>'; 
   }
}
?>>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">&nbsp;De:  </SPAN></B><INPUT ID="FormsEditField12" TYPE=TEXT NAME="new_day_from5" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"> &nbsp;  <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">A:  </SPAN></B><INPUT ID="FormsEditField13" TYPE=TEXT NAME="new_day_to5" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><INPUT ID="FormsEditField27" TYPE=TEXT NAME="new_preco5" VALUE="" SIZE=8 MAXLENGTH=18 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=24>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">6</SPAN></B></P>
                                                    </TD>
                                                    <TD>
                                                        <P STYLE="text-align: center;"><INPUT ID="FormsCheckbox6" TYPE=CHECKBOX NAME="new_check6" VALUE="">&nbsp;</P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Grupo:</SPAN></B></P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox7" NAME="new_grupo6" class="text_objects" style="width:230px">
<option value=0 selected>Escolha um grupo</option>
<?
if($num_row7!=0) 
{   
   while($row = mysql_fetch_row($result7))
   {      
      $grupo       = "'".$row[0]."'";
      $desc_grupo  = $row[1];          
      $sipp_grupo  = $row[2];
      $desc_total  = $row[0].' - '.$row[1].' - '.$row[2];
      echo '<option value='.$grupo.'>'.$desc_total.'</option>'; 
   }
}
?>>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">&nbsp;De:  </SPAN></B><INPUT ID="FormsEditField14" TYPE=TEXT NAME="new_day_from6" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"> &nbsp;  <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">A:  </SPAN></B><INPUT ID="FormsEditField15" TYPE=TEXT NAME="new_day_to6" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><INPUT ID="FormsEditField28" TYPE=TEXT NAME="new_preco6" VALUE="" SIZE=8 MAXLENGTH=18 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=24>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">7</SPAN></B></P>
                                                    </TD>
                                                    <TD>
                                                        <P STYLE="text-align: center;"><INPUT ID="FormsCheckbox7" TYPE=CHECKBOX NAME="new_check7" VALUE="">&nbsp;</P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Grupo:</SPAN></B></P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox8" NAME="new_grupo7" class="text_objects" style="width:230px">
<option value=0 selected>Escolha um grupo</option>
<?
if($num_row8!=0) 
{   
   while($row = mysql_fetch_row($result8))
   {      
      $grupo       = "'".$row[0]."'";
      $desc_grupo  = $row[1];          
      $sipp_grupo  = $row[2];
      $desc_total  = $row[0].' - '.$row[1].' - '.$row[2];
      echo '<option value='.$grupo.'>'.$desc_total.'</option>'; 
   }
}
?>>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">&nbsp;De:  </SPAN></B><INPUT ID="FormsEditField16" TYPE=TEXT NAME="new_day_from7" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"> &nbsp;  <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">A:  </SPAN></B><INPUT ID="FormsEditField17" TYPE=TEXT NAME="new_day_to7" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><INPUT ID="FormsEditField29" TYPE=TEXT NAME="new_preco7" VALUE="" SIZE=8 MAXLENGTH=18 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=24>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">8</SPAN></B></P>
                                                    </TD>
                                                    <TD>
                                                        <P STYLE="text-align: center;"><INPUT ID="FormsCheckbox8" TYPE=CHECKBOX NAME="new_check8" VALUE="">&nbsp;</P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Grupo:</SPAN></B></P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox9" NAME="new_grupo8" class="text_objects" style="width:230px">
<option value=0 selected>Escolha um grupo</option>
<?
if($num_row9!=0) 
{   
   while($row = mysql_fetch_row($result9))
   {      
      $grupo       = "'".$row[0]."'";
      $desc_grupo  = $row[1];          
      $sipp_grupo  = $row[2];
      $desc_total  = $row[0].' - '.$row[1].' - '.$row[2];
      echo '<option value='.$grupo.'>'.$desc_total.'</option>'; 
   }
}
?>>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">&nbsp;De:  </SPAN></B><INPUT ID="FormsEditField18" TYPE=TEXT NAME="new_day_from8" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"> &nbsp;  <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">A:  </SPAN></B><INPUT ID="FormsEditField19" TYPE=TEXT NAME="new_day_to8" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><INPUT ID="FormsEditField30" TYPE=TEXT NAME="new_preco8" VALUE="" SIZE=8 MAXLENGTH=18 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=24>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">9</SPAN></B></P>
                                                    </TD>
                                                    <TD>
                                                        <P STYLE="text-align: center;"><INPUT ID="FormsCheckbox9" TYPE=CHECKBOX NAME="new_check9" VALUE="">&nbsp;</P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Grupo:</SPAN></B></P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox10" NAME="new_grupo9" class="text_objects" style="width:230px">
<option value=0 selected>Escolha um grupo</option>
<?
if($num_row10!=0) 
{   
   while($row = mysql_fetch_row($result10))
   {      
      $grupo       = "'".$row[0]."'";
      $desc_grupo  = $row[1];          
      $sipp_grupo  = $row[2];
      $desc_total  = $row[0].' - '.$row[1].' - '.$row[2];
      echo '<option value='.$grupo.'>'.$desc_total.'</option>'; 
   }
}
?>>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">&nbsp;De:  </SPAN></B><INPUT ID="FormsEditField20" TYPE=TEXT NAME="new_day_from9" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"> &nbsp;  <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">A:  </SPAN></B><INPUT ID="FormsEditField21" TYPE=TEXT NAME="new_day_to9" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><INPUT ID="FormsEditField31" TYPE=TEXT NAME="new_preco9" VALUE="" SIZE=8 MAXLENGTH=18 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                </TR>
                                                <TR HEIGHT=24>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">10</SPAN></B></P>
                                                    </TD>
                                                    <TD>
                                                        <P STYLE="text-align: center;"><INPUT ID="FormsCheckbox10" TYPE=CHECKBOX NAME="new_check10" VALUE="">&nbsp;</P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">Grupo:</SPAN></B></P>
                                                    </TD>
                                                    <TD STYLE="padding-left: 4pt;">
                                                        <P>
                                                            <SELECT ID="FormsComboBox11" NAME="new_grupo10" class="text_objects" style="width:230px">
<option value=0 selected>Escolha um grupo</option>
<?
if($num_row11!=0) 
{   
   while($row = mysql_fetch_row($result11))
   {      
      $grupo       = "'".$row[0]."'";
      $desc_grupo  = $row[1];          
      $sipp_grupo  = $row[2];
      $desc_total  = $row[0].' - '.$row[1].' - '.$row[2];
      echo '<option value='.$grupo.'>'.$desc_total.'</option>'; 
   }
}
?>>
                                                            </SELECT>
                                                        </P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">&nbsp;De:  </SPAN></B><INPUT ID="FormsEditField22" TYPE=TEXT NAME="new_day_from10" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"> &nbsp;  <B><SPAN STYLE="font-family: Tahoma,Verdana,Arial,Helvetica,Sans-serif,sans-serif; font-size: 11px;">A:  </SPAN></B><INPUT ID="FormsEditField23" TYPE=TEXT NAME="new_day_to10" VALUE="" SIZE=8 MAXLENGTH=4 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                    <TD ALIGN=CENTER>
                                                        <P><INPUT ID="FormsEditField32" TYPE=TEXT NAME="new_preco10" VALUE="" SIZE=8 MAXLENGTH=18 class="text_objects" style="text-align:right"></P>
                                                    </TD>
                                                </TR>
                                            </TABLE>
                                        </TD>
                                    </TR>
                                </TABLE>
                                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF="LayoutRegion9">
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD WIDTH=143 HEIGHT=15><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=143 HEIGHT=1 BORDER=0 ALT=""></TD>
                                        <TD></TD>
                                    </TR>
                                    <TR VALIGN=TOP ALIGN=LEFT>
                                        <TD></TD>
                                        <TD WIDTH=470>
                                            <TABLE ID="Table35" BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH="100%" HEIGHT=23>
                                                <TR>
                                                    <TD WIDTH=234>
                                                        <P STYLE="text-align: right;"><INPUT TYPE=BUTTON NAME="btSave" VALUE="Guardar" ID="FormsButton61" class="text_objects" onClick="return(F_e('FormsButton61', F_CL))">&nbsp; </P>
                                                    </TD>
                                                    <TD WIDTH=236>
                                                        <P><INPUT TYPE=RESET NAME="btCancel" VALUE="Cancelar" ID="FormsButton62" class="text_objects"></P>
                                                    </TD>
                                                </TR>
                                            </TABLE>
                                        </TD>
                                    </TR>
                                </TABLE>
                            </FORM>
                        </TD>
                    </TR>
                </TABLE>
            </TD>
        </TR>
        <TR VALIGN=TOP ALIGN=LEFT>
            <TD HEIGHT=77 WIDTH=760>
                <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=760 HEIGHT=77 STYLE="background-color: rgb(0,51,102);" NOF="LayoutRegion6">
                    <TR ALIGN=LEFT VALIGN=TOP>
                        <TD>
                            <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=567 NOF="LayoutRegion6">
                                <TR VALIGN=TOP ALIGN=LEFT>
                                    <TD WIDTH=215 HEIGHT=32><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=215 HEIGHT=1 BORDER=0 ALT=""></TD>
                                    <TD WIDTH=352><IMG SRC="../assets/images/autogen/clearpixel.gif" WIDTH=352 HEIGHT=1 BORDER=0 ALT=""></TD>
                                </TR>
                                <TR VALIGN=TOP ALIGN=LEFT>
                                    <TD></TD>
                                    <TD WIDTH=352 CLASS="TextObject">
                                        <P STYLE="text-align: center;"><B><SPAN STYLE="color: rgb(255,255,255);">Copyright Bravacar 2006</SPAN></B></P>
                                    </TD>
                                </TR>
                            </TABLE>
                        </TD>
                    </TR>
                </TABLE>
            </TD>
        </TR>
    </TABLE>
    </LAYER></DIV>
    <SCRIPT language="javascript">
    var C_MENU_BORDER = 0;
    var C_MENU_SPACING = 0;
    var C_MENU_BGCOLOR = "";
    var C_MENU_AUTO_CLOSE = false;
    new NOF_Menu(
    new NOF_Main_Menu(new NOF_Menu_Item('NavigationBar1_1', 'vertical', 'slideBottom', 0, 35, 
 new NOF_Menu_Button('../html/precosgrupos.php','../assets/images/autogen/Precos_Nregular_1.jpg','../assets/images/autogen/Precos_NRregularrollover_1.jpg'),new NOF_Menu_Button('../html/gruposextras.php','../assets/images/autogen/Extras_Nregular_1.jpg','../assets/images/autogen/Extras_NRregularrollover_1.jpg')))
    );
    </SCRIPT>
</BODY>
</HTML>
 