mobile skin 적용중
This commit is contained in:
4
mobile/_common.php
Normal file
4
mobile/_common.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?
|
||||
$g4_path = '..'; // common.php 의 상대 경로
|
||||
include_once($g4_path.'/common.php');
|
||||
?>
|
||||
5
mobile/_head.php
Normal file
5
mobile/_head.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once($g4['path'].'/head.sub.php');
|
||||
?>
|
||||
5
mobile/_tail.php
Normal file
5
mobile/_tail.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once($g4['path'].'/tail.sub.php');
|
||||
?>
|
||||
102
mobile/index.php
Normal file
102
mobile/index.php
Normal file
@ -0,0 +1,102 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
include_once('./_head.php');
|
||||
?>
|
||||
|
||||
<div data-role="content" class="ui-content" role="main">
|
||||
<div class="content-primary">
|
||||
<style>
|
||||
table { width:100%; }
|
||||
table caption { text-align:left; }
|
||||
table thead th { text-align:left; border-bottom-width:1px; border-top-width:1px; }
|
||||
table th, td { text-align:left; padding:6px;}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<p>The default approach to styling content in jQuery Mobile is simple: Use a light hand. Our goal is to let the browser's native rendering take precedence; we add a bit of padding for more comfortable readability, and use the <a href="../api/themes.html" class="ui-link">theming system</a> to apply the font family and colors. </p>
|
||||
<p>Taking a light hand with content styling gives designers and developers a clean slate to work with, instead of fighting against a lot of complex style overhead.</p>
|
||||
|
||||
<h2>Default HTML markup styling</h2>
|
||||
<p>By default, jQuery Mobile themes use standard HTML styles and sizes for standard markup elements like headers, paragraph content, block quotes, anchor links, standard ordered, unordered and definition lists, and tables — as shown in the examples below:</p>
|
||||
<hr>
|
||||
|
||||
<h1>H1 Heading</h1>
|
||||
<h2>H2 Heading</h2>
|
||||
<h3>H3 Heading</h3>
|
||||
<h4>H4 Heading</h4>
|
||||
<h5>H5 Heading</h5>
|
||||
<h6>H6 Heading</h6>
|
||||
|
||||
<p>This is a paragraph that contains <strong>strong</strong>, <em>emphasized</em> and <a href="index.html" class="ui-link">linked</a> text. Here is more text so you can see how HTML markup works in content. Here is more text so you can see how HTML markup works in content.</p>
|
||||
|
||||
<blockquote>How about some blockquote action with a <cite>cite</cite></blockquote>
|
||||
|
||||
<p>This is another paragraph of text so you can see how HTML markup works in content. This is another paragraph of text so you can see how HTML markup works in content. This is another paragraph of text so you can see how HTML markup works in content.</p>
|
||||
|
||||
<p>We add a few styles to <code>tables</code> and <code>fieldsets</code> to make them more legible, which are easily overridden with custom styles.</p>
|
||||
|
||||
<ul>
|
||||
<li>Unordered list item 1</li>
|
||||
<li>Unordered list item 1</li>
|
||||
<li>Unordered list item 1</li>
|
||||
</ul>
|
||||
|
||||
<ol>
|
||||
<li>Ordered list item 1</li>
|
||||
<li>Ordered list item 1</li>
|
||||
<li>Ordered list item 1</li>
|
||||
</ol>
|
||||
|
||||
<dl title="Definition list">
|
||||
<dt>Definition term</dt>
|
||||
<dd>I'm the definition text</dd>
|
||||
<dt>Definition term</dt>
|
||||
<dd>I'm the definition text</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<table summary="This table lists all the JetBlue flights.">
|
||||
<caption>Travel Itinerary</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Flight:</th>
|
||||
<th scope="col">From:</th>
|
||||
<th scope="col">To:</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="5">Total: 3 flights</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">JetBlue 983</th>
|
||||
<td>Boston (BOS)</td>
|
||||
<td>New York (JFK)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">JetBlue 354</th>
|
||||
<td>San Francisco (SFO)</td>
|
||||
<td>Los Angeles (LAX)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">JetBlue 465</th>
|
||||
<td>New York (JFK)</td>
|
||||
<td>Portland (PDX)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div><!--/content-primary -->
|
||||
|
||||
</div>
|
||||
|
||||
<?
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
@ -9,218 +9,74 @@ if ($is_good) $colspan++;
|
||||
if ($is_nogood) $colspan++;
|
||||
?>
|
||||
|
||||
<? if (!$wr_id) {?><h1><?=$g4['title']?></h1><?}?>
|
||||
<?
|
||||
ob_start();
|
||||
?>
|
||||
<div data-role="navbar">
|
||||
<ul>
|
||||
<li><?
|
||||
preg_match("/<a href=\'([^\']+)\'>이전<\/a>/", $write_pages, $matches);
|
||||
$prev_href = $matches[1];
|
||||
|
||||
<div class="bo_fx">
|
||||
<div id="bo_cate">
|
||||
<? if ($is_category) { ?>
|
||||
<form id="fcategory" name="fcategory" method="get">
|
||||
<select name="sca" onchange="location='<?=$category_location?>'+<?=strtolower($g4['charset'])=='utf-8' ? "encodeURIComponent(this.value)" : "this.value"?>;">
|
||||
<option value=''>전체</option>
|
||||
<?=$category_option?>
|
||||
</select>
|
||||
</form>
|
||||
<? } ?>
|
||||
<span>Total <?=number_format($total_count)?>건</span>
|
||||
<?=$page?> 페이지
|
||||
</div>
|
||||
preg_match("/<a href=\'([^\']+)\'>다음<\/a>/", $write_pages, $matches);
|
||||
$next_href = $matches[1];
|
||||
|
||||
<fieldset id="bo_sch">
|
||||
<legend>게시물 검색</legend>
|
||||
if ($prev_href)
|
||||
echo "<a href='$prev_href'>";
|
||||
else {
|
||||
/*
|
||||
define("_PREV_POPUP_", true);
|
||||
echo "<a href='#prev_popup' data-rel='dialog' data-transition='pop'>";
|
||||
*/
|
||||
echo "<a href='javascript:;' onclick=\"alert('이전 페이지 없음');\">";
|
||||
}
|
||||
?>< 이전</a></li>
|
||||
<li><?
|
||||
if ($next_href)
|
||||
echo "<a href='$next_href'>";
|
||||
else {
|
||||
/*
|
||||
define("_NEXT_POPUP_", true);
|
||||
echo "<a href='#next_popup' data-rel='dialog' data-transition='pop'>";
|
||||
*/
|
||||
echo "<a href='javascript:;' onclick=\"alert('다음 페이지 없음');\">";
|
||||
}
|
||||
?>다음 ></a></li>
|
||||
<!-- <li><a href="<?=$g4[path]?>/bbs/board.php?bo_table=<?=$bo_table?>&t=<?=time()?>">1페이지</a></li> -->
|
||||
<li><a href="./write.php?bo_table=<?=$bo_table?>" data-ajax="false">글쓰기</a></li>
|
||||
</ul>
|
||||
</div><!-- /navbar -->
|
||||
<?
|
||||
$navbar = ob_get_clean();
|
||||
|
||||
<form name="fsearch" method="get">
|
||||
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
|
||||
<input type="hidden" name="sca" value="<?=$sca?>">
|
||||
<select name="sfl" title="검색대상">
|
||||
<option value="wr_subject">제목</option>
|
||||
<option value="wr_content">내용</option>
|
||||
<option value="wr_subject||wr_content">제목+내용</option>
|
||||
<option value="mb_id,1">회원아이디</option>
|
||||
<option value="mb_id,0">회원아이디(코)</option>
|
||||
<option value="wr_name,1">글쓴이</option>
|
||||
<option value="wr_name,0">글쓴이(코)</option>
|
||||
</select>
|
||||
<input name="stx" class="fieldset_input required" maxlength="15" size="15" required value="<?=stripslashes($stx)?>" title="검색어">
|
||||
<input type="hidden" name="sop" value="and">
|
||||
<input type="submit" class="fieldset_submit" value="검색">
|
||||
</form>
|
||||
</fieldset>
|
||||
echo $navbar;
|
||||
?>
|
||||
|
||||
<? if ($rss_href || $write_href) {?>
|
||||
<ul class="btn_bo_user">
|
||||
<? if ($rss_href) { ?><li><a href="<?=$rss_href?>" class="btn02">RSS</a></li><? } ?>
|
||||
<? if ($admin_href) { ?><li><a href="<?=$admin_href?>" class="btn03">관리자</a></li><? } ?>
|
||||
<? if ($write_href) { ?><li><a href="<?=$write_href?>" class="btn01">글쓰기</a></li><? } ?>
|
||||
</ul>
|
||||
<? } ?>
|
||||
</div>
|
||||
|
||||
<!-- 게시판 목록 시작 -->
|
||||
<form id="fboardlist" name="fboardlist" method="post" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);">
|
||||
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
|
||||
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
||||
<input type="hidden" name="stx" value="<?=$stx?>">
|
||||
<input type="hidden" name="spt" value="<?=$spt?>">
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
<input type="hidden" name="sw" value="">
|
||||
<table id="bo_list">
|
||||
<caption><?=$board['bo_subject']?> 목록</caption>
|
||||
<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);"></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>
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<?
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
echo "\n<li class='ui-body ui-body-b'><a href='{$list[$i]['href']}'>";
|
||||
echo "\n<p class='list_name'>{$list[$i]['wr_name']}</p>";
|
||||
echo "\n<p class='list_subject'><strong>{$list[$i]['subject']}</strong></p>";
|
||||
echo "\n<p class='ui-li-count'>{$list[$i]['wr_comment']}</p>";
|
||||
//echo "\n<p class='ui-li-aside'>{$list[$i]['wr_name']}</p>";
|
||||
echo "\n</a></li>";
|
||||
}
|
||||
|
||||
/*
|
||||
<li><a href="index.html">
|
||||
<h3>jQuery Team</h3>
|
||||
<p><strong>Boston Conference Planning</strong></p>
|
||||
<p>In preparation for the upcoming conference in Boston, we need to start gathering a list of sponsors and speakers.</p>
|
||||
<p class="ui-li-aside"><strong>9:18</strong>AM</p>
|
||||
</a></li>
|
||||
*/
|
||||
?>
|
||||
<tr<? if ($list[$i]['is_notice']) echo " class=\"bo_notice\"";?>>
|
||||
<td class="td_bignum">
|
||||
<?
|
||||
if ($list[$i]['is_notice']) // 공지사항
|
||||
echo '공지';
|
||||
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]['reply'];
|
||||
echo $list[$i]['icon_reply'];
|
||||
if ($is_category && $list[$i]['ca_name']) {
|
||||
?>
|
||||
<a href="<?=$list[$i]['ca_name_href']?>" class="bo_cate_link<? if ($wr_id == $list[$i]['wr_id']) echo " bo_current";?>"><?=$list[$i]['ca_name']?></a>
|
||||
<? } ?>
|
||||
</ul>
|
||||
|
||||
<a href="<?=$list[$i]['href']?>"<? if ($wr_id == $list[$i]['wr_id']) echo " class=\"bo_current\"";?>>
|
||||
<?=$list[$i]['subject']?>
|
||||
<? if ($list[$i]['comment_cnt']) { ?><?=$list[$i]['comment_cnt'];?><? } ?>
|
||||
</a>
|
||||
<!-- <? if ($write_href) { ?><a href="<?=$write_href?>" data-role="button" data-icon="plus" data-inline="true">글쓰기</a><? } ?> -->
|
||||
|
||||
<?
|
||||
// if ($list[$i]['link']['count']) { echo '['.$list[$i]['link']['count']}.']'; }
|
||||
// if ($list[$i]['file']['count']) { echo '<'.$list[$i]['file']['count'].'>'; }
|
||||
<?
|
||||
echo $navbar;
|
||||
?>
|
||||
|
||||
if (isset($list[$i]['icon_new'])) echo $list[$i]['icon_new'];
|
||||
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_hot'])) echo $list[$i]['icon_hot'];
|
||||
if (isset($list[$i]['icon_secret'])) echo $list[$i]['icon_secret'];
|
||||
?>
|
||||
</td>
|
||||
<td class="td_name"><div><?=$list[$i]['name']?></div></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>
|
||||
|
||||
<div class="bo_fx">
|
||||
<ul class="btn_bo_adm">
|
||||
<? if ($list_href) { ?>
|
||||
<li><a href="<?=$list_href?>" class="btn02">목록</a></li>
|
||||
<? } ?>
|
||||
<? if ($is_checkbox) { ?>
|
||||
<li><input type="submit" name="btn_submit" class="btn02" onclick="document.pressed=this.value" value="선택삭제"></li>
|
||||
<li><input type="submit" name="btn_submit" class="btn02" onclick="document.pressed=this.value" value="선택복사"></li>
|
||||
<li><input type="submit" name="btn_submit" class="btn02" onclick="document.pressed=this.value" value="선택이동"></li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
|
||||
<ul class="btn_bo_user">
|
||||
<li><? if ($write_href) { ?><a href="<?=$write_href?>" class="btn01">글쓰기</a><? } ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<noscript>
|
||||
<p>자바스크립트를 사용하지 않는 경우<br>별도의 확인 절차 없이 바로 선택삭제 처리하므로 주의하시기 바랍니다.</p>
|
||||
</noscript>
|
||||
|
||||
<!-- 페이지 -->
|
||||
<div class="pg">
|
||||
<? if ($prev_part_href) { echo '<a href="'.$prev_part_href.'">이전검색</a>'; } ?>
|
||||
<?=$write_pages?>
|
||||
<? if ($next_part_href) { echo '<a href="'.$next_part_href.'">다음검색</a>'; } ?>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
<? if ($sca) { echo "document.fcategory.sca.value = \"$sca\";"; } ?>
|
||||
<? if ($stx) { echo "document.fsearch.sfl.value = \"$sfl\";"; } ?>
|
||||
</script>
|
||||
|
||||
<? if ($is_checkbox) { ?>
|
||||
<script>
|
||||
function all_checked(sw) {
|
||||
var f = document.fboardlist;
|
||||
|
||||
for (var i=0; i<f.length; i++) {
|
||||
if (f.elements[i].name == "chk_wr_id[]")
|
||||
f.elements[i].checked = sw;
|
||||
}
|
||||
}
|
||||
|
||||
function fboardlist_submit(f) {
|
||||
var chk_count = 0;
|
||||
|
||||
for (var i=0; i<f.length; i++) {
|
||||
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
|
||||
chk_count++;
|
||||
}
|
||||
|
||||
if (!chk_count) {
|
||||
alert(document.pressed + "할 게시물을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(document.pressed == "선택복사") {
|
||||
select_copy("copy");
|
||||
return;
|
||||
}
|
||||
|
||||
if(document.pressed == "선택이동") {
|
||||
select_copy("move");
|
||||
return;
|
||||
}
|
||||
|
||||
if(document.pressed == "선택삭제") {
|
||||
if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다"))
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// 선택한 게시물 복사 및 이동
|
||||
function select_copy(sw) {
|
||||
var f = document.fboardlist;
|
||||
|
||||
if (sw == 'copy')
|
||||
str = "복사";
|
||||
else
|
||||
str = "이동";
|
||||
|
||||
var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");
|
||||
|
||||
f.sw.value = sw;
|
||||
f.target = "move";
|
||||
f.action = "./move.php";
|
||||
f.submit();
|
||||
}
|
||||
</script>
|
||||
<? } ?>
|
||||
<!-- 게시판 목록 끝 -->
|
||||
|
||||
@ -1,188 +1,156 @@
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
function get_datetime($datetime)
|
||||
{
|
||||
global $g4;
|
||||
|
||||
$time = strtotime($datetime);
|
||||
if (date("Y-m-d", $time) == $g4[time_ymd]) {
|
||||
$date = date("H:i", $time);
|
||||
}
|
||||
else {
|
||||
$date = date("m.d", $time);
|
||||
}
|
||||
return $date;
|
||||
}
|
||||
?>
|
||||
|
||||
<p id="bo_v_title"><strong><?=$board['bo_subject']?></strong></p>
|
||||
|
||||
<div id="bo_v">
|
||||
<h1 id="bo_v_h1"><?=cut_hangul_last(get_text($view['wr_subject']))?></h1>
|
||||
|
||||
<section id="bo_v_info">
|
||||
<h2>게시물 정보</h2>
|
||||
<dl>
|
||||
<? if ($is_category) { ?>
|
||||
<dt>분류</dt>
|
||||
<dd><?=($category_name ? "{$view['ca_name']} " : "");?></dd>
|
||||
<? } ?>
|
||||
<dt>작성자</dt>
|
||||
<dd><div><?=$view['name']?><? if ($is_ip_view) { echo " ($ip)"; } ?></div></dd>
|
||||
<dt>작성일</dt>
|
||||
<dd><?=date("y-m-d H:i", strtotime($view['wr_datetime']))?></dd>
|
||||
<dt>조회</dt>
|
||||
<dd><?=number_format($view['wr_hit'])?>회</dd>
|
||||
<dt>댓글</dt>
|
||||
<dd><?=number_format($view['wr_comment'])?>건</dd>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<? if (!empty($view['file'])) {?>
|
||||
<section id="bo_v_file">
|
||||
<h2>첨부파일</h2>
|
||||
<ul>
|
||||
<?
|
||||
// 가변 파일
|
||||
$cnt = 0;
|
||||
for ($i=0; $i<count($view['file']); $i++) {
|
||||
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view']) {
|
||||
$cnt++;
|
||||
|
||||
if($board['bo_download_point'] < 0) {
|
||||
$view['file'][$i]['confirm_href'] = str_replace("download.php", "downloadconfirm.php", $view['file'][$i]['href']);
|
||||
} else {
|
||||
$view['file'][$i]['confirm_href'] = $view['file'][$i]['href'];
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<? echo $view['file'][$i]['confirm_href']; ?>" onclick="javascript:file_download('<?=$view['file'][$i]['href']?>', '<?=$view['file'][$i]['source']?>'); return false;">
|
||||
<span><?=$view['file'][$i]['source']?> (<?=$view['file'][$i]['size']?>)</span>
|
||||
<span class="bo_v_file_cnt"><?=$view['file'][$i]['download']?></span>
|
||||
<span>DATE : <?=$view['file'][$i]['datetime']?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?
|
||||
}
|
||||
<div data-role="navbar">
|
||||
<ul>
|
||||
<li><?
|
||||
if ($prev_href)
|
||||
echo "<a href='$prev_href'>";
|
||||
else {
|
||||
echo "<a href='javascript:;' onclick=\"alert('이전 글 없음');\">";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
<? } ?>
|
||||
|
||||
<? if (!empty($view['link'])) {?>
|
||||
<section id="bo_v_link">
|
||||
<h2>관련링크</h2>
|
||||
<ul>
|
||||
<?
|
||||
// 링크
|
||||
$cnt = 0;
|
||||
for ($i=1; $i<=$g4['link_count']; $i++) {
|
||||
if ($view['link'][$i]) {
|
||||
$cnt++;
|
||||
$link = cut_str($view['link'][$i], 70);
|
||||
?>
|
||||
<li>
|
||||
<a href="<?=$view['link_href'][$i]?>" target="_blank">
|
||||
<span><?=$link?></span>
|
||||
<span class="bo_v_link_cnt"><?=$view['link_hit'][$i]?>회 연결</span>
|
||||
</a>
|
||||
</li>
|
||||
<?
|
||||
}
|
||||
?>< 이전</a></li>
|
||||
<li><?
|
||||
if ($next_href)
|
||||
echo "<a href='$next_href'>";
|
||||
else {
|
||||
echo "<a href='javascript:;' onclick=\"alert('다음 글 없음');\">";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
<? } ?>
|
||||
?>다음 ></a></li>
|
||||
<li><a href="<?=$list_href?>">목록보기</a></li>
|
||||
<li><a href="javascript:;" onclick="document.getElementById('comment_top').scrollIntoView();">댓글 (<?=$view[wr_comment]?>)</a></li>
|
||||
</ul>
|
||||
</div><!-- /navbar -->
|
||||
|
||||
<aside id="bo_v_top">
|
||||
<h2>게시물 상단 링크</h2>
|
||||
<?
|
||||
ob_start();
|
||||
?>
|
||||
<ul class="bo_v_com">
|
||||
<? if ($update_href) { ?><li><a href="<?=$update_href?>" class="btn02">수정</a></li><? } ?>
|
||||
<? if ($delete_href) { ?><li><a href="<?=$delete_href?>" onclick="del(this.href); return false;" class="btn02">삭제</a></li><? } ?>
|
||||
<? if ($copy_href) { ?><li><a href="<?=$copy_href?>" onclick="board_move(this.href); return false;" class="btn03">복사</a></li><? } ?>
|
||||
<? if ($move_href) { ?><li><a href="<?=$move_href?>" onclick="board_move(this.href); return false;" class="btn03">이동</a></li><? } ?>
|
||||
<? if ($search_href) { ?><li><a href="<?=$search_href?>" class="btn02">검색</a></li><? } ?>
|
||||
<li><a href="<?=$list_href?>" class="btn02">목록</a></li>
|
||||
<? if ($reply_href) { ?><li><a href="<?=$reply_href?>" class="btn02">답변</a></li><? } ?>
|
||||
<? if ($write_href) { ?><li><a href="<?=$write_href?>" class="btn01">글쓰기</a></li><? } ?>
|
||||
</ul>
|
||||
<?
|
||||
$link_buttons = ob_get_contents();
|
||||
ob_end_flush();
|
||||
?>
|
||||
</aside>
|
||||
<h3><?=cut_hangul_last(get_text($view[wr_subject]))?> </h3>
|
||||
<div>
|
||||
<p style="clear:both;" class="view_name"><?=$view[wr_name]?></p>
|
||||
<p class="view_time"><?=get_datetime($view[wr_datetime])?></p>
|
||||
</div>
|
||||
|
||||
<article id="bo_v_atc">
|
||||
<header>
|
||||
<h1>본문</h1>
|
||||
</header>
|
||||
<div>
|
||||
<?
|
||||
// 파일 출력
|
||||
for ($i=0; $i<=count($view['file']); $i++) {
|
||||
if (isset($view['file'][$i]['view']) && $view['file'][$i]['view'])
|
||||
echo $view['file'][$i]['view'];
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<!-- <div class="view_cmnt"><button>댓글보기 : <?=(int)$view[wr_comment]?></button></div> -->
|
||||
|
||||
<p><?=$view['content'];?></p>
|
||||
<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
|
||||
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
|
||||
<div style="clear:both; line-height:150%;">
|
||||
|
||||
<? if ($is_signature) { ?><p><?=$signature?></p><? } ?>
|
||||
|
||||
<? if ($scrap_href || $good_href || $nogood_href) { ?>
|
||||
<div id="bo_v_act">
|
||||
<? if ($scrap_href) { ?><a href="<? echo $scrap_href; ?>" onclick="win_scrap(this.href); return false;" target="_blank" class="btn02">스크랩</a><? } ?>
|
||||
<? if ($good_href) {?><a href="<?=$good_href?>" class="btn02" target="hiddenframe">추천 <strong><?=number_format($view['wr_good'])?></strong></a><? } ?>
|
||||
<? if ($nogood_href) {?><a href="<?=$nogood_href?>" class="btn02" target="hiddenframe">비추천 <strong><?=number_format($view['wr_nogood'])?></strong></a><? } ?>
|
||||
</div>
|
||||
<? } ?>
|
||||
</article>
|
||||
|
||||
<? if ($view[wr_singo]) { ?>
|
||||
<p>신고된 게시물 입니다.</p>
|
||||
<? } else { ?>
|
||||
|
||||
<p>
|
||||
<?
|
||||
// 코멘트 입출력
|
||||
include_once('./view_comment.php');
|
||||
// 파일 출력
|
||||
for ($i=0; $i<=count($view[file]); $i++) {
|
||||
if ($view_file = $view[file][$i][view]) {
|
||||
$str = $view_file;
|
||||
echo preg_replace_callback("#<img[^>]+>#iS", "mobile_thumb", $str);
|
||||
}
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
|
||||
<aside id="bo_v_bot">
|
||||
<h2>게시물 하단 링크</h2>
|
||||
<? if ($prev_href || $next_href) { ?>
|
||||
<ul id="bo_v_nb">
|
||||
<? if ($prev_href) { ?><li><a href="<?=$prev_href?>" class="btn02">이전</a></li><? } ?>
|
||||
<? if ($next_href) { ?><li><a href="<?=$next_href?>" class="btn02">다음</a></li><? } ?>
|
||||
</ul>
|
||||
<? } ?>
|
||||
<p>
|
||||
<?
|
||||
$str = $view[content];
|
||||
$str = preg_replace_callback("#(<a\s+[^>]+>\s*)?<img[^>]+>(?(1)\s*</a>)#iS", "mobile_thumb", $str);
|
||||
// 개인정보노출방지
|
||||
if (!($is_admin || ($write[mb_id] && $write[mb_id] == $member[mb_id]))) {
|
||||
if ($board[gr_id] == 'request')
|
||||
$str = get_privacy_hidden($str);
|
||||
}
|
||||
|
||||
$s = $str;
|
||||
//if ($is_admin)
|
||||
{
|
||||
//$s = $view[content];
|
||||
|
||||
preg_match("/(?<=\<embed).*width=[\'\"]?(\d+)[\'\"]?/i", $s, $match_w);
|
||||
preg_match("/(?<=\<embed).*height=[\'\"]?(\d+)[\'\"]?/i", $s, $match_h);
|
||||
|
||||
$width = $match_w[1];
|
||||
$height = $match_h[1];
|
||||
|
||||
if ($width > 300) {
|
||||
$rate = (int)($width / 300);
|
||||
$height = (int)($height / $rate);
|
||||
$width = 300;
|
||||
}
|
||||
|
||||
$s = preg_replace("/(?<=\<object)(.*width=)[\'\"]?(\d+)[\'\"]?/i", "$1'$width'", $s);
|
||||
$s = preg_replace("/(?<=\<object)(.*height=)[\'\"]?(\d+)[\'\"]?/i", "$1'$height'", $s);
|
||||
$s = preg_replace("/(?<=\<embed)(.*width=)[\'\"]?(\d+)[\'\"]?/i", "$1'$width'", $s);
|
||||
$s = preg_replace("/(?<=\<embed)(.*height=)[\'\"]?(\d+)[\'\"]?/i", "$1'$height'", $s);
|
||||
|
||||
//echo htmlspecialchars($s);
|
||||
echo $s;
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
|
||||
<?
|
||||
// 설문
|
||||
if ($view['wr_6'] == 1) {
|
||||
$minus_wr_id = $wr_id * (-1);
|
||||
$sql = " select wr_content from `$write_table` where wr_parent = '$minus_wr_id' and wr_subject = 'pollOption' and wr_is_comment = 2 order by wr_id asc ";
|
||||
$result = sql_query($sql);
|
||||
echo "<ul>";
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$row[wr_content] = strip_tags($row[wr_content]);
|
||||
echo "<li>$row[wr_content]</li>\n";
|
||||
}
|
||||
echo "</ul>";
|
||||
echo "<div>설문결과는 PC버전에서만 보실수 있습니다.</div>";
|
||||
}
|
||||
?>
|
||||
<? } ?>
|
||||
|
||||
<!-- 링크 버튼 -->
|
||||
<?=$link_buttons?>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function file_download(link, file) {
|
||||
<? if ($board['bo_download_point'] < 0) { ?>if (confirm("'"+file+"' 파일을 다운로드 하시면 포인트가 차감(<?=number_format($board['bo_download_point'])?>점)됩니다.\n\n포인트는 게시물당 한번만 차감되며 다음에 다시 다운로드 하셔도 중복하여 차감하지 않습니다.\n\n그래도 다운로드 하시겠습니까?"))<?}?>
|
||||
document.location.href=link;
|
||||
}
|
||||
<p id="comment_top"> </p>
|
||||
|
||||
function board_move(href)
|
||||
{
|
||||
window.open(href, "boardmove", "left=50, top=50, width=500, height=550, scrollbars=1");
|
||||
}
|
||||
</script>
|
||||
<?
|
||||
// 코멘트 입출력
|
||||
include_once("./view_comment.php");
|
||||
?>
|
||||
|
||||
<script src="<?=$g4['path']?>/js/board.js"></script>
|
||||
<!-- 게시글 보기 끝 -->
|
||||
<? if ($delete_href) { ?><a href="<?=$delete_href?>" data-role="button" data-icon="delete" data-inline="true">삭제</a><? } ?>
|
||||
|
||||
<script>
|
||||
// 이미지 등비율 리사이징
|
||||
$(document).ready(function(){
|
||||
var img = $('#bo_v_atc img');
|
||||
var img_org_width = img.width();
|
||||
$(window).resize(function(){
|
||||
var wrapper_width = $('#bo_v_atc').width();
|
||||
img.each(function() {
|
||||
var img_width = $(this).width();
|
||||
if (img_width > wrapper_width) {
|
||||
$(this).addClass('img_fix');
|
||||
} else if (img_width <= wrapper_width && img_width >= img_org_width) {
|
||||
$(this).removeClass('img_fix');
|
||||
}
|
||||
});
|
||||
}).resize();
|
||||
});
|
||||
</script>
|
||||
<br>
|
||||
<div data-role="navbar">
|
||||
<ul>
|
||||
<li><?
|
||||
if ($prev_href)
|
||||
echo "<a href='$prev_href'>";
|
||||
else {
|
||||
echo "<a href='javascript:;' onclick=\"alert('이전 글 없음');\">";
|
||||
}
|
||||
?>< 이전</a></li>
|
||||
<li><?
|
||||
if ($next_href)
|
||||
echo "<a href='$next_href'>";
|
||||
else {
|
||||
define("_NEXT_POPUP_", true);
|
||||
echo "<a href='#next_popup' data-rel='dialog' data-transition='pop'>";
|
||||
}
|
||||
?>다음 ></a></li>
|
||||
<li><a href="<?=$list_href?>">목록보기</a></li>
|
||||
<li><a href="javascript:;" onclick="window.scrollTo(0,0);">위로</a></li>
|
||||
<!-- <li><a href="<?=$list_href?>">목록</a></li> -->
|
||||
</ul>
|
||||
</div><!-- /navbar -->
|
||||
|
||||
@ -2,116 +2,51 @@
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<table width="600" height="50" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="center" valign="middle" bgcolor="#EBEBEB">
|
||||
<table width="590" height="40" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$member_skin_path?>/img/icon_01.gif" width="5" height="5"></td>
|
||||
<td width="75" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b><?=$g4[title]?></b></font></td>
|
||||
<td width="490" bgcolor="#FFFFFF" ></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="memo_write" class="new_win">
|
||||
<h1>쪽지보내기</h1>
|
||||
|
||||
<table width="600" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="600" height="20" colspan="14"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30" height="24"></td>
|
||||
<td width="99" align="center" valign="middle"><a href="./memo.php?kind=recv"><img src="<?=$member_skin_path?>/img/btn_recv_paper_off.gif" width="99" height="24" border="0"></a></td>
|
||||
<td width="2" align="center" valign="middle"> </td>
|
||||
<td width="99" align="center" valign="middle"><a href="./memo.php?kind=send"><img src="<?=$member_skin_path?>/img/btn_send_paper_off.gif" width="99" height="24" border="0"></a></td>
|
||||
<td width="2" align="center" valign="middle"> </td>
|
||||
<td width="99" align="center" valign="middle"><a href="./memo_form.php"><img src="<?=$member_skin_path?>/img/btn_write_paper_on.gif" width="99" height="24" border="0"></a></td>
|
||||
<td width="2" valign="middle"> </td>
|
||||
<td width="60" bgcolor="#EFEFEF"> </td>
|
||||
<td width="4" bgcolor="#EFEFEF""> </td>
|
||||
<td width="18" bgcolor="#EFEFEF"> </td>
|
||||
<td width="148" bgcolor="#EFEFEF"> </td>
|
||||
<td width="4" bgcolor="#EFEFEF"> </td>
|
||||
<td width="3" bgcolor="#EFEFEF"></td>
|
||||
<td width="30" height="24"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<ul class="new_win_ul">
|
||||
<li><a href="./memo.php?kind=recv">받은쪽지</a></li>
|
||||
<li><a href="./memo.php?kind=send">보낸쪽지</a></li>
|
||||
<li><a href="./memo_form.php">쪽지보내기</a></li>
|
||||
</ul>
|
||||
|
||||
<table width="600" border="0" cellspacing="0" cellpadding="0">
|
||||
<form name=fmemoform method=post onsubmit="return fmemoform_submit(this);" autocomplete="off">
|
||||
<tr>
|
||||
<td height="300" align="center" valign="top">
|
||||
<table width="540" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="20"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="2" bgcolor="#808080"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="540" height="2" align="center" valign="top" bgcolor="#FFFFFF">
|
||||
<table width=100% cellpadding=1 cellspacing=1 border=0>
|
||||
<tr bgcolor=#E1E1E1 align=center>
|
||||
<td width="30%" height="24" rowspan="2"><b>받는 회원아이디</b></td>
|
||||
<td width="70%" align="center"><input type=text name="me_recv_mb_id" required itemname="받는 회원아이디" value="<?=$me_recv_mb_id?>" style="width:95%;"></td>
|
||||
</tr>
|
||||
<tr bgcolor=#E1E1E1 align=center>
|
||||
<td>※ 여러 회원에게 보낼때는 컴마(,)로 구분하세요.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="180" align="center" valign="middle" bgcolor="#F6F6F6">
|
||||
<textarea name=me_memo rows=10 style='width:95%;' required itemname='내용'><?=$content?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<table width=100% cellpadding=1 cellspacing=1 border=0>
|
||||
<tr align=center>
|
||||
<td width="30%" height="24" rowspan="2"><img id='kcaptcha_image' /></td>
|
||||
<td width="70%" align="left">
|
||||
<input type=input size=10 name=wr_key itemname="자동등록방지" required> 왼쪽의 글자를 입력하세요.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="2" align="center" valign="top" bgcolor="#D5D5D5"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="2" align="center" valign="top" bgcolor="#E6E6E6"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40" align="center" valign="bottom">
|
||||
<input id=btn_submit type=image src="<?=$member_skin_path?>/img/btn_paper_send.gif" border=0>
|
||||
<a href="javascript:window.close();"><img src="<?=$member_skin_path?>/img/btn_close.gif" width="48" height="20" border="0"></a></td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
<form name="fmemoform" method="post" action="<?=$memo_action_url?>" onsubmit="return fmemoform_submit(this);">
|
||||
<table class="frm_tbl">
|
||||
<caption>쪽지쓰기</caption>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="me_recv_mb_id">받는 회원아이디</label></th>
|
||||
<td>
|
||||
<input type="text" id="me_recv_mb_id" name="me_recv_mb_id" class="frm_input required" size="47" required value="<?=$me_recv_mb_id?>">
|
||||
<span class="frm_info">여러 회원에게 보낼때는 컴마(,)로 구분하세요.</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="me_memo">내용</label></th>
|
||||
<td><textarea id="me_memo" name="me_memo" required><?=$content?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">자동등록방지</th>
|
||||
<td>
|
||||
<?=captcha_html();?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<script type="text/javascript" src="<?=$g4[path]?>/js/md5.js"></script>
|
||||
<script type="text/javascript" src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
|
||||
<script type="text/javascript">
|
||||
with (document.fmemoform) {
|
||||
if (me_recv_mb_id.value == "")
|
||||
me_recv_mb_id.focus();
|
||||
else
|
||||
me_memo.focus();
|
||||
}
|
||||
<div class="btn_win">
|
||||
<input type="submit" id="btn_submit" class="btn_submit" value="보내기">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function fmemoform_submit(f)
|
||||
{
|
||||
if (!check_kcaptcha(f.wr_key)) {
|
||||
return false;
|
||||
}
|
||||
<? echo chk_captcha_js(); ?>
|
||||
|
||||
document.getElementById("btn_submit").disabled = true;
|
||||
|
||||
f.action = "./memo_form_update.php";
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -11,7 +11,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<li><a href="./memo_form.php">쪽지보내기</a></li>
|
||||
</ul>
|
||||
|
||||
<form name="fmemoform" method="post" onsubmit="return fmemoform_submit(this);" autocomplete="off">
|
||||
<form name="fmemoform" method="post" action="<?=$memo_action_url?>" onsubmit="return fmemoform_submit(this);">
|
||||
<table class="frm_tbl">
|
||||
<caption>쪽지쓰기</caption>
|
||||
<tbody>
|
||||
@ -42,25 +42,11 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script src="<?=$g4[path]?>/js/md5.js"></script>
|
||||
<script src="<?="$g4[path]/js/jquery.kcaptcha.js"?>"></script>
|
||||
<script>
|
||||
with (document.fmemoform) {
|
||||
if (me_recv_mb_id.value == "")
|
||||
me_recv_mb_id.focus();
|
||||
else
|
||||
me_memo.focus();
|
||||
}
|
||||
|
||||
function fmemoform_submit(f)
|
||||
{
|
||||
if (!check_kcaptcha(f.wr_key)) {
|
||||
return false;
|
||||
}
|
||||
<? echo chk_captcha_js(); ?>
|
||||
|
||||
document.getElementById("btn_submit").disabled = true;
|
||||
|
||||
f.action = "./memo_form_update.php";
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user