| Server IP : 27.254.66.5 / Your IP : 216.73.217.39 Web Server : Apache/2 System : Linux cs82.hostneverdie.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64 User : technic2 ( 1951) PHP Version : 7.4.30 Disable Function : apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd,exec, fp, fput, highlight_file, ini_alter, ini_restore, inject_code, passthru,phpAds_remoteInfo, phpAds_XmlRpc,phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid,posix_setuid, posix_setuid, posix_uname,proc_open,proc_close, proc_get_status, proc_nice, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode, show_source,sleep,pcntl_exec,virtual,suexec,dbmopen,dl,symlink,disk_free_space,diskfreespace,leak MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/technic2/domains/technicrayong.ac.th/public_html/old-website/jivec58/rayong/ |
Upload File : |
<?php
Ob_start();
session_start();
if ($_SESSION["osj_name"] == "no" or $_SESSION["osj_name"] == "" or $_SESSION["user_type"] <> 1)
{
header("Location:../index.php");
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>สิ่งประดิษฐ์ของคนรุ่นใหม่</title>
<style type="text/css">
.FontTahoma {font-family: Tahoma, Geneva, sans-serif;
}
</style>
</head>
<body bgcolor="#FFCC66">
<form name="form1" id="form1" method="post" action="checklogin.php" onSubmit="JavaScript:return fncSubmit();">
<table border="0" align="center" cellpadding="0" cellspacing="0" width="1000">
<tr>
<td width="994" colspan="2"><br><table border="0" align="center" cellpadding="0" cellspacing="0" width="1000">
<tr>
<td align="center" ><img src="vec_logo.png" width="170" height="169"></td>
<td><div align="center">
<br>
<h2 class="FontTahoma">ระบบบันทึก</h2>
<span class="FontTahoma">
<?php
require_once("header.php");
?>
</span><br>
</div></td>
<td align="center"><img src="inventor_logo.png" width="170" height="169"></td>
</tr></table></td>
</tr>
<tr class="FontTahoma">
<td><p> </p>
<div align="center">คุณเข้าในงานในชื่อ <?php echo $_SESSION["osj_name"]; ?><br><br>
โปรดเลือกรายการที่ต้องการ<br><br>
</div>
<table border="1" align="center" cellpadding="0" cellspacing="0" class="FontTahoma">
<tr>
<td align="center"><a href="editinfo.php">ปรับปรุงข้อมูลหัวตาราง</a></td>
</tr>
<tr>
<td align="center"><a href="convertcsv.php">เก็บข้อมูลทั้งหมดเป็นไฟล์ CSV</a></td>
</tr>
<tr>
<td align="center"><a href="zipimage.php">เก็บไฟล์รูปภาพทั้งหมด</a></td>
</tr>
<tr>
<td align="center"><a href="logout.php">ออกจากระบบ</a></td>
</tr>
</table></td>
<tr class="FontTahoma">
<td align="center"><p>สรุปยอดการสมัครส่งผลงานเข้าประกวด</p>
<table width="700" border="1" cellspacing="0" cellpadding="0">
<tr>
<th bgcolor="#FF9966">ประเภท</th>
<th bgcolor="#FF9966">ระดับ ปวช.</th>
<th bgcolor="#FF9966">ระดับ ปวส.</th>
<th bgcolor="#FF9966">รวม</th>
</tr>
<?php
require_once("config.php");
$sql = "select invention_type, sum(invention_level like 'ปวช.' ) as L1, sum(invention_level like 'ปวส.' ) as L2, sum(invention_level like 'ปวช.' or invention_level like 'ปวส.' ) as L3 from jivec where vocational_name='" . $_SESSION["osj_name"] . "' group by invention_type";
$result = mysql_query($sql) or die ("คำสั่ง sql ผิด");
?>
<?php
$TL1 = 0;
$TL2 = 0;
$TL3 = 0;
$x = 0;
while ($row = mysql_fetch_array($result))
{
$TL1 += $row["L1"];
$TL2 += $row["L2"];
$TL3 += $row["L3"];
$x++;
$class = ($x%2 == 0)? '#FFCC99': '#FFFF99';
?>
<tr bgcolor="<?php echo $class; ?>">
<td><?php echo $row["invention_type"]; ?></td>
<td align="center"><?php echo $row["L1"]; ?></td>
<td align="center"><?php echo $row["L2"]; ?></td>
<td align="center"><?php echo $row["L3"]; ?></td>
</tr>
<?php
}
?>
<tr>
<td align="center" bgcolor="#FF9966"><strong>รวม</strong></td>
<td align="center" bgcolor="#FF9966"><?php echo $TL1; ?></td>
<td align="center" bgcolor="#FF9966"><?php echo $TL2; ?></td>
<td align="center" bgcolor="#FF9966"><?php echo $TL3; ?></td>
</tr>
</table>
<p> </p></td>
</tr>
</table>
</form>
</body>
</html>