Location: PHPKode > projects > Kebec - Virtual University > sis/lancar.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);
     pa_set_more($label,$notes,$turma);
  };

?>
<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>
<?
if($submitt=="VIEW" || $submitt=="DOIT" || $submitt=="VIEW1")
{
?>
<tr><td><?=pa_lang("Test:");?></td><td>
<?
pa_html_select("avaliacao","ava_id","tava_descr","avaliacoes,tipo_avaliacoes",$avaliacao,"OnChange='pa_submit(\"VIEW1\");'","where ava_tipo=tava_id and ava_turma='$turma' order by ava_ordem");
?>
</td></tr>
<?
if($submitt=="VIEW1")
{
formtext(pa_lang("Result of:"),"label",pa_result($turma),15,15,0,1,1,"");
echo pa_lang("notes:");
?>
</table>
<table><tr><td valign="top">
<?= pa_lang("Obs:"); ?>
</td><td>
<textarea name="notes" cols="30" rows="10" scrolling>
<?=pa_obs($turma);?>
</textarea>
</td></tr>
<?
} else { ?>  </table> <? }
?>
<?
if($submitt=="VIEW1")
{
?><table border="1"><?

pa_create_form($turma,$avaliacao);
echo '</table><table>';
formbutton("med_button",pa_lang("All Avarages"),1,1,"right","OnClick='pa_cal_all_med();'");
formbutton("men_button",pa_lang("All Mencoes"),1,1,"right","OnClick='pa_cal_all_men();'");
formbutton("submit_button",pa_lang("OK"),1,1,"right","OnClick='pa_submit(\"DOIT\");'");
};
}; // fim do if($submitt=="VIEW")

?>
</table>

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