<?php session_start(); if($_SESSION['adminshee'] != 'adminshee@') header("Location:index.php"); include("condbm.php"); //$act=$_GET['act'];if($act=='excel'){ //header("Content-Type: application/xls"); header("Content-Type: application/vnd.ms-excel"); //header("Content-Transfer-Encoding: binary"); //header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=ข้อมูลผู้สมัครอาชีวอนามัย.xls"); header("Pragma: no-cache"); header("Expires: 0"); //} ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>devbanban</title> </head> <body> <?php $sqldatasums1 = mysql_query("SELECT * FROM sheeregis WHERE (degree LIKE '%') ORDER BY date_regis DESC,time_regis DESC ")or die("error"); ?> <table border="1" cellspacing="0" cellpadding="0" class="table table-hover" width="1870" > <thead> <tr > <th >ลำดับ</th> <th >รหัสบัตรประชาชน</th> <th >ระดับปริญญา</th> <th >ชื่อ-สกุล</th> <th >เบอร์โทร</th> <th >อีเมล</th> <th>วุฒิการศึกษาและสาขา</th> <th >เกรดเฉลี่ย</th> <th >ตำแหน่งงาน</th> <th >สถานที่ทำงาน</th> <th >แผนการศึกษา</th> <th >วันที่สมัคร</th> <th >เวลาที่สมัคร</th> </tr> </thead> <tbody> <? $num=1; while($data = mysql_fetch_array($sqldatasums1)){ ?> <tr> <td align="center" ><? echo $num++; ?></td> <td><? echo "".$data["id_card"]."'"; ?></td> <td><?=$data['degree'] ?></td> <td> <?=$data['name_std']." ".$data['lastname_std'];?> </td> <td><?=$data['tel_std'] ?></td> <td><?=$data['email_std'] ?></td> <td><?=$data['branch_std'] ?></td> <td><?=$data['great_std'] ?></td> <td><?=$data['jobtitle'] ?></td> <td><?=$data['location_office'] ?></td> <td><?=$data['thesis'] ?></td> <td><?=$data['date_regis'] ?></td> <td><?=$data['time_regis'] ?></td> </tr> <? } ?> </tbody> </table> <script type="text/javascript"> window.close(); </script> </body> </html>