사용자: 갤러리 게시판 작업 2
This commit is contained in:
@ -477,6 +477,17 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#333;color:#fff;
|
||||
#bo_cate a:active {text-decoration:none}
|
||||
#bo_cate #bo_cate_on {z-index:2;border:1px solid #565e60;background:#fff;color:#565e60;font-weight:bold}
|
||||
|
||||
.td_subject img {margin-left:3px}
|
||||
|
||||
/* 갤러리 목록 */
|
||||
#bo_img h2 {margin:0;padding:0;width:1px;height:1px;overflow:hidden}
|
||||
#bo_img_list {margin:0;padding:0;list-style:none;zoom:1}
|
||||
#bo_img_list:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#bo_img_list li {float:left}
|
||||
.bo_img_con {margin:0;padding:0;list-style:none}
|
||||
.bo_img_con li {float:none !important}
|
||||
|
||||
/* 목록 공통 */
|
||||
.bo_fx {margin-bottom:5px;zoom:1}
|
||||
.bo_fx:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_fx ul {margin:0;padding:0;list-style:none}
|
||||
@ -491,7 +502,6 @@ fieldset button {padding:0 15px;height:24px;border:0;background:#333;color:#fff;
|
||||
.td_num strong {color:#000}
|
||||
.bo_cate_link {display:inline-block;margin:0 3px 0 0;padding:0 6px 0 0;border-right:1px solid #e7f1ed;color:#999 !important;font-weight:bold;text-decoration:none} /* 글제목줄 분류스타일 */
|
||||
.bo_current {color:#e8180c}
|
||||
.td_subject img {margin-left:3px}
|
||||
.cnt_cmt {font-weight:bold}
|
||||
|
||||
#bo_sch {margin-bottom:10px;padding-top:5px;text-align:center}
|
||||
|
||||
@ -77,7 +77,7 @@ if ($is_nogood) $colspan++;
|
||||
echo $list[$i]['num'];
|
||||
?>
|
||||
</td>
|
||||
<? if ($is_checkbox) { ?><td class="td_chk"><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i]['wr_id']?>" title="이 게시물 선택"></td><? } ?>
|
||||
<? if ($is_checkbox) { ?><td class="td_chk"><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i]['wr_id']?>" title="<?=$list[$i]['subject']?> 선택"></td><? } ?>
|
||||
<td class="td_subject">
|
||||
<?
|
||||
echo $list[$i]['icon_reply'];
|
||||
|
||||
@ -1,18 +1,11 @@
|
||||
<?
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// 선택옵션으로 인해 셀합치기가 가변적으로 변함
|
||||
$colspan = 5;
|
||||
|
||||
if ($is_checkbox) $colspan++;
|
||||
if ($is_good) $colspan++;
|
||||
if ($is_nogood) $colspan++;
|
||||
?>
|
||||
|
||||
<? if (!$wr_id) {?><h1 id="bo_list_title"><?=$g4['title']?></h1><?}?>
|
||||
|
||||
<!-- 게시판 목록 시작 -->
|
||||
<div id="bo_list" style="width:<?=$width;?>">
|
||||
<div id="bo_img" style="width:<?=$width;?>">
|
||||
|
||||
<? if ($is_category) { ?>
|
||||
<form id="fcategory" name="fcategory" method="get">
|
||||
@ -48,80 +41,64 @@ if ($is_nogood) $colspan++;
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
<input type="hidden" name="sw" value="">
|
||||
|
||||
<ul>
|
||||
<?
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
?>
|
||||
<li></li>
|
||||
<h2>이미지 목록</h2>
|
||||
|
||||
<ul id="bo_img_list">
|
||||
<? for ($i=0; $i<count($list); $i++) { ?>
|
||||
<li <? // 현재 읽고 있는 글이면, ?>class="bo_img_now">
|
||||
<span class="sound_only">
|
||||
<?
|
||||
if ($wr_id == $list[$i]['wr_id'])
|
||||
echo "<span class=\"bo_current\">열람중</span>";
|
||||
else
|
||||
echo $list[$i]['num'];
|
||||
?>
|
||||
</span>
|
||||
<? if ($is_checkbox) { ?><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i]['wr_id']?>" title="<?=$list[$i]['subject']?> 선택"><? } ?>
|
||||
<ul class="bo_img_con">
|
||||
<li>
|
||||
<? if ($list[$i]['is_notice']) { // 공지사항 ?><strong>공지</strong>
|
||||
<? } else { ?>
|
||||
<? // 파일 설명이 있을 경우 alt까지 출력해주세요. ?>
|
||||
<img src="" alt="">
|
||||
<? } ?>
|
||||
</li>
|
||||
<li>
|
||||
<?
|
||||
echo $list[$i]['icon_reply'];
|
||||
if ($is_category && $list[$i]['ca_name']) {
|
||||
?>
|
||||
<a href="<?=$list[$i]['ca_name_href']?>" class="bo_cate_link"><?=$list[$i]['ca_name']?></a>
|
||||
<? } ?>
|
||||
<a href="<?=$list[$i]['href']?>">
|
||||
<?=$list[$i]['subject']?>
|
||||
<? if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?=$list[$i]['comment_cnt'];?><span class="sound_only">개</span><? } ?>
|
||||
</a>
|
||||
<?
|
||||
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
|
||||
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
|
||||
|
||||
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
|
||||
if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
|
||||
if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file'];
|
||||
if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link'];
|
||||
if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];
|
||||
|
||||
?>
|
||||
</li>
|
||||
<li><?=$list[$i]['name']?></li>
|
||||
<li><?=$list[$i]['datetime2']?></li>
|
||||
<li><?=$list[$i]['wr_hit']?></li>
|
||||
<li>
|
||||
<span>추천<strong><?=$list[$i]['wr_good']?></strong></span>
|
||||
<span>비추천<strong><?=$list[$i]['wr_nogood']?></strong></span>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<? } ?>
|
||||
<? if (count($list) == 0) { echo "<li class=\"empty_list\">게시물이 없습니다.</li>"; } ?>
|
||||
</ul>
|
||||
|
||||
|
||||
<table class="basic_tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">번호</th>
|
||||
<? if ($is_checkbox) { ?><th scope="col"><input type="checkbox" onclick="if (this.checked) all_checked(true); else all_checked(false);" title="현재 페이지 게시물 전체선택"></th><?}?>
|
||||
<th scope="col">제목</th>
|
||||
<th scope="col">글쓴이</th>
|
||||
<th scope="col"><?=subject_sort_link('wr_datetime', $qstr2, 1)?>날짜</a></th>
|
||||
<th scope="col"><?=subject_sort_link('wr_hit', $qstr2, 1)?>조회</a></th>
|
||||
<? if ($is_good) { ?><th scope="col"><?=subject_sort_link('wr_good', $qstr2, 1)?>추천</a></th><?}?>
|
||||
<? if ($is_nogood) { ?><th scope="col"><?=subject_sort_link('wr_nogood', $qstr2, 1)?>비추천</a></th><?}?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
?>
|
||||
<tr class="<? if ($list[$i]['is_notice']) echo "bo_notice";?><? if ($board[1]) echo "bo_sideview";?>">
|
||||
<td class="td_num">
|
||||
<?
|
||||
if ($list[$i]['is_notice']) // 공지사항
|
||||
echo '<strong>공지</strong>';
|
||||
else if ($wr_id == $list[$i]['wr_id'])
|
||||
echo "<span class=\"bo_current\">열람중</span>";
|
||||
else
|
||||
echo $list[$i]['num'];
|
||||
?>
|
||||
</td>
|
||||
<? if ($is_checkbox) { ?><td class="td_chk"><input type="checkbox" name="chk_wr_id[]" value="<?=$list[$i]['wr_id']?>" title="이 게시물 선택"></td><? } ?>
|
||||
<td class="td_subject">
|
||||
<?
|
||||
echo $list[$i]['icon_reply'];
|
||||
if ($is_category && $list[$i]['ca_name']) {
|
||||
?>
|
||||
<a href="<?=$list[$i]['ca_name_href']?>" class="bo_cate_link"><?=$list[$i]['ca_name']?></a>
|
||||
<? } ?>
|
||||
|
||||
<a href="<?=$list[$i]['href']?>">
|
||||
<?=$list[$i]['subject']?>
|
||||
<? if ($list[$i]['comment_cnt']) { ?><span class="sound_only">댓글</span><?=$list[$i]['comment_cnt'];?><span class="sound_only">개</span><? } ?>
|
||||
</a>
|
||||
|
||||
<?
|
||||
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
|
||||
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
|
||||
|
||||
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
|
||||
if (isset($list[$i]['icon_hot'])) echo $list[$i]['icon_hot'];
|
||||
if (isset($list[$i]['icon_file'])) echo $list[$i]['icon_file'];
|
||||
if (isset($list[$i]['icon_link'])) echo $list[$i]['icon_link'];
|
||||
if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];
|
||||
|
||||
?>
|
||||
</td>
|
||||
<td class="td_name"><?=$list[$i]['name']?></td>
|
||||
<td class="td_date"><?=$list[$i]['datetime2']?></td>
|
||||
<td class="td_num"><?=$list[$i]['wr_hit']?></td>
|
||||
<? if ($is_good) { ?><td class="td_num"><?=$list[$i]['wr_good']?></td><? } ?>
|
||||
<? if ($is_nogood) { ?><td class="td_num"><?=$list[$i]['wr_nogood']?></td><? } ?>
|
||||
</tr>
|
||||
<?}?>
|
||||
<? if (count($list) == 0) { echo '<tr><td colspan="'.$colspan.'" class="empty_table">게시물이 없습니다.</td></tr>'; } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<? if ($list_href || $is_checkbox || $write_href) {?>
|
||||
<div class="bo_fx">
|
||||
<ul class="btn_bo_adm">
|
||||
|
||||
35
test2.php
35
test2.php
@ -4,25 +4,30 @@
|
||||
<meta charset="UTF-8">
|
||||
<title>margin 계산</title>
|
||||
<style>
|
||||
#wrap {background:#bbb}
|
||||
#test {float:left;background:#ddd}
|
||||
#testb {float:left;background:#eee}
|
||||
p {clear:both;margin:10px;border-top:1px solid #ddd}
|
||||
|
||||
textarea::selection{background:#98d33c;color:#fff;}
|
||||
ul {list-style:none;width:200px}
|
||||
li {float:left;width:50px;height:50px}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>112312</p>
|
||||
<div id="wrap">
|
||||
<div id="test">1</div>
|
||||
<div id="testb">2</div>
|
||||
</div>
|
||||
<p>111213123232312</p>
|
||||
|
||||
|
||||
|
||||
<textarea style="background:#000;color:#fff"></textarea>
|
||||
<ul>
|
||||
<li style="background:#eee">1</li>
|
||||
<li style="background:#ddd">2</li>
|
||||
<li style="background:#eee">3</li>
|
||||
<li style="background:#ddd">4</li>
|
||||
<li style="background:#ddd;clear:both">5</li>
|
||||
<li style="background:#eee">6</li>
|
||||
<li style="background:#ddd">7</li>
|
||||
<li style="background:#eee">8</li>
|
||||
<li style="background:#eee;clear:both">9</li>
|
||||
<li style="background:#ddd">10</li>
|
||||
<li style="background:#eee">11</li>
|
||||
<li style="background:#ddd">12</li>
|
||||
<li style="background:#ddd;clear:both">13</li>
|
||||
<li style="background:#eee">14</li>
|
||||
<li style="background:#ddd">15</li>
|
||||
<li style="background:#eee">16</li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user