Merge branch 'g5'

This commit is contained in:
chicpro
2014-03-06 18:38:45 +09:00

View File

@ -119,17 +119,17 @@ if (G5_IS_MOBILE) {
<?php <?php
$sql = " select * from {$g5['group_table']} where gr_show_menu = '1' and gr_device <> 'mobile' order by gr_order "; $sql = " select * from {$g5['group_table']} where gr_show_menu = '1' and gr_device <> 'mobile' order by gr_order ";
$result = sql_query($sql); $result = sql_query($sql);
$gnb_zindex = 999; // gnb_1dli z-index 값 설정용
for ($gi=0; $row=sql_fetch_array($result); $gi++) { // gi 는 group index for ($gi=0; $row=sql_fetch_array($result); $gi++) { // gi 는 group index
$gnb_zindex -= 1; // html 구조에서 앞선 gnb_1dli 에 더 높은 z-index 값 부여
?> ?>
<li class="gnb_1dli"> <li class="gnb_1dli" style="z-index:<?php echo $gnb_zindex; ?>">
<a href="<?php echo G5_BBS_URL ?>/group.php?gr_id=<?php echo $row['gr_id'] ?>" class="gnb_1da"><?php echo $row['gr_subject'] ?></a> <a href="<?php echo G5_BBS_URL ?>/group.php?gr_id=<?php echo $row['gr_id'] ?>" class="gnb_1da"><?php echo $row['gr_subject'] ?></a>
<ul class="gnb_2dul"> <ul class="gnb_2dul">
<?php <?php
$sql2 = " select * from {$g5['board_table']} where gr_id = '{$row['gr_id']}' and bo_show_menu = '1' and bo_device <> 'mobile' order by bo_order "; $sql2 = " select * from {$g5['board_table']} where gr_id = '{$row['gr_id']}' and bo_show_menu = '1' and bo_device <> 'mobile' order by bo_order ";
$result2 = sql_query($sql2); $result2 = sql_query($sql2);
$gnb_zindex = 999; // gnb_1dli z-index 값 설정용 for ($bi=0; $row2=sql_fetch_array($result2); $bi++) { // bi 는 board index
for ($gi=0; $row=sql_fetch_array($result); $gi++) { // gi 는 group index
$gnb_zindex -= 1; // html 구조에서 앞선 gnb_1dli 에 더 높은 z-index 값 부여
?> ?>
<li class="gnb_2dli"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $row2['bo_table'] ?>" class="gnb_2da"><?php echo $row2['bo_subject'] ?></a></li> <li class="gnb_2dli"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $row2['bo_table'] ?>" class="gnb_2da"><?php echo $row2['bo_subject'] ?></a></li>
<?php } ?> <?php } ?>