dbms_itsolution/extdbms/corp_domain.php
2021-12-08 09:31:10 +09:00

114 lines
4.1 KiB
PHP

<?
// 기본 설정 로딩
require_once 'config.php';
require_once 'function.php';
require_once 'lib.php';
?>
<style>
@font-face {
font-family: 'FontAwesome';
src: url('/font/fontawesome-webfont.eot?v=4.0.3');
src: url('/font/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'),
url('/font/fontawesome-webfont.woff?v=4.0.3') format('woff'),
url('/font/fontawesome-webfont.ttf?v=4.0.3') format('truetype'),
url('/font/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg');
font-weight: normal;
font-style: normal;
}
div#mk_df_title {width:100%;background-color:#24a2e0;color:white;font-size:15px;}
.table-ul {background-color: skyblue;display: table;table-layout: fixed;text-align: center;width: 100%;}
.table-ul li {border-right: 1px solid #fff;display: table-cell;vertical-align: middle;height: 40px;}
.table-ul li:last-child {border-right: 0;}
.table-ul li a {color: #fff;display: block;font-size: 10px;text-decoration: none;}
#active {background-color: #24a2e0;color: #fff;}
.icon-CS방어:before {color: #fff;content:"\f021";font-family: "FontAwesome";}
.icon-CS방어:hover {background-color:#24a2e0;color: #fff;}
.icon-CS-PRE:before {color: #fff;content:"\f021";font-family: "FontAwesome";}
.icon-CS-PRE:hover {background-color:#24a2e0;color: #fff;}
.icon-CF방어:before {color: #fff;content:"\f021";font-family: "FontAwesome";}
.icon-CF방어:hover {background-color:#24a2e0;color: #fff;}
.icon-BL상시:before {color: #fff;content:"\f021";font-family: "FontAwesome";}
.icon-BL상시:hover {background-color:#24a2e0;color: #fff;}
.icon-인증방어:before {color: #fff;content:"\f021";font-family: "FontAwesome";}
.icon-인증방어:hover {background-color:#24a2e0;color: #fff;}
.icon-MGTK:before {color: #fff;content:"\f021";font-family: "FontAwesome";}
.icon-MGTK:hover {background-color:#24a2e0;color: #fff;}
</style>
<?
$zonequery = "select * from corp_info_mk where depth = '1' order by idx asc";
$zoneresult = @mysql_query($zonequery, $db_connect) or die($db_q_error);
$zone_num = mysql_num_rows($zoneresult);
?>
<ul class="table-ul">
<?
for ($i = 0; $i < $zone_num; $i++) {
$zonedata = mysql_fetch_assoc($zoneresult);
?>
<li class="icon-<?=$zonedata[zone]?>" id='<?if ($zonedata[zone] == $_GET[zone]) {echo "active";}?>' onclick="location.href='/corp_domain.php?zone=<?=$zonedata[zone]?>';"><br><?=$zonedata[zone]?></li>
<?}?>
</ul>
<?
$parentsquery = "select * from corp_info_mk where depth = '2' and zone = '" . $_GET['zone'] . "' order by parents asc";
$parentsresult = @mysql_query($parentsquery, $db_connect) or die($db_q_error);
$parents_num = mysql_num_rows($parentsresult);
for ($j = 0; $j < $parents_num; $j++) {
$parentsdata = mysql_fetch_assoc($parentsresult);
?>
<div id=mk_df_title>
<?=$parentsdata[parents]?> / <?=$parentsdata[real_address]?>
<button style="color:black;cursor: pointer;" onclick="location.href='/DefenseNewMK.sev?zone=<?=$_GET['zone']?>&parents=<?=$parentsdata[parents]?>';">등록</button>
</div>
<?
$childquery = "select * from corp_info_mk where depth = '3' and zone = '" . $_GET['zone'] . "' and parents = '" . $parentsdata[parents] . "' order by parents asc";
$childresult = @mysql_query($childquery, $db_connect) or die($db_q_error);
$child_num = mysql_num_rows($childresult);
?>
<?
for ($k = 0; $k < $child_num; $k++) {
$childdata = mysql_fetch_assoc($childresult);
$childidx = $childdata[idx];
?>
<li>
<?=$childdata[child] . " / " . $childdata[cs_code] . " / " . $childdata[cs_ip] . " / " . $childdata[server_code] . " / " . $childdata[server_ip] . " / " . $childdata[setup_domain] . " / " . $childdata[setup_firewall] . " / " . $childdata[register_date] . " / " . $childdata[worker]?> - <a href=/DefenseModifyMK.sev?child=<?=$childidx?>>수정</a>
</li>
<?}?>
<!--
<td><?=$parentsdata[parents]?></td>
<td><?=$parentsdata[acl_address]?></td>
<td><?=$parentsdata[real_address]?></td>
-->
<?}?>
<style>
.123img {
width:800px;
height:300px;
}
.123mk1 {
border: 10px solid red;
}
.mk1123 {
opacity: 0.4;
filter: alpha(opacity=40);
}
</style>
<?
//DB닫기
mysql_close($db_connect);
?>