alguém sabe qual o motivo?
o problema penso estar na chamada do jquery duas vezes, mas se chamo so uma, nao funciona uma das aplicaçoes
<script src="tabs_ficheiros/jquery.js" type="text/javascript"></script> <script src="calendario/development-bundle/jquery-1.4.2.js"></script>
aqui está a página, alguém pode ajudar por favor? ja perdi imenso tempo e nao consegui resolver :S
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/
<link href="../css/estilo.css" rel="stylesheet" type="text/css" />
<link href="../css/menu_style.css" rel="stylesheet" type="text/css" />
<!--tab-->
<link href="estilotab.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="tabs_ficheiros/tabs.css" type="text/css" media="projection, screen">
<script src="tabs_ficheiros/jquery.js" type="text/javascript"></script>
<script src="tabs_ficheiros/tabs.js" type="text/javascript"></script>
<!-- Additional IE/Win specific style sheet (Conditional Comments) -->
<!--[if lte IE 7]>
<link rel="stylesheet" href="tabs-ie.css" type="text/css" media="projection, screen" />
<![endif]-->
<!-- Additional IE/Win specific style sheet (Conditional Comments) -->
<!--[if lte IE 7]>
<style type="text/css" media="screen, projection">
body {
font-size: 100%; /* resizable fonts */
}
</style>
<![endif]-->
<script type="text/javascript">
$(document).ready(function() {
$.tabs("container");
});
</script>
<!-- fim tab-->
<!--calendario -->
<link rel="stylesheet" href="calendario/development-bundle/themes/base/jquery.ui.all.css">
<script src="calendario/development-bundle/jquery-1.4.2.js"></script>
<script src="calendario/development-bundle/ui/jquery.ui.core.js"></script>
<script src="calendario/development-bundle/ui/jquery.ui.widget.js"></script>
<script src="calendario/development-bundle/ui/jquery.ui.datepicker.js"></script>
<link rel="stylesheet" href="calendario/development-bundle/demos/demos.css">
<script>
$(function() {
$( "#datepicker" ).datepicker({
changeMonth: true,
changeYear: true
});
});
</script>
<script>
$(function() {
$( "#datepicker2" ).datepicker({
changeMonth: true,
changeYear: true
});
});
</script>
<!-- fim calendario calendario -->
</head>
<body>
<div id="cabeçalho">
</div>
<div id="corpo">
<div id="menuSimples">
</div>
<CENTER>
<h3><b><font color="#FF6600">Registo de Alunos</font></b></h3>
<?php
function MostrarFormulario()
{
?>
<!-- Formulário de login -->
<form action="" method="POST">
<div id="container">
<ul class="anchors">
<li class="on"><a href="#Dados-Pessoais">Dados Pessoais</a></li>
<li><a href="#Dados-Escolares">Dados Escolares</a></li>
<li><a href="#Dados-Tecnicos">Dados Técnicos</a></li>
<li><a href="#Dados-Medicos">Dados Médicos</a></li>
</ul>
<div id="Dados-Pessoais" class="anchor">
<center>
<table border="0" cellpadding="10" cellspacing="0" id="c_table">
<TR>
<td valign="top" class="generalText">Nome</td>
<td valign="top" width="136" class="generalText"> <input type="text" name="nome" maxlength="25" /></td>
</TR>
<TR><td valign="top" class="generalText">Sexo</td><TD>
<input type="radio" name="sexo" value="Masculino"> Masculino<br>
<input type="radio" name="sexo" value="Feminino" checked> Feminino<br>
</TD>
</TR>
<TR>
<td valign="top" class="generalText">Data de Nascimento</td>
<td>
<input type="text" id="datepicker">
</td>
</TR>
<TR>
<td valign="top" class="generalText">Número de BI</td>
<td valign="top" width="136" class="generalText"><input type="text" name="numerobi" maxlength="10" /></td>
</TR>
<TR>
<td valign="top" class="generalText">Arquivo</td>
<td valign="top" width="136" class="generalText"><input type="text" name="arquivo" maxlength="10" /></td>
</TR>
<TR>
<td valign="top" class="generalText">Data de Validade</td>
<td>
<input type="text" id="datepicker2">
</td>
</TR>
</center>
</table>
<br><br><br><br>
</div>
<div style="display: none;" id="Dados-Escolares" class="anchor">
<h2>Dados Escolares</h2>
Content for "Dados Escolares" Goes Here<br><br><br><br>
</div>
<div style="display: none;" id="Dados-Tecnicos" class="anchor">
<h2>Dados Tecnicos</h2>
Content for "Dados Tecnicos" Goes Here<br><br><br><br>
</div>
<div style="display: none;" id="Dados-Medicos" class="anchor">
<h2>Dados Medicos</h2>
Content for "Dados Medicos" Goes Here<br><br><br><br>
</div>
</div>
<button type="submit" value="Entrar" />Entrar</button>
<button type="reset" value="Limpar" name="B2">Limpar</button>
</form>
<?php
}
function ValidarFormulario(){
$nome = mysql_real_escape_string($_POST['nome']);
$username = mysql_real_escape_string($_POST['username']);
$password = mysql_real_escape_string($_POST['password']);
$email = mysql_real_escape_string($_POST['email']);
$nivel= mysql_real_escape_string($_POST['nivel']);
$estado = mysql_real_escape_string($_POST['estado']);
include("BD.php");
$baseDados= new BD();
$baseDados->dbconnect();
$baseDados->registoUser($nome,$username,$password,$email,$nivel,$estado);
}
?>
<?php
if ($_POST['username']) {
ValidarFormulario();
MostrarFormulario();
}else MostrarFormulario();
?>
</CENTER>
</div>
</body>
<p>
</html>










