403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.59
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/gpa/homeroom/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/gpa/homeroom/printx.php
<?
require_once "../config/confiteacher.inc.php";
$ttt=$objResult["teachcode"];
$namet=$objResult["name"];
$lastname=$objResult["lastname"];
   
    $crsql="SELECT (years) FROM `config`" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $xyyyy=$dcrd[0];


	$crsql="SELECT (ku1) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $ku11=$dcrd[0];


	$crsql="SELECT (pu1) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $pu11=$dcrd[0];


	$crsql="SELECT (au1) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $au11=$dcrd[0];

    $totalu1=$ku11+$pu11+$au11;
///////////////////////

	$crsql="SELECT (ku2) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $ku21=$dcrd[0];


	$crsql="SELECT (pu2) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $pu21=$dcrd[0];


	$crsql="SELECT (au2) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $au21=$dcrd[0];

	$totalu2=$ku21+$pu21+$au21;

////////////////////////

	$crsql="SELECT (ku3) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $ku31=$dcrd[0];


	$crsql="SELECT (pu3) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $pu31=$dcrd[0];


	$crsql="SELECT (au3) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $au31=$dcrd[0];

$totalu3=$ku31+$pu31+$au31;
//////////////////////////////////

$crsql="SELECT (ku4) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $ku41=$dcrd[0];


	$crsql="SELECT (pu4) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $pu41=$dcrd[0];


	$crsql="SELECT (au4) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $au41=$dcrd[0];


$totalu4=$ku41+$pu41+$au41;
//////////////////////////////////

$crsql="SELECT (ku5) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $ku51=$dcrd[0];


	$crsql="SELECT (pu5) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $pu51=$dcrd[0];


	$crsql="SELECT (au5) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $au51=$dcrd[0];

	$totalu5=$ku51+$pu51+$au51;

	//////////////////////////////////

$crsql="SELECT (ku6) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $ku61=$dcrd[0];


	$crsql="SELECT (pu6) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $pu61=$dcrd[0];


	$crsql="SELECT (au6) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $au61=$dcrd[0];


	$totalu6=$ku61+$pu61+$au61;



////////////
$crsql="SELECT (midterm) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $midterm=$dcrd[0];


	$crsql="SELECT (final) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $final=$dcrd[0];

$pretest=$totalu1+$totalu2+$totalu3;
$posttest=$totalu4+$totalu5+$totalu6;
$totalall=$pretest+$posttest+$midterm+$final;

////////ชื่อวิชา
$crsql="SELECT (codcod) FROM `registeacher`
	WHERE registeach = '$ttt' and codeteach='$_GET[id]' and yearsxx='$xyyyy'" ;
	$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
    $codcod=$dcrd[0];

?>
<?
$ttt=$objResult["teachcode"];

$sql2="SELECT namesc,tumbolsc,amps,dissc,years,termx FROM config";
mysql_query("SET character_set_results=tis620");//ตั้งค่าการดึงข้อมูลออกมาให้เป็น tis620
mysql_query("SET character_set_client=tis620");//ตั้งค่าการส่งข้อมุลลงฐานข้อมูลออกมาให้ เป็น tis620
mysql_query("SET character_set_connection=tis620");//ตั้งค่าการติดต่อฐานข้อมูลให้เป็น ti
$result2 = mysql_query($sql2);
while (list($namesc,$tumbolsc,$amps,$dissc,$years,$termx) = mysql_fetch_row($result2)) {
$namesc_sc = $namesc;
$xsc_tumbolsc = $tumbolsc;
$xsc_disc = $dissc;
$xsc_amps = $amps;
$xsc_years = $years;
$xsc_termx = $termx;
}

?>
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=tis-620">

<title>ฝ่ายบริหารงานวิชาการ</title>

</head>

<body onload="window.print()">
<?
require_once "../config/connectdb.php";
$year=date(" Y ")+542; 
//*** Update Condition ***//
if($_GET["Action"] == "Save")
{
	for($i=1;$i<=$_POST["hdnLine"];$i++)
	{
		$strSQL = "UPDATE transcripsactivi SET ";
		$strSQL .="gradeac = '".$_POST["txtgradeac$i"]."' ";
		$strSQL .="WHERE idacti = '".$_POST["hdnid$i"]."' ";
		
		$objQuery = mysql_query($strSQL);
	}
	//header("location:$_SERVER[PHP_SELF]");
	//exit();
}

