| Server IP : 172.67.187.206 / Your IP : 172.71.28.155 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/myschool/triamudom/check/webadmin/ |
Upload File : |
<?php
session_start();
$path = "../";
include ($path.'include/config_db.php');
include ($path.'include/class_db.php');
include ($path.'include/class_display.php');
include ($path.'include/function.php');
include ($path.'include/permission_denied.php');
$CLASS['db'] = new db();
$CLASS['db']->connect();
$CLASS['disp'] = new display();
$db = $CLASS['db'];
$disp = $CLASS['disp'];
$link_value = $_REQUEST['link_value'];
$keyword = $_REQUEST['keyword'];
$link_value = "&keyword=".$keyword."&tb_student_degree=".$tb_student_degree;
$del_id = $_REQUEST['del_id'];
$process = $_REQUEST['process'];
$tb_student_id = $_REQUEST['tb_student_id'];
$tb_student_degree = $_REQUEST['tb_student_degree'];
$tb_student_degree = $_REQUEST['tb_student_degree'];
$select = $_REQUEST['select'];
if($process=="del"){
$db->query("delete from tb_registers where tb_register_id='".$del_id."' ");
print "
<script language='javascript'>
alert('ลบข้อมูลเรียบร้อยแล้ว');
window.location.href='".$_SERVER['PHP_SELF']."';
</script>
";
}
//----------------------------ค่าพื้นฐานระบบเว็บไซต์-----------------------------//
$fetch_public = $db->fetch_array($db->query("select * from tb_public"));
//----------------------------ค่าพื้นฐานระบบเว็บไซต์-----------------------------//
//--------------------ส่วนบนใช้สำหรับประกาศตัวแปรและ Config เท่านั้น----------------------------//
?>
<!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>
<title><?php print $fetch_public['tb_public_title_admin'];?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style_admin.css" rel="stylesheet" type="text/css">
<SCRIPT type="text/javascript" src="js/format.js"></SCRIPT>
<SCRIPT type="text/javascript" src="js/global.js" ></SCRIPT>
<SCRIPT type="text/javascript" src="js/dtree.js" ></SCRIPT>
<SCRIPT type="text/javascript" src="../include/souc_java.js"></SCRIPT>
<style type="text/css">
<!--
.style2 {font-size: 14px}
-->
</style>
</HEAD>
<BODY>
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#FB02BE">
<tr bgcolor="#FB02BE" class="headTable">
<td width="9%" height="25" align="center" nowrap="nowrap" class="headTable">ลำดับที่</td>
<td width="15%" align="center" nowrap="nowrap"><span class="biggray style2">วันเดือนปี</span></td>
<td width="63%" nowrap="nowrap" class="headTable"><span class="biggray style2">รายละเอียดการเรียนรู้</span></td>
<td width="13%" align="center" nowrap="nowrap" class="headTable"><span class="biggray style2">ภาพกิจกรรม</span></td>
</tr>
<?php
$sql_all_log="select * from tb_volunteer_logs where tb_student_id ='".$tb_student_id."' order by tb_volunteer_log_id asc";
$query_dis_log = $db->query($sql_all_log);
$queryall_log = $db->query($sql_all_log);
$numrows_log = $db->num_rows($queryall_log);
if($numrows_log >0){
$i=1;
while($fetch_dis_log = $db->fetch_array($query_dis_log)){
?>
<tr>
<td align="center" valign="top" bgcolor="#FFFFFF"><?php print $i;?>.</td>
<td align="center" valign="top" bgcolor="#FFFFFF"><?php print display_datethai($fetch_dis_log['tb_volunteer_log_date'],'longthai');?></td>
<td bgcolor="#FFFFFF"><?php print $fetch_dis_log['tb_volunteer_log_detail'];?></td>
<td align="center" valign="top" bgcolor="#FFFFFF"><?php if($fetch_dis_log['tb_volunteer_log_picture']){?><a href="../volunteer/file_work/<?php print $fetch_dis_log['tb_volunteer_log_picture'];?>" target="_blank"><img src="images/view_image.gif" width="24" height="21" border="0" /></a><?php }else{?>-<?php }?></td>
</tr>
<?php
$i++;
}
}else{
?>
<tr>
<td colspan="4" align="center" bgcolor="#FFFFFF" class="alertred">ไม่พบข้อมูล</td>
</tr>
<?php
}
?>
</table>
</BODY>
</html>