| Server IP : 104.21.80.248 / Your IP : 172.71.28.156 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 : E:/Inetpub/www/myoffice/2564_old/ |
Upload File : |
<?php
header("Content-Type: application/vnd.ms-excel");
header('Content-Disposition: attachment; filename="month1.xls"');
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize("month1.xls"));
@readfile($filename);
?>
<?
include "mainfile.php";
?>
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<br>
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#999999" bordercolordark="#FFFFFF">
<tr height=25 bgcolor="#009900">
<?
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
$strSQL = "SELECT * FROM ".TB_TKK2." where date(from_unixtime(post_date)) like '____-01-__' ";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
$Num_Rows = mysql_num_rows($objQuery);
$strSQL .=" ORDER BY post_date asc ";
$objQuery = mysql_query($strSQL);
?>
<td width="5%" class="unnamed1"><font color="#FFFFFF"><div align="center" class="style3"><B>เลขรับ</B></div></font></td>
<td width="15%" class="unnamed1"><font color="#FFFFFF"><div align="center" class="style3"><B>เลขหนังสือ</B></div></font></td>
<td class="unnamed2"><font color="#FFFFFF"><div align="center" class="style3"><B>เรื่อง</B></div></font></td>
<td width="10%" class="unnamed2"><font color="#FFFFFF"><div align="center" class="style3"><B>วัน-เดือน-ปี</B></div></font></td>
<td width="25%" class="unnamed2"><font color="#FFFFFF"><div align="center" class="style3"><B>จาก</B></div></font></td>
<td width="10%" class="unnamed2"><font color="#FFFFFF"><div align="center" class="style3"><B>ถึง</B></div></font></td>
</tr>
<?
$i=1;
while($objResult = mysql_fetch_array($objQuery))
{
if ($i%2==0)
{
?><tr height=25 bgcolor="#FFFFC6" class="unnamed1"><?
} else {
?><tr height=25 bgcolor="ffffff" class="unnamed1"><?
} ?>
<td class="unnamed2"><div align="left"> <?echo thainumDigit("$objResult[id]"); ?></div></td>
<td class="unnamed2"><div align="left"> <?echo thainumDigit("$objResult[tabain]"); ?></div></td>
<td class="unnamed2"><div align="left"><A HREF="popup.php?name=tkk2&file=readtkk2&id=<? echo"$objResult[id]"; ?> " onclick="return hs.htmlExpand(this, { contentId: 'highslide-html', objectType: 'iframe', objectWidth: 800, objectHeight: 600} )" class="highslide"> <?echo thainumDigit("$objResult[topic]"); ?></A>
</div></td>
</td><td class="unnamed2"><div align="center"><?echo thainumDigit(thai_date_fullmonth(strtotime("$objResult[date]")));?></div></td>
<td class="unnamed2"><div align="left"> <? echo thainumDigit("$objResult[school]"); ?></div></td>
<td class="unnamed2"><div align="left"> <?=thainumDigit(WEB_AREA);?> </div></td>
</tr>
<?
$i++;
}
?>
</table>
<table width="100%" border="0" align="center" c bordercolor="#999999" bordercolordark="#FFFFFF">
<tr height=25>
<td>
</B>
</td>
</tr>
</table>
</body>
</html>