$sql2="SELECT years FROM config";
$result2 = mysql_query($sql2);
while (list($years) = mysql_fetch_row($result2)) {
$xsc_years = $years;
$strSQL = "SELECT * FROM transcripts JOIN klw ON klw.Username=transcripts.IDstudent WHERE code = '$_GET[id]' and room = '$_GET[room]' and teach='$ttt' and xyy='$_GET[xyy]'  order by room+1 asc,ordinal+1 asc";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
$i = 1;

}





	

?>
<table width="773" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  
                  <td width="575"><table width="100%" border="0" cellspacing="1" cellpadding="1">
                     
                    </table></td>
                </tr>
              </table>
<form name="frmMain" method="post" action="totalsave.php?Action=Save">
<table  width="100%" border="0" bgcolor="#999999">
  
  <tr bgcolor="#FFFFFF">
    
	 <th width="10" colspan="3"> <div align="center"><font size=1> วิชา&nbsp;<? echo $_GET[id]; ?>&nbsp;<? echo "$codcod"; ?></font>
</div></th>
    
	
     <th width="10" colspan="3"> <div align="center"><font size=1>หน่วย 1</font></div></th>
	 <th width="10" colspan="3"> <div align="center"><font size=1>หน่วย 2</font></div></th>
	 <th width="10" colspan="3"> <div align="center"><font size=1>หน่วย 3</font></div></th>
	 <th width="10" colspan="3"> <div align="center"><font size=1>หน่วย 4</font></div></th>
	 <th width="10" colspan="3"> <div align="center"><font size=1>หน่วย 5</font></div></th>
	 <th width="10" colspan="3"> <div align="center"><font size=1>หน่วย 6</font></div></th>
	 
	 
	 <th width="10" colspan="6"> <div align="center"></div></th>
	 
	 <th width="10"> <div align="center"></div></th>
	 <th width="10"> <div align="center"></div></th>
	 <th width="10"> <div align="center"></div></th>
	 <th width="10"> <div align="center"></div></th>
	 <th width="10"> <div align="center"></div></th>
	 <th width="10"> <div align="center"></div></th>
	 
	 
	

	
	

  </tr>
  <tr bgcolor="#FFFFFF">
    
	 <th width="10" colspan="3"> <div align="center"><font size=1>ครู&nbsp;<? echo "$ttt"; ?>&nbsp;<? echo "$namet"; ?>&nbsp;<? echo "$lastname"; ?></font></div></th>
	
     <th width="20" colspan="3"> <div align="center"><font size=1>.........</font></div></th>
	 <th width="20" colspan="3"> <div align="center"><font size=1>.........</font></div></th>
	 <th width="20" colspan="3"> <div align="center"><font size=1>.........</font></div></th>
	 <th width="20" colspan="3"> <div align="center"><font size=1>.........</font></div></th>
	 <th width="20" colspan="3"> <div align="center"><font size=1>.........</font></div></th>
	 <th width="20" colspan="3"> <div align="center"><font size=1>.........</font></div></th>
	 
	 
	 <th width="20" colspan="6"> <div align="center"><font size=1>หน่วย</font></div></th>
	 
	 <th width="20"> <div align="center"></div></th>
	 
	 <th width="20"> <div align="center"></div></th>
	 <th width="20"> <div align="center"></div></th>
	 <th width="20"> <div align="center"></div></th>
	 <th width="20"> <div align="center"></div></th>
	 <th width="20"> <div align="center"></div></th>
	 
	 
	

	
	

  </tr>
  <tr bgcolor="#FFFFFF">
    
	 <th width="10" colspan="3"> <div align="center"><font size=2>ห้อง <? echo $_GET[room]; ?></font></div></th>
	

	 
	 <th width="10"> <div align="center"><font size=1>k</font></div></th>
	 <th width="10"> <div align="center"><font size=1>p</font></div></th>
	 <th width="10"> <div align="center"><font size=1>a</font></div></th>
	 <th width="10"> <div align="center"><font size=1>k</font></div></th>
	 <th width="10"> <div align="center"><font size=1>p</font></div></th>
	 <th width="10"> <div align="center"><font size=1>a</font></div></th> 
	 <th width="10"> <div align="center"><font size=1>k</font></div></th>
	 <th width="10"> <div align="center"><font size=1>p</font></div></th>
	 <th width="10"> <div align="center"><font size=1>a</font></div></th>
	 <th width="10"> <div align="center"><font size=1>k</font></div></th>
	 <th width="10"> <div align="center"><font size=1>p</font></div></th>
	 <th width="10"> <div align="center"><font size=1>a</font></div></th>
	 <th width="10"> <div align="center"><font size=1>k</font></div></th>
	 <th width="10"> <div align="center"><font size=1>p</font></div></th>
	 <th width="10"> <div align="center"><font size=1>a</font></div></th>
	 <th width="10"> <div align="center"><font size=1>k</font></div></th>
	 <th width="10"> <div align="center"><font size=1>p</font></div></th>
	 <th width="10"> <div align="center"><font size=1>a</font></div></th>
	 <th width="10"> <div align="center"><font size=1>1</font></div></th>
	 <th width="10"> <div align="center"><font size=1>2</font></div></th>
	 <th width="10"> <div align="center"><font size=1>3</font></div></th>
	 <th width="10"> <div align="center"><font size=1>4</font></div></th>
	 <th width="10"> <div align="center"><font size=1>5</font></div></th>
	 <th width="10"> <div align="center"><font size=1>6</font></div></th>
	 <th width="10"> <div align="center"><font size=1>ก่อน</font></div></th>
	 <th width="10"> <div align="center"><font size=1>กลาง</font></div></th>
	 <th width="10"> <div align="center"><font size=1>หลัง</font></div></th>
	 <th width="10"> <div align="center"><font size=1>ปลาย</font></div></th>
	 <th width="10"> <div align="center"><font size=1>รวม</font></div></th>
	 <th width="10"> <div align="center"><font size=1>เกรด</div></th>
	 
	 

	
	

  </tr>
   <tr bgcolor="#FFFFFF">
    
	 <th width="10" colspan="3"> <div align="center"></div></th>
	

	 
	 <th width="10"> <div align="center"><font size=1><? echo "$ku11"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$pu11"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$au11"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$ku21"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$pu21"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$au21"; ?></font></div></th> 
	 <th width="10"> <div align="center"><font size=1><? echo "$ku31"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$pu31"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$au31"; ?></font></div></th> 
	 <th width="10"> <div align="center"><font size=1><? echo "$ku41"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$pu41"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$au41"; ?></font></div></th> 
	 <th width="10"> <div align="center"><font size=1><? echo "$ku51"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$pu51"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$au51"; ?></font></div></th> 
	 <th width="10"> <div align="center"><font size=1><? echo "$ku61"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$pu61"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$au61"; ?></font></div></th> 
	 <th width="10"> <div align="center"><font size=1><? echo "$totalu1"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$totalu2"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$totalu3"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$totalu4"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$totalu5"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$totalu6"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$pretest"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$midterm"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$posttest"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$final"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1><? echo "$totalall"; ?></font></div></th>
	 <th width="10"> <div align="center"><font size=1></div></th>
	 
	 

	
	

  </tr>
  
  <tr bgcolor="#FFFFFF">
    
	 <th width="10"> <div align="center">#</div></th>
    <th width="10"> <div align="center"><font size=1>รหัสนร.</font></div></th>
	<th width="200"> <div align="center"><font size=1>ชื่อ-สกุล</font></div></th>
	

	 
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th> 
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</font></div></th>
	 <th width="10"> <div align="center"><font size=1>......</div></th>
	 
	 

	
	

  </tr>
