<?php
 /*
 * Seleciona o link a partir do id informado pela url
 * @param $id = Chave primária do link a ser atualizado no BD
 * @param $linhaLink = Array que contém a tupla solicitada 
 */
 
 $selectLink = mysql_query("SELECT * FROM adm_frase");
 $linhaLink = mysql_fetch_array($selectLink);

?>

<form name="frmCadLink" id="frmCadLink" enctype="multipart/form-data" method="post" class="form-padrao" action="miolo.php?miolo=updateFrase">
	<table border="0" class="tabela-conteudo" cellspacing="10">
		<tbody>
			<tr>
				<td colspan="2" class="titulos-internos">Atualizar Frase</td>
			</tr>
			<tr><td colspan="2">&nbsp;</td></tr>
				<tr class='linha-topo'>
					<th align='left'>Texto</th>
				</tr>
				<tr>
					<th align='left' >
						<input type='text' name='frase' id='frase' maxlength='50' value='<?php echo utf8_encode($linhaLink['frase']); ?>' size="80">
					</th>
				</tr>
				<tr>
					<th align='center' >
						<input type='button' value='Atualizar' name='btnUpdate' id='btnUpdate' OnClick="javascript:frmCadLink.submit();">
						<input type='button' value='Limpar' name='btnLimpar' id='btnLimpar'>
					</th>
				</tr>
			<tr><td colspan="4">&nbsp;</td></tr>
		</tbody>
	</table>
</form>

<? include 'paineis/inputs/divResultado.php'; ?>