First Commit
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
// 회원수는 $row['mb_cnt'];
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$connect_skin_url.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<?php echo $row['total_cnt'] ?>
|
||||
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$connect_skin_url.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<!-- 현재접속자 목록 시작 { -->
|
||||
<div id="current_connect">
|
||||
<ul>
|
||||
<?php
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
//$location = conv_content($list[$i]['lo_location'], 0);
|
||||
$location = $list[$i]['lo_location'];
|
||||
// 최고관리자에게만 허용
|
||||
// 이 조건문은 가능한 변경하지 마십시오.
|
||||
if ($list[$i]['lo_url'] && $is_admin == 'super') $display_location = "<a href=\"".$list[$i]['lo_url']."\">".$location."</a>";
|
||||
else $display_location = $location;
|
||||
|
||||
$classes = array();
|
||||
if( $i && ($i % 4 == 0) ){
|
||||
$classes[] = 'box_clear';
|
||||
}
|
||||
?>
|
||||
<li class="<?php echo implode(' ', $classes); ?>">
|
||||
<div class="inner">
|
||||
<span class="crt_num"><?php echo $list[$i]['num'] ?></span>
|
||||
<span class="crt_name"><?php echo get_member_profile_img($list[$i]['mb_id']); ?><br><?php echo $list[$i]['name'] ?></span>
|
||||
<span class="crt_lct"><?php echo $display_location ?></span>
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
if ($i == 0)
|
||||
echo "<li class=\"empty_li\">현재 접속자가 없습니다.</li>";
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- } 현재접속자 목록 끝 -->
|
||||
14
web/html/theme/AT_WEB01/skin/connect/basic/style.css
Normal file
14
web/html/theme/AT_WEB01/skin/connect/basic/style.css
Normal file
@ -0,0 +1,14 @@
|
||||
@charset "utf-8";
|
||||
|
||||
#current_connect ul{margin:0 -10px 0;padding:0;list-style:none;zoom:1}
|
||||
#current_connect ul:after{display:block;visibility:hidden;clear:both;content:""}
|
||||
#current_connect li{position:relative;min-height:1px;padding-left:10px;*padding-left:0;padding-right:10px;*padding-right:0;float:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-left:0}
|
||||
#current_connect li{width:25%}
|
||||
#current_connect li.box_clear{clear:both}
|
||||
#current_connect li .inner{position:relative;border:1px solid #d8d8d8;background:#fff;margin-bottom:10px;text-align:center}
|
||||
#current_connect .crt_name {margin:20px 20px 15px;display:block;min-height:88px}
|
||||
#current_connect .crt_name img{ border-radius:50%;margin: 0 0 5px;max-width:100%;height:auto}
|
||||
#current_connect .crt_lct{display:block;text-align:center;border-top:1px solid #ddd;padding:10px 5px;line-height:1.4em}
|
||||
#current_connect .crt_lct a{color:#3ca1ff}
|
||||
#current_connect .crt_num{position:absolute;top:10px;left:10px;color:#777;font-weight:bold}
|
||||
#current_connect li.empty_li{width:100%;padding:200px 0 ;border:0;color:#666}
|
||||
Reference in New Issue
Block a user