| 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/admissions3/ |
Upload File : |
<?
require_once "connectdb.php";
$crsql="SELECT (day_at) FROM daytest where day_id='6'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$day1=$dcrd[0];
$crsql="SELECT (day_at) FROM daytest where day_id='7'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$day2=$dcrd[0];
$crsql="SELECT (day_at) FROM daytest where day_id='8'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$day3=$dcrd[0];
$crsql="SELECT (day_at) FROM daytest where day_id='9'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$day4=$dcrd[0];
$crsql="SELECT (day_at) FROM daytest where day_id='10'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$day5=$dcrd[0];
?>
<html>
<head>
<title>-:- ADMIN -:-</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" onLoad="javascript:document.getElementById('useradmin').focus();">
<font size='+2' color='red'><marquee onMouseOver=this.stop() onMouseOut=this.start() scrollamount=5 scrolldelay=1 direction=top width="100%" height="40">
<? echo "$news"; ?></marquee></font>
<table width="50%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#003399">
<div align="center"><font color="#FFFFFF" size="+1"><strong><font color="#FFFF00">ʶԵÔÃѺÊÁѤà Á.1</font></strong></font></div></td>
</tr>
<tr>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr class="jobscss">
<td bgcolor="#FFFFFF"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#000000">
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr bgcolor="#006666">
<td width="44" height="24"> <div align="center"><font color="#FFFFFF" size="2">#</font></div></td>
<td width="210"><div align="center"><font color="#FFFFFF" size="2">»ÃÐàÀ··Õèà»Ô´ÃѺÊÁѤÃ</font></div></td>
<td width="94"><div align="center"><font color="#FFFFFF" size="2">Çѹ·Õè <? echo "$day1"; ?> <br>ã¹à¢µ/¹Í¡à¢µ</br></font></div></td>
<td width="94"><div align="center"><font color="#FFFFFF" size="2">Çѹ·Õè <? echo "$day2"; ?><br>ã¹à¢µ/¹Í¡à¢µ</br></font></div></td>
<td width="94"> <div align="center"><font color="#FFFFFF" size="2">Çѹ·Õè <? echo "$day3"; ?><br>ã¹à¢µ/¹Í¡à¢µ</br></font></div></td>
<td width="94"> <div align="center"><font color="#FFFFFF" size="2">Çѹ·Õè <? echo "$day4"; ?><br>ã¹à¢µ/¹Í¡à¢µ</br></font></div></td>
<td width="94"> <div align="center"><font color="#FFFFFF" size="2">Çѹ·Õè <? echo "$day5"; ?><br>ã¹à¢µ/¹Í¡à¢µ</br></font></div></td>
<td width="94"> <div align="center"><font color="#FFFFFF" size="2">Excel</font></div></td>
</tr>
</table></td>
</tr>
</table>
<?
$page = $_GET['page'];
$num = 1;
$select_type="select * From tpyad where idtpy_status=1 order by idtpy asc";
$query_select=mysql_query($select_type);
$num_rows=mysql_num_rows($query_select);
if($num_rows<1){
echo "<br><br><center><font color=#666666 face=tahoma size=2>ÂѧäÁèÁÕ¡ÒÃà¾ÔèÁ¢éÍÁÙŤèÐ</font></center>";
}else{
$select="select * From tpyad where idtpy_status=1 order by idtpy asc";
$q_ry = mysql_query($select);
$num_rows=mysql_num_rows($q_ry);
$pagesize=45;
$rt=$num_rows%$pagesize;
if($rt!=0)
{
$totalpage=floor($num_rows/$pagesize)+1;
}
else
{
$totalpage=floor($num_rows/$pagesize);
$toppic_id=1;
}
if(empty($page))
{
$page=1;
}
mysql_free_result($q_ry);
$goto=($page-1)*$pagesize;
$sql_select_mem="Select * From tpyad where idtpy_status>0 order by idtpy asc limit $goto,$pagesize";
$fect=mysql_query($sql_select_mem);
if(!$fect)
{
("µÔ´µèͰҹ¢éÍÁÙÅäÁèä´é".mysql_error());
exit;
}
$bgcount=0;
while($rows=mysql_fetch_array($fect))
{
$idmember =$rows['idtpy'];
$idstudent =$rows['idtpy_id'];
$name =$rows['idtpy_name'];
$surname =$rows['surname'];
$sex =$rows['sex'];
$pin =$rows['pin'];
$room =$rows['room'];
$idtest =$rows['idtest'];
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#000000"><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr bgcolor="#FFFFFF">
<td width="44" height="24"> <div align="center"><font color="#990000" size="2"><? echo "$num"; ?></font></div></td>
<td width="245"> <font color="#003366" size="2"><a href=search.php?id=<? echo "$idstudent"; ?> target="_blank"><? echo "$name"; ?></a></font><br>
<div align="left"></div></td>
<td width="94"><font color="#003366" size="2"><? echo "$idtest"; ?></font>
<?
//////////////////////////////////////////day1
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' and statuss=1 and signup2='$day1' and idtest>0";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numday1x=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' and statuss=2 and signup2='$day1' and idtest>0";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numday1y=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' and signup2='$day1'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$nums1=$dcrd[0];
//////////////////////////////////////////day2
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' and statuss=1 and signup2='$day2'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numday2x=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' and statuss=2 and signup2='$day2'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numday2y=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' and signup2='$day2'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numallday2=$dcrd[0];
//////////////////////////////////////////day3
$crsql="SELECT count(idstudent) FROM member where signup2='$day1'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$num11=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where signup2='$day2'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$num12=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where signup2='$day3'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$num13=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where signup2='$day4'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$num14=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where signup2='$day5'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$num15=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numxx=$dcrd[0];
//////////////
$numssum04=$nums04+$nums1;
$numtotal1=$num11+$num12+$num13+$num14+$num15+$nums04;
?>
<? echo "$numday1x"; ?>/<? echo "$numday1y"; ?> <? echo "$nums1"; ?></td>
<td width="94"><font color="#003366" size="2">
<? echo "$numday2x"; ?>/<? echo "$numday2y"; ?> <? echo "$numallday2"; ?></td>
</font></td>
<td width="94"><font color="#003366" size="2">
<?
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' and statuss=1 and signup2='$day3' and idtest>0 ";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numday3x=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' and statuss=2 and signup2='$day3' and idtest>0 ";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numday3y=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' and signup2='$day3' and idtest>0";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numallday3=$dcrd[0];
//////////////
?>
<? echo "$numday3x"; ?>/<? echo "$numday3y"; ?> <? echo "$numallday3"; ?></td>
</font></td>
<td width="94"><div align="center">
<?
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' and statuss=1 and signup2='$day4' and idtest>0";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numday4x=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' and statuss=2 and signup2='$day4' and idtest>0";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numday4y=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' and signup2='$day4' and idtest>0";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numallday4=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' ";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numtotal=$dcrd[0];
//////////////
?>
<? echo "$numday4x"; ?>/<? echo "$numday4y"; ?> <? echo "$numallday4"; ?></td>
</td>
<td width="94"><div align="center">
<?
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' and statuss=1 and signup2='$day5'";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numday5x=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' and statuss=2 and signup2='$day5' ";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numday54=$dcrd[0];
$crsql="SELECT count(idstudent) FROM member where idstudent='$idstudent' and signup2='$day5' ";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$numallday5=$dcrd[0];
//////////////
?>
<? echo "$numday5x"; ?>/<? echo "$numday5y"; ?> <? echo "$numallday5"; ?></td>
</td>
<td width="94"><div align="center"><a href=excellroom2.php?id=<? echo "$idstudent"; ?>><? echo "$numtotal"; ?></td></a>
</tr>
</table></td>
</tr>
</table>
<?
$num = $num+1;
}
echo "";
}
?>
</td>
</tr>
</table></td>
</tr>
</table>
</div></td>
</tr>
</table></td>
</tr>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr bgcolor="#006666">
<td width="44" height="24"> <div align="center"><font color="#FFFFFF" size="2">#</font></div></td>
<td width="240"><div align="center"><font color="#FFFFFF" size="2">¨Ó¹Ç¹ÊÁѤÃÃÒÂÇѹ</font></div></td>
<td width="94"><div align="center"><font color="#FFFFFF" size="2">
<? echo "$num11"; ?></font></div></td>
<td width="94"><div align="center"><font color="#FFFFFF" size="2"><? echo "$num12"; ?></font></div></td>
<td width="94"> <div align="center"><font color="#FFFFFF" size="2"><? echo "$num13"; ?></font></div></td>
<td width="94"> <div align="center"><font color="#FFFFFF" size="2"><? echo "$num14"; ?></font></div></td>
<td width="94"> <div align="center"><font color="#FFFFFF" size="2"><? echo "$num15"; ?></font></div></td>
<td width="94"> <div align="center"><font color="#FFFFFF" size="2"><? echo "$numxx"; ?></font></div></td>
</tr>
</table>
<br>
<br>
<iframe src="home44p.php" scrolling="no" frameborder="0" width="100%" height="100%"></iframe>
<br>
</center>
<center>µÔ´µèÍÊͺ¶ÒÁ ÁÕ»ÑËÒ㹡ÒÃÊÁѤÃ</center>
<br>
<center><img src="qrcood.jpg"></center>
</body>
</html>