| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/Menu กลุ่มงานเภสัช/ |
Upload File : |
<!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>
<!-- ¹ ù -->
<style>
<!--
a{text-decoration:none}
//.style55 {font-size: 16}
.style107 {
font-family: "TH SarabunPSK";
font-size: 40px;
color: #CC3333;
}
#Full_S {
border: 2px solid black;
padding: 25px;
background: "mountain.jpg";
background-repeat: no-repeat;
background-size: auto;
}
#CustomS {
border: 2px none;
padding: 25px;
background: url(img/Header1.jpg);
background-repeat: no-repeat;
background-size: 545px 100px;
background-position: center;
}
-->
</style>
<SCRIPT language=JavaScript>
var rate = 20; // Increase amount(The degree of the transmutation)
var obj; // The object which event occured in
var act = 0; // Flag during the action
var elmH = 0; // Hue
var elmS = 128; // Saturation
var elmV = 255; // Value
var clrOrg; // A color before the change
var TimerID; // Timer ID
if (navigator.appName.indexOf("Microsoft",0) != -1 && parseInt(navigator.appVersion) >= 4) {
Browser = true;
} else {
Browser = false;
}
if (Browser) {
document.onmouseover = doRainbowAnchor;
document.onmouseout = stopRainbowAnchor;
}
function doRainbow()
{
if (Browser && act != 1) {
act = 1;
obj = event.srcElement;
clrOrg = obj.style.color;
TimerID = setInterval("ChangeColor()",100);
}
}
function stopRainbow()
{
if (Browser && act != 0) {
obj.style.color = clrOrg;
clearInterval(TimerID);
act = 0;
}
}
function doRainbowAnchor()
{
if (Browser && act != 1) {
obj = event.srcElement;
while (obj.tagName != 'A' && obj.tagName != 'BODY') {
obj = obj.parentElement;
if (obj.tagName == 'A' || obj.tagName == 'BODY')
break;
}
if (obj.tagName == 'A' && obj.href != '') {
act = 1;
clrOrg = obj.style.color;
TimerID = setInterval("ChangeColor()",100);
}
}
}
function stopRainbowAnchor()
{
if (Browser && act != 0) {
if (obj.tagName == 'A') {
obj.style.color = clrOrg;
clearInterval(TimerID);
act = 0;
}
}
}
function ChangeColor()
{
obj.style.color = makeColor();
}
function makeColor()
{
if (elmS == 0) {
elmR = elmV; elmG = elmV; elmB = elmV;
}
else {
t1 = elmV;
t2 = (255 - elmS) * elmV / 255;
t3 = elmH % 60;
t3 = (t1 - t2) * t3 / 60;
if (elmH < 60) {
elmR = t1; elmB = t2; elmG = t2 + t3;
}
else if (elmH < 120) {
elmG = t1; elmB = t2; elmR = t1 - t3;
}
else if (elmH < 180) {
elmG = t1; elmR = t2; elmB = t2 + t3;
}
else if (elmH < 240) {
elmB = t1; elmR = t2; elmG = t1 - t3;
}
else if (elmH < 300) {
elmB = t1; elmG = t2; elmR = t2 + t3;
}
else if (elmH < 360) {
elmR = t1; elmG = t2; elmB = t1 - t3;
}
else {
elmR = 0; elmG = 0; elmB = 0;
}
}
elmR = Math.floor(elmR);
elmG = Math.floor(elmG);
elmB = Math.floor(elmB);
clrRGB = '#' + elmR.toString(16) + elmG.toString(16) + elmB.toString(16);
elmH = elmH + rate;
if (elmH >= 360)
elmH = 0;
return clrRGB;
}
</SCRIPT>
<!-- ᷡ¹ù-->
<style type="text/css">
<!--
.style11 {font-size: 12px}
.style25 {color: #990099}
-->
</style>
</head>
<body>
<?php
if (isset($_GET['items'])){
$item = $_GET['items'];
$LinkName = iconv("UTF-8","TIS-620",$item).'/';
?>
<div align="center" id="CustomS">
<h2><span class="style107"><strong><?php echo $LinkName;?></strong></span></h2>
</div>
<div align="center">
<table width="545" height="499" border="3">
<tr bordercolor="#FFFFFF">
<td width="541" height="489">
<table width="533" height="392" border="0">
<tr>
<td width ="35" > </td>
<td width="489">
<?php
$files = scandir($item);
foreach($files as $file) {
//if ($nAt=strpos($file,'.pdf') || $nAt=strpos($file,'.docx')) {
// $nAt=strpos($file,'.pdf');
//if ($nAt > 0 ) {
//$pname = iconv("tis-620","utf-8",$file);
// $pname = substr($file,0,$nAt);
$pname = substr($file,0);
$pname = iconv("UTF-8","TIS-620",$pname);
if (($file == ".") or ($file == "..")) continue;
//echo '998'.$LinkName.'<br>';
//echo '998'.$pname.'<br>';
//echo ' <td>';
echo '<img src="img/kob.gif" width="7" height="7" border="0" /><a href="'.$LinkName;
//echo $pname.'.pdf" class="style25" style="text-decoration: none;" target="_blank">'.$pname.'</a>';
echo $pname.'" class="style25" style="text-decoration: none;" target="_blank">'.$pname.'</a>';
echo '<br>';
//echo ' </td>';
//echo '</tr>';
}
?> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="44" colspan="2"><embed height="78" type="application/x-shockwave-flash" width="528" src="../Flash On web/footerflash4.swf" wmode="transparent"></embed></td>
</tr>
</table>
</td>
</tr>
</table>
<img src="img/Header1.jpg" width="547" height="30" /><br>
<img src="img/Footer.png" width="548" height="20" /></div>
<p align="center"><span class="style11">Copyright 2010 sumit@thaimit.com sattahip km.10 hospital.</span><br clear="all" />
<strong> </strong></p>
<?php
}
?>
</body>
</html>