Exemplo n.º 1
0
                <th style="width: 3%; text-align:center">วัน/เดือน/ปี</br>ที่ได้มา</th>
                <th style="width: 8%; text-align:center">เลขครุภัณฑ์</th>
                <th style="width: 15%; text-align:center">ชื่อครุภัณฑ์</th>
                <th style="width: 5%; text-align:center">ราคา</th>
                <th style="width: 10%; text-align:center">ใช้ประจำหน่วยงาน</th>
                <th style="width: 5%; text-align:center">สถานะ</th>
                <th style="width: 5%; text-align:center">ตรวจเช็ค</th>
            </tr>
        </thead>
            <tbody>
            
<?php 
$no = 1;
$assetYear = $_GET['assetYear'];
//$yearChk = $assetYear-543;
$arrYear = $checkAsset->getCheckAssetByYear($assetYear);
$arrAll = $checkAsset->getCheckAsset();
if ($assetYear == null) {
    $cmd = $arrAll;
} else {
    if ($assetYear != null) {
        if ($assetYear == "0000") {
            $cmd = $arrAll;
        } else {
            $cmd = $arrYear;
        }
    } else {
        $cmd = $arrAll;
    }
}
$page = $_GET['selectedPage'];
<?php

include_once "../class/Config.php";
include_once "../class/CheckAsset.php";
$assetChk = new CheckAsset();
$db = new Config();
$year = $_GET['assetYear'];
$yearS = $year - 543;
$arrYear = $assetChk->getCheckYear($year);
$arrCheck = $assetChk->getCheckAssetByYear($year);
header("Content-Type: application/vnd.ms-excel");
header('Content-Disposition: attachment; filename="AssetY.xls"');
#ชื่อไฟ
?>


<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">
<html>
<head>

<meta http-equiv="Content-type" content="text/html;charset=utf-8" />
<link href="../css/ReportStyle.css" rel="stylesheet" type="text/css" />
</head>
<body >

<style>
@import “css/ReportStyle.css”;
</style>
Exemplo n.º 3
0
                <th style="width: 3%; text-align:center">วัน/เดือน/ปี</br>ที่ได้มา</th>
                <th style="width: 8%; text-align:center">เลขครุภัณฑ์</th>
                <th style="width: 15%; text-align:center">ชื่อครุภัณฑ์</th>
                <th style="width: 5%; text-align:center">ราคา</th>
                <th style="width: 10%; text-align:center">ใช้ประจำหน่วยงาน</th>
                <th style="width: 5%; text-align:center">สถานะ</th>
                <th style="width: 5%; text-align:center">ตรวจเช็ค</th>
            </tr>
        </thead>
            <tbody>
            
<?php 
$no = 1;
$assetYear = $_GET['assetYear'];
$yearChk = $assetYear - 543;
$arrYear = $checkAsset->getCheckAssetByYear($yearChk);
$arrAll = $checkAsset->getCheckAsset();
if ($assetYear == null) {
    $cmd = $arrAll;
} else {
    if ($assetYear != null) {
        if ($assetYear == "0000") {
            $cmd = $arrAll;
        } else {
            $cmd = $arrYear;
        }
    } else {
        $cmd = $arrAll;
    }
}
while ($res = $db->fetch_array($cmd)) {