b0y-101 Mini Shell


Current Path : E:/www/shee/sheeregis/admin/
File Upload :
Current File : E:/www/shee/sheeregis/admin/showdatashee.php

<? session_start();
if($_SESSION['adminshee'] != 'adminshee@') header("Location:index.php"); 
include("condbm.php");
$names = $_REQUEST['names'];
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>


<script language="JavaScript">
	   var HttPRequest = false;  var newwindow;
		function simple(ID){
			
			if (ID=="") {
		 	alert('กรุณา กรอก รหัสนักศึกษา');test.focus();
                return false;
				}
				else {
			 var url = 'Printdata.php?id_card='+ID+"&myPage=1";
//			window.open(url);

		 	newwindow=window.open(url,'name','width=900,height=600,toolbar=yes, location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no, resizable=no');
		  
		   	if (window.focus) {newwindow.focus()}
				}
		}//ปิดเช้คค่าว่าง

</script>
</head>

<body>

<div align="center">   
 <fieldset style="width:98%">
    <legend>ค้นหาข้อมูล</legend>
   
   <form action="#" method="post">   
    <select id="names"  name="names" required style="width:190px">
    <option value="<? echo $names;?>" ><? echo $names; ?></option>
       <option value="">ค้นหาทั้งหมด</option>
       <option value="ระดับปริญญาโท">ระดับปริญญาโท</option>
       <option value="ระดับปริญญาเอก">ระดับปริญญาเอก</option>
    </select>
   
    <button type="submit"><img src="pic/magnifying-glass.png" width="12" />  ค้นหาข้อมูล</button> 
        </form>
        </div>
    </fieldset>
   
    <? if($names==""){  
	$sqldata = mysqli_query($objConnect,"SELECT * FROM  sheeregis  WHERE  (degree LIKE '%') ORDER BY date_regis DESC,time_regis DESC")  or die("error"); ?>
	
      <fieldset style="width:98%">
     <legend ><font color="#004000">ข้อมูลผู้สมัคร(ทั้งหมด)</font></legend>
     
      <table border="0"   cellspacing="0" cellpadding="0" width="95%">
      	<tr>
        	<td align="left">
             <a href="expexcel.php"   title="คลิกเพื่อดูแบบฟอร์ม" target="_blank">
            <font color="#FF00FF">ดาวน์โหลดข้อมูลทั้งหมดในรูปแบบexcel </font> <img src="pic/click.gif" />
            </a>
            </td>
        </tr>     
      </table>
      <br/>  <br/>
     
     <table border="1"   cellspacing="0" cellpadding="0"><!-- 1870 -->
						
							<thead>
							<tr  bgcolor="#8b0000">
								<th width="40"><font color="#FFFFFF">ที่</font></th>
                                <th width="100"><font color="#FFFFFF">ปริ้นข้อมูล</font></th> 				
								<th width="280"><font color="#FFFFFF">ชื่อ-สกุล</font></th>
                                   <th width="130"><font color="#FFFFFF">รูปแบบสมัคร</font></th>
								<th width="120"><font color="#FFFFFF">เบอร์โทร</font></th>
                                <th width="200"><font color="#FFFFFF">แผนการศึกษา</font></th>
                                 <th width="100"><font color="#FFFFFF">ทรานสคริป</font></th>
                                <th width="100"><font color="#FFFFFF">วันสมัคร</font></th>              
							</tr>
						</thead>
                        
                   		<tbody>     
     <? $num=1;  while($datasums1 = mysqli_fetch_array($sqldata)){  ?>     
     						<tr>
								<td align="center" ><? echo $num++; ?></td>
                                
                                <td align="center">
                               <button   name="ssss" id="btnSearch" value="Print" OnClick="javascript:simple('<?=$datasums1[	id_card]?>');"><img src="pic/print-icon.png" width="18" height="18 " /><font color="#FF0000">ปริ้นข้อมูล</font></button></td>
                               
							    <td><? echo $datasums1[name_std]."  ".$datasums1[lastname_std]; ?></td>
								<td><?=$datasums1[degree] ?></td>
                                <td><?=$datasums1[tel_std] ?></td>
								<td><?=$datasums1[thesis] ?></td>
                                
                                <td align="center">
                             
                                 <?   if(file_exists("../transcript/".$datasums1['transcript_std'])){
			echo "<A HREF='../transcript/$datasums1[transcript_std]'  title='คลิกเพื่อดูแบบฟอร์ม'   target='_blank'>  <f
			       ont color='#FF0000'>ดูข้อมูล</font></A>";  }  ?>	
                                 </td>
                                
                                <td><?=$datasums1[date_regis] ?></td>
								 
							</tr>          
     	  <?  } ?>
       </tbody>
    </table>
	</fieldset>	
  <!---------------------------------------------------------------------------------------------------------->  
  <?	} else {
       $sqldata = mysqli_query($objConnect,"SELECT * FROM  sheeregis  WHERE  (degree LIKE '$names')  
	           ORDER BY date_regis DESC,time_regis DESC")  or die("error"); ?>
	
      <fieldset style="width:98%">
     <legend ><font color="#FF0080">ข้อมูลผู้สมัคร(<? echo $names; ?>)</font></legend>
  
     <table border="1"   cellspacing="0" cellpadding="0"><!-- 1870 -->
						
							<thead>
							<tr  bgcolor="#8b0000">
								<th width="40"><font color="#FFFFFF">ที่</font></th>
                                <th width="100"><font color="#FFFFFF">ปริ้นข้อมูล</font></th> 				
								<th width="280"><font color="#FFFFFF">ชื่อ-สกุล</font></th>
                                   <th width="130"><font color="#FFFFFF">รูปแบบสมัคร</font></th>
								<th width="120"><font color="#FFFFFF">เบอร์โทร</font></th>
                                <th width="200"><font color="#FFFFFF">แผนการศึกษา</font></th>
                                 <th width="100"><font color="#FFFFFF">ทรานสคริป</font></th>
                                <th width="100"><font color="#FFFFFF">วันสมัคร</font></th>              
							</tr>
						</thead>
                        
                   		<tbody>     
     <? $num=1;  while($datasums1 = mysqli_fetch_array($sqldata)){  ?>     
     						<tr>
								<td align="center" ><? echo $num++; ?></td>
                                
                                <td align="center">
                               <button   name="ssss" id="btnSearch" value="Print" OnClick="javascript:simple('<?=$datasums1[	id_card]?>');"><img src="pic/print-icon.png" width="18" height="18 " /><font color="#FF0000">ปริ้นข้อมูล</font></button></td>
                               
							    <td><? echo $datasums1[name_std]."  ".$datasums1[lastname_std]; ?></td>
								<td><?=$datasums1[degree] ?></td>
                                <td><?=$datasums1[tel_std] ?></td>
								<td><?=$datasums1[thesis] ?></td>
                                
                                <td align="center">
                             
                                 <?   if(file_exists("../transcript/".$datasums1['transcript_std'])){
			echo "<A HREF='../transcript/$datasums1[transcript_std]'  title='คลิกเพื่อดูแบบฟอร์ม'   target='_blank'>  <f
			       ont color='#FF0000'>ดูข้อมูล</font></A>";  }  ?>	
                                 </td>
                                
                                <td><?=$datasums1[date_regis] ?></td>
								 
							</tr>          
     	  <?  } ?>
       </tbody>
    </table>
  
   		</fieldset>	
  <? } ?>


</div>
</body>
</html>

Copyright © 2019 by b0y-101