213 024 9984 , 213 025 0033 info@metavasi.edu.gr
<!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" /> <title>Untitled Document</title> <style type="text/css"> body { margin: 0; padding: 0; text-align: center; background-image: url(retina_wood.png); font-size: 18; } .anthropistikes { background-color: #D47FFF; font-size: 36px; text-align: center; white-space: normal; word-spacing: 50em; cursor: crosshair; } #no1 { background-color: #FFF; height: auto; width: 800px; text-align: center; margin: 0 auto; margin-top:50px; } .button_format { background-color: #005B8C; border-radius:8px; white-space: normal; font-size: 30px; left: auto; top: auto; border-top-color: #FFF; border-right-color: #FFF; border-bottom-color: #FFF; border-left-color: #FFF; color: #FFF; height: 200px; width: 250px; } #no1 table tr td { color: #FFF; font-size: 18px; text-align: center; } .button_format1 { background-color: #005B8C; border-radius:16px; white-space: normal; font-size: 18px; left: auto; top: auto; border-top-color: #FFF; border-right-color: #FFF; border-bottom-color: #FFF; border-left-color: #FFF; color: #FFF; height: 50px; width: 300px; } .button_format2 { background-color: #005B8C; border-radius:8px; white-space: normal; font-size: 30px; left: auto; top: auto; border-top-color: #FFF; border-right-color: #FFF; border-bottom-color: #FFF; border-left-color: #FFF; color: #FFF; height: 200px; width: 250px; } .button_format3 { background-color: #005B8C; border-radius:8px; white-space: normal; font-size: 30px; left: auto; top: auto; border-top-color: #FFF; border-right-color: #FFF; border-bottom-color: #FFF; border-left-color: #FFF; color: #FFF; height: 200px; width: 250px; } #no1 table tr td p { font-size: 36px; font-weight: bold; color: #005B8C; } #no1 table { font-size: 18px; } #no1 table { font-size: 36px; color: #FFF; font-weight: bold; } table2 { } #no1 #t2 tr td { color: #FFF; background-color: #005B8C; } #no1 #t3 tr td { color: #FFF; } t2 { } </style> </head> <body> [insert_php] $lesson1=str_replace(",",".",$_POST['lesson1']); $lesson1=floatval($lesson1); $lesson2=str_replace(",",".",$_POST['lesson2']); $lesson2=floatval($lesson2); $lesson3=str_replace(",",".",$_POST['lesson3']); $lesson3=floatval($lesson3); $lesson4=str_replace(",",".",$_POST['lesson4']); $lesson4=floatval($lesson4); $lesson5=str_replace(",",".",$_POST['lesson5']); $lesson5=floatval($lesson5); $lesson6=str_replace(",",".",$_POST['lesson6']); $lesson6=floatval($lesson6); $check1=isset($_POST['check1']); $check2=isset($_POST['check2']); $check3=isset($_POST['check3']); $kat=$_POST['kat']; $a=$lesson1+$lesson2+$lesson3; $a1=0; $a2=0; $a3=0; if ($check1==1) { $a1=$a+$lesson4; } if ($check2==1) { $a2=$a+$lesson5; } if ($check3==1) { $a3=$a+$lesson6; } if ($kat==1) { $p1=0; $p2=0; $p3=0; $p4=0; $p5=0; if ($check1==1) { $p3=($a1*2+$lesson4*0.9+$lesson1*0.4)*100; } if ($check2==1) { $p1=($a2*2+$lesson2*1.3+$lesson3*0.7)*100; } if ($check3==1) { $p4=($a3*2+$lesson6*0.7+$lesson1*1.3)*100; } } if ($kat==2) { $p1=0; $p2=0; $p3=0; $p4=0; $p5=0; if ($check1==1) { $p3=($a1*2+$lesson4*1.3+$lesson2*0.7)*100; } if ($check2==1) { $p2=($a2*2+$lesson5*1.3+$lesson3*0.7)*100; } if ($check3==1) { $p4=($a3*2+$lesson6*0.7+$lesson1*1.3)*100; } } if ($kat==3) { $p1=0; $p2=0; $p3=0; $p4=0; $p5=0; if ($check1==1) { $p5=($a1*2+$lesson2*1.3+$lesson4*0.7)*100; } if ($check2==1) { $p3=($a2*2+$lesson5*0.9+$lesson1*0.4)*100; } if ($check3==1) { $p4=($a3*2+$lesson6*0.7+$lesson1*1.3)*100; } } [/insert_php] <form id="form1" name="form1" method="post" action="ypologismos.php"> <div id="no1"> <table width="600" border="0" align="center"> <tr> <td width="600" align="center" bgcolor="#005B8C"><p><FONT COLOR="#ffffff">ΑΠΟΤΕΛΕΣΜΑΤΑ ΜΟΡΙΩΝ</font></p></td> </tr> </table> </blockquote> <table width="600" border="1" align="center" ID = "t1"> <tr> <td width="300" bgcolor="#005B8C">1 ΠΕΔΙΟ</td> <td width="284" bgcolor="#005B8C">[insert_php] echo($p1); [/insert_php]</td> </tr> <tr> <td bgcolor="#005B8C">2 ΠΕΔΙΟ</td> <td bgcolor="#005B8C">[insert_php] echo($p2); [/insert_php]</td> </tr> <tr> <td bgcolor="#005B8C">3 ΠΕΔΙΟ</td> <td bgcolor="#005B8C">[insert_php] echo($p3); [/insert_php]</td> </tr> <tr> <td bgcolor="#005B8C">4 ΠΕΔΙΟ</td> <td bgcolor="#005B8C">[insert_php] echo($p4);[/insert_php]</td> </tr> <tr> <td bgcolor="#005B8C">5 ΠΕΔΙΟ</td> <td bgcolor="#005B8C">[insert_php] echo($p5); [/insert_php]</td> </tr> </table> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> </div> </form> </body> </html>