Location: PHPKode > projects > Kebec - Virtual University > sis/gerar.php
<?
require("lib/libs.php");
require("lib/pgsql.php");

if(!pa_auth_user($user,$pass))
{
require("conf/header.php");

 echo "You Must Authenticate";
 exit;
};
require("lib/forms.php");
require("conf/header.php");

  if($submitt=="DOIT"){
     pa_set_notas($notas,$turma,$avaliacao);
  };

?>
<script>
function pa_submit(ACT)
{
	var ACT;
	document.form1.submitt.value = ACT ;
	document.form1.submit();
}
</script>
<center><font color="red" size="4"><?=$msg;?></font></center>
<form name="form1" action="<?=$PHP_SELF;?>" method="post">
<?
formhidden("submitt","");
?>
<center>
<table>
<tr><td><?=pa_lang("Class:");?></td><td>
<?
$prof=pa_get_prof($user);
pa_html_select_turmas("turma",$turma,"OnChange='pa_submit(\"VIEW\");'","where tur_curso=cur_curso and tur_professor='$prof'");
?>
</td></tr>
</table><table border="1">
<?
if($submitt=="VIEW")
{
pa_create_report_p($turma);
echo '</table><table>';
};

?>
</table>
</center>
</form>
</body>
</html>
Return current item: Kebec - Virtual University