모바일 작업 중3

This commit is contained in:
whitedot
2013-03-04 16:42:46 +09:00
parent c613d9ae12
commit f9ab62fbc2
9 changed files with 54 additions and 96 deletions

View File

@ -3,8 +3,8 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G4_PATH.'/head.sub.php');
include_once(G4_LIB_PATH.'/latest.lib.php');
include_once(G4_LIB_PATH.'/outlogin.lib.php');
include_once(G4_LIB_PATH.'/poll.lib.php');
//include_once(G4_LIB_PATH.'/outlogin.lib.php');
//include_once(G4_LIB_PATH.'/poll.lib.php');
include_once(G4_LIB_PATH.'/visit.lib.php');
include_once(G4_LIB_PATH.'/connect.lib.php');
include_once(G4_LIB_PATH.'/popular.lib.php');
@ -17,7 +17,7 @@ include_once(G4_LIB_PATH.'/popular.lib.php');
<div id="hd_wrapper">
<div id="logo">
<a href="<?=G4_URL?>"><img src="<?=G4_IMG_URL?>/logo.jpg" alt="<?=$config['cf_title']?> 처음으로" width="53" height="37"></a>
<a href="<?=G4_URL?>"><img src="<?=G4_IMG_URL?>/logo.jpg" alt="처음으로" width="53" height="37"></a>
</div>
<fieldset id="schall">
@ -106,8 +106,8 @@ include_once(G4_LIB_PATH.'/popular.lib.php');
<div id="wrapper">
<div id="lnb">
<?=outlogin('basic'); // 외부 로그인 ?>
<?=poll('basic'); // 설문조사 ?>
<?//=outlogin('basic'); // 외부 로그인 ?>
<?//=poll('basic'); // 설문조사 ?>
</div>
<div id="container">
<? if ((!$bo_table || $w == 's' ) && !defined("_INDEX_")) {?><h1 id="wrapper_title"><?=$g4['title']?></h1><?}?>

View File

@ -51,14 +51,9 @@ if ($is_nogood) $colspan++;
<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>
@ -66,16 +61,6 @@ if ($is_nogood) $colspan++;
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">
<?
@ -88,25 +73,21 @@ if ($is_nogood) $colspan++;
<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><? } ?>
<?
// 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'];
?>
</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>'; } ?>

View File

@ -14,10 +14,10 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
<section id="bo_v_info">
<h2>게시물 정보</h2>
작성자 <strong><?=$view['name']?><? if ($is_ip_view) { echo "&nbsp;($ip)"; } ?></strong>
<span class="sound_only">작성일</span><strong><?=date("y-m-d H:i", strtotime($view['wr_datetime']))?></strong>
조회<strong><?=number_format($view['wr_hit'])?>회</strong>
댓글<strong><?=number_format($view['wr_comment'])?>건</strong>
작성자 <strong><?=$view['wr_name']?><? if ($is_ip_view) { echo "&nbsp;($ip)"; } ?></strong><br>
작성일 <strong><?=date("y-m-d H:i", strtotime($view['wr_datetime']))?></strong><br>
조회 <strong><?=number_format($view['wr_hit'])?>회</strong><br>
댓글 <strong><?=number_format($view['wr_comment'])?>건</strong>
</section>
<?

View File

@ -30,10 +30,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<table id="new_tbl" class="basic_tbl">
<thead>
<tr>
<th scope="col">그룹</th>
<th scope="col">게시판</th>
<th scope="col">제목</th>
<th scope="col">이름</th>
<th scope="col">일시</th>
</tr>
</thead>
@ -46,10 +44,8 @@ for ($i=0; $i<count($list); $i++)
$wr_subject = get_text(cut_str($list[$i]['wr_subject'], 80));
?>
<tr>
<td class="td_group"><a href="./new.php?gr_id=<?=$list[$i]['gr_id']?>"><?=$gr_subject?></a></td>
<td class="td_board"><a href="./board.php?bo_table=<?=$list[$i]['bo_table']?>"><?=$bo_subject?></a></td>
<td><a href="<?=$list[$i]['href']?>"><?=$list[$i]['comment']?><?=$wr_subject?></a></td>
<td class="td_name"><div><?=$list[$i]['name']?></div></td>
<td class="td_date"><?=$list[$i]['datetime2']?></td>
</tr>
<? } ?>