b0y-101 Mini Shell


Current Path : E:/www/advanced-mba/
File Upload :
Current File : E:/www/advanced-mba/view_kmn.php

<?php
    include_once("config/dbconfig.inc.php");
	include_once("class/acpram.inc.php");	
  $tn = new  myACP();
	 /*$tn->set_name("Stefan Mischook");
echo "Stefan's full name: " . $stefan->get_name();
*/
$tn->dbConnect ($dbhost, $dbuser, $dbpassword, $dbdatabase) ;
	
?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Admin View Data</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="mycss.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {
	font-size: 13px;
	font-weight: bold;
	color: #FF0000;
}
.style3 {color: #000000}
-->
</style>
</head>

<body>
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="2">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="bigfront"><span class="style2">ข้อมูลคำร้อง</span></td>
  </tr>
  <tr>
    <td><hr></td>
  </tr>
</table>
<br>
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="2" class="myfont">
  <tr bgcolor="#003366"> 
    <td width="33%"><div align="center"><font color="#FFFFFF">หัวเรื่อง</font></div></td>
    <td width="14%"><div align="center"><font color="#FFFFFF">วันที่ร้องเรียน</font></div></td>
    <td width="23%"><div align="center"><font color="#FFFFFF">ชื่อ-ผู้ร้องเรียน</font></div></td>
    <td width="14%"><div align="center"><font color="#FFFFFF">รหัสนักศึกษา</font></div></td>
    <td width="6%"><div align="center"><font color="#FFFFFF">Delete</font></div></td>
    <td width="10%"><div align="center"><font color="#FFFFFF">พิมพ์ใบคำร้อง</font></div></td>
  </tr>
 <?php
  $tn->show_kmnodr();
  while($tn->getrows()){
  ?>
  <tr> 
    <td height="41">      <?=$tn->result["topics"]?>
        <div align="left"></div></td>
    <td> <div align="center"> 
        <?=$tn->result["dayin"].'/'.$tn->result["monthin"].'/'.$tn->result["yearin"]?>
      </div></td>
    <td> <div align="center"> 
        <?=$tn->result["std_name"]?>
      </div></td>
    <td><div align="center"> 
        <?=$tn->result["std_code"]?>
      </div></td>
    <td><div align="center" class="style3"><a href="_del_kmn.php?mydoc_id=<?=$tn->result["doc_id"]?>"    onClick="return Condelete<?php echo $mydoc_id; ?>(this)">[Delete]</a></div></td>
    <td><div align="center"><font color="#000000"><a href="doc_comment_print.php?mycard=<?=$tn->result["doc_id"]?>"><img src="icons/print.gif" width="40" height="40" border="0"></a></font></div></td>
  </tr>
  <?php
  }
  ?>
  <tr bgcolor="#003366"> 
    <?php
	$mydoc_id = $tn->result["doc_id"];
	?>
 <script language="JavaScript">

function Condelete<?php echo $mydoc_id; ?>(object) {
if (confirm("ยืนยันการลบข้อมูล [ <?php echo $mydoc_id; ?> ] ") ==true) {
return true;
}
return false;
}

</script>
    <td height="20" colspan="6"><div align="right"></div></td>
  </tr>
</table>

</body>
</html>


Copyright © 2019 by b0y-101