|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /home/pathumthani_integration/integration/application/industry/ |
Upload File : |
<? session_start() ;
if($_GET['status']!='executive'){
header("Content-Type: text/html; charset=windows-874");
}
set_time_limit(0) ;
include_once("../../config/config_epm.inc.php");
//include_once("manage_user.inc.php");
?>
<!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=windows-874" />
<title><?=$title_name?></title>
<script>
function GetXmlHttpObject(){
var xmlHttp = null;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp = new XMLHttpRequest();
}
catch ( e )
{
// Internet Explorer
try
{
xmlHttp = new ActiveXObject( "Msxml2.XMLHTTP" );
}
catch ( e )
{
xmlHttp = new ActiveXObject( "Microsoft.XMLHTTP" );
}
}
return xmlHttp;
}
function seq(){
var d = new Date();
return d.getSeconds();
}
function setHtmlIframe( url ){
obj_data = new GetXmlHttpObject();
document.getElementById("div_html").innerHTML = '<center><img src="../industry/img/loading1.gif" align="absmiddle" border="0" /></center>';
arrSplit = url.split("&");
for(i=0;i<arrSplit.length;i++){
url = url.replace('&','*');
}
var urldata = '../industry/ajax.getfile_www_dbd.php?url='+url+'&seq='+seq();
obj_data.open( "GET", urldata, true );
obj_data.onreadystatechange = function(){
if( obj_data.readyState == 4 ){
strData = obj_data.responseText;
strData = strData.replace('height="100%" ',' ');
strData = strData.replace('height="131" ',' ');
strData = strData.replace('height="35" ',' ');
strData = strData.replace('height="30" ',' ');
document.getElementById("div_html").innerHTML = strData;
var tagMeta = document.getElementById('td_detail').getElementsByTagName ( 'a' );
for(i=0;i<tagMeta.length;i++){
//alert(tagMeta[i].href);
tagMeta[i].href = ckType_file(tagMeta[i].href );
}
var tagMetaIm = document.getElementById('td_detail').getElementsByTagName ( 'img' );
for(i=0;i<tagMetaIm.length;i++){
//alert(tagMeta[i].href);
tagMetaIm[i].src = ckType_file_image(tagMetaIm[i].src );
}
displayID("main-nav");
displayID("td_logo");
displayID("td_menu_link");
displayID("section_map");
displayID("td_footer");
}
}
obj_data.send( null );
}
function ckType_file( href ){
flileVar = href;
fileText = "";
if(flileVar!=""){
arrFile = flileVar.split("/");
num_len = arrFile.length;
fileName = arrFile[(num_len-1)].toLowerCase();
arrName = fileName.split(".");
fileType = arrName[(arrName.length-1)].toLowerCase();
if(fileType.substring(0,3) == "php"){
fileText = "javascript:setHtmlIframe('http://www.dbd.go.th/mainsite/"+fileName+"');";
}else{
arrFolder = flileVar.split("fileadmin");
fileText = "http://www.dbd.go.th/mainsite/fileadmin"+arrFolder[1];
}
}
return fileText;
}
function ckType_file_image( src ){
flileVar = src;
fileText = "";
if(flileVar!=""){
arrFile = flileVar.split("/");
num_len = arrFile.length;
fileName = arrFile[(num_len-1)].toLowerCase();
arrName = fileName.split(".");
fileType = arrName[(arrName.length-1)].toLowerCase();
if(fileType.substring(0,3) == "gif"){
arrFolder = flileVar.split("fileadmin");
fileText = "http://www.dbd.go.th/mainsite/fileadmin"+arrFolder[1];
}
}
return fileText;
}
function seq(){
var d = new Date();
return d.getSeconds();
}
function displayID(my_id){
document.getElementById(my_id).style.display = "none";
}
</script>
<style>
#div_html table tr td{
<?
if($_GET['status']!='executive'){
?>
background-color:#FFFFFF;
<? }?>
}
.main-nav{
display:none;
height:0px;
}
.td_menu_link{
display:none;
height:0px;
}
.th02b{
text-align:left;
}
.bar_footer{
display:none;
height:0px;
}
.label_normal3{
display:none;
height:0px;
}
</style>
</head>
<body onload="setHtmlIframe('http://www.dbd.go.th/mainsite/index.php?id=232&styear=2553&stid=51&no_cache=1');">
<?
if($_GET['status']!='executive'){
include("header.php");
}
?>
<br/>
<CENTER>
<fieldset style="width:1000px;" >
<legend> <strong>แบบรายงานสรุปผล อัตราการขยายตัวของการจดทะเบียนนิติบุคคล</strong></legend>
<table width="1000" border="0" align="center">
<tr>
<td align="left">
<DIV id="div_html" ></DIV>
</td>
</tr>
</table>
</fieldset>
</CENTER>
</body>
</html>