서울시 서초구 방배본동 lordfind@gmail.com +8225359969

lordship

사이트맵 소스

<style>
ul,dl {padding:0;margin:0}
li {list-style:none}
.sitemap {
    border-bottom: 1px solid #F0F0F0;
    border-right: 1px solid #F0F0F0;
    overflow: hidden;
    width: 712px;
}
.sitemap .top_line {
    overflow: hidden;
    width: 100%;
}
.sitemap .top_line dl {
    height: 247px;
}
.sitemap .bottom_line dl {
    height: 415px;
}
.sitemap dl {
    border-left: 1px solid #F0F0F0;
    float: left;
    font-size: 12px;
    width: 177px;
    height:200px;
    padding-bottom: 40px;
}
.sitemap dl dt {
    height: 35px;
    
}
.sitemap dl dd {
    padding: 7px 0 0;
}
.sitemap dl dd li a {
    color: #666666;
    display: block;
    height: 20px;
    line-height: 20px;
    padding-left: 12px;
}
.sitemap dl dd li a:hover {
    color: #88B3C9;
    font-weight: bold;
}
.sitemap dl dd li.more {
    background: url("<?php echo $g['img_layout']?>/ico_arrow.gif") no-repeat scroll 163px 10px transparent;
}
.sitemap .depth3 {
    background: none repeat scroll 0 0 #FAFAFA;
    border-bottom: 1px solid #F3F3F3;
    border-top: 1px solid #F3F3F3;
    margin: 1px 0 5px;
    padding: 4px 0;
}
.sitemap .depth3 a {
    background: url("<?php echo $g['img_layout']?>/ico_blue.gif") no-repeat scroll 12px 6px transparent;
    color: #999999;
    font-size: 11px;
    height: 15px;
    line-height: 15px;
    padding-left: 18px;
}
.sitemap dl#dl_4 {clear:both;}
.sitemap dl#dl_5 {border-right: 1px solid #F0F0F0;}

</style>

    <div class="sitemap">
    <?php $_MENUS1=getDbSelect($table['s_menu'],'site='.$s.' and hidden=0 and depth=1 order by gid asc','*')?>
    <?php $_i=0; while($_M1=db_fetch_array($_MENUS1)):?>
        <dl id="dl_<?php echo $_i?>">
        <dt>
        <a href="<?php echo $_M1['redirect']?$_M1['joint']:RW('c='.$_M1['id'])?>" target="<?php echo $_M1['target']?>" class="oneDepth">
          <img src="<?php echo $g['img_layout']?>/tit_map_<?php echo $_i?>.gif" />
        </a>
        <?php if($_M1['isson']):?>
          </dt>  
          <dd>
              <ul>
                <?php $_MENUS2=getDbSelect($table['s_menu'],'site='.$s.' and parent='.$_M1['uid'].' and hidden=0 and depth=2 order by gid asc','*')?>
                <?php while($_M2=db_fetch_array($_MENUS2)):?>
                <li<?php if(in_array($_M2['id'],$_CA)):?> class="selected2"<?php endif?>><a href="<?php echo RW('c='.$_M1['id'].'/'.$_M2['id'])?>" target="<?php echo $_M2['target']?>"><?php echo $_M2['name']?></a></dt>
                <?php if($_M2['isson']):?>
                <?php $_MENUS3=getDbSelect($table['s_menu'],'site='.$s.' and parent='.$_M2['uid'].' and hidden=0 and depth=3 order by gid asc','*')?>
                <?php while($_M3=db_fetch_array($_MENUS3)):?>
                <span <?php if(in_array($_M3['id'],$_CA)):?> class="selected3"<?php endif?>><a href="<?php echo RW('c='.$_M1['id'].'/'.$_M2['id'].'/'.$_M3['id'])?>" target="<?php echo $_M3['target']?>">ㆍ<?php echo $_M3['name']?></a></dd>
                <?php endwhile?>
                <?php endif?>
                <?php endwhile?>
                </ul>
            </dd>
            <?php endif?>

        </dl>
        <?php $_i++; if($_i >= $d['layout']['menunum']) break; endwhile?>

    </div>