Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Nottz

[PHP + Ajax] Ocultar linhas de uma tabela

Recommended Posts

Buenas Amigos,

 

 

Tenho uma tabela e quero ocultar algumas linhas, de acordo com algumas regras, por exemplo:

 

Se o Campo "Tecnologia" for menor que 5 e o Campo "Trabalho" for menor que 2

Quero a linha da tabela referente a "Projeto".

 

Isso é possível?

 

 

A tabela é estatica, e as informações para a comparação são armazenadas no Mysql.

 

 

Abraços a todos e desde já muito obrigado

Compartilhar este post


Link para o post
Compartilhar em outros sites

Bem Vindo ao fórum...

 

"for menor que 5"?

Seriam 5 linhas? Melhor fazer esses condicionais com a linguagem que tá trazendo tudo do banco...

 

Em php eu faria algo do tipo:

if(mysql_num_rows($consultaTecnologia) < 5 && mysql_num_rows($consultaTrabalho))....

 

Enfim.. coloca um pedaço dessa tabela, para que possamos entender melhor.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Segue uma das diversas tabelas que quero criar a regra.

 

Essas regras seriam diferentes por exemplo <? if ($pesquisas['tec_energia']<5)

ai ele oculta a linha da tabela em que esta o fusão (Planta de Fusão) - $linha['fusao'].

 

 

Entenderam?

 

<table width="100%">
			<tr>
				<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0">
				<td class="c" style="vertical-align: middle; font-size: 11px; font-family: Tahoma, sans-serif; font-weight: bold; color: rgb(230, 235, 251); border: 1px solid rgb(65, 86, 128); padding-left: 3px; padding-right: 1px; padding-top: 1px; padding-bottom: 1px; background-color: rgb(52, 69, 102); background-image: url('images/bg1.gif')" width="1038" colspan="6">
				<p align="center">Energia</td>
				</span>
			</tr>
			<tr>
				<td class="c" style="vertical-align: middle; font-size: 11px; font-family: Tahoma, sans-serif; font-weight: bold; color: rgb(230, 235, 251); border: 1px solid rgb(65, 86, 128); padding-left: 3px; padding-right: 1px; padding-top: 1px; padding-bottom: 1px; background-color: rgb(52, 69, 102); background-image: url('images/bg1.gif')" width="136" align="center">
				Edifício - Satélite</td>
				<td class="c" style="vertical-align: middle; font-size: 11px; font-family: Tahoma, sans-serif; font-weight: bold; color: rgb(230, 235, 251); border: 1px solid rgb(65, 86, 128); padding-left: 3px; padding-right: 1px; padding-top: 1px; padding-bottom: 1px; background-color: rgb(52, 69, 102); background-image: url('images/bg1.gif')" width="27" align="center">
				Nível</td>
				<td class="c" style="vertical-align: middle; font-size: 11px; font-family: Tahoma, sans-serif; font-weight: bold; color: rgb(230, 235, 251); border: 1px solid rgb(65, 86, 128); padding-left: 3px; padding-right: 1px; padding-top: 1px; padding-bottom: 1px; background-color: rgb(52, 69, 102); background-image: url('images/bg1.gif')" width="47" align="center">
				Uso (%)</td>
				<td class="c" style="vertical-align: middle; font-size: 11px; font-family: Tahoma, sans-serif; font-weight: bold; color: rgb(230, 235, 251); border: 1px solid rgb(65, 86, 128); padding-left: 3px; padding-right: 1px; padding-top: 1px; padding-bottom: 1px; background-color: rgb(52, 69, 102); background-image: url('images/bg1.gif')" width="97" align="center">
				Produção (hora)</td>
				<td class="c" style="vertical-align: middle; font-size: 11px; font-family: Tahoma, sans-serif; font-weight: bold; color: rgb(230, 235, 251); border: 1px solid rgb(65, 86, 128); padding-left: 3px; padding-right: 1px; padding-top: 1px; padding-bottom: 1px; background-color: rgb(52, 69, 102); background-image: url('images/bg1.gif')" width="401" align="center">
				<p align="center">Custo da Próxima Produção ( Metal / Cristal / 
				Deutério)</td>
				<td class="c" style="vertical-align: middle; font-size: 11px; font-family: Tahoma, sans-serif; font-weight: bold; color: rgb(230, 235, 251); border: 1px solid rgb(65, 86, 128); padding-left: 3px; padding-right: 1px; padding-top: 1px; padding-bottom: 1px; background-color: rgb(52, 69, 102); background-image: url('images/bg1.gif')" width="316" align="center">
				<p align="center">Recursos Investidos</td>
			</tr>
			<tr>
				<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0">
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="134">
				Planta de Energia Solar</th>
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="25">
				<input type="text" name="solar" size="3" class="style1" maxlength="2" value="<?echo $linha['solar']?>"></th>
				</span>
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="45">
				<select size="1" name="uso_solar" class="style1">