<?
$i =0;

while($objResult = mysql_fetch_array($objQuery))

{
if($bg == "#EEEEEE") { //ส่วนของการ สลับสี 
$bg = "#FFFFFF";
} else {
$bg = "#EEEEEE";
}

	$i = $i + 1;
	$scor1 =$objResult["scor1k"];
	$scor2 =$objResult["scor1p"];
	$scor3 =$objResult["scor1a"];
	$uni1 =$scor1+$scor2+$scor3;

	$scor4 =$objResult["scor2k"];
	$scor5 =$objResult["scor2p"];
	$scor6 =$objResult["scor2a"];
	$uni2 =$scor4+$scor5+$scor6;


	$scor7 =$objResult["scor3k"];
	$scor8 =$objResult["scor3p"];
	$scor9 =$objResult["scor3a"];
	$uni3 =$scor7+$scor8+$scor9;

	$mid =$objResult["mid"];

	$scor10 =$objResult["scor4k"];
	$scor11 =$objResult["scor4p"];
	$scor12 =$objResult["scor4a"];
	$uni4 =$scor10+$scor11+$scor12;


	$scor13 =$objResult["scor5k"];
	$scor14 =$objResult["scor5p"];
	$scor15 =$objResult["scor5a"];
	$uni5 =$scor13+$scor14+$scor15;


	$scor16 =$objResult["scor6k"];
	$scor17 =$objResult["scor6p"];
	$scor18 =$objResult["scor6a"];
	$uni6 =$scor16+$scor17+$scor18;


	$final=$objResult["final1"];

    $total=$uni1+$uni2+$uni3+$uni4+$uni5+$uni6+$mid+$final;
	$sum1=$uni1+$uni2+$uni3;
	$sum2=$uni4+$uni5+$uni6;
    $grade=$objResult["grad"];
	$room =$objResult['room'];
	$Username =$objResult['Username'];
	$codtime =$objResult['codtime'];
	$ordinal =$objResult['ordinal'];
	$cllass =$objResult['cllass'];
	$w1=5;
	$w2=500;
	$w3=1;




	$crsql="SELECT count(idstutime) FROM `timeout`
    WHERE idstutime = '$Username' and codtime='$_GET[id]' and betime=1";
    $slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
	$numchik=$dcrd[0];


	$crsql="SELECT count(idstutime) FROM `timeout`
    WHERE idstutime = '$Username' and codtime='$_GET[id]' and betime=2";
    $slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
	$numchik2=$dcrd[0];

	$crsql="SELECT count(idstutime) FROM `timeout`
    WHERE idstutime = '$Username' and codtime='$_GET[id]' and betime=3";
    $slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
	$dcrd = mysql_fetch_array($slr);
	$numchik3=$dcrd[0];

    $totalxx=$numchik+$numchik2+$numchik3;

?>
  <tr bgcolor="<?=$bg?>">
   
	<input type="hidden" name="hdnid<?=$i;?>" size="1" value="<?=$objResult["id"];?>">
	 <td width="10"><font size=2><?=$i?></font></td>
	<td width="10"><font size=1><div align="right"><?=$objResult["Username"];?>
	</div></font></td>
	<td width="50%"><div align="left"><font size=1><?=$objResult["Name"];?>&nbsp;&nbsp;<?=$objResult["surname"];?></font></div></td>
	
   

	
	
                                       
	
	<td width='$w1'><font size=2><? echo "$scor1"; ?></font></td>
	<td width="$w1"><font size=2><? echo "$scor2"; ?></font></td>
	<td width="$w1"><font size=2><? echo "$scor3"; ?></font></td>
	
	<td width="$w1"><font size=2><? echo "$scor4"; ?></font></td>
	<td width="$w1"><font size=2><? echo "$scor5"; ?></font></td>
	<td width="$w1"><font size=2><? echo "$scor6"; ?></font></td>
	
	<td><font size=2><? echo "$scor7"; ?></font></td>
	<td><font size=2><? echo "$scor8"; ?></font></td>
	<td><font size=2><? echo "$scor9"; ?></font></td>
	
	<td><font size=2><? echo "$scor10"; ?></font></td>
	<td><font size=2><? echo "$scor11"; ?></font></td>
	<td><font size=2><? echo "$scor12"; ?></font></td>
	
	<td><font size=2><? echo "$scor13"; ?></font></td>
	<td><font size=2><? echo "$scor14"; ?></font></td>
	<td><font size=2><? echo "$scor15"; ?></font></td>
	
	<td><font size=2><? echo "$scor16"; ?></font></td>
	<td><font size=2><? echo "$scor17"; ?></font></td>
	<td><font size=2><? echo "$scor18"; ?></font></td>
	<td><font size=2><? echo "$uni1"; ?></font></td>
	<td><font size=2><? echo "$uni2"; ?></font></td>
	<td><font size=2><? echo "$uni3"; ?></font></td>
	<td><font size=2><? echo "$uni4"; ?></font></td>
	<td><font size=2><? echo "$uni5"; ?></font></td>
	<td><font size=2><? echo "$uni6"; ?></font></td>
	<td><font size=2><? echo "$sum1"; ?></font></td>
	<td><font size=2><? echo "$mid"; ?></font></td>
	<td><font size=2><? echo "$sum2"; ?></font></td>
	<td><font size=2><? echo "$final"; ?></font></td>
	<td><font size=2><? echo "$total"; ?></font></td>
	<td><font size=2><? echo "$grade"; ?></font></td>
	
	
	





  </tr>
<?
	  $i = $i;
  }
  ?>
</table>
</form>

</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit