File "index3_k.php"

Full path: /www/hm-genkai/index3_k.php
File size: 1.39 KiB (1425 bytes)
MIME-type: text/html
Charset: utf-8

Download   Open   Back

<HTML>
<HEAD>
<META Http-Equiv="Content-Type" Content="text/html;charset=UTF-8">
<TITLE>体調管理一覧表</TITLE>
</HEAD>

<BODY>
<CENTER>
<B>
<FONT SIZE=3>
体調管理一覧表<BR>
【五洋建設株式会社】<BR>
</FONT>
</B>
</CENTER>

<hr>
<?php
print "<TABLE BORDER='1'><TR ALIGN='center'><TD WIDTH='200'>データの登録</TD><TD WIDTH=600'>CSV表示・出力</TD></TR>";
$fp_cp = fopen("./setting/link.csv","r");
$pwd_ = getcwd();
$base_path1 = "/www/hm-genkai_t/goyo_ksw/index.php";
$base_path2 = "/www/hm-genkai_t/goyo_ksw/index2.php";
$i = 0;

$top_path = explode("/",getcwd());
$ct = count($top_path) -1;


while ($c = fgets($fp_cp)) {
	$explode_tmp_c[$i] = explode(",",$c);
	$filename = $pwd_ ."/" .$explode_tmp_c[$i][2];
	if (!file_exists($filename))
	{
		print $filename;
		mkdir($filename , 0777);
		copy($base_path1, $filename ."/index.php");
		copy($base_path2, $filename ."/index2.php");
	}
	
	$url =  'https://' . $_SERVER['HTTP_HOST'] ."/" .$top_path[$ct] ."/" .$explode_tmp_c[$i][2]  ."/index2.php" ;
	
	print "<TR><TD>";
	print "<B><A HREF='./" .$explode_tmp_c[$i][2] ."/' target='_BLANK'>" .$explode_tmp_c[$i][1] ."</A></B>";
	print "</TD><TD>";
	print "<A HREF='./" .$explode_tmp_c[$i][2] ."/index2.php' target='_BLANK'>" .$url ."</A></B>";
	print "</TD></TR>";
	$i++;
}

print "</TABLE>";

?>

<HR>
<FONT SIZE=5>
<CENTER><I><B>
penta-ocean<BR>
<BR></B></I>
</CENTER>
</FONT>

</BODY>
</HTML>

PHP File Manager