<option value="100" <? if ($linha['uso_solar']==100){ echo "SELECTED";} ?> > 100 </option>
<option value="90" <? if ($linha['uso_solar']==90){ echo "SELECTED";} ?> > 90 </option> 
<option value="80" <? if ($linha['uso_solar']==80){ echo "SELECTED";} ?> > 80 </option>
<option value="70" <? if ($linha['uso_solar']==70){ echo "SELECTED";} ?> > 70 </option> 
<option value="60" <? if ($linha['uso_solar']==60){ echo "SELECTED";} ?> > 60 </option>
<option value="50" <? if ($linha['uso_solar']==50){ echo "SELECTED";} ?> > 50 </option>
<option value="40" <? if ($linha['uso_solar']==40){ echo "SELECTED";} ?> > 40 </option>
<option value="30" <? if ($linha['uso_solar']==30){ echo "SELECTED";} ?> > 30 </option>
<option value="20" <? if ($linha['uso_solar']==20){ echo "SELECTED";} ?> > 20 </option>
<option value="10" <? if ($linha['uso_solar']==10){ echo "SELECTED";} ?> > 10 </option>
<option value="0" <? if ($linha['uso_solar']==0){ echo "SELECTED";} ?> > 0 </option>
				</select></th>
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="95">
				<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">
				<? $resultado_energia= (int)(20 *$linha['solar']*pow(1.1,$linha['solar'])/100*$linha[uso_solar]);
				$english_format_number = number_format($resultado_energia, 0, ',', '.');
				print $english_format_number?>
				</th>
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="399">
		<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">
				<? $resultado_evolucao_solar_metal=  (int)(75*pow(1.5,$linha['solar']));
				$english_format_number = number_format($resultado_evolucao_solar_metal, 0, ',', '.');
				print $english_format_number?> / 
				<? $resultado_evolucao_solar_cristal=  (int)(30*pow(1.5,$linha['solar']));
				$english_format_number = number_format($resultado_evolucao_solar_cristal, 0, ',', '.');
				print $english_format_number?> /
				<? $resultado_evolucao_solar_deuterio=  0*pow(1.5,$linha['solar']);
				$english_format_number = number_format($resultado_evolucao_solar_deuterio, 0, ',', '.');
				print $english_format_number?></th>
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="316">
		<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">
				<?
								
$soma_metal_energia = 0;
for ($i = 0; $i <=$linha['solar']-1; $i++) {
$num = (int)(75 * pow(1.5, $i));
$soma_metal_energia += $num;
}
$soma_cristal_energia = 0;
for ($i = 0; $i <= $linha['solar']-1; $i++) {
$num1 = (int)(30 * pow(1.5, $i));
$soma_cristal_energia += $num1;
}
$soma_total_energia = ($soma_metal_energia+$soma_cristal_energia);
$soma_total_energia_final = number_format($soma_total_energia, 0, ',', '.');
echo $soma_total_energia_final;
?>
</span></th>
			</tr>
			<tr>
			
				<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0">
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="134">
				Planta de Fusao</th>
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="25" rowspan="2">
		<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">
				<input type="text" name="fusao" size="3" class="style1" maxlength="2" value="<?echo $linha['fusao']?>"></span></th>
				</span>
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="45" rowspan="2">
		<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">
				<select size="1" name="uso_fusao" class="style1">
<option value="100" <? if ($linha['uso_fusao']==100){ echo "SELECTED";} ?> > 100 </option>
<option value="90" <? if ($linha['uso_fusao']==90){ echo "SELECTED";} ?> > 90 </option> 
<option value="80" <? if ($linha['uso_fusao']==80){ echo "SELECTED";} ?> > 80 </option>
<option value="70" <? if ($linha['uso_fusao']==70){ echo "SELECTED";} ?> > 70 </option> 
<option value="60" <? if ($linha['uso_fusao']==60){ echo "SELECTED";} ?> > 60 </option>
<option value="50" <? if ($linha['uso_fusao']==50){ echo "SELECTED";} ?> > 50 </option>
<option value="40" <? if ($linha['uso_fusao']==40){ echo "SELECTED";} ?> > 40 </option>
<option value="30" <? if ($linha['uso_fusao']==30){ echo "SELECTED";} ?> > 30 </option>
<option value="20" <? if ($linha['uso_fusao']==20){ echo "SELECTED";} ?> > 20 </option>
<option value="10" <? if ($linha['uso_fusao']==10){ echo "SELECTED";} ?> > 10 </option>
<option value="0" <? if ($linha['uso_fusao']==0){ echo "SELECTED";} ?> > 0 </option>
				</select></th>

				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="95" rowspan="2">
		<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">
				<? $resultado_energia= (int)(1.05+$pesquisas['tec_energia']*0.01);
				$resultado_final= (int)(pow($resultado_energia,$linha['fusao']));
				$resultado_final2= (int)((30*$linha['fusao']*$resultado_final)/100*$linha[uso_fusao]);
				$english_format_number = number_format((int)$resultado_final2, 0, ',', '.');
				echo $english_format_number;
				?>	</th>
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="399" rowspan="2">
		<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">
				<? (int)$resultado_evolucao_fusao_metal=  900*pow(1.8,$linha['fusao']);
				$english_format_number = number_format((int)$resultado_evolucao_fusao_metal, 0, ',', '.');
				print $english_format_number?> / 
				<? $resultado_evolucao_fusao_cristal=  360*pow(1.8,$linha['fusao']);
				$english_format_number = number_format((int)$resultado_evolucao_fusao_cristal, 0, ',', '.');
				print $english_format_number?> /
				<? $resultado_evolucao_fusao_deuterio=  180*pow(1.8,$linha['fusao']);
				$english_format_number = number_format((int)$resultado_evolucao_fusao_deuterio, 0, ',', '.');
				print $english_format_number?></th>
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="316" rowspan="2">
		<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">
				<?;
								
