테마기능 추가
This commit is contained in:
9
theme/basic/skin/connect/basic/connect.skin.php
Normal file
9
theme/basic/skin/connect/basic/connect.skin.php
Normal file
@ -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'] ?>
|
||||
41
theme/basic/skin/connect/basic/current_connect.skin.php
Normal file
41
theme/basic/skin/connect/basic/current_connect.skin.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$connect_skin_url.'/style.css">', 0);
|
||||
?>
|
||||
|
||||
<!-- 현재접속자 목록 시작 { -->
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table id="current_connect_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">번호</th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">위치</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?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;
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_num"><?php echo $list[$i]['num'] ?></td>
|
||||
<td class="td_name"><?php echo $list[$i]['name'] ?></td>
|
||||
<td><?php echo $display_location ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
if ($i == 0)
|
||||
echo "<tr><td colspan=\"3\" class=\"empty_table\">현재 접속자가 없습니다.</td></tr>";
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- } 현재접속자 목록 끝 -->
|
||||
1
theme/basic/skin/connect/basic/style.css
Normal file
1
theme/basic/skin/connect/basic/style.css
Normal file
@ -0,0 +1 @@
|
||||
@charset "utf-8";
|
||||
Reference in New Issue
Block a user