코멘트 페이징 표시부분에 태그를 주고 싶은데 정보
코멘트 페이징 표시부분에 태그를 주고 싶은데본문
링크 밑줄 삭제하고 폰트도 바꾸고
현재 페이지에는 색을 넣고 싶은데요
스타일 태그를 어느곳에 적어야하는지 모르겠네요;
계속 오류만 나고
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<script language="JavaScript">
// 글자수 제한
var char_min = parseInt(<?=$comment_min?>); // 최소
var char_max = parseInt(<?=$comment_max?>); // 최대
</script>
<? if ($cwin==1) { ?><table width=100% cellpadding=10 align=center><tr><td><?}?>
<? // 코멘트 번호 계산식 및 페이징 표시
$c_total_count = count($list); // 전체 코멘트 수 할당
$c_rows = 50; // 보여줄 개수
if ($c_total_count != 0){
$c_total_page = ceil($c_total_count / $c_rows); // 전체 페이지 계산
if (!$c_page) $c_page = $c_total_page; // 페이지가 없으면 첫 페이지 (last 페이지)
$c_from_record = ($c_page - 1) * $c_rows; // 시작 코멘트 구하기
$c_last_record = $c_from_record + $c_rows; // 끝 코멘트 구하기
if($c_last_record > $c_total_count){ // 마지막 코멘트가 전체 코멘트 보다 크면 전체 코멘트로 할당
$c_last_record = $c_total_count;
}
}
// 페이징 처리 함수 및 표시
$c_pagelist = get_paging($c_rows, $c_page, $c_total_page, "./board.php?bo_table=$bo_table&wr_id=$wr_id&c_page=");
if ($c_pagelist) {
echo "<table width=100% cellpadding=3 cellspacing=3><tr><td align=center>$c_pagelist</td></tr></table>\n";
}
?>
<!-- 코멘트 리스트 -->
<div id="commentContents">
<br>
<? // 코멘트 표시
$i = $c_from_record;
for ($i; $i<$c_last_record; $i++) {
$comment_id = $list[$i][wr_id];
?>
현재 페이지에는 색을 넣고 싶은데요
스타일 태그를 어느곳에 적어야하는지 모르겠네요;
계속 오류만 나고
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<script language="JavaScript">
// 글자수 제한
var char_min = parseInt(<?=$comment_min?>); // 최소
var char_max = parseInt(<?=$comment_max?>); // 최대
</script>
<? if ($cwin==1) { ?><table width=100% cellpadding=10 align=center><tr><td><?}?>
<? // 코멘트 번호 계산식 및 페이징 표시
$c_total_count = count($list); // 전체 코멘트 수 할당
$c_rows = 50; // 보여줄 개수
if ($c_total_count != 0){
$c_total_page = ceil($c_total_count / $c_rows); // 전체 페이지 계산
if (!$c_page) $c_page = $c_total_page; // 페이지가 없으면 첫 페이지 (last 페이지)
$c_from_record = ($c_page - 1) * $c_rows; // 시작 코멘트 구하기
$c_last_record = $c_from_record + $c_rows; // 끝 코멘트 구하기
if($c_last_record > $c_total_count){ // 마지막 코멘트가 전체 코멘트 보다 크면 전체 코멘트로 할당
$c_last_record = $c_total_count;
}
}
// 페이징 처리 함수 및 표시
$c_pagelist = get_paging($c_rows, $c_page, $c_total_page, "./board.php?bo_table=$bo_table&wr_id=$wr_id&c_page=");
if ($c_pagelist) {
echo "<table width=100% cellpadding=3 cellspacing=3><tr><td align=center>$c_pagelist</td></tr></table>\n";
}
?>
<!-- 코멘트 리스트 -->
<div id="commentContents">
<br>
<? // 코멘트 표시
$i = $c_from_record;
for ($i; $i<$c_last_record; $i++) {
$comment_id = $list[$i][wr_id];
?>
댓글 전체
lib/common.lib.php 에서 수정해보세요.