$soma_metal_fusao = 0;
for ($i = 0; $i <=$linha['fusao']-1; $i++) {
$num = (int)(900 * pow(1.8, $i));
$soma_metal_fusao += $num;
}
$soma_cristal_fusao = 0;
for ($i = 0; $i <= $linha['fusao']-1; $i++) {
$num1 = (int)(360 * pow(1.8, $i));
$soma_cristal_fusao += $num1;
}
$soma_deuterio_fusao = 0;
for ($i = 0; $i <= $linha['fusao']-1; $i++) {
$num2 = (int)(180 * pow(1.8, $i));
$soma_deuterio_fusao += $num2;
}
$soma_total_fusao = ($soma_metal_fusao+$soma_cristal_fusao+$soma_deuterio_fusao);
$soma_total_fusao_final = number_format($soma_total_fusao, 0, ',', '.');
echo $soma_total_fusao_final;
?></th>
			</tr>


			<tr>
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="134">
				<? print  (int)(10 * $linha['fusao'] * pow(1.1,$linha['fusao']) * (-0.002 * $linha['temp_max'] + 1.28 )*$linha['uso_fusao']/100)?> u/h Deutério</th>
				</tr>

			<tr>
				<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0">
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="134">
				Satélite Solar</th>
				</span>
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="25">
		<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">
		<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">
				<input type="text" name="satelite" size="3" class="style1" maxlength="4" value="<?echo $linha['satelite']?>"></span></span></th>
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="45">
		<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">
				<select size="1" name="uso_satelite" class="style1">
<option value="100" <? if ($linha['satelite']==100){ echo "SELECTED";} ?> > 100 </option>
<option value="90" <? if ($linha['satelite']==90){ echo "SELECTED";} ?> > 90 </option> 
<option value="80" <? if ($linha['satelite']==80){ echo "SELECTED";} ?> > 80 </option>
<option value="70" <? if ($linha['satelite']==70){ echo "SELECTED";} ?> > 70 </option> 
<option value="60" <? if ($linha['satelite']==60){ echo "SELECTED";} ?> > 60 </option>
<option value="50" <? if ($linha['satelite']==50){ echo "SELECTED";} ?> > 50 </option>
<option value="40" <? if ($linha['satelite']==40){ echo "SELECTED";} ?> > 40 </option>
<option value="30" <? if ($linha['satelite']==30){ echo "SELECTED";} ?> > 30 </option>
<option value="20" <? if ($linha['satelite']==20){ echo "SELECTED";} ?> > 20 </option>
<option value="10" <? if ($linha['satelite']==10){ echo "SELECTED";} ?> > 10 </option>
<option value="0" <? if ($linha['satelite']==0){ echo "SELECTED";} ?> > 0 </option>
				</select></th>
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="95">
		<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">
				<? $resultado_energia_Satelite= (int)($linha['temp_max']/4+20)*$linha['satelite'];
				$english_format_number = number_format($resultado_energia_Satelite, 0, ',', '.');
				print $english_format_number?></th>
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="399">
		<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">
				0 / 2.000 / 500</th>
				<th style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-color: rgb(65, 86, 128); border-right-color: rgb(65, 86, 128); border-bottom-color: rgb(65, 86, 128); border-left-color: rgb(65, 86, 128); border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; font-family: Tahoma, sans-serif; background-color: rgb(52, 69, 102); text-align: center; padding-left: 3px; padding-right: 3px; " width="316">
		<span class="Apple-style-span" style="border-collapse: separate; color: rgb(230, 235, 251); font-family: Tahoma; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-center; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">
				<?$soma_satelite=$linha[satelite]*2500;
				$soma_satelite_final = number_format($soma_satelite, 0, ',', '.');
				echo $soma_satelite_final;?></th>
			</tr>
		</table>

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.