base
@@ -0,0 +1,807 @@
|
||||
<?
|
||||
$serviceType = isset($_GET['service_type']) ? $_GET['service_type'] : $_POST['service_type'];
|
||||
if($serviceType == "") $serviceType = 1;
|
||||
|
||||
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>######## SYSTEM-HOSTING SERVICE STATUS ######## </title>
|
||||
<STYLE type=text/css>
|
||||
TD { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,±¼¸²Ã¼'; TEXT-DECORATION: none; }
|
||||
TR { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,±¼¸²Ã¼'; TEXT-DECORATION: none; }
|
||||
TABLE { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,±¼¸²Ã¼'; TEXT-DECORATION: none; line-height : 120%}
|
||||
INPUT { FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: 'ARIAL,±¼¸²Ã¼'; TEXT-DECORATION: none; line-height : 120%}
|
||||
}
|
||||
</STYLE>
|
||||
<meta http-equiv="Cache-Control" content="no-cache"/>
|
||||
<meta http-equiv="Expires" content="0"/>
|
||||
<meta http-equiv="Pragma" content="no-cache"/>
|
||||
<link rel="stylesheet" href="clockstyle.css" type="text/css">
|
||||
<style type="text/css">
|
||||
#tooltip {position:absolute;
|
||||
top:5;
|
||||
left:5;
|
||||
border:solid 3 ffccff;
|
||||
background:ffffcc;
|
||||
color:660066;
|
||||
font-size:9pt;
|
||||
width:580;
|
||||
height:20;
|
||||
padding:2;
|
||||
overflow:hidden;
|
||||
z-index:10;
|
||||
display:none;
|
||||
}
|
||||
</style>
|
||||
<? require "layer.js";?>
|
||||
<script language="javascript1.2" type="text/javascript" src="clock.js" ></script>
|
||||
</head>
|
||||
|
||||
<body onLoad="UpdateClocks()">
|
||||
<?
|
||||
|
||||
$sock = socket_create(AF_INET, SOCK_STREAM, 0);
|
||||
|
||||
|
||||
$sock = socket_create (AF_INET, SOCK_STREAM, SOL_TCP);
|
||||
socket_connect($sock, _IP, _PORT);
|
||||
echo "CLIENT >> socket connect to "._IP.":"._PORT."\n";
|
||||
$date = socket_read($sock, 4096);
|
||||
echo "CLIENT >> this time is $date \n";
|
||||
socket_close($sock);
|
||||
echo "CLIENT >> socket closed.\n";
|
||||
//socket_create() ;
|
||||
|
||||
$fp = @fsockopen("udp://{$server_addr[$i][0]}", $server_addr[$i][1], $errno, $errstr);
|
||||
phpinfo();
|
||||
exit;
|
||||
?>
|
||||
<form name="frm" action=<?=$_SERVER['PHP_SELF']?> method=POST>
|
||||
<input type="hidden" name="service_type" value="<?= $serviceType ?>">
|
||||
<table border="0" cellspacing="0" width="100%">
|
||||
<tr bgcolor=#003366 class="ratNavText">
|
||||
<td ID="Clock0" width="25%" > </td>
|
||||
<td ID="Clock1" width="25%" > </td>
|
||||
<td ID="Clock2" width="25%" > </td>
|
||||
<td ID="Clock3" width="25%" > </td>
|
||||
</tr>
|
||||
<tr bgcolor=#003366 class="ratNavText">
|
||||
<td ID="Clock4" width="25%" > </td>
|
||||
<td ID="Clock5" width="25%" > </td>
|
||||
<td ID="Clock6" width="25%" > </td>
|
||||
<td ID="Clock7" width="25%" > </td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table border="0" cellspacing="1" width="530" align="center">
|
||||
<tr align="center">
|
||||
<td> <h3>######## ICS STATUS ########<br>(222.122.136.110)</h3></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
require_once ("../inc/contact.html");
|
||||
?>
|
||||
<div id="tooltip" name="tooltip" width=400></div>
|
||||
<?
|
||||
/* <marquee id="tooltip" name="tooltip"></marquee>*/
|
||||
$server_addr[0][0] = "127.0.0.1";
|
||||
$server_addr[0][1] = "30001";
|
||||
$server_addr[0][2] = "KT-IDC";
|
||||
|
||||
$tot = count($server_addr);
|
||||
//echo "total server :".$tot."<br>";
|
||||
for($i=0; $i < $tot; $i++){
|
||||
//echo "server_addr = ".$server_addr[$i][0]."<br>";
|
||||
//echo "server_port = ".$server_addr[$i][1]."<br>";
|
||||
if($i%3 == 0) echo "<table align=\"center\"><tr>";
|
||||
|
||||
$fp = @fsockopen("udp://{$server_addr[$i][0]}", $server_addr[$i][1], $errno, $errstr);
|
||||
if (!$fp) {
|
||||
echo "ERROR: $errno - $errstr<br>\n";
|
||||
continue;
|
||||
} else {
|
||||
fwrite($fp,"GET_SERVSTATUS", 15);
|
||||
while(1) {
|
||||
$test2 = fread($fp, 2048);
|
||||
$test .= trim($test2);
|
||||
$j = strlen($test2);
|
||||
if($j < 1024) break;
|
||||
}
|
||||
fclose($fp);
|
||||
}
|
||||
//echo "Received Message Length : ".strlen($test);
|
||||
echo "<!-- TEST : $test -->";
|
||||
?>
|
||||
<td valign=top>
|
||||
<?
|
||||
$domain_name = "";
|
||||
$pt = new parsePipe();
|
||||
$test = $pt->nullTrim($test);
|
||||
$tmpArr = $pt->textArr($test);
|
||||
$serviceName = $pt->serviceName($test);
|
||||
$result = $pt->parseIt($tmpArr[$serviceType]);
|
||||
$tot_tr = $pt->countIt();
|
||||
|
||||
echo " <table border=1 cellpadding=0 cellspacing=0>\n";
|
||||
echo " <tr align=center>\n";
|
||||
for($k=0; $k<sizeof($serviceName); $k++) {
|
||||
echo " <td width='100' height='35'>\n";
|
||||
echo " <font size='2'>";
|
||||
if($serviceName[$k][1] != "dead") {
|
||||
echo "<img src=images/bu14.gif width=11 height=11>";
|
||||
} else {
|
||||
echo "<img src=images/bu15.gif width=11 height=11>";
|
||||
}
|
||||
echo " <a href='".$_SERVER['PHP_SELF']."?service_type=".$k."'>";
|
||||
if($serviceType==$k) echo "<b>";
|
||||
switch($serviceName[$k][0]){
|
||||
case 'INCOK' :
|
||||
echo "TRINEX";
|
||||
//$domain_name = $serviceName[$k][2];
|
||||
break;
|
||||
default :
|
||||
echo $serviceName[$k][0];
|
||||
//$domain_name = $serviceName[$k][2];
|
||||
}
|
||||
|
||||
if($serviceType==$k) echo "</b>";
|
||||
echo " </a>";
|
||||
echo " </font>";
|
||||
switch($serviceName[$k][0]){
|
||||
case '0UDISK' : echo "<br>(BD-RC01)"; break;
|
||||
case 'SORIBADA' : echo "<br>(BD-RC02)"; break;
|
||||
case 'RC003' : echo "<br>(BD-RC03)"; break;
|
||||
case 'RC004' : echo "<br>(BD-RC04)"; break;
|
||||
case 'ORGEL' : echo "<br>(BD-RC07)"; break;
|
||||
case 'EVENT' : echo "<br>(BD-RC05)"; break;
|
||||
case 'NCSOFT' : echo "<br>(BD-RC08)"; break;
|
||||
case 'KTINSIDE' : echo "<br>(BD-RC06)"; break;
|
||||
case 'FREEZONE' : echo "<br>(NS-RC01)"; break;
|
||||
case 'CACHE' : echo "<br>(BD-RC04)"; break;
|
||||
case 'CACHE2' : echo "(NS-RC02)"; break;
|
||||
case 'JJANGHARD' : echo "(NS-RC03)"; break;
|
||||
case 'INCOK' : echo "<br>(NS-RC04)"; break;
|
||||
case 'OLSOFT' : echo "<br>(NS-RC02)"; break;
|
||||
default :
|
||||
}
|
||||
echo " </td>\n";
|
||||
}
|
||||
echo " </tr>\n";
|
||||
echo " </table>\n";
|
||||
?>
|
||||
<table border=1 cellpadding=1 cellspacing=0>
|
||||
<tr height="60">
|
||||
<td colspan="14">
|
||||
<center><b>
|
||||
<font color="#000066" size="5">
|
||||
<?switch($serviceName[$serviceType][0]){
|
||||
case 'EVENT' : echo "EVENT (KTH PARAN)"; break;
|
||||
case 'INCOK' : echo "TRINEX"; break;
|
||||
default :
|
||||
echo $serviceName[$serviceType][0];
|
||||
}
|
||||
?>
|
||||
<br><br>
|
||||
</font>
|
||||
<font color="#000066" size="4">
|
||||
MNG SERVER IP: <?=$server_addr[$i][0]?>, PORT: <?=$server_addr[$i][1]?>
|
||||
(<?=$server_addr[$i][2]?>)
|
||||
</font>
|
||||
</b>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td width="75"><center><b><font color="#000066">Name</font></b></center></td>
|
||||
<td width="90"><center><b><font color="#000066">Server IP</font></b></center></td>
|
||||
<td width="25"><center><b><font color="#000066">Port</font></b></center></td>
|
||||
<td width="85"><center><b><font color="#000066">Status<br>Changed</font></b></center></td>
|
||||
<td width="85"><center><b><font color="#000066">Disk<br>Checked</font></b></center></td>
|
||||
<td width="110"><center><b><font color="#000066">Domain<br>(<?=$serviceName[$serviceType][2] ?>)</font></b></center></td>
|
||||
<td width="65"><center><b><font color="#000066">Total Disk</font></b></center></td>
|
||||
<td width="65"><center><b><font color="#000066">Used</font></b></center></td>
|
||||
<td width="65"><center><b><font color="#000066">Free</font></b></center></td>
|
||||
<td width="25"><center><b><font color="#000066">Upload</font>
|
||||
<img src="images/bu14.gif" width=11 height=11>norm<br>
|
||||
<img src="images/bu16_1.gif" width=11 height=11>disb<br>
|
||||
<img src="images/bu15.gif" width=11 height=11>fsck<br>
|
||||
</b>
|
||||
</center>
|
||||
</td>
|
||||
<td width="50"><center><b><font color="#000066">Disk Busy(Lq)</font></b></center></td>
|
||||
<td width="100"><center><b><font color="#000066">Traffic INB(Packets)</font></b></center></td>
|
||||
<td width="100"><center><b><font color="#000066">Traffic OUTB(Packets)</font></b></center></td>
|
||||
<td width="50"><center><b><font color="#000066">Conn EASTAB(TOT)</font></b></center></td>
|
||||
</tr>
|
||||
<?
|
||||
|
||||
$totalDisk = 0;
|
||||
$freeDisk = 0;
|
||||
$usedDisk = 0;
|
||||
$totalRTSCount = 0;
|
||||
$totalTrafficINB = 0;
|
||||
$totalPacketsINB = 0;
|
||||
$totalTrafficOUTB = 0;
|
||||
$totalPacketsOUTB = 0;
|
||||
$totalConnEstab = 0;
|
||||
$totalConnAll = 0;
|
||||
for($j=0; $j<$tot_tr; $j++){
|
||||
$add_alt = "";
|
||||
if (!strcmp($result[$j][20], "99FFFF")) {
|
||||
$add_alt = " (UPLOAD TARGET)";
|
||||
} else if ($result[$j][10] == 1) {
|
||||
$add_alt = " (UPLOAD MANUALLY DISABLED)";
|
||||
} else if ($result[$j][10] == 2) {
|
||||
$add_alt = " (FSCK RUNNING)";
|
||||
} else {
|
||||
$add_alt = "";
|
||||
}
|
||||
$alt_str =
|
||||
"[NAME] : ".
|
||||
$result[$j][2].
|
||||
" [STATUS] : ".
|
||||
$pt->translateIt($result[$j][0], 2).$add_alt.
|
||||
" [TYPE] : ".
|
||||
$pt->translateIt($result[$j][1], 0);
|
||||
$totalDisk += $result[$j][8];
|
||||
$freeDisk += $result[$j][9];
|
||||
$usedDisk += ($result[$j][8] - $result[$j][9]);
|
||||
|
||||
$result_used = 0;
|
||||
$result_used = $result[$j][8] - $result[$j][9];
|
||||
if ($result_used == 0)
|
||||
$result_used = "-";
|
||||
|
||||
if ($result[$j][1] == 2) {
|
||||
$totalRTSCount += 1;
|
||||
}
|
||||
|
||||
/* Packets INB */
|
||||
if ($result[$j][16] != '-') {
|
||||
$totalPacketsINB += $result[$j][16];
|
||||
}
|
||||
/* Traffic INB */
|
||||
if ($result[$j][17] != '-') {
|
||||
$totalTrafficINB += $result[$j][17];
|
||||
}
|
||||
/* Packets OUTB */
|
||||
if ($result[$j][18] != '-') {
|
||||
$totalPacketsOUTB += $result[$j][18];
|
||||
}
|
||||
/* Traffic OUTB */
|
||||
if ($result[$j][19] != '-') {
|
||||
$totalTrafficOUTB += $result[$j][19];
|
||||
}
|
||||
/* Connection Estblished */
|
||||
if ($result[$j][14] != '-') {
|
||||
$totalConnEstab += $result[$j][14];
|
||||
}
|
||||
/* Connection All */
|
||||
if ($result[$j][15] != '-') {
|
||||
$totalConnAll += $result[$j][15];
|
||||
}
|
||||
?>
|
||||
<span onmouseover="showtip('<?=$alt_str?>');" onmouseout="hidetip();">
|
||||
<tr>
|
||||
<td><?=$pt->translateIt($result[$j][0],1)?> <? /* =$pt->translateIt($result[$j][1],999) */ ?> <?=$pt->tailer($result[$j][2])?></td>
|
||||
<td align="center"><?=$result[$j][3]?></td>
|
||||
<td align="center"><?=$pt->translateIt($result[$j][4],4)?></td>
|
||||
<td align="center"><?=$pt->noYear(date("Y-m-d H:i:s", $result[$j][5]))?></td>
|
||||
<td align="center">
|
||||
<?
|
||||
if ($result[$j][6] == "-" || $result[$j][6] == "") {
|
||||
echo "-";
|
||||
} else {
|
||||
echo $pt->noYear(date("Y-m-d H:i:s", $result[$j][6]));
|
||||
}
|
||||
?></td>
|
||||
<td align="center"><?
|
||||
echo str_replace(".".$serviceName[$serviceType][2], "", $pt->translateIt($result[$j][7],7));
|
||||
?></td>
|
||||
<td align="center"><?=$pt->translateIt($result[$j][8],8)?></td>
|
||||
<td align="center"><?=$pt->translateIt($result_used,8)?></td>
|
||||
<td align="center" bgcolor="<?=$pt->translateIt($result[$j][20],100)?>"><?=$pt->translateIt(trim($result[$j][9]), 8)?></td>
|
||||
<td align="center">
|
||||
<? if ($result[$j][10] == '-') {
|
||||
echo "-";
|
||||
} else if ($result[$j][10] == 0 &&
|
||||
$result[$j][11] == 0 &&
|
||||
$result[$j][12] == 0 &&
|
||||
$result[$j][13] == 0 &&
|
||||
$result[$j][14] == 0 &&
|
||||
$result[$j][15] == 0 &&
|
||||
$result[$j][16] == 0 &&
|
||||
$result[$j][17] == 0 &&
|
||||
$result[$j][18] == 0 &&
|
||||
$result[$j][19] == 0) {
|
||||
echo "-";
|
||||
} else {
|
||||
?>
|
||||
<?=$pt->translateIt($result[$j][10],10)?>
|
||||
<?
|
||||
if ($result[$j][11] > 2) {
|
||||
echo "<font color=\"red\"><b>";
|
||||
} else if ($result[$j][11] == 2) {
|
||||
echo "<font color=\"blue\"><b>";
|
||||
} else if ($result[$j][11] == 1) {
|
||||
echo "<font color=\"black\"><b>";
|
||||
} else {
|
||||
echo "<font color=\"black\">";
|
||||
}
|
||||
?>
|
||||
<?=$result[$j][11]?>
|
||||
</font>
|
||||
<? } ?>
|
||||
<td align="center">
|
||||
<? if ($result[$j][12] == '-') {
|
||||
echo "-";
|
||||
} else if ($result[$j][10] == 0 &&
|
||||
$result[$j][11] == 0 &&
|
||||
$result[$j][12] == 0 &&
|
||||
$result[$j][13] == 0 &&
|
||||
$result[$j][14] == 0 &&
|
||||
$result[$j][15] == 0 &&
|
||||
$result[$j][16] == 0 &&
|
||||
$result[$j][17] == 0 &&
|
||||
$result[$j][18] == 0 &&
|
||||
$result[$j][19] == 0) {
|
||||
echo "-";
|
||||
} else {
|
||||
?>
|
||||
<?
|
||||
if ($result[$j][12] >= 20) {
|
||||
echo "<font color=\"red\"><b>";
|
||||
} else if ($result[$j][12] >= 10) {
|
||||
echo "<font color=\"blue\"><b>";
|
||||
} else {
|
||||
echo "<font color=\"black\">";
|
||||
}
|
||||
?>
|
||||
<?=$result[$j][13]?>%(<?=$result[$j][12]?>)</td>
|
||||
<?
|
||||
echo "</font>";
|
||||
?>
|
||||
<? } ?>
|
||||
<td align="center">
|
||||
<? if ($result[$j][17] == '-') {
|
||||
echo "-";
|
||||
} else if ($result[$j][10] == 0 &&
|
||||
$result[$j][11] == 0 &&
|
||||
$result[$j][12] == 0 &&
|
||||
$result[$j][13] == 0 &&
|
||||
$result[$j][14] == 0 &&
|
||||
$result[$j][15] == 0 &&
|
||||
$result[$j][16] == 0 &&
|
||||
$result[$j][17] == 0 &&
|
||||
$result[$j][18] == 0 &&
|
||||
$result[$j][19] == 0) {
|
||||
echo "-";
|
||||
} else {
|
||||
?>
|
||||
<?=$pt->translateIt($result[$j][17],3)?>(<?=$result[$j][16]?>)</td>
|
||||
<? } ?>
|
||||
<td align="center">
|
||||
<? if ($result[$j][19] == '-') {
|
||||
echo "-";
|
||||
} else if ($result[$j][10] == 0 &&
|
||||
$result[$j][11] == 0 &&
|
||||
$result[$j][12] == 0 &&
|
||||
$result[$j][13] == 0 &&
|
||||
$result[$j][14] == 0 &&
|
||||
$result[$j][15] == 0 &&
|
||||
$result[$j][16] == 0 &&
|
||||
$result[$j][17] == 0 &&
|
||||
$result[$j][18] == 0 &&
|
||||
$result[$j][19] == 0) {
|
||||
echo "-";
|
||||
} else {
|
||||
?>
|
||||
<?=$pt->translateIt($result[$j][19],3)?>(<?=$result[$j][18]?>)</td>
|
||||
<? } ?>
|
||||
<td align="center">
|
||||
<? if ($result[$j][14] == '-') {
|
||||
echo "-";
|
||||
} else if ($result[$j][10] == 0 &&
|
||||
$result[$j][11] == 0 &&
|
||||
$result[$j][12] == 0 &&
|
||||
$result[$j][13] == 0 &&
|
||||
$result[$j][14] == 0 &&
|
||||
$result[$j][15] == 0 &&
|
||||
$result[$j][16] == 0 &&
|
||||
$result[$j][17] == 0 &&
|
||||
$result[$j][18] == 0 &&
|
||||
$result[$j][19] == 0) {
|
||||
echo "-";
|
||||
} else {
|
||||
?>
|
||||
<?
|
||||
if ($result[$j][14] >= 100) {
|
||||
echo "<font color=\"red\"><b>";
|
||||
} else if ($result[$j][14] >= 50) {
|
||||
echo "<font color=\"blue\"><b>";
|
||||
} else {
|
||||
echo "<font color=\"black\">";
|
||||
}
|
||||
?>
|
||||
<?=$result[$j][14]?>(<?=$result[$j][15]?>)
|
||||
<?
|
||||
echo "</font>";
|
||||
?>
|
||||
<? } ?>
|
||||
</td>
|
||||
</tr>
|
||||
</span>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td align="center" colspan="4"> </b></td>
|
||||
<td align="center" colspan="1"><b>Storage Total</b></td>
|
||||
<td align="center" colspan="1"><b>RTS Total : <?=$totalRTSCount?></b></td>
|
||||
<td align="center"><?= ($totalDisk == "") ? "-" : $pt->translateIt($totalDisk, 9)?></td>
|
||||
<td align="center"><?= ($totalDisk == "") ? "-" : $pt->translateIt($usedDisk, 9)?></td>
|
||||
<td align="center"><?= ($totalDisk == "") ? "-" : $pt->translateIt($freeDisk, 9)?></td>
|
||||
<td align="center" colspan="2"><b>Network Total</b></td>
|
||||
<td align="center" colspan="1">
|
||||
<? if ($totalTrafficINB > 0) { ?>
|
||||
<?=$pt->translateIt($totalTrafficINB,30)?>B(<?=$pt->translateIt($totalPacketsINB,30)?>p)
|
||||
<? } else { ?>
|
||||
-
|
||||
<? } ?>
|
||||
</td>
|
||||
<td align="center" colspan="1">
|
||||
<? if ($totalTrafficOUTB > 0) { ?>
|
||||
<?=$pt->translateIt($totalTrafficOUTB,30)?>B(<?=$pt->translateIt($totalPacketsOUTB,30)?>p)
|
||||
<? } else { ?>
|
||||
-
|
||||
<? } ?>
|
||||
</td>
|
||||
<td align="center" colspan="1">
|
||||
<? if ($totalConnEstab > 0) { ?>
|
||||
<?=$totalConnEstab?>(<?=$totalConnAll?>)
|
||||
<? } else { ?>
|
||||
-
|
||||
<? } ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table></td>
|
||||
<?
|
||||
if($i%3 == 2) echo "</table></tr>"; //
|
||||
}
|
||||
?>
|
||||
<table>
|
||||
</table>
|
||||
<?
|
||||
|
||||
////////////////////
|
||||
//Print REFRESHER
|
||||
////////////////////
|
||||
|
||||
extract($_POST);
|
||||
|
||||
$refresh_rate = $_REQUEST['refresh_rate'];
|
||||
|
||||
if($refresh_rate<1 || $refresh_rate>1000)
|
||||
$refresh_rate = 60;
|
||||
|
||||
?>
|
||||
<br>
|
||||
<table align="center">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
Refresh Rate :
|
||||
<input type=text name=refresh_rate value=<?=$refresh_rate?>>
|
||||
<input type=submit value=SET>
|
||||
(MIN : 1, MAX : 1000)
|
||||
<input type="hidden" name="chk" value="0">
|
||||
</form>
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td align=right>
|
||||
<form action=<?=$_SERVER['PHP_SELF']?> method=POST>
|
||||
<input type="hidden" name="service_type" value="<?= $serviceType?>">
|
||||
<input type=hidden name=refresh_rate value=30>
|
||||
<input type=submit value=RESET(30)>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<script language="javascript" type="text/javascript" src="tooltip.js" ></script>
|
||||
<script language=javascript>
|
||||
function showtip(text) {
|
||||
tooltip.innerText=text;
|
||||
tooltip.style.display="inline";
|
||||
}
|
||||
function hidetip() {
|
||||
tooltip.style.display="none";
|
||||
}
|
||||
function movetip() {
|
||||
tooltip.style.pixelTop=event.y+document.body.scrollTop;
|
||||
tooltip.style.pixelLeft=event.x+document.body.scrollLeft + 10;
|
||||
}
|
||||
document.onmousemove=movetip;
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<META http-equiv="refresh" content="<?=$refresh_rate?>; url=<?=$PHP_SELF?>?refresh_rate=<?=$refresh_rate?>&service_type=<?= $serviceType ?>">
|
||||
<?
|
||||
########
|
||||
#CLASSES
|
||||
########
|
||||
class parsePipe {
|
||||
var $tot_line;
|
||||
|
||||
function parseIt($givenText){
|
||||
$cnt = 0;
|
||||
$minValue = 0;
|
||||
$maxValue = 0;
|
||||
$minLevel = 1000;
|
||||
$tmp_arr = array();
|
||||
$temp_arr = explode("\r\n", $givenText);
|
||||
$result_arr[$i][9] = "";
|
||||
$this->tot_line = count($temp_arr) == 1 ? 0 : count($temp_arr) - 1;
|
||||
for($i=0; $i < $this->tot_line; $i++){
|
||||
if($temp_arr[$i]!='') {
|
||||
$result_arr[$i] = explode("|", $temp_arr[$i]);
|
||||
$result_arr[$i][20] = "";
|
||||
$tmp_arr[$i] = ($result_arr[$i][9] == '' || $result_arr[$i][9] == '-') ? 0 : $this->nullTrim($result_arr[$i][9]);
|
||||
$result_arr[$i][8] = $this->nullTrim($result_arr[$i][8]);
|
||||
$result_arr[$i][9] = $this->nullTrim($result_arr[$i][9]);
|
||||
$result_arr[$i][10] = $this->nullTrim($result_arr[$i][10]);
|
||||
|
||||
/*
|
||||
if($result_arr[$i][9] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
|
||||
if($cnt == 0) {
|
||||
$minValue = $result_arr[$i][9];
|
||||
$cnt++;
|
||||
}
|
||||
if($minValue > $result_arr[$i][9]) {
|
||||
$minValue = $result_arr[$i][9];
|
||||
}
|
||||
}
|
||||
*/
|
||||
if ($result_arr[$i][11] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
|
||||
if ($minLevel > $result_arr[$i][11]) {
|
||||
$minLevel = $result_arr[$i][11];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for ($i = 0; $i < $tot_tr; $i++) {
|
||||
if ($result_arr[$i][11] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0 && $result_arr[$i][11] <= $minLevel) {
|
||||
if($result_arr[$i][9] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
|
||||
if($cnt == 0) {
|
||||
$minValue = $result_arr[$i][9];
|
||||
$cnt++;
|
||||
}
|
||||
if($minValue > $result_arr[$i][9]) {
|
||||
$minValue = $result_arr[$i][9];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//echo "minLevel $minLevel minValue $minValue<br>";
|
||||
$cnt = 0;
|
||||
arsort($tmp_arr);
|
||||
reset($tmp_arr);
|
||||
|
||||
while (list ($key, $val) = each ($tmp_arr)) {
|
||||
//echo "$key = $val<br>";
|
||||
if($val != 0) {
|
||||
if($cnt == 0) {
|
||||
if ($minLevel < $result_arr[$key][11] ||
|
||||
$result_arr[$key][10] > 0) {
|
||||
$result_arr[$key][20] = "yellow";//$maxValue;
|
||||
} else {
|
||||
//echo "11 ".$result_arr[$key][11]." 10 ".$result_arr[$key][10]."<br>";
|
||||
$maxValue = $val;
|
||||
$result_arr[$key][20] = "99FFFF";
|
||||
$cnt++;
|
||||
}
|
||||
} else {
|
||||
//if($minValue == $val) {
|
||||
if($val < (2 * 1024 * 1024 * 1024 * 10)) {
|
||||
$result_arr[$key][20] = "red";
|
||||
} else if(($maxValue - $val) < (1024 * 1024 * 1024) &&
|
||||
$minLevel == $result_arr[$key][11]) {
|
||||
//echo "1GB Highed<br>";
|
||||
//echo "minLevel $minLevel maxValue $maxValue<br>";
|
||||
$result_arr[$key][20] = "99FFFF";
|
||||
} else {
|
||||
//echo "1GB Lowed<br>";
|
||||
$result_arr[$key][20] = "yellow";//$maxValue;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$result_arr[$key][20] = "white";
|
||||
}
|
||||
}
|
||||
return $result_arr;
|
||||
}
|
||||
|
||||
function countIt(){
|
||||
return $this->tot_line;
|
||||
}
|
||||
|
||||
function translateIt($parsedText, $type){
|
||||
if($parsedText == '') return;
|
||||
|
||||
$eServerType = array('RC', 'STAT', 'RTS', 'RCTS', 'RCDB', 'WWW', 'CCDB');
|
||||
/*$eStatus = array('<img src=images/bu16_1.gif width=11 height=11>UNKNOWN',
|
||||
'<img src=images/bu14.gif width=11 height=11>ALIVE',
|
||||
'<img src=images/bu15.gif width=11 height=11>DEAD');*/
|
||||
|
||||
$eStatus = array('<img src=images/bu16_1.gif width=11 height=11>',
|
||||
'<img src=images/bu14.gif width=11 height=11>',
|
||||
'<img src=images/bu15.gif width=11 height=11>');
|
||||
$eStatusUP = array('<img src=images/bu14.gif width=11 height=11>',
|
||||
'<img src=images/bu16_1.gif width=11 height=11>',
|
||||
'<img src=images/bu15.gif width=11 height=11>');
|
||||
$eStatusChar = array('UNKNOWN', 'ALIVE', 'DEAD');
|
||||
switch($type){
|
||||
case 0:
|
||||
return $eServerType[$parsedText];
|
||||
return '';
|
||||
case 1:
|
||||
return $eStatus[$parsedText];
|
||||
case 2:
|
||||
return $eStatusChar[$parsedText];
|
||||
case 3:
|
||||
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
|
||||
else {
|
||||
if (trim($parsedText) / 1024 / 1024 > 1024) {
|
||||
return sprintf("<b>%.2fGB</b>",
|
||||
trim($parsedText) / 1024 / 1024 / 1024 );
|
||||
} else {
|
||||
if (trim($parsedText) / 1024 > 1024) {
|
||||
if (trim($parsedText) / 1024 / 1024 > 10) {
|
||||
return sprintf("<font color=\"blue\"><b>%.2fMB</b></font>",
|
||||
trim($parsedText) / 1024 / 1024 );
|
||||
} else {
|
||||
return sprintf("<b>%.2fMB</b>",
|
||||
trim($parsedText) / 1024 / 1024 );
|
||||
}
|
||||
} else {
|
||||
if (trim($parsedText) > 1024) {
|
||||
return sprintf("%.2fKB",
|
||||
trim($parsedText) / 1024 );
|
||||
} else {
|
||||
return sprintf("%dB",
|
||||
trim($parsedText));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
case 8:
|
||||
if(trim($parsedText) == "-" || $parsedText == "") return "-";
|
||||
else return sprintf("%.2lfG", (trim($parsedText) / 1024) / 1024 / 1024);
|
||||
case 9:
|
||||
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
|
||||
else {
|
||||
if (trim($parsedText) / 1024 / 1024 / 1024 > 1024) {
|
||||
return sprintf("%.2fT", trim($parsedText) / 1024 / 1024 / 1024 / 1024);
|
||||
} else
|
||||
return sprintf("%.2fG", trim($parsedText) / 1024 / 1024 / 1024);
|
||||
}
|
||||
case 10:
|
||||
return $eStatusUP[$parsedText];
|
||||
case 30:
|
||||
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
|
||||
else {
|
||||
if (trim($parsedText) / 1024 / 1024 > 1024) {
|
||||
return sprintf("%.2fG",
|
||||
trim($parsedText) / 1024 / 1024 / 1024 );
|
||||
} else {
|
||||
if (trim($parsedText) / 1024 > 1024) {
|
||||
return sprintf("%.2fM",
|
||||
trim($parsedText) / 1024 / 1024 );
|
||||
} else {
|
||||
if (trim($parsedText) > 1024) {
|
||||
return sprintf("%.2fK",
|
||||
trim($parsedText) / 1024 );
|
||||
} else {
|
||||
return sprintf("%d",
|
||||
trim($parsedText));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
default:
|
||||
return $parsedText;
|
||||
}
|
||||
}
|
||||
|
||||
function nullTrim($tmp_str)
|
||||
{
|
||||
$return_str = "";
|
||||
$maxLength = strlen($tmp_str);
|
||||
|
||||
for($i=0 ; $i < $maxLength ; $i++) {
|
||||
if(ord(substr($tmp_str, $i, 1)) != 0 || $tmp_str != " ") {
|
||||
$return_str .= substr($tmp_str, $i, 1);
|
||||
}
|
||||
}
|
||||
return $return_str;
|
||||
}
|
||||
|
||||
function textArr($text)
|
||||
{
|
||||
$cnt = -1;
|
||||
$tmp_cnt = 0;
|
||||
$str_arr = array();
|
||||
$tmp_search_str = "";
|
||||
$temp_arr = explode("\r\n", $text);
|
||||
|
||||
for($i=0; $i<sizeof($temp_arr); $i++) {
|
||||
$split_str = explode("|", $temp_arr[$i]);
|
||||
$search_str = explode("_", $split_str[2]);
|
||||
if($tmp_search_str != $search_str[0]) {
|
||||
$tmp_search_str = $search_str[0];
|
||||
//$str_arr[$cnt][30] = $search_str[0];
|
||||
//echo $str_arr[$cnt][0]."<br>".$tmp_search_str."->".$cnt."<-"."<br>";
|
||||
$cnt++;
|
||||
}
|
||||
$str_arr[$cnt] .= $temp_arr[$i]."\r\n";
|
||||
|
||||
}
|
||||
return $str_arr;
|
||||
}
|
||||
|
||||
function serviceName($text)
|
||||
{
|
||||
$cnt = -1;
|
||||
$tmp_cnt = 0;
|
||||
$str_arr = array();
|
||||
$tmp_search_str = "";
|
||||
$temp_arr = explode("\r\n", $text);
|
||||
|
||||
for($i=0; $i<sizeof($temp_arr); $i++) {
|
||||
$split_str = explode("|", $temp_arr[$i]);
|
||||
$search_str = explode("_", $split_str[2]);
|
||||
|
||||
if(($tmp_search_str != $search_str[0])) {
|
||||
$tmp_search_str = $search_str[0];
|
||||
$cnt++;
|
||||
}
|
||||
$str_arr[$cnt][0] = $tmp_search_str;
|
||||
|
||||
if(($tmp_search_str == $search_str[0]) && $split_str[7] != "-") {
|
||||
$a = explode(".", $split_str[7]);
|
||||
if(!strncmp($a[3], "kr", 2)) {
|
||||
$b = $a[1].".".$a[2]."."."kr";
|
||||
} else if(!strncmp($a[2], "com", 3)) {
|
||||
$b = $a[1]."."."com";
|
||||
}
|
||||
$str_arr[$cnt][2] = $b;
|
||||
}
|
||||
if($split_str[0] == 2) {
|
||||
$str_arr[$cnt][1] = "dead";
|
||||
}
|
||||
// $str_arr[4][1] = "dead";
|
||||
// $str_arr[1][1] = "dead";
|
||||
}
|
||||
return $str_arr;
|
||||
}
|
||||
|
||||
function tailer($name)
|
||||
{
|
||||
$temp_arr = explode("_", $name);
|
||||
$temp_arr2 = substr($name, strlen($temp_arr[0]) + 1, strlen($name));
|
||||
return $temp_arr2;
|
||||
}
|
||||
|
||||
function noYear($date)
|
||||
{
|
||||
$date = substr($date, 5, 14);
|
||||
|
||||
return $date;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,261 @@
|
||||
BODY {
|
||||
BACKGROUND-POSITION: left top; FONT-SIZE: 8pt; BACKGROUND-IMAGE: url(/IcsImage/Web/Bg.gif); MARGIN: 0px 0px 0px 40px; COLOR: #666666; LINE-HEIGHT: 18px; BACKGROUND-REPEAT: repeat-x; FONT-FAMILY: "tahoma"; BACKGROUND-COLOR: #ffffff
|
||||
}
|
||||
TD {
|
||||
FONT-SIZE: 8pt; COLOR: #666666; LINE-HEIGHT: 18px; FONT-FAMILY: "tahoma"
|
||||
}
|
||||
SELECT {
|
||||
PADDING-RIGHT: 2px; PADDING-LEFT: 2px; FONT-SIZE: 8pt; PADDING-BOTTOM: 2px; COLOR: #666666; PADDING-TOP: 2px; FONT-FAMILY: tahoma
|
||||
}
|
||||
INPUT {
|
||||
PADDING-RIGHT: 2px; PADDING-LEFT: 2px; FONT-SIZE: 8pt; PADDING-BOTTOM: 2px; COLOR: #666666; PADDING-TOP: 2px; FONT-FAMILY: tahoma
|
||||
}
|
||||
TEXTAREA {
|
||||
PADDING-RIGHT: 2px; PADDING-LEFT: 2px; FONT-SIZE: 8pt; PADDING-BOTTOM: 2px; COLOR: #666666; PADDING-TOP: 2px; FONT-FAMILY: tahoma
|
||||
}
|
||||
SELECT {
|
||||
BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none
|
||||
}
|
||||
FORM {
|
||||
MARGIN: 0px
|
||||
}
|
||||
IMG {
|
||||
BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px
|
||||
}
|
||||
.Box01 {
|
||||
BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: #cccccc 1px solid; HEIGHT: 19px
|
||||
}
|
||||
.Box02 {
|
||||
BORDER-RIGHT: #f3f3f3 1px solid; BORDER-TOP: #f3f3f3 1px solid; BORDER-LEFT: #f3f3f3 1px solid; BORDER-BOTTOM: #f3f3f3 1px solid; BACKGROUND-COLOR: #f3f3f3
|
||||
}
|
||||
.Box03 {
|
||||
BORDER-RIGHT: #e3f1d4 1px solid; BORDER-TOP: #e3f1d4 1px solid; BORDER-LEFT: #e3f1d4 1px solid; BORDER-BOTTOM: #e3f1d4 1px solid; BACKGROUND-COLOR: #f5f8f2
|
||||
}
|
||||
.BoxSearch {
|
||||
BORDER-RIGHT: #b2cf54 1px solid; BORDER-TOP: #b2cf54 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #b2cf54 1px solid; WIDTH: 130px; COLOR: #607993; BORDER-BOTTOM: #b2cf54 1px solid; FONT-FAMILY: µ¸¿ò; LETTER-SPACING: -1px; HEIGHT: 18px
|
||||
}
|
||||
.BoxSearchS {
|
||||
BORDER-RIGHT: #b2cf54 1px solid; BORDER-TOP: #b2cf54 1px solid; FONT-SIZE: 11px; BORDER-LEFT: #b2cf54 1px solid; COLOR: #888888; BORDER-BOTTOM: #b2cf54 1px solid; FONT-FAMILY: µ¸¿ò; LETTER-SPACING: -1px; HEIGHT: 16px
|
||||
}
|
||||
.Txt01 {
|
||||
FONT-SIZE: 11px; FONT-FAMILY: "µ¸¿ò"; LETTER-SPACING: -1px
|
||||
}
|
||||
.Txt02 {
|
||||
FONT-SIZE: 11px; FONT-FAMILY: "Tahoma"; LETTER-SPACING: 0px
|
||||
}
|
||||
.Txt03 {
|
||||
FONT-SIZE: 11px; FONT-FAMILY: "µ¸¿ò"; LETTER-SPACING: -1px; padding-botto: 2px
|
||||
}
|
||||
.TxtTitle {
|
||||
FONT-WEIGHT: bold; FONT-SIZE: 12px; PADDING-TOP: 3px; FONT-FAMILY: "µ¸¿ò"; LETTER-SPACING: -1px
|
||||
}
|
||||
.Color01 {
|
||||
COLOR: #ffffff
|
||||
}
|
||||
.Color02 {
|
||||
COLOR: #83766b
|
||||
}
|
||||
.Color03 {
|
||||
COLOR: #1b3674
|
||||
}
|
||||
.Color04 {
|
||||
COLOR: #244798
|
||||
}
|
||||
.ColorName {
|
||||
COLOR: #7088a4
|
||||
}
|
||||
.ColorName02 {
|
||||
COLOR: #839933
|
||||
}
|
||||
.BgBbsLine {
|
||||
BACKGROUND-COLOR: #eaeaea
|
||||
}
|
||||
.BgBbs {
|
||||
BACKGROUND-COLOR: #f9fbf7
|
||||
}
|
||||
.BgBbsBottom {
|
||||
BACKGROUND-COLOR: #b1d444
|
||||
}
|
||||
#SubMnu01 {
|
||||
Z-INDEX: 2; LEFT: 0px; WIDTH: 260px; POSITION: absolute; TOP: 0px; HEIGHT: 100%
|
||||
}
|
||||
#Top {
|
||||
Z-INDEX: 1; LEFT: 0px; WIDTH: 100%; POSITION: absolute; TOP: 0px; HEIGHT: 130px
|
||||
}
|
||||
#Family {
|
||||
Z-INDEX: 1; LEFT: 800px; WIDTH: 180px; BOTTOM: 100px; POSITION: absolute; HEIGHT: 30px
|
||||
}
|
||||
A:link {
|
||||
FONT-SIZE: 8pt; COLOR: #666666; FONT-FAMILY: tahoma; TEXT-DECORATION: none
|
||||
}
|
||||
A:active {
|
||||
FONT-SIZE: 8pt; COLOR: #666666; FONT-FAMILY: tahoma; TEXT-DECORATION: none
|
||||
}
|
||||
A:visited {
|
||||
FONT-SIZE: 8pt; COLOR: #666666; FONT-FAMILY: tahoma; TEXT-DECORATION: none
|
||||
}
|
||||
A:hover {
|
||||
FONT-SIZE: 8pt; COLOR: #000000; FONT-FAMILY: tahoma; TEXT-DECORATION: none
|
||||
}
|
||||
A:unknown {
|
||||
FONT-SIZE: 9pt; COLOR: #666666; FONT-FAMILY: verdana; TEXT-DECORATION: none
|
||||
}
|
||||
A:unknown {
|
||||
FONT-SIZE: 9pt; COLOR: #666666; FONT-FAMILY: verdana; TEXT-DECORATION: none
|
||||
}
|
||||
A:unknown {
|
||||
FONT-SIZE: 9pt; COLOR: #666666; FONT-FAMILY: verdana; TEXT-DECORATION: none
|
||||
}
|
||||
A:unknown {
|
||||
FONT-SIZE: 9pt; COLOR: #000000; FONT-FAMILY: verdana; TEXT-DECORATION: none
|
||||
}
|
||||
A.Sdotum:link {
|
||||
FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: "µ¸¿ò"; LETTER-SPACING: -1px; TEXT-DECORATION: none
|
||||
}
|
||||
A.Sdotum:active {
|
||||
FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: "µ¸¿ò"; LETTER-SPACING: -1px; TEXT-DECORATION: none
|
||||
}
|
||||
A.Sdotum:visited {
|
||||
FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: "µ¸¿ò"; LETTER-SPACING: -1px; TEXT-DECORATION: none
|
||||
}
|
||||
A.Sdotum:hover {
|
||||
FONT-SIZE: 11px; COLOR: #666666; FONT-FAMILY: "µ¸¿ò"; LETTER-SPACING: -1px; TEXT-DECORATION: underline
|
||||
}
|
||||
.PT02 {
|
||||
PADDING-TOP: 2px
|
||||
}
|
||||
.PT05 {
|
||||
PADDING-TOP: 5px
|
||||
}
|
||||
.PT10 {
|
||||
PADDING-TOP: 10px
|
||||
}
|
||||
.PT20 {
|
||||
PADDING-TOP: 20px
|
||||
}
|
||||
.PT40 {
|
||||
PADDING-TOP: 40px
|
||||
}
|
||||
.PR05 {
|
||||
PADDING-RIGHT: 5px
|
||||
}
|
||||
.PR10 {
|
||||
PADDING-RIGHT: 10px
|
||||
}
|
||||
.PR20 {
|
||||
PADDING-RIGHT: 20px
|
||||
}
|
||||
.PR40 {
|
||||
PADDING-RIGHT: 40px
|
||||
}
|
||||
.PB02 {
|
||||
PADDING-BOTTOM: 2px
|
||||
}
|
||||
.PB05 {
|
||||
PADDING-BOTTOM: 5px
|
||||
}
|
||||
.PB10 {
|
||||
PADDING-BOTTOM: 10px
|
||||
}
|
||||
.PB20 {
|
||||
PADDING-BOTTOM: 20px
|
||||
}
|
||||
.PL05 {
|
||||
PADDING-LEFT: 5px
|
||||
}
|
||||
.PL10 {
|
||||
PADDING-LEFT: 10px
|
||||
}
|
||||
.PL20 {
|
||||
PADDING-LEFT: 20px
|
||||
}
|
||||
.PL40 {
|
||||
PADDING-LEFT: 40px
|
||||
}
|
||||
.PMargin {
|
||||
PADDING-RIGHT: 5px; PADDING-LEFT: 25px; PADDING-TOP: 13px
|
||||
}
|
||||
.PPath {
|
||||
PADDING-RIGHT: 5px; PADDING-LEFT: 10px
|
||||
}
|
||||
.PHeader {
|
||||
PADDING-RIGHT: 10px; PADDING-LEFT: 10px
|
||||
}
|
||||
.PInput {
|
||||
PADDING-BOTTOM: 6px; PADDING-TOP: 5px
|
||||
}
|
||||
.PBbs {
|
||||
PADDING-BOTTOM: 5px; PADDING-TOP: 6px
|
||||
}
|
||||
.PBbs02 {
|
||||
PADDING-BOTTOM: 2px; PADDING-TOP: 3px
|
||||
}
|
||||
.PBbsP {
|
||||
PADDING-BOTTOM: 10px; PADDING-TOP: 10px
|
||||
}
|
||||
.PBbsView {
|
||||
PADDING-BOTTOM: 25px; PADDING-TOP: 20px
|
||||
}
|
||||
.PCont {
|
||||
PADDING-LEFT: 0px
|
||||
}
|
||||
.PSearch {
|
||||
PADDING-RIGHT: 10px; HEIGHT: 35px
|
||||
}
|
||||
.PSub {
|
||||
PADDING-LEFT: 10px
|
||||
}
|
||||
.PTitle {
|
||||
PADDING-LEFT: 0px
|
||||
}
|
||||
.PTitleSub {
|
||||
PADDING-BOTTOM: 5px
|
||||
}
|
||||
.PTable {
|
||||
PADDING-LEFT: 10px
|
||||
}
|
||||
.HeightBottom {
|
||||
HEIGHT: 20px
|
||||
}
|
||||
.HeightTitle {
|
||||
HEIGHT: 70px
|
||||
}
|
||||
.HeightTitleBottom {
|
||||
HEIGHT: 15px
|
||||
}
|
||||
.HeightTitleBottom02 {
|
||||
HEIGHT: 10px
|
||||
}
|
||||
.HeightTitleBottom03 {
|
||||
HEIGHT: 25px
|
||||
}
|
||||
.HeightMnuBottom {
|
||||
HEIGHT: 30px
|
||||
}
|
||||
.HeightMnuBottom02 {
|
||||
HEIGHT: 25px
|
||||
}
|
||||
.HeightMnuSub {
|
||||
HEIGHT: 5px
|
||||
}
|
||||
.HeightImageBottom {
|
||||
HEIGHT: 25px
|
||||
}
|
||||
.HeightImageBottom02 {
|
||||
HEIGHT: 40px
|
||||
}
|
||||
.HeightImageBottom03 {
|
||||
HEIGHT: 20px
|
||||
}
|
||||
.HeightImageTop {
|
||||
HEIGHT: 10px
|
||||
}
|
||||
.HeightBr {
|
||||
HEIGHT: 25px
|
||||
}
|
||||
.HeightBr02 {
|
||||
HEIGHT: 4px
|
||||
}
|
||||
UNKNOWN {
|
||||
BACKGROUND-IMAGE: url(/IcsImage/MyIcs/HeaderLine.gif); BACKGROUND-REPEAT: no-repeat
|
||||
}
|
||||
@@ -0,0 +1,627 @@
|
||||
// flashWrite(파일경로, 가로, 세로, 아이디, 배경색, 변수, 윈도우모드)
|
||||
function flashWrite(url,w,h,id,bg,vars,win){
|
||||
|
||||
// 플래시 코드 정의
|
||||
var flashStr=
|
||||
"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
|
||||
"<param name='allowScriptAccess' value='always' />"+
|
||||
"<param name='movie' value='"+url+"' />"+
|
||||
"<param name='FlashVars' value='"+vars+"' />"+
|
||||
"<param name='wmode' value='"+win+"' />"+
|
||||
"<param name='menu' value='false' />"+
|
||||
"<param name='quality' value='high' />"+
|
||||
"<param name='bgcolor' value='"+bg+"' />"+
|
||||
"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
|
||||
"</object>";
|
||||
|
||||
document.write(flashStr);
|
||||
}
|
||||
|
||||
|
||||
// 오픈 팝업 스크립트 //
|
||||
function goPopup(url, name, _width, _height, _scrollbar){
|
||||
var screenX;
|
||||
var screenY;
|
||||
|
||||
if(navigator.appName == "Microsoft Internet Explorer") {
|
||||
screenX = window.screen.availWidth;
|
||||
screenY = window.screen.availHeight;
|
||||
}
|
||||
else {
|
||||
screenX = window.outerWidth;
|
||||
screenY = window.outerHeight;
|
||||
}
|
||||
|
||||
var h, w;
|
||||
w = (screenX - _width)/2;
|
||||
h = (screenY - _height)/2;
|
||||
|
||||
var newWin = window.open(url, name, 'left=' + w + ' top=' + h + ' width=' +_width + ' height=' + _height + ' scrollbars=' + _scrollbar + 'resize=no,toolbar=no,status=no,menu=no');
|
||||
|
||||
newWin.focus();
|
||||
|
||||
return newWin;
|
||||
}
|
||||
|
||||
/**************************************************************/
|
||||
/* Select Box */
|
||||
/**************************************************************/
|
||||
|
||||
var SS_ENV = new Object();
|
||||
SS_ENV.IE_Version = new Number(((window.navigator.appVersion.split('; '))[1].split(' '))[1]);
|
||||
SS_ENV.CR = new Object();
|
||||
SS_ENV.CR.ReverseBackground = '#E6E6E6';
|
||||
SS_ENV.CR.ReverseText = '#333333';
|
||||
SS_ENV.CR.Border = '#D4D4D4';
|
||||
SS_ENV.CR.BorderActive = '#D4D4D4';
|
||||
SS_ENV.ImgPrefix = '/IcsImage/Web/';
|
||||
SS_ENV.DefaultHeight =18;
|
||||
SS_ENV.ButtonWidth = 16;
|
||||
SS_ENV.OptionsDivStyle = ''
|
||||
+ ' display:none;'
|
||||
+ ' z-index:10;'
|
||||
+ ' position:absolute;'
|
||||
+ ' border:1 solid '+ SS_ENV.CR.Border+';'
|
||||
+ ' background-color:#ffffff;'
|
||||
+ ' scrollbar-face-color:#FFFFFF;'
|
||||
+ ' scrollbar-shadow-color:#ffffff;'
|
||||
+ ' scrollbar-highlight-color:#f3f3f3;'
|
||||
+ ' scrollbar-3dlight-color:#d9d9d9;'
|
||||
+ ' scrollbar-darkshadow-color:#d9d9d9;'
|
||||
+ ' scrollbar-track-color:#ffffff;'
|
||||
+ ' scrollbar-arrow-color:#ffffff;';
|
||||
SS_ENV.MouseStyle = 'cursor:hand;'//박스위에올라갔을때의 마우스모양
|
||||
SS_ENV.OptionNobrStyle = ''
|
||||
+ ' font-size:11px; padding-left:5;'
|
||||
+ ' font-family:verdana,dotum;';
|
||||
// SaySelect Variables
|
||||
var SS_VAR = new Object();
|
||||
SS_VAR.DivDummy = document.createElement("DIV");
|
||||
SS_VAR.SelectList = new Array();
|
||||
SS_VAR.bEventAttached = false;
|
||||
|
||||
var SS_CreatedElements = new Object();
|
||||
|
||||
function unloadObjects()
|
||||
{
|
||||
try {
|
||||
if (SS_VAR && SS_VAR.SelectList)
|
||||
{
|
||||
for (key in SS_VAR.SelectList)
|
||||
{
|
||||
if (SS_VAR.SelectList[key])
|
||||
{
|
||||
try {
|
||||
SS_VAR.SelectList[key].select.setAttribute('SS', 0);
|
||||
} catch (e) {};
|
||||
delete SS_VAR.SelectList[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {};
|
||||
}
|
||||
|
||||
attachEvent("onunload", unloadObjects);
|
||||
|
||||
function SS_create (srcHTML, ListMax, bAutoDetect)
|
||||
{
|
||||
// property
|
||||
this.ssID = SS_VAR.SelectList.length;
|
||||
this.bOriginalSelect = (bAutoDetect && SS_ENV.IE_Version < 5.5);
|
||||
this.select = SS_createElement(srcHTML);
|
||||
this.selectedIndex = this.select.selectedIndex;
|
||||
this.options = this.select.options;
|
||||
this.width = parseInt(this.select.style.width);
|
||||
this.height = (this.select.style.height) ? parseInt(this.select.style.height) : SS_ENV.DefaultHeight;
|
||||
this.OptionHeight = this.height ;
|
||||
this.bListDown = (ListMax && '-'==ListMax.toString().substr(0, 1)) ? false : true;
|
||||
this.ListMax = (!isNaN(parseInt(ListMax))) ? Math.abs(ListMax) : 100;
|
||||
|
||||
this.Table;
|
||||
this.TitleDiv;
|
||||
this.TitleTable;
|
||||
this.TitleWrapper;
|
||||
this.OptionsDiv;
|
||||
this.OptionsWrapper;
|
||||
this.OptionsTable;
|
||||
this.bFocused = false;
|
||||
this.bExpanded = false;
|
||||
this.bReverse = false;
|
||||
|
||||
// private method
|
||||
this.isThisEventToBeCanceled = SS_isThisEventToBeCanceled;
|
||||
this.toggleTitle = SS_toggleTitle;
|
||||
this.syncSelectedIndex = SS_syncSelectedIndex;
|
||||
this.toggleOptions = SS_toggleOptions;
|
||||
this.turnOnOption = SS_turnOnOption;
|
||||
this.turnOffOption = SS_turnOffOption;
|
||||
this.handleMousewheel = SS_handleMousewheel;
|
||||
this.handleOverTitle = SS_handleOverTitle;
|
||||
this.handleOutTitle = SS_handleOutTitle;
|
||||
this.handleOverOption = SS_handleOverOption;
|
||||
this.createTable = SS_createTable;
|
||||
this.createTitleDiv = SS_createTitleDiv;
|
||||
this.createOptionsDiv = SS_createOptionsDiv;
|
||||
this.createOptionTr = SS_createOptionTr;
|
||||
this.adjustOptionsDiv = SS_adjustOptionsDiv;
|
||||
this.syncOptions = SS_syncOptions;
|
||||
this.pressOption = SS_pressOption;
|
||||
this.moveOption = SS_moveOption;
|
||||
this.releaseOption = SS_releaseOption;
|
||||
this.pressTitle = SS_pressTitle;
|
||||
this.releaseTitle = SS_releaseTitle;
|
||||
|
||||
// public method
|
||||
this.display = SS_display;
|
||||
this.insertOption = SS_insertOption;
|
||||
this.deleteOption = SS_deleteOption;
|
||||
this.changeOption = SS_changeOption;
|
||||
|
||||
// initiate
|
||||
this.createTable();
|
||||
this.select.setAttribute('SS', this);
|
||||
if (!this.bOriginalSelect)
|
||||
this.select.onpropertychange = SS_handlePropertychange;
|
||||
SS_VAR.SelectList[this.ssID] = this;
|
||||
}
|
||||
function SS_display ()
|
||||
{
|
||||
document.write("<div id=SS_TempDiv></div>\n");
|
||||
document.all.SS_TempDiv.appendChild(this.Table);
|
||||
document.all.SS_TempDiv.removeNode();
|
||||
}
|
||||
function SS_write (srcHTML, ListMax, bAutoDetect)
|
||||
{
|
||||
var oSS = new SS_create(srcHTML, ListMax, bAutoDetect);
|
||||
oSS.display();
|
||||
return oSS;
|
||||
}
|
||||
function SS_insertOption (value, innerText, idx)
|
||||
{
|
||||
var NewOption = document.createElement("OPTION");
|
||||
SS_CreatedElements[SS_CreatedElements.length] = NewOption;
|
||||
this.options.add(NewOption, idx);
|
||||
NewOption.innerText = innerText;
|
||||
NewOption.value = value;
|
||||
|
||||
if (!this.bOriginalSelect)
|
||||
this.createOptionTr(idx);
|
||||
this.syncOptions();
|
||||
this.adjustOptionsDiv();
|
||||
this.syncSelectedIndex();
|
||||
}
|
||||
function SS_deleteOption (idx)
|
||||
{
|
||||
this.options.remove(idx);
|
||||
if (!this.bOriginalSelect)
|
||||
this.OptionsTable.deleteRow(idx);
|
||||
this.syncOptions();
|
||||
this.adjustOptionsDiv();
|
||||
this.syncSelectedIndex();
|
||||
}
|
||||
function SS_changeOption (idx, value, innerText)
|
||||
{
|
||||
this.options[idx].value = value;
|
||||
this.options[idx].innerText = innerText;
|
||||
this.syncOptions();
|
||||
this.syncSelectedIndex();
|
||||
}
|
||||
|
||||
function SS_insertOption1 (obj, value, innerText, idx)
|
||||
{
|
||||
var NewOption = document.createElement("OPTION");
|
||||
SS_CreatedElements[SS_CreatedElements.length] = NewOption;
|
||||
obj.options.add(NewOption, idx);
|
||||
NewOption.innerText = innerText;
|
||||
NewOption.value = value;
|
||||
|
||||
if (!obj.bOriginalSelect)
|
||||
obj.createOptionTr(idx);
|
||||
|
||||
obj.syncOptions();
|
||||
obj.adjustOptionsDiv();
|
||||
obj.syncSelectedIndex();
|
||||
}
|
||||
|
||||
|
||||
function SS_changeOption1 (obj, idx, value, innerText)
|
||||
{
|
||||
obj.options[idx].value = value;
|
||||
obj.options[idx].innerText = innerText;
|
||||
obj.syncOptions();
|
||||
obj.syncSelectedIndex();
|
||||
}
|
||||
|
||||
function SS_deleteOption1 (obj, idx)
|
||||
{
|
||||
obj.options.remove(idx);
|
||||
if (!obj.bOriginalSelect)
|
||||
obj.OptionsTable.deleteRow(idx);
|
||||
obj.syncOptions();
|
||||
obj.adjustOptionsDiv();
|
||||
obj.syncSelectedIndex();
|
||||
}
|
||||
|
||||
|
||||
function SS_cancelEvent (event)
|
||||
{
|
||||
event.cancelBubble = true;
|
||||
event.returnValue = false;
|
||||
}
|
||||
function SS_isThisEventToBeCanceled (event)
|
||||
{
|
||||
if ('object' == typeof(event)) {
|
||||
switch (event.type) {
|
||||
case 'mousedown':
|
||||
if (!(event.button & 1)) return true;
|
||||
break;
|
||||
case 'mouseup':
|
||||
if (!(event.button & 1)) return true;
|
||||
if (SS_ENV.IE_Version >= 5.5 && event.srcElement != this.srcElementOfLastMousedown && this.srcElementOfLastMousedown != null) {
|
||||
this.srcElementOfLastMousedown = null;
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case 'mouseout':
|
||||
if (!(SS_ENV.IE_Version < 5.5 && event.srcElement == this.srcElementOfLastMousedown))
|
||||
return true;
|
||||
break;
|
||||
case 'mousemove':
|
||||
if (SS_ENV.IE_Version >= 5.5 && event.srcElement != this.srcElementOfLastMousedown && this.srcElementOfLastMousedown != null)
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function SS_createElement (html)
|
||||
{
|
||||
SS_VAR.DivDummy.insertAdjacentHTML('afterBegin', html);
|
||||
var oEl = SS_VAR.DivDummy.children(0);
|
||||
while (SS_VAR.DivDummy.children.length > 0) {
|
||||
SS_VAR.DivDummy.removeChild(SS_VAR.DivDummy.children(0));
|
||||
}
|
||||
return oEl;
|
||||
}
|
||||
function SS_blurExcept (except)
|
||||
{
|
||||
SS_cancelEvent(window.event);
|
||||
|
||||
except = ('number'==typeof(except)) ? except : -1;
|
||||
|
||||
var bHasToDetachEvent = true;
|
||||
for (var i=0; i < SS_VAR.SelectList.length; i++) {
|
||||
if (-1==except && SS_VAR.SelectList[i].bFocused && SS_VAR.SelectList[i].bExpanded) {
|
||||
SS_VAR.SelectList[i].toggleOptions(false, true);
|
||||
SS_VAR.SelectList[i].toggleTitle(true);
|
||||
bHasToDetachEvent = false;
|
||||
}
|
||||
else if (i!=except) {
|
||||
if (SS_VAR.SelectList[i].bExpanded)
|
||||
SS_VAR.SelectList[i].toggleOptions(false, true);
|
||||
if (SS_VAR.SelectList[i].bReverse)
|
||||
SS_VAR.SelectList[i].toggleTitle(false);
|
||||
SS_VAR.SelectList[i].bFocused = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (SS_VAR.bEventAttached && bHasToDetachEvent) {
|
||||
document.detachEvent('onmousedown', SS_blurExcept);
|
||||
document.detachEvent('ondblclick', SS_blurExcept);
|
||||
SS_VAR.bEventAttached = false;
|
||||
}
|
||||
}
|
||||
function SS_syncSelectedIndex ()
|
||||
{
|
||||
this.selectedIndex = this.select.selectedIndex;
|
||||
|
||||
if (this.bOriginalSelect) return;
|
||||
|
||||
if (this.TitleTable.cells(0).childNodes(0).innerText != this.options[this.selectedIndex].innerText)
|
||||
this.TitleTable.cells(0).childNodes(0).innerText = this.options[this.selectedIndex].innerText;
|
||||
if (this.bExpanded)
|
||||
this.toggleOptions(false);
|
||||
}
|
||||
function SS_syncSelectedIndex1 (obj)
|
||||
{
|
||||
obj.selectedIndex = obj.select.selectedIndex;
|
||||
|
||||
if (obj.bOriginalSelect) return;
|
||||
|
||||
if (obj.TitleTable.cells(0).childNodes(0).innerText != obj.options[obj.selectedIndex].innerText)
|
||||
obj.TitleTable.cells(0).childNodes(0).innerText = obj.options[obj.selectedIndex].innerText;
|
||||
if (obj.bExpanded)
|
||||
obj.toggleOptions(false);
|
||||
}
|
||||
function SS_toggleTitle (bReverse)
|
||||
{
|
||||
this.bReverse = ('undefined'!=typeof(bReverse)) ? bReverse: (!this.bReverse);
|
||||
this.TitleTable.cells(0).style.backgroundColor = this.bReverse ? SS_ENV.CR.ReverseBackground : '';
|
||||
this.TitleTable.cells(0).style.color = this.bReverse ? SS_ENV.CR.ReverseText : '';
|
||||
}
|
||||
function SS_toggleOptions (bExpanded, bStrict)
|
||||
{
|
||||
if (!bStrict && !this.bFocused) {
|
||||
SS_blurExcept(this.ssID);
|
||||
}
|
||||
this.bExpanded = ('undefined'!=typeof(bExpanded)) ? bExpanded: (!this.bExpanded);
|
||||
if (this.bExpanded) {
|
||||
this.adjustOptionsDiv();
|
||||
this.OptionsDiv.style.display = 'block';
|
||||
if (!bStrict) {
|
||||
this.toggleTitle(false);
|
||||
this.handleOverOption(this.selectedIndex);
|
||||
}
|
||||
this.handleOutTitle();
|
||||
}
|
||||
else {
|
||||
this.OptionsDiv.style.display = 'none';
|
||||
if (!bStrict) {
|
||||
this.toggleTitle(true);
|
||||
}
|
||||
}
|
||||
if (!bStrict) {
|
||||
this.bFocused = true;
|
||||
|
||||
if (!SS_VAR.bEventAttached) {
|
||||
document.attachEvent('onmousedown', SS_blurExcept);
|
||||
document.attachEvent('ondblclick', SS_blurExcept);
|
||||
SS_VAR.bEventAttached = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
function SS_handlePropertychange ()
|
||||
{
|
||||
if ('propertychange'==window.event.type && 'selectedIndex'==window.event.propertyName) {
|
||||
var oSS = window.event.srcElement.SS;
|
||||
oSS.syncSelectedIndex();
|
||||
|
||||
if (null != oSS.select.onchange)
|
||||
oSS.select.onchange();
|
||||
}
|
||||
}
|
||||
function SS_handleMousewheel (event)
|
||||
{
|
||||
var idx = this.selectedIndex;
|
||||
if ('mousewheel'==event.type && this.bFocused && this.bReverse) {
|
||||
for (var i=0; i < event.wheelDelta; i += 120)
|
||||
idx--;
|
||||
for (var i=0; i > event.wheelDelta; i -= 120)
|
||||
idx++;
|
||||
}
|
||||
idx = Math.max(idx, 0);
|
||||
idx = Math.min(idx, this.options.length - 1);
|
||||
this.select.selectedIndex = idx;
|
||||
}
|
||||
function SS_handleOverTitle ()
|
||||
{
|
||||
if (this.bExpanded)
|
||||
return;
|
||||
|
||||
this.TitleTable.style.borderColor = SS_ENV.CR.BorderActive;
|
||||
this.TitleTable.cells(1).style.display = 'none';
|
||||
this.TitleTable.cells(2).style.display = 'block';
|
||||
}
|
||||
function SS_handleOutTitle ()
|
||||
{
|
||||
this.TitleTable.style.borderColor = SS_ENV.CR.Border;
|
||||
this.TitleTable.cells(2).style.display = 'none';
|
||||
this.TitleTable.cells(1).style.display = 'block';
|
||||
}
|
||||
function SS_handleOverOption (idx)
|
||||
{
|
||||
for (var i=0; i < this.options.length; i++) {
|
||||
if (i==idx)
|
||||
this.turnOnOption(i);
|
||||
else
|
||||
this.turnOffOption(i);
|
||||
}
|
||||
}
|
||||
function SS_turnOnOption (idx)
|
||||
{
|
||||
this.OptionsTable.cells(idx).style.color = SS_ENV.CR.ReverseText;
|
||||
this.OptionsTable.cells(idx).style.backgroundColor = SS_ENV.CR.ReverseBackground;
|
||||
}
|
||||
function SS_turnOffOption (idx)
|
||||
{
|
||||
this.OptionsTable.cells(idx).style.color = '';
|
||||
this.OptionsTable.cells(idx).style.backgroundColor = '';
|
||||
}
|
||||
function SS_adjustOptionsDiv ()
|
||||
{
|
||||
if (this.bOriginalSelect) return;
|
||||
|
||||
this.OptionsDiv.style.width = this.width;
|
||||
this.OptionsDiv.style.height = Math.min(this.options.length, this.ListMax) * this.OptionHeight ;
|
||||
this.OptionsWrapper.style.height = this.options.length * this.OptionHeight;
|
||||
this.OptionsDiv.style.overflowY = (this.options.length > this.ListMax) ? 'scroll' : '';
|
||||
|
||||
var top = this.Table.offsetTop;
|
||||
var left = this.Table.offsetLeft;
|
||||
for (var El = this.Table.offsetParent; 'BODY'!=El.tagName && 'absolute'!=El.style.position && 'relative'!=El.style.position; El = El.offsetParent) {
|
||||
if ('TABLE' != El.tagName) {
|
||||
top += El.clientTop;
|
||||
left += El.clientLeft;
|
||||
}
|
||||
top += El.offsetTop;
|
||||
left += El.offsetLeft;
|
||||
}
|
||||
this.OptionsDiv.style.top = (this.bListDown) ? (top + this.height) : (top - parseInt(this.OptionsDiv.style.height));
|
||||
this.OptionsDiv.style.left = left;
|
||||
|
||||
this.TitleWrapper.style.top = 0;
|
||||
this.TitleWrapper.style.left = 0;
|
||||
}
|
||||
function SS_syncOptions ()
|
||||
{
|
||||
if (this.bOriginalSelect) return;
|
||||
|
||||
for (var i=0; i < this.options.length; i++) {
|
||||
this.OptionsTable.cells(i).setAttribute('index', i);
|
||||
if (this.OptionsTable.cells(i).childNodes(0).innerText != this.options[i].innerText)
|
||||
this.OptionsTable.cells(i).childNodes(0).innerText = this.options[i].innerText;
|
||||
}
|
||||
}
|
||||
function SS_pressTitle (event)
|
||||
{
|
||||
SS_cancelEvent(event);
|
||||
|
||||
this.srcElementOfLastMousedown = event.srcElement;
|
||||
|
||||
this.toggleOptions();
|
||||
}
|
||||
function SS_releaseTitle (event)
|
||||
{
|
||||
SS_cancelEvent(event);
|
||||
|
||||
if (this.isThisEventToBeCanceled(event)) return;
|
||||
|
||||
this.srcElementOfLastMousedown = null;
|
||||
}
|
||||
function SS_pressOption (event)
|
||||
{
|
||||
SS_cancelEvent(event);
|
||||
|
||||
this.srcElementOfLastMousedown = event.srcElement;
|
||||
}
|
||||
function SS_moveOption (event)
|
||||
{
|
||||
SS_cancelEvent(event);
|
||||
|
||||
if (this.isThisEventToBeCanceled(event)) return;
|
||||
if (!(event.offsetX >= 0 && event.offsetX <= this.OptionsTable.offsetWidth)) return;
|
||||
|
||||
this.handleOverOption(Math.floor(event.offsetY / this.OptionHeight));
|
||||
}
|
||||
function SS_releaseOption (event)
|
||||
{
|
||||
SS_cancelEvent(event);
|
||||
|
||||
if (this.isThisEventToBeCanceled(event)) return;
|
||||
|
||||
this.srcElementOfLastMousedown = null;
|
||||
|
||||
if (event.offsetX >= 0 && event.offsetX <= this.OptionsTable.offsetWidth) {
|
||||
this.toggleOptions(false);
|
||||
this.select.selectedIndex = Math.floor(event.offsetY / this.OptionHeight);
|
||||
}
|
||||
}
|
||||
function SS_createTable ()
|
||||
{
|
||||
this.Table = SS_createElement(""
|
||||
+ "<table border=0 cellpadding=0 cellspacing=0 style='table-layout:fixed; "+SS_ENV.MouseStyle+"'>"
|
||||
+ "<tr><td></td></tr>"
|
||||
+ "</table>"
|
||||
);
|
||||
if (!isNaN(this.width))
|
||||
this.Table.style.width = this.width;
|
||||
this.Table.style.height = this.height;
|
||||
|
||||
if (!this.bOriginalSelect) {
|
||||
this.createTitleDiv();
|
||||
this.createOptionsDiv();
|
||||
this.Table.cells(0).appendChild(this.TitleDiv);
|
||||
this.Table.cells(0).appendChild(this.OptionsDiv);
|
||||
}
|
||||
else {
|
||||
this.Table.cells(0).appendChild(this.select);
|
||||
}
|
||||
}
|
||||
function SS_createTitleDiv ()
|
||||
{
|
||||
this.TitleDiv = SS_createElement(""
|
||||
+ "<div style='position:relative; top:0; left:0;'>"
|
||||
+ " <table border=0 cellpadding=0 cellspacing=0"
|
||||
+ " height="+this.height
|
||||
+ " bgcolor=FFFFFF"
|
||||
+ " style='table-layout:fixed; border:1 solid "+SS_ENV.CR.Border+";background-color:#ffffff;color:#8D8D8D'"
|
||||
+ " onmouseover='SS_VAR.SelectList["+this.ssID+"].adjustOptionsDiv()'"
|
||||
+ " >"
|
||||
+ " <tr>"
|
||||
+ " <td><nobr style='text-oveflow:hidden;"+SS_ENV.OptionNobrStyle+"'></nobr></td>"
|
||||
+ " <td width="+SS_ENV.ButtonWidth+" align=center style='word-wrap:normal'></td>"
|
||||
+ " <td style='display:none' width="+SS_ENV.ButtonWidth+" align=center style='word-wrap:normal'></td>"
|
||||
+ " <td style='display:none'></td>"
|
||||
+ " </tr>"
|
||||
+ " </table>"
|
||||
+ "</div>"
|
||||
);
|
||||
this.TitleTable = this.TitleDiv.childNodes(0);
|
||||
this.TitleTable.cells(0).childNodes(0).innerText = this.options[this.selectedIndex].innerText;
|
||||
this.TitleTable.cells(1).innerHTML = "<img src='" + SS_ENV.ImgPrefix + "btn_sbox_arrow2.gif' border=0 align=absmiddle>"; //화살표 이미지
|
||||
this.TitleTable.cells(2).innerHTML = "<img src='" + SS_ENV.ImgPrefix + "btn_sbox_arrow2.gif' border=0 align=absmiddle>";
|
||||
this.TitleTable.cells(3).appendChild(this.select);
|
||||
this.TitleWrapper = document.createElement(""
|
||||
+ "<img src='"+SS_ENV.ImgPrefix+"Blank.gif'"
|
||||
+ " style='position:absolute; top:0; left:0; z-index:2; width:100%; height:"+this.height+";'"
|
||||
+ " onmouseover='SS_VAR.SelectList["+this.ssID+"].handleOverTitle()'"
|
||||
+ " onmouseout='SS_VAR.SelectList["+this.ssID+"].handleOutTitle(); SS_VAR.SelectList["+this.ssID+"].releaseTitle(window.event);'"
|
||||
+ " onmousedown='SS_VAR.SelectList["+this.ssID+"].pressTitle(window.event)'"
|
||||
+ " ondblclick='SS_VAR.SelectList["+this.ssID+"].pressTitle(window.event); SS_VAR.SelectList["+this.ssID+"].releaseTitle(window.event);'"
|
||||
+ " onmouseup='SS_VAR.SelectList["+this.ssID+"].releaseTitle(window.event)'"
|
||||
+ " onmousewheel='SS_VAR.SelectList["+this.ssID+"].handleMousewheel(window.event)'"
|
||||
+ " ondragstart='SS_cancelEvent(window.event)'"
|
||||
+ ">"
|
||||
);
|
||||
SS_CreatedElements[SS_CreatedElements.length] = this.TitleWrapper;
|
||||
this.TitleDiv.appendChild(this.TitleWrapper);
|
||||
}
|
||||
function SS_createOptionsDiv ()
|
||||
{
|
||||
this.OptionsDiv = SS_createElement(""
|
||||
+ "<div style='"+SS_ENV.OptionsDivStyle+"'"
|
||||
+ " onscroll='SS_VAR.SelectList["+this.ssID+"].moveOption(window.event)'"
|
||||
+ " onmousedown='SS_cancelEvent(window.event)'"
|
||||
+ ">"
|
||||
+ " <table border=0 cellpadding=3 cellspacing=0 width=100% style='table-layout:fixed'>"
|
||||
+ " </table>"
|
||||
+ "</div>"
|
||||
);
|
||||
this.OptionsTable = this.OptionsDiv.childNodes(0);
|
||||
for (var i=0; i < this.options.length; i++) {
|
||||
this.createOptionTr(i);
|
||||
}
|
||||
this.syncOptions();
|
||||
this.OptionsWrapper = document.createElement(""
|
||||
+ "<img src='"+SS_ENV.ImgPrefix+"Blank.gif'"
|
||||
+ " style='position:absolute; top:0; left:0; width:100%;'"
|
||||
+ " onmousedown='SS_VAR.SelectList["+this.ssID+"].pressOption(window.event)'"
|
||||
+ " onmousemove='SS_VAR.SelectList["+this.ssID+"].moveOption(window.event)'"
|
||||
+ " onmouseup='SS_VAR.SelectList["+this.ssID+"].releaseOption(window.event)'"
|
||||
+ " onmouseout='SS_VAR.SelectList["+this.ssID+"].releaseOption(window.event)'"
|
||||
+ " ondragstart='SS_cancelEvent(window.event)'"
|
||||
+ ">"
|
||||
);
|
||||
SS_CreatedElements[SS_CreatedElements.length] = this.OptionsWrapper;
|
||||
this.OptionsDiv.appendChild(this.OptionsWrapper);
|
||||
}
|
||||
function SS_createOptionTr (idx)
|
||||
{
|
||||
idx = ('undefined'!=typeof(idx)) ? idx : this.options.length - 1;
|
||||
var OptionTr = this.OptionsTable.insertRow(-1);
|
||||
var OptionTd = document.createElement("<td height="+this.OptionHeight+"></td>");
|
||||
SS_CreatedElements[SS_CreatedElements.length] = this.OptionsTd;
|
||||
OptionTd.appendChild(document.createElement("<nobr style='"+SS_ENV.OptionNobrStyle+"'></nobr>"));
|
||||
OptionTr.appendChild(OptionTd);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function sectionChange(form)
|
||||
{
|
||||
var idx_office = SS_office.selectedIndex;
|
||||
var office_section = section_list[idx_office];
|
||||
var tmp, i, len;
|
||||
|
||||
len = SS_section.options.length;
|
||||
|
||||
for (i = office_section.length - 1; i >= 0; i--) {
|
||||
tmp = office_section[i].split(",");
|
||||
SS_section.insertOption(tmp[1], tmp[0], 0);
|
||||
}
|
||||
|
||||
offset = office_section.length;
|
||||
for (i = office_section.length; i < office_section.length + len; i++) {
|
||||
SS_section.deleteOption(offset);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
function UNotice(bName) {
|
||||
menufrm.action = "/UserCustomer.do";
|
||||
menufrm.cmd.value = "L";
|
||||
menufrm.boardName.value = bName;
|
||||
menufrm.currentPage.value = "1";
|
||||
menufrm.submit();
|
||||
}
|
||||
|
||||
function Main() {location.href = "/IcsHtml/Web/Main.jsp";} //메인
|
||||
|
||||
|
||||
//** KT ICS 소개 **//
|
||||
function About() {location.href = "/IcsHtml/Web/About/Overview.jsp";} //KT ICS 소개
|
||||
function Overview() {location.href = "/IcsHtml/Web/About/Overview.jsp";} //서비스 개요
|
||||
function Special() {location.href = "/IcsHtml/Web/About/Special.jsp";} //서비스 특징 _ ICS 서비스 특징
|
||||
function SpecialTech() {location.href = "/IcsHtml/Web/About/SpecialTech.jsp";} //서비스 특징 _ ICS 기술적 특징
|
||||
function SpecialTech02() {location.href = "/IcsHtml/Web/About/SpecialTech02.jsp";} //서비스 특징 _ ICS 기술적 특징
|
||||
function SpecialTech03() {location.href = "/IcsHtml/Web/About/SpecialTech03.jsp";} //서비스 특징 _ ICS 기술적 특징
|
||||
function Benefit() {location.href = "/IcsHtml/Web/About/Benefit.jsp";} //도입효과
|
||||
function Case() {location.href = "/IcsHtml/Web/About/Case.jsp";} //Case Study
|
||||
function Case02() {location.href = "/IcsHtml/Web/About/Case02.jsp";} //Case Study
|
||||
function Case03() {location.href = "/IcsHtml/Web/About/Case03.jsp";} //Case Study
|
||||
|
||||
//** ICS 상품 **//
|
||||
|
||||
function UIcsExam(bName) {
|
||||
menufrm.action = "/UserExam.do";
|
||||
menufrm.cmd.value = "L";
|
||||
menufrm.boardName.value = bName;
|
||||
menufrm.currentPage.value = "1";
|
||||
menufrm.submit();
|
||||
}
|
||||
|
||||
function UIcsExam2(bName) {
|
||||
menufrm.action = "/UserExam.do";
|
||||
menufrm.cmd.value ="L";
|
||||
menufrm.boardName.value = bName;
|
||||
menufrm.currentPage.value = "1";
|
||||
menufrm.target = "_blank";
|
||||
menufrm.submit();
|
||||
}
|
||||
|
||||
function InteractiveExam() {UIcsExam('ICSInteractive');} // ICS Interactive _ 적용사례
|
||||
function StreamingExam() {UIcsExam('ICSStreaming');} // ICS Interactive _ 적용사례
|
||||
function DownloadExam() {UIcsExam('ICSDownload');} // ICS Interactive _ 적용사례
|
||||
function WebLinkExam() {UIcsExam('ICSWeb-Link');} // ICS Interactive _ 적용사례
|
||||
|
||||
|
||||
function Service() {location.href = "/IcsHtml/Web/Service/Interactive.jsp";} //ICS 상품
|
||||
function Interactive() {location.href = "/IcsHtml/Web/Service/Interactive.jsp";} //ICS Interactive
|
||||
function Streaming() {location.href = "/IcsHtml/Web/Service/Streaming.jsp";} //ICS Streaming
|
||||
function Download() {location.href = "/IcsHtml/Web/Service/Download.jsp";} //ICS Download
|
||||
function WebLink() {location.href = "/IcsHtml/Web/Service/WebLink.jsp";} //ICS WebLink
|
||||
|
||||
|
||||
|
||||
//** ICS 체험 **//
|
||||
function Experience() {UNotice('MediaPDS');} //보도자료
|
||||
//function Press() {Notice('보도자료')location.href = "/IcsHtml/Web/Experience/Press.jsp";} //보도자료
|
||||
function Press() {UNotice('MediaPDS');} //보도자료
|
||||
function Tour() {location.href = "/IcsHtml/Web/Experience/Tour.jsp";} //ICS Tour
|
||||
function View() {location.href = "/IcsHtml/Web/Experience/View.jsp";} //서비스 체험
|
||||
function FreeZone() {location.href = "/IcsHtml/Web/Experience/FreeZone.jsp";} //프리존 프로그램
|
||||
|
||||
//** 고객센터 **//
|
||||
function Customer() {UNotice('notice');} //고객센터
|
||||
function Notice() {UNotice('notice');}
|
||||
|
||||
//function Customer() {location.href = "/IcsHtml/Web/Customer/Notice.jsp";} //고객센터
|
||||
//function Notice() {location.href = "/IcsHtml/Web/Customer/Notice.jsp";} //공지사항
|
||||
function Info() {location.href = "/IcsHtml/Web/Customer/Info.jsp";} //서비스안내 _ 서비스 이용절차
|
||||
function InfoFee() {location.href = "/IcsHtml/Web/Customer/InfoFee.jsp";} //서비스안내 _ 요금체계
|
||||
|
||||
function UFaq(faqCtg) {
|
||||
menufrm.action = "/UserFaq.do";
|
||||
menufrm.cmd.value ="L";
|
||||
menufrm.boardName.value = faqCtg;
|
||||
menufrm.currentPage.value = "1";
|
||||
menufrm.submit();
|
||||
}
|
||||
|
||||
function Faq() {UFaq('webfaq')} //자주 묻는 질문
|
||||
function Qna() {location.href = "/IcsHtml/Web/Customer/Qna.jsp";} //1:1 온라인 상담
|
||||
|
||||
function Counsel2() {
|
||||
menufrm.action = "/IcsHtml/Web/Customer/Counsel.jsp";
|
||||
menufrm.cmd.value ="Z";
|
||||
menufrm.submit();
|
||||
}
|
||||
|
||||
function Counsel() {location.href = "/IcsHtml/Web/Customer/Counsel.jsp";} //서비스 신청 상담
|
||||
function ContactUs() {location.href = "/IcsHtml/Web/Customer/ContactUs.jsp";} //문의처 안내
|
||||
|
||||
|
||||
//** 기타 **//
|
||||
function Sitemap() {location.href = "/IcsHtml/Web/Etc/Sitemap.jsp";} //사이트맵
|
||||
function IcsLogin() {window.open("/Login.do");} //My ICS 로그인
|
||||
|
||||
|
||||
function Term() {goPopup('/IcsHtml/Web/Etc/Term.jsp','blogcheck',500,600,1);} //이용약관
|
||||
function Address() {goPopup('/IcsHtml/Web/Etc/PopAddress.jsp','blogcheck',500,600,1);} //법적고지
|
||||
function Privacy() {goPopup('/IcsHtml/Web/Etc/Privacy.jsp','blogcheck',500,600,1);} //개인보호정책
|
||||
function Mail() {goPopup('/IcsHtml/Web/Etc/Mail.jsp','blogcheck',500,600,1);} //이메일무단수집거부
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
require_once("inc/session.php");
|
||||
|
||||
// if login already redirect rcmng/rc_list.html
|
||||
if ($HTTP_COOKIE_VARS[SUID] == "guru222")
|
||||
{
|
||||
$transferURL = "http://$server_url/status/rcmng/rc_list.html";
|
||||
|
||||
printf("<script>opener.window.location='$transferURL'; self.close(); </script>");
|
||||
exit;
|
||||
}
|
||||
|
||||
if(getenv("REQUEST_METHOD") == "POST")
|
||||
{
|
||||
$passwd = $_POST["passwd"];
|
||||
if ($passwd == "ktsh!@#")
|
||||
{
|
||||
SetCookie("SUID", "guru222", 0, "/");
|
||||
echo "<script language='javascript'>";
|
||||
echo "opener.window.location ='rcmng/rc_list.html';";
|
||||
echo "self.close();";
|
||||
echo "</script>";
|
||||
die();
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "비번이 틀렸습니다!!";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<SCRIPT LANGUAGE=JAVASCRIPT>
|
||||
function content_check(form)
|
||||
{
|
||||
pass = form.passwd.value.length;
|
||||
|
||||
if ( pass == 0 ) {
|
||||
alert("비번을 입력 하세요.");
|
||||
form.passwd.focus();
|
||||
return (false);
|
||||
}
|
||||
return (true);
|
||||
}
|
||||
|
||||
function check_passwd()
|
||||
{
|
||||
document.form1.action = 'check_admin.html';
|
||||
document.form1.submit();
|
||||
}
|
||||
</SCRIPT>
|
||||
</head>
|
||||
<body>
|
||||
<center>
|
||||
<form name=form1 action='javascript:check_passwd()' method=post onSubmit='return content_check(this)'>
|
||||
PASSWORD: <input type=password name=passwd size=15>
|
||||
<br><input type=submit value="확인" border=0>
|
||||
</form>
|
||||
</center>
|
||||
</body>
|
||||
<script>
|
||||
document.form1.passwd.focus();
|
||||
</script>
|
||||
</html>
|
||||
@@ -0,0 +1,292 @@
|
||||
|
||||
// Removes leading and trailing spaces from the passed string. Also removes
|
||||
// consecutive spaces and replaces it with one space. If something besides
|
||||
// a string is passed in (null, custom object, etc.) then return the input.
|
||||
|
||||
function trimString(inputString) {
|
||||
|
||||
if (typeof inputString != "string") {
|
||||
return inputString;
|
||||
}
|
||||
var retValue = inputString;
|
||||
var ch = retValue.substring(0, 1);
|
||||
while (ch == " ") {
|
||||
// Check for spaces at the beginning of the string
|
||||
retValue = retValue.substring(1, retValue.length);
|
||||
ch = retValue.substring(0, 1);
|
||||
}
|
||||
|
||||
ch = retValue.substring(retValue.length-1, retValue.length);
|
||||
while (ch == " ") { // Check for spaces at the end of the string
|
||||
retValue = retValue.substring(0, retValue.length-1);
|
||||
ch = retValue.substring(retValue.length-1, retValue.length);
|
||||
}
|
||||
|
||||
while (retValue.indexOf(" ") != -1) {
|
||||
// Note that there are two spaces in the string - look for multiple spaces within the string
|
||||
retValue = retValue.substring(0, retValue.indexOf(" ")) + retValue.substring(retValue.indexOf(" ")+ 1, retValue.length); // Again, there are two spaces in each of the strings
|
||||
}
|
||||
return retValue; // Return the trimmed string back to the user
|
||||
}
|
||||
|
||||
// Ends the "trim" function
|
||||
|
||||
function idnKeyboard(url)
|
||||
{
|
||||
myPopupWin= window.open(url,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=818,height=350');
|
||||
myPopupWin.focus();
|
||||
}
|
||||
|
||||
|
||||
function MM_goToURL() { //v3.0
|
||||
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
|
||||
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+args[i+2]+args[i+3]+args[i+4]+"'");
|
||||
}
|
||||
|
||||
function submitRequest(url)
|
||||
{
|
||||
self.opener.location.href=url;
|
||||
self.opener.document.submit();
|
||||
}
|
||||
|
||||
function setGainingRegIDValue(selectedform, selectedRegID ) {
|
||||
selectedRegID.value = selectedform.regID.options[selectedform.regID.selectedIndex].value;
|
||||
}
|
||||
|
||||
function PopWin(myUrl, arg1, arg2, arg3, width, height,resizable)
|
||||
{
|
||||
var url=myUrl+arg1+arg2+arg3;
|
||||
myPopupWin = window.open(url,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=700', copyhistory=0);
|
||||
myPopupWin.focus();
|
||||
}
|
||||
|
||||
|
||||
function appendValues(nameObj)
|
||||
{
|
||||
|
||||
if (isEmpty(nameObj.value) ) return;
|
||||
appendOptionToSelectBox(window.document.form1.userNameList,
|
||||
nameObj.value, false);
|
||||
}
|
||||
|
||||
function appendNVPair(nameObj, valueObj)
|
||||
{
|
||||
|
||||
if (isEmpty(nameObj.value) ) return;
|
||||
if (isEmpty(valueObj.value) ) return;
|
||||
str = nameObj.value + "=" + valueObj.value;
|
||||
|
||||
appendOptionToSelectBox(window.document.form1.userNameList, str, false);
|
||||
}
|
||||
|
||||
function appendContPairs(nameObj, valueObj)
|
||||
{
|
||||
|
||||
if (isEmpty(nameObj.value) ) return;
|
||||
if (isEmpty(valueObj.value) ) return;
|
||||
str = nameObj.value + "=" + valueObj.value;
|
||||
|
||||
appendOptionToSelectBox(window.document.form1.regContList, str, false);
|
||||
}
|
||||
|
||||
function appendIPAdressValue(nameObj, valueObj)
|
||||
{
|
||||
|
||||
if (isEmpty(nameObj.value) ) return;
|
||||
if (isEmpty(valueObj.value) ) return;
|
||||
str = nameObj.value + "=" + valueObj.value;
|
||||
|
||||
appendOptionToSelectBox(window.document.form1.nsIplist, str, false);
|
||||
}
|
||||
|
||||
function removeNVPair()
|
||||
{
|
||||
if(window.document.form1.userNameList.selectedIndex >=0 ){
|
||||
//removeOptionSelected(window.document.form1.userValueList);
|
||||
removeOptionSelected(window.document.form1.userNameList);
|
||||
}
|
||||
}
|
||||
|
||||
function MM_jumpMenu(targ,selObj,restore){ //v3.0
|
||||
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
|
||||
if (restore) selObj.selectedIndex=0;
|
||||
}
|
||||
|
||||
function validateIP(theIP,theField, formCxt)
|
||||
{
|
||||
if( !isValidIPV4(theIP) ) {
|
||||
formCxt.setError();
|
||||
alert('invalid entry: '+formCxt.getFieldDescription(theField.name));
|
||||
}
|
||||
}
|
||||
|
||||
function setRegIDValue(selectedRegID ) {
|
||||
selectedRegID.value = window.document.query.regID.options[window.document.query.regID.selectedIndex].value;
|
||||
|
||||
}
|
||||
|
||||
var timerID ;
|
||||
|
||||
function tzone(tz, os, ds, cl)
|
||||
{
|
||||
this.ct = new Date(0) ; // datetime
|
||||
this.tz = tz ; // code
|
||||
this.os = os ; // GMT offset
|
||||
this.ds = ds ; // has daylight savings
|
||||
this.cl = cl ; // font color
|
||||
|
||||
}
|
||||
|
||||
function UpdateClocks()
|
||||
{
|
||||
// www.timeanddate.com/worldclock
|
||||
var ct = new Array(
|
||||
new tzone('UTC: ', 0, 1, '3000b9'),
|
||||
new tzone('KST: ', +9, 1, '3000b9'),
|
||||
new tzone('EST: ', -5, 1, '3000b9'),
|
||||
new tzone('GMT: ', 0, 1, '3000b9'),
|
||||
new tzone('C N : ', +8, 0, '#FFFFFF'),
|
||||
new tzone('KST: ', +9, 0, '#FFFFFF'),
|
||||
new tzone('EDT: ', -4, 1, '#FFFFFF'),
|
||||
new tzone('GER: ', +1, 1, '#FFFFFF')
|
||||
) ;
|
||||
|
||||
|
||||
var dt = new Date() ; // [GMT] time according to machine clock
|
||||
var startDST = new Date(dt.getFullYear(), 3, 1) ;
|
||||
while (startDST.getDay() != 0)
|
||||
startDST.setDate(startDST.getDate() + 1) ;
|
||||
var endDST = new Date(dt.getFullYear(), 9, 31) ;
|
||||
while (endDST.getDay() != 0)
|
||||
endDST.setDate(endDST.getDate() - 1) ;
|
||||
var ds_active ; // DS currently active
|
||||
if (startDST < dt && dt < endDST)
|
||||
ds_active = 1 ;
|
||||
else
|
||||
ds_active = 0 ;
|
||||
|
||||
// Adjust each clock offset if that clock has DS and in DS.
|
||||
for(n=0 ; n<ct.length ; n++)
|
||||
if (ct[n].ds == 1 && ds_active == 1) ct[n].os++ ;
|
||||
|
||||
// compensate time zones
|
||||
gmdt = new Date() ;
|
||||
for (n=0 ; n<ct.length ; n++)
|
||||
ct[n].ct = new Date(gmdt.getTime() + ct[n].os * 3600 * 1000) ;
|
||||
|
||||
window.document.getElementById("Clock0").innerHTML = '<font color="' + ct[0].cl + '">' + ct[0].tz + ClockString(ct[0].ct) + '</font>' ;
|
||||
window.document.getElementById("Clock1").innerHTML = '<font color="' + ct[1].cl + '">' + ct[1].tz + ClockString(ct[1].ct) + '</font>' ;
|
||||
window.document.getElementById("Clock2").innerHTML = '<font color="' + ct[2].cl + '">' + ct[2].tz + ClockString(ct[2].ct) + '</font>' ;
|
||||
window.document.getElementById("Clock3").innerHTML = '<font color="' + ct[3].cl + '">' + ct[3].tz + ClockString(ct[3].ct) + '</font>' ;
|
||||
window.document.getElementById("Clock4").innerHTML = '<font color="' + ct[4].cl + '">' + ct[4].tz + ClockString(ct[4].ct) + '</font>' ;
|
||||
window.document.getElementById("Clock5").innerHTML = '<font color="' + ct[5].cl + '">' + ct[5].tz + ClockString(ct[5].ct) + '</font>' ;
|
||||
window.document.getElementById("Clock6").innerHTML = '<font color="' + ct[6].cl + '">' + ct[6].tz + ClockString(ct[6].ct) + '</font>' ;
|
||||
window.document.getElementById("Clock7").innerHTML = '<font color="' + ct[7].cl + '">' + ct[7].tz + ClockString(ct[7].ct) + '</font>' ;
|
||||
timerID = window.setTimeout("UpdateClocks()", 1001) ;
|
||||
|
||||
}
|
||||
|
||||
function ClockString(dt)
|
||||
{
|
||||
var stemp, ampm ;
|
||||
var dt_year = dt.getUTCFullYear() ;
|
||||
var dt_month = dt.getUTCMonth() + 1 ;
|
||||
var dt_day = dt.getUTCDate() ;
|
||||
var dt_hour = dt.getUTCHours() ;
|
||||
var dt_minute = dt.getUTCMinutes() ;
|
||||
var dt_second = dt.getUTCSeconds() ;
|
||||
dt_year = dt_year.toString() ;
|
||||
|
||||
if (0 <= dt_hour && dt_hour < 12)
|
||||
{
|
||||
ampm = 'AM' ;
|
||||
// if (dt_hour == 0) dt_hour = 12 ;
|
||||
} else {
|
||||
ampm = 'PM' ;
|
||||
// dt_hour = dt_hour - 12 ;
|
||||
// if (dt_hour == 0) dt_hour = 12 ;
|
||||
}
|
||||
|
||||
if (dt_hour < 10)
|
||||
dt_hour = '0' + dt_hour ;
|
||||
|
||||
if (dt_minute < 10)
|
||||
dt_minute = '0' + dt_minute ;
|
||||
|
||||
if (dt_second < 10)
|
||||
dt_second = '0' + dt_second ;
|
||||
|
||||
//stemp = dt_month + '/' + dt_day + '/' + dt_year.substr(2,2) ;
|
||||
stemp = dt_year + '/' + dt_month + '/' + dt_day;
|
||||
stemp = stemp + ' ' + dt_hour + ":" + dt_minute + ":" + dt_second + ' ' + ampm ;
|
||||
return stemp ;
|
||||
|
||||
}
|
||||
|
||||
|
||||
function goToURL( myUrl, arg1, arg2, arg3 ) {
|
||||
window.location.href=myUrl+arg1+arg2+arg3;
|
||||
}
|
||||
|
||||
|
||||
function validateStreet(value, theField, formCxt)
|
||||
{
|
||||
if(value.length >= 10) {
|
||||
formCxt.setError();
|
||||
alert('invalid entry: '+formCxt.getFieldDescription(theField.name));
|
||||
}
|
||||
}
|
||||
|
||||
function validateName(value,theField, formCxt )
|
||||
{
|
||||
if(value.length > 5) {
|
||||
formCxt.setError();
|
||||
alert('invalid entry: '+formCxt.getFieldDescription(theField.name));
|
||||
}
|
||||
}
|
||||
|
||||
function validateEmail(email, theField, formCxt)
|
||||
{
|
||||
if ( ! isValidEmail(email) ){
|
||||
formCxt.setError();
|
||||
alert('invalid entry: '+formCxt.getFieldDescription(theField.name));
|
||||
}
|
||||
}
|
||||
|
||||
function selectNVPair(nameObj, valueObj, nvplistObj)
|
||||
{
|
||||
nm = nameObj;
|
||||
val = valueObj;
|
||||
ix = nvplistObj.selectedIndex;
|
||||
if(ix < 0 ) return;
|
||||
nm.value = userNVPList.getName(ix);
|
||||
val.value = userNVPList.getValue(ix);
|
||||
val.focus();
|
||||
}
|
||||
|
||||
//Name server add and delete functions
|
||||
function addNS(nslistObj,nsObj)
|
||||
{
|
||||
appendOptionToSelectBox(nslistObj,nsObj);
|
||||
}
|
||||
|
||||
function removeNS(nslistObj,nsObj)
|
||||
{
|
||||
removeOptionFromSelectBox(nslistObj,nsObj);
|
||||
}
|
||||
|
||||
function selectNS(nslistObj,nsObj)
|
||||
{
|
||||
selectOption(nslistObj,nsObj);
|
||||
}
|
||||
|
||||
function selectAll(list1, list2, list3)
|
||||
{
|
||||
if (list1)
|
||||
selectList(list1);
|
||||
if (list2)
|
||||
selectList(list2);
|
||||
if (list3)
|
||||
selectList(list3);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
H1 A:link, H2 A:link, H3 A:link, H4 A:link, H5 A:link, H6 A:link,
|
||||
|
||||
H1 A:visited, H2 A:visited, H3 A:visited, H4 A:visited, H5 A:visited, H6 A:visited
|
||||
|
||||
{color: #000;}
|
||||
|
||||
.ratBodyText
|
||||
|
||||
{ font-family: arial, helvetica, sans-serif; }
|
||||
|
||||
.ratBodyText
|
||||
|
||||
{ font-size: 12px; }
|
||||
|
||||
|
||||
|
||||
A:link
|
||||
|
||||
{ color: #000000; }
|
||||
|
||||
|
||||
|
||||
A:visited
|
||||
|
||||
{ color: #000000; }
|
||||
|
||||
|
||||
|
||||
A:link:hover
|
||||
|
||||
{color: #900;}
|
||||
|
||||
|
||||
|
||||
A:visited:hover
|
||||
|
||||
{color: #600;}
|
||||
|
||||
.ratBodyText
|
||||
|
||||
{ color: #000000; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
BODY {
|
||||
|
||||
background-color: #ffffff;
|
||||
|
||||
color: #000;
|
||||
|
||||
margin: 0px 0px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.ratNav {
|
||||
|
||||
background-color: #036;
|
||||
|
||||
color: #fff;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.ratNav A:link, .ratNav A:visited { color: #fff; }
|
||||
|
||||
.ratNavHighlight A:link, .ratNavHighlight A:visited { color: #fff; }
|
||||
|
||||
|
||||
|
||||
.ratNavHighlight {
|
||||
|
||||
background-color: #c00;
|
||||
|
||||
color: #fff;
|
||||
|
||||
}
|
||||
|
||||
TD{
|
||||
font-family: Arial,Vernada, Helvetica, sans-serif;
|
||||
|
||||
}
|
||||
|
||||
.ratNavText {
|
||||
|
||||
font-family: µ¸¿òü, Arial, Helvetica, sans-serif;
|
||||
|
||||
font-size: 12px;
|
||||
|
||||
;font-weight: bold;
|
||||
|
||||
line-height: 120%;
|
||||
|
||||
padding-left: 0px;
|
||||
|
||||
; text-decoration: none
|
||||
|
||||
; text-indent: 15pt
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,171 @@
|
||||
A:link {
|
||||
TEXT-DECORATION: underline
|
||||
}
|
||||
A:visited {
|
||||
TEXT-DECORATION: none
|
||||
}
|
||||
A:active {
|
||||
TEXT-DECORATION: none
|
||||
}
|
||||
A:hover {
|
||||
TEXT-DECORATION: underline
|
||||
}
|
||||
|
||||
.pagelink:link { font-family: "verdana" ; color: 4c4c4c; TEXT-DECORATION: none}
|
||||
.pagelink:visited { font-family: "verdana" ; color: 4c4c4c; TEXT-DECORATION: none}
|
||||
.pagelink:hover { font-family: "verdana" ; color: 009AB4; TEXT-DECORATION: underline}
|
||||
|
||||
|
||||
.txt { font-family: "µ¸¿ò"; font-size: 11px; color: 4c4c4c; font-weight: bold}
|
||||
|
||||
.eng { font-family: "Verdana", "Arial", "Helvetica", "sans-serif"; font-size: 10px; color: 4c4c4c}
|
||||
|
||||
|
||||
select{behavior: url('selectbox.htc');}
|
||||
TD{line-height:150%;}
|
||||
|
||||
.LoginWindow {
|
||||
font-family:Arial,±¼¸²;
|
||||
font-size:14px;
|
||||
font-weight:bold;
|
||||
color:#094899;
|
||||
}
|
||||
|
||||
.TopMenuTitle {
|
||||
font-family:Arial;
|
||||
font-size:12px;
|
||||
font-weight:bold;
|
||||
color:#FFFFFF;
|
||||
}
|
||||
|
||||
.TopMenu {
|
||||
font-family:Verdana;
|
||||
font-size:12px;
|
||||
font-weight:normal;
|
||||
color:#FFFFFF;
|
||||
}
|
||||
.TopMenu a:link, .TopMenu a:visited {
|
||||
TEXT-DECORATION: none;
|
||||
color:#FFFFFF;
|
||||
}
|
||||
.TopMenu a:link:hover, .TopMenu a:visited:hover {
|
||||
TEXT-DECORATION: none;
|
||||
}
|
||||
|
||||
.Logout {
|
||||
font-family:Verdana;
|
||||
font-size:12px;
|
||||
font-weight:normal;
|
||||
color:#FFFFFF;
|
||||
}
|
||||
.Logout a:link, .Logout a:visited {
|
||||
TEXT-DECORATION: none;
|
||||
color:#FFFFFF;
|
||||
}
|
||||
.Logout a:link:hover, .Logout a:visited:hover {
|
||||
TEXT-DECORATION: underline;
|
||||
}
|
||||
|
||||
.LeftMenuTitle {
|
||||
font-family:Arial,µ¸¿ò;
|
||||
font-size:13px;
|
||||
font-weight:bold;
|
||||
color:#094899;
|
||||
}
|
||||
|
||||
.LeftMenu {
|
||||
font-family:Verdana,±¼¸²;
|
||||
font-size:12px;
|
||||
font-weight:bold;
|
||||
color:#000000;
|
||||
}
|
||||
.LeftMenu a:link, .LeftMenu a:visited {
|
||||
TEXT-DECORATION: none;
|
||||
color:#000000;
|
||||
}
|
||||
.LeftMenu a:link:hover, .LeftMenu a:visited:hover {
|
||||
TEXT-DECORATION: underline;
|
||||
}
|
||||
|
||||
.ContentSummary {
|
||||
font-family:verdana,µ¸¿ò;
|
||||
font-size:10px;
|
||||
font-weight:bold;
|
||||
color:#729399;
|
||||
}
|
||||
|
||||
.ContentSubtitle {
|
||||
font-family:Arial,µ¸¿ò;
|
||||
font-size:13px;
|
||||
font-weight:bold;
|
||||
color:#EA0375;
|
||||
}
|
||||
|
||||
.ContentTableTitle {
|
||||
font-family:Verdana,µ¸¿ò;
|
||||
font-size:12px;
|
||||
font-weight:bold;
|
||||
color:#000000;
|
||||
}
|
||||
|
||||
.ContentTable {
|
||||
font-family:µ¸¿ò;
|
||||
font-size:11px;
|
||||
font-weight:normal;
|
||||
color:#4B4B4B;
|
||||
}
|
||||
.ContentTable a:link, .ContentTable a:visited {
|
||||
TEXT-DECORATION: none;
|
||||
color:#009AB4;
|
||||
}
|
||||
.ContentTable a:link:hover, .ContentTable a:visited:hover {
|
||||
TEXT-DECORATION: underline;
|
||||
}
|
||||
|
||||
.ContentTableSmall {
|
||||
font-family:µ¸¿òü;
|
||||
font-size:12px;
|
||||
font-weight:normal;
|
||||
color:#4B4B4B;
|
||||
}
|
||||
.ContentTableSmall a:link, .ContentTableSmall a:visited {
|
||||
TEXT-DECORATION: none;
|
||||
color:#4B4B4B;
|
||||
}
|
||||
.ContentTableSmall a:link:hover, .ContentTableSmall a:visited:hover {
|
||||
TEXT-DECORATION: underline;
|
||||
}
|
||||
|
||||
.ContentTableAlarm {
|
||||
font-family:Verdana,µ¸¿ò;
|
||||
font-size:11px;
|
||||
font-weight:normal;
|
||||
color:#4B4B4B;
|
||||
}
|
||||
|
||||
.BorderBottom {
|
||||
border-bottom:1px solid #E1E1E1;
|
||||
}
|
||||
|
||||
.ContentListTitle {
|
||||
font-family:Verdana,µ¸¿ò;
|
||||
font-size:12px;
|
||||
font-weight:bold;
|
||||
color:#4B4B4B;
|
||||
}
|
||||
|
||||
.TooltipLayer {
|
||||
position:absolute;
|
||||
top:5;
|
||||
left:5;
|
||||
width:auto;
|
||||
height:auto;
|
||||
padding:7pt;
|
||||
overflow:hidden;
|
||||
z-index:1;
|
||||
border:solid 1 #000000;
|
||||
background:#FFFFCC;
|
||||
color:#000000;
|
||||
font-size:9pt;
|
||||
display:none;
|
||||
}
|
||||
@@ -0,0 +1,533 @@
|
||||
<h3>######## ¿À¿¤ ¼ÒÇÁÆ® ²¨ EASTAB(TOT)¸¸ ±¸Çϱâ ########</h3>
|
||||
<?
|
||||
$server_addr[0][0] = "127.0.0.1";
|
||||
$server_addr[0][1] = "30001";
|
||||
$server_addr[0][2] = "KT-IDC";
|
||||
|
||||
$tot = count($server_addr);
|
||||
for($i=0; $i < $tot; $i++){
|
||||
|
||||
if($i%3 == 0) echo "<table align=\"center\"><tr>";
|
||||
|
||||
$fp = @fsockopen("udp://{$server_addr[$i][0]}", $server_addr[$i][1], $errno, $errstr);
|
||||
if (!$fp) {
|
||||
echo "ERROR: $errno - $errstr<br>\n";
|
||||
continue;
|
||||
} else {
|
||||
fwrite($fp,"GET_SERVSTATUS", 15);
|
||||
while( !feof ($fp) ) {
|
||||
$test2 = fgets($fp, 2048);
|
||||
echo $test2;
|
||||
|
||||
if (!strstr ( $test2, 'OLSOFT' )) {
|
||||
continue;
|
||||
}
|
||||
$test3 .= trim($test2);
|
||||
break;
|
||||
}
|
||||
echo "<xmp> $test3 </xmp>";
|
||||
fclose($fp);
|
||||
}
|
||||
}
|
||||
echo "TEST : <br><xmp>$test</xmp>";
|
||||
exit;
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<td valign=top>
|
||||
<?
|
||||
$pt = new parsePipe();
|
||||
$test = $pt->nullTrim($test);
|
||||
$tmpArr = $pt->textArr($test);
|
||||
$serviceName = $pt->serviceName($test);
|
||||
$result = $pt->parseIt($tmpArr[$serviceType]);
|
||||
$tot_tr = $pt->countIt();
|
||||
|
||||
echo " <table border=1 cellpadding=0 cellspacing=0>\n";
|
||||
echo " <tr align=center>\n";
|
||||
for($k=0; $k<sizeof($serviceName); $k++) {
|
||||
if ( $serviceName[$k][0] != 'OLSOFT' ) continue;
|
||||
echo " <td width='100' height='35'>\n";
|
||||
echo " <font size='2'>";
|
||||
if($serviceName[$k][1] != "dead") {
|
||||
echo "<img src=images/bu14.gif width=11 height=11>";
|
||||
} else {
|
||||
echo "<img src=images/bu15.gif width=11 height=11>";
|
||||
}
|
||||
echo "<b>"; echo $serviceName[$k][0]; echo "</b>";
|
||||
echo "<br>(NS-RC02)"; break;
|
||||
echo "</td>\n";
|
||||
}
|
||||
echo " </tr>\n";
|
||||
echo " </table>\n";
|
||||
?>
|
||||
<table border=1 cellpadding=1 cellspacing=0>
|
||||
<tr height="60">
|
||||
<td colspan="13">
|
||||
<center><b>
|
||||
<font color="#000066" size="5">
|
||||
<?switch($serviceName[$serviceType][0]){
|
||||
case 'EVENT' : echo "EVENT (KTH PARAN)"; break;
|
||||
case 'INCOK' : echo "TRINEX"; break;
|
||||
default :
|
||||
echo $serviceName[$serviceType][0];
|
||||
}
|
||||
?>
|
||||
<br><br>
|
||||
</font>
|
||||
<font color="#000066" size="4">
|
||||
MNG SERVER IP: <?=$server_addr[$i][0]?>, PORT: <?=$server_addr[$i][1]?>
|
||||
(<?=$server_addr[$i][2]?>)
|
||||
</font>
|
||||
</b>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr align="center">
|
||||
<td width="75"><center><b><font color="#000066">Name</font></b></center></td>
|
||||
|
||||
<td width="90"><center><b><font color="#000066">Server IP</font></b></center></td>
|
||||
<td width="25"><center><b><font color="#000066">Port</font></b></center></td>
|
||||
<td width="85"><center><b><font color="#000066">Status<br>Changed</font></b></center></td>
|
||||
|
||||
<!--
|
||||
<td width="85"><center><b><font color="#000066">Disk<br>Checked</font></b></center></td>
|
||||
<td width="110"><center><b><font color="#000066">Domain</font></b></center></td>
|
||||
<td width="65"><center><b><font color="#000066">Total Disk</font></b></center></td>
|
||||
<td width="65"><center><b><font color="#000066">Free</font></b></center></td>
|
||||
<td width="25"><center><b><font color="#000066">Upload</font>
|
||||
<img src="http://sh.0x31.com/status/images/bu14.gif" width=11 height=11>norm<br>
|
||||
<img src="http://sh.0x31.com/status/images/bu16_1.gif" width=11 height=11>disb<br>
|
||||
<img src="http://sh.0x31.com/status/images/bu15.gif" width=11 height=11>fsck<br>
|
||||
</b>
|
||||
</center>
|
||||
</td>
|
||||
<td width="50"><center><b><font color="#000066">Disk Busy(Lq)</font></b></center></td>
|
||||
<td width="100"><center><b><font color="#000066">Traffic INB(Packets)</font></b></center></td>
|
||||
<td width="100"><center><b><font color="#000066">Traffic OUTB(Packets)</font></b></center></td>
|
||||
//-->
|
||||
<td width="50"><center><b><font color="#000066">Conn EASTAB(TOT)</font></b></center></td>
|
||||
</tr>
|
||||
<?
|
||||
|
||||
/*
|
||||
$totalDisk = 0;
|
||||
$freeDisk = 0;
|
||||
$usedDisk = 0;
|
||||
$totalRTSCount = 0;
|
||||
$totalTrafficINB = 0;
|
||||
$totalPacketsINB = 0;
|
||||
$totalTrafficOUTB = 0;
|
||||
$totalPacketsOUTB = 0;
|
||||
*/
|
||||
$totalConnEstab = 0;
|
||||
$totalConnAll = 0;
|
||||
for($j=0; $j < $tot_tr; $j++){
|
||||
$pt->translateIt($result[$j][1], 0);
|
||||
|
||||
if ($result[$j][1] == 1) {
|
||||
$totalRTSCount += 1;
|
||||
}
|
||||
/* Connection Estblished */
|
||||
if ($result[$j][14] != '-') {
|
||||
$totalConnEstab += $result[$j][14];
|
||||
}
|
||||
/* Connection All */
|
||||
if ($result[$j][15] != '-') {
|
||||
$totalConnAll += $result[$j][15];
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$pt->translateIt($result[$j][0],1)?> <? /* =$pt->translateIt($result[$j][1],999) */ ?> <?=$pt->tailer($result[$j][2])?></td>
|
||||
<td align="center"><?=$result[$j][3]?></td>
|
||||
<td align="center"><?=$pt->translateIt($result[$j][4],4)?></td> <!-- port -->
|
||||
<td align="center"><?=$pt->noYear(date("Y-m-d H:i:s", $result[$j][5]))?></td> <!-- status Changed -->
|
||||
<td align="center">
|
||||
<? if ($result[$j][14] == '-') {
|
||||
echo "-";
|
||||
} else if ($result[$j][10] == 0 &&
|
||||
$result[$j][11] == 0 &&
|
||||
$result[$j][12] == 0 &&
|
||||
$result[$j][13] == 0 &&
|
||||
$result[$j][14] == 0 &&
|
||||
$result[$j][15] == 0 &&
|
||||
$result[$j][16] == 0 &&
|
||||
$result[$j][17] == 0 &&
|
||||
$result[$j][18] == 0 &&
|
||||
$result[$j][19] == 0) {
|
||||
echo "-";
|
||||
} else {
|
||||
?>
|
||||
<?=$result[$j][14]?>(<?=$result[$j][15]?>)
|
||||
<?
|
||||
echo "</font>";
|
||||
?>
|
||||
<? } ?>
|
||||
</td>
|
||||
</tr>
|
||||
</span>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td align="center" colspan="4"> </b></td>
|
||||
<td align="center" colspan="1"><b>Storage Total</b></td>
|
||||
<td align="center" colspan="1"><b>RTS Total : <?=$totalRTSCount?></b></td>
|
||||
<td align="center"><?= ($totalDisk == "") ? "-" : $pt->translateIt($totalDisk, 9)?></td>
|
||||
<td align="center"><?= ($totalDisk == "") ? "-" : $pt->translateIt($freeDisk, 9)?></td>
|
||||
<td align="center" colspan="2"><b>Network Total</b></td>
|
||||
<td align="center" colspan="1">
|
||||
<? if ($totalTrafficINB > 0) { ?>
|
||||
<?=$pt->translateIt($totalTrafficINB,30)?>B(<?=$pt->translateIt($totalPacketsINB,30)?>p)
|
||||
<? } else { ?>
|
||||
-
|
||||
<? } ?>
|
||||
</td>
|
||||
<td align="center" colspan="1">
|
||||
<? if ($totalTrafficOUTB > 0) { ?>
|
||||
<?=$pt->translateIt($totalTrafficOUTB,30)?>B(<?=$pt->translateIt($totalPacketsOUTB,30)?>p)
|
||||
<? } else { ?>
|
||||
-
|
||||
<? } ?>
|
||||
</td>
|
||||
<td align="center" colspan="1">
|
||||
<? if ($totalConnEstab > 0) { ?>
|
||||
<?=$totalConnEstab?>(<?=$totalConnAll?>)
|
||||
<? } else { ?>
|
||||
-
|
||||
<? } ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table></td>
|
||||
<?
|
||||
if($i%3 == 2) echo "</table></tr>"; //
|
||||
?>
|
||||
<table>
|
||||
</table>
|
||||
<?
|
||||
|
||||
////////////////////
|
||||
//Print REFRESHER
|
||||
////////////////////
|
||||
|
||||
//extract($_POST);
|
||||
|
||||
$refresh_rate = $_REQUEST['refresh_rate'];
|
||||
|
||||
if($refresh_rate<1 || $refresh_rate>1000)
|
||||
$refresh_rate = 60;
|
||||
|
||||
?>
|
||||
<br>
|
||||
<table align="center">
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
Refresh Rate :
|
||||
<input type=text name=refresh_rate value=<?=$refresh_rate?>>
|
||||
<input type=submit value=SET>
|
||||
(MIN : 1, MAX : 1000)
|
||||
<input type="hidden" name="chk" value="0">
|
||||
</form>
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td align=right>
|
||||
<form action=<?=$_SERVER['PHP_SELF']?> method=POST>
|
||||
<input type="hidden" name="service_type" value="<?= $serviceType?>">
|
||||
<input type=hidden name=refresh_rate value=30>
|
||||
<input type=submit value=RESET(30)>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<script language="javascript" type="text/javascript" src="tooltip.js" ></script>
|
||||
<script language=javascript>
|
||||
function showtip(text) {
|
||||
tooltip.innerText=text;
|
||||
tooltip.style.display="inline";
|
||||
}
|
||||
function hidetip() {
|
||||
tooltip.style.display="none";
|
||||
}
|
||||
function movetip() {
|
||||
tooltip.style.pixelTop=event.y+document.body.scrollTop;
|
||||
tooltip.style.pixelLeft=event.x+document.body.scrollLeft + 10;
|
||||
}
|
||||
document.onmousemove=movetip;
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<META http-equiv="refresh" content="<?=$refresh_rate?>; url=<?=$PHP_SELF?>?refresh_rate=<?=$refresh_rate?>&service_type=<?= $serviceType ?>">
|
||||
<?
|
||||
########
|
||||
#CLASSES
|
||||
########
|
||||
class parsePipe {
|
||||
var $tot_line;
|
||||
|
||||
function parseIt($givenText){
|
||||
$cnt = 0;
|
||||
$minValue = 0;
|
||||
$maxValue = 0;
|
||||
$minLevel = 1000;
|
||||
$tmp_arr = array();
|
||||
$temp_arr = explode("\r\n", $givenText);
|
||||
$result_arr[$i][9] = "";
|
||||
$this->tot_line = count($temp_arr) == 1 ? 0 : count($temp_arr) - 1;
|
||||
for($i=0; $i < $this->tot_line; $i++){
|
||||
if($temp_arr[$i]!='') {
|
||||
$result_arr[$i] = explode("|", $temp_arr[$i]);
|
||||
$result_arr[$i][20] = "";
|
||||
$tmp_arr[$i] = ($result_arr[$i][9] == '' || $result_arr[$i][9] == '-') ? 0 : $this->nullTrim($result_arr[$i][9]);
|
||||
$result_arr[$i][8] = $this->nullTrim($result_arr[$i][8]);
|
||||
$result_arr[$i][9] = $this->nullTrim($result_arr[$i][9]);
|
||||
$result_arr[$i][10] = $this->nullTrim($result_arr[$i][10]);
|
||||
|
||||
/*
|
||||
if($result_arr[$i][9] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
|
||||
if($cnt == 0) {
|
||||
$minValue = $result_arr[$i][9];
|
||||
$cnt++;
|
||||
}
|
||||
if($minValue > $result_arr[$i][9]) {
|
||||
$minValue = $result_arr[$i][9];
|
||||
}
|
||||
}
|
||||
*/
|
||||
if ($result_arr[$i][11] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
|
||||
if ($minLevel > $result_arr[$i][11]) {
|
||||
$minLevel = $result_arr[$i][11];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for ($i = 0; $i < $tot_tr; $i++) {
|
||||
if ($result_arr[$i][11] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0 && $result_arr[$i][11] <= $minLevel) {
|
||||
if($result_arr[$i][9] != '-' && $result_arr[$i] != '' && $result_arr[$i] != 0) {
|
||||
if($cnt == 0) {
|
||||
$minValue = $result_arr[$i][9];
|
||||
$cnt++;
|
||||
}
|
||||
if($minValue > $result_arr[$i][9]) {
|
||||
$minValue = $result_arr[$i][9];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//echo "minLevel $minLevel minValue $minValue<br>";
|
||||
$cnt = 0;
|
||||
arsort($tmp_arr);
|
||||
reset($tmp_arr);
|
||||
|
||||
while (list ($key, $val) = each ($tmp_arr)) {
|
||||
//echo "$key = $val<br>";
|
||||
if($val != 0) {
|
||||
if($cnt == 0) {
|
||||
if ($minLevel < $result_arr[$key][11] ||
|
||||
$result_arr[$key][10] > 0) {
|
||||
$result_arr[$key][20] = "yellow";//$maxValue;
|
||||
} else {
|
||||
//echo "11 ".$result_arr[$key][11]." 10 ".$result_arr[$key][10]."<br>";
|
||||
$maxValue = $val;
|
||||
$result_arr[$key][20] = "99FFFF";
|
||||
$cnt++;
|
||||
}
|
||||
} else {
|
||||
//if($minValue == $val) {
|
||||
if($val < (2 * 1024 * 1024 * 1024 * 10)) {
|
||||
$result_arr[$key][20] = "red";
|
||||
} else if(($maxValue - $val) < (1024 * 1024 * 1024) &&
|
||||
$minLevel == $result_arr[$key][11]) {
|
||||
//echo "1GB Highed<br>";
|
||||
//echo "minLevel $minLevel maxValue $maxValue<br>";
|
||||
$result_arr[$key][20] = "99FFFF";
|
||||
} else {
|
||||
//echo "1GB Lowed<br>";
|
||||
$result_arr[$key][20] = "yellow";//$maxValue;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$result_arr[$key][20] = "white";
|
||||
}
|
||||
}
|
||||
return $result_arr;
|
||||
}
|
||||
|
||||
function countIt(){
|
||||
return $this->tot_line;
|
||||
}
|
||||
|
||||
function translateIt($parsedText, $type){
|
||||
if($parsedText == '') return;
|
||||
|
||||
$eServerType = array('WWW', 'RTS', 'RC', 'CCDB', 'RCTS', 'GTS', "RCDB");
|
||||
/*$eStatus = array('<img src=images/bu16_1.gif width=11 height=11>UNKNOWN',
|
||||
'<img src=images/bu14.gif width=11 height=11>ALIVE',
|
||||
'<img src=images/bu15.gif width=11 height=11>DEAD');*/
|
||||
$eStatus = array('<img src=images/bu16_1.gif width=11 height=11>',
|
||||
'<img src=images/bu14.gif width=11 height=11>',
|
||||
'<img src=images/bu15.gif width=11 height=11>');
|
||||
$eStatusUP = array('<img src=images/bu14.gif width=11 height=11>',
|
||||
'<img src=images/bu16_1.gif width=11 height=11>',
|
||||
'<img src=images/bu15.gif width=11 height=11>');
|
||||
$eStatusChar = array('UNKNOWN', 'ALIVE', 'DEAD');
|
||||
switch($type){
|
||||
case 0:
|
||||
return $eServerType[$parsedText];
|
||||
return '';
|
||||
case 1:
|
||||
return $eStatus[$parsedText];
|
||||
case 2:
|
||||
return $eStatusChar[$parsedText];
|
||||
case 3:
|
||||
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
|
||||
else {
|
||||
if (trim($parsedText) / 1024 / 1024 > 1024) {
|
||||
return sprintf("<b>%.2fGB</b>",
|
||||
trim($parsedText) / 1024 / 1024 / 1024 );
|
||||
} else {
|
||||
if (trim($parsedText) / 1024 > 1024) {
|
||||
if (trim($parsedText) / 1024 / 1024 > 10) {
|
||||
return sprintf("<font color=\"blue\"><b>%.2fMB</b></font>",
|
||||
trim($parsedText) / 1024 / 1024 );
|
||||
} else {
|
||||
return sprintf("<b>%.2fMB</b>",
|
||||
trim($parsedText) / 1024 / 1024 );
|
||||
}
|
||||
} else {
|
||||
if (trim($parsedText) > 1024) {
|
||||
return sprintf("%.2fKB",
|
||||
trim($parsedText) / 1024 );
|
||||
} else {
|
||||
return sprintf("%dB",
|
||||
trim($parsedText));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
case 8:
|
||||
if(trim($parsedText) == "-" || $parsedText == "") return "-";
|
||||
else return sprintf("%.2lfG", (trim($parsedText) / 1024) / 1024 / 1024);
|
||||
case 9:
|
||||
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
|
||||
else {
|
||||
if (trim($parsedText) / 1024 / 1024 / 1024 > 1024) {
|
||||
return sprintf("%.2fT", trim($parsedText) / 1024 / 1024 / 1024 / 1024);
|
||||
} else
|
||||
return sprintf("%.2fG", trim($parsedText) / 1024 / 1024 / 1024);
|
||||
}
|
||||
case 10:
|
||||
return $eStatusUP[$parsedText];
|
||||
case 30:
|
||||
if(trim($parsedText) == "-" || $parsedText == "" ) return "-";
|
||||
else {
|
||||
if (trim($parsedText) / 1024 / 1024 > 1024) {
|
||||
return sprintf("%.2fG",
|
||||
trim($parsedText) / 1024 / 1024 / 1024 );
|
||||
} else {
|
||||
if (trim($parsedText) / 1024 > 1024) {
|
||||
return sprintf("%.2fM",
|
||||
trim($parsedText) / 1024 / 1024 );
|
||||
} else {
|
||||
if (trim($parsedText) > 1024) {
|
||||
return sprintf("%.2fK",
|
||||
trim($parsedText) / 1024 );
|
||||
} else {
|
||||
return sprintf("%d",
|
||||
trim($parsedText));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
default:
|
||||
return $parsedText;
|
||||
}
|
||||
}
|
||||
|
||||
function nullTrim($tmp_str)
|
||||
{
|
||||
$return_str = "";
|
||||
$maxLength = strlen($tmp_str);
|
||||
|
||||
for($i=0 ; $i < $maxLength ; $i++) {
|
||||
if(ord(substr($tmp_str, $i, 1)) != 0 || $tmp_str != " ") {
|
||||
$return_str .= substr($tmp_str, $i, 1);
|
||||
}
|
||||
}
|
||||
return $return_str;
|
||||
}
|
||||
|
||||
function textArr($text)
|
||||
{
|
||||
$cnt = -1;
|
||||
$tmp_cnt = 0;
|
||||
$str_arr = array();
|
||||
$tmp_search_str = "";
|
||||
$temp_arr = explode("\r\n", $text);
|
||||
|
||||
for($i=0; $i<sizeof($temp_arr); $i++) {
|
||||
$split_str = explode("|", $temp_arr[$i]);
|
||||
$search_str = explode("_", $split_str[2]);
|
||||
if($tmp_search_str != $search_str[0]) {
|
||||
$tmp_search_str = $search_str[0];
|
||||
//$str_arr[$cnt][30] = $search_str[0];
|
||||
//echo $str_arr[$cnt][0]."<br>".$tmp_search_str."->".$cnt."<-"."<br>";
|
||||
$cnt++;
|
||||
}
|
||||
$str_arr[$cnt] .= $temp_arr[$i]."\r\n";
|
||||
|
||||
}
|
||||
return $str_arr;
|
||||
}
|
||||
|
||||
function serviceName($text)
|
||||
{
|
||||
$cnt = -1;
|
||||
$tmp_cnt = 0;
|
||||
$str_arr = array();
|
||||
$tmp_search_str = "";
|
||||
$temp_arr = explode("\r\n", $text);
|
||||
|
||||
for($i=0; $i<sizeof($temp_arr); $i++) {
|
||||
$split_str = explode("|", $temp_arr[$i]);
|
||||
$search_str = explode("_", $split_str[2]);
|
||||
//echo $split_str[0]."<br>";
|
||||
if($tmp_search_str != $search_str[0]) {
|
||||
$tmp_search_str = $search_str[0];
|
||||
$cnt++;
|
||||
}
|
||||
$str_arr[$cnt][0] = $tmp_search_str;
|
||||
if($split_str[0] == 2) {
|
||||
$str_arr[$cnt][1] = "dead";
|
||||
}
|
||||
// $str_arr[4][1] = "dead";
|
||||
// $str_arr[1][1] = "dead";
|
||||
}
|
||||
return $str_arr;
|
||||
}
|
||||
|
||||
function tailer($name)
|
||||
{
|
||||
$temp_arr = explode("_", $name);
|
||||
$temp_arr2 = substr($name, strlen($temp_arr[0]) + 1, strlen($name));
|
||||
return $temp_arr2;
|
||||
}
|
||||
|
||||
function noYear($date)
|
||||
{
|
||||
$date = substr($date, 5, 14);
|
||||
|
||||
return $date;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
After Width: | Height: | Size: 331 B |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 474 B |
|
After Width: | Height: | Size: 474 B |
|
After Width: | Height: | Size: 599 B |
|
After Width: | Height: | Size: 599 B |
|
After Width: | Height: | Size: 684 B |
|
After Width: | Height: | Size: 684 B |
|
After Width: | Height: | Size: 687 B |
|
After Width: | Height: | Size: 687 B |
|
After Width: | Height: | Size: 443 B |
|
After Width: | Height: | Size: 443 B |
|
After Width: | Height: | Size: 535 B |
|
After Width: | Height: | Size: 535 B |
|
After Width: | Height: | Size: 486 B |
|
After Width: | Height: | Size: 486 B |
|
After Width: | Height: | Size: 567 B |
|
After Width: | Height: | Size: 554 B |
|
After Width: | Height: | Size: 57 B |
|
After Width: | Height: | Size: 61 B |
|
After Width: | Height: | Size: 58 B |
|
After Width: | Height: | Size: 60 B |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 50 B |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 555 B |
|
After Width: | Height: | Size: 772 B |
|
After Width: | Height: | Size: 819 B |
|
After Width: | Height: | Size: 766 B |
|
After Width: | Height: | Size: 771 B |
|
After Width: | Height: | Size: 819 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 938 B |
|
After Width: | Height: | Size: 64 B |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 300 B |
|
After Width: | Height: | Size: 623 B |
|
After Width: | Height: | Size: 119 B |
|
After Width: | Height: | Size: 563 B |
|
After Width: | Height: | Size: 664 B |
|
After Width: | Height: | Size: 139 B |
|
After Width: | Height: | Size: 58 B |
|
After Width: | Height: | Size: 369 B |
|
After Width: | Height: | Size: 299 B |
|
After Width: | Height: | Size: 294 B |
|
After Width: | Height: | Size: 314 B |
|
After Width: | Height: | Size: 267 B |
|
After Width: | Height: | Size: 641 B |
|
After Width: | Height: | Size: 134 B |
|
After Width: | Height: | Size: 321 B |
|
After Width: | Height: | Size: 311 B |
|
After Width: | Height: | Size: 295 B |
|
After Width: | Height: | Size: 314 B |
|
After Width: | Height: | Size: 270 B |
|
After Width: | Height: | Size: 315 B |
|
After Width: | Height: | Size: 591 B |
|
After Width: | Height: | Size: 565 B |
|
After Width: | Height: | Size: 671 B |
|
After Width: | Height: | Size: 594 B |
|
After Width: | Height: | Size: 288 B |
|
After Width: | Height: | Size: 311 B |
|
After Width: | Height: | Size: 323 B |
|
After Width: | Height: | Size: 309 B |
|
After Width: | Height: | Size: 276 B |
|
After Width: | Height: | Size: 590 B |
|
After Width: | Height: | Size: 528 B |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 5.2 KiB |
|
After Width: | Height: | Size: 417 B |
|
After Width: | Height: | Size: 719 B |
|
After Width: | Height: | Size: 819 B |
|
After Width: | Height: | Size: 938 B |
|
After Width: | Height: | Size: 972 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 64 B |
|
After Width: | Height: | Size: 563 B |
|
After Width: | Height: | Size: 299 B |
|
After Width: | Height: | Size: 294 B |
|
After Width: | Height: | Size: 267 B |
|
After Width: | Height: | Size: 314 B |
|
After Width: | Height: | Size: 270 B |
|
After Width: | Height: | Size: 565 B |
|
After Width: | Height: | Size: 288 B |
|
After Width: | Height: | Size: 311 B |