게시판 리스트상단에 포인트 내용을 보여주고싶습니다. 정보
게시판 리스트상단에 포인트 내용을 보여주고싶습니다.본문
게시판 리스트상단에
<table>
<tr>
<td>글읽기: <?=$board[bo_read_point]?> / 글쓰기: <?=$board[bo_write_point]?> / 답변,코멘트쓰기: <?=$board[bo_comment_point]?> / 다운로드: <?=$board[bo_download_point]?></td>
</tr>
</table>
<tr>
<td>글읽기: <?=$board[bo_read_point]?> / 글쓰기: <?=$board[bo_write_point]?> / 답변,코멘트쓰기: <?=$board[bo_comment_point]?> / 다운로드: <?=$board[bo_download_point]?></td>
</tr>
</table>
이렇게 하니까 해당 게시판의 포인트내용이 보여지긴 합니다.
그런데
리스트상단에서 클릭하면 새창이 떠서 해당 게시판의 포인트만 보여줄려고 합니다.
위 내용을 수정해서 하고싶은데 어떻게 수정해야하는지 도저히 모르겠습니다.
############################################################
<?
$g4_path = "../../../"; // 상대 경로
include_once("$g4_path/common.php");
$g4_path = "../../../"; // 상대 경로
include_once("$g4_path/common.php");
$sql_common = " from $g4[board_table] a where (1) and bo_use_search = '1' ";
$sql = " select count(*) as cnt $sql_common";
$row = sql_fetch($sql);
$total_count = $row[cnt];
$row = sql_fetch($sql);
$total_count = $row[cnt];
$sql = " select * $sql_common";
$result = sql_query($sql);
$result = sql_query($sql);
$g4[title] = "포인트정책";
?>
?>
<table width="600" cellpadding="0" cellspacing="0">
<tr>
<td>
※ 회원가입시 : <?=$config[cf_register_point]?> 점<br />
※ 회원추천시 : <?=$config[cf_recommend_point]?> 점<br />
※ 회원로긴시 : <?=$config[cf_login_point]?> 점 (하루 한번만 적립)<br /><br />
</td>
</tr>
</table>
<table width="600" cellpadding="5" cellspacing="0" border='1'>
<tr align="center">
<td>게시판명</td>
<td>글읽기</td>
<td>글쓰기</td>
<td>코멘트쓰기</td>
<td>다운로드</td>
</tr>
<tr align="center">
<td>게시판명</td>
<td>글읽기</td>
<td>글쓰기</td>
<td>코멘트쓰기</td>
<td>다운로드</td>
</tr>
<? for ($i=0; $row=sql_fetch_array($result); $i++) { ?>
<tr>
<td><?=$row[bo_subject]?></td>
<td align="right"><?=$row[bo_read_point]?> 점</td>
<td align="right"><?=$row[bo_write_point]?> 점</td>
<td align="right"><?=$row[bo_comment_point]?> 점</td>
<td align="right"><?=$row[bo_download_point]?> 점</td>
</tr>
<? } if ($i == 0) echo "<tr><td colspan=5 align=center height=100>자료가 없습니다.</td></tr>"; ?>
</table>
</table>
############################################################
위에처럼 해서 bo_point.php 파일이름으로 스킨 디렉토리에 업로드 시켜서
<a href="javascript:void(window.open('<?=$board_skin_path?>/bo_point.php','no','width=700,height=460,toolbar=no,scrollbars=yes'))">포인트정책</a>
이렇게 링크를 걸면 보여지기까지는 했습니다.
제가 필요한건 전체 게시판이 나오는게 아니라 해당 게시판의 포인트 내용만 나오게 하고싶습니다...
좀 도와주세요;;;
댓글 전체

여기의 내용을....
<a href="javascript:void(window.open('<?=$board_skin_path?>/bo_point.php','no','width=700,height=460,toolbar=no,scrollbars=yes'))">포인트정책</a>
-----------------------------------------------------------------------------------
이렇게 바꾸시고...
<a href="javascript:void(window.open('<?=$board_skin_path?>/bo_point.php?bo_table=$bo_table','no','width=700,height=460,toolbar=no,scrollbars=yes'))">포인트정책</a>
####################################
여기를......
$sql_common = " from $g4[board_table] a where (1) and bo_use_search = '1' ";
---------------------------------------------------------------------------------
요렇게 하면 어떨까요?
$sql_common = " from $g4[board_table] a where (1) and bo_use_search = '1' and bo_table = '$bo_table'";
####################################
테스트는 못해봤습니다. 그런데 소스를 보고 이렇게 하면 될 듯 싶어서 글 적습니다.
더 좋은 방법은 고수님들이 해주실거에요....^^
<a href="javascript:void(window.open('<?=$board_skin_path?>/bo_point.php','no','width=700,height=460,toolbar=no,scrollbars=yes'))">포인트정책</a>
-----------------------------------------------------------------------------------
이렇게 바꾸시고...
<a href="javascript:void(window.open('<?=$board_skin_path?>/bo_point.php?bo_table=$bo_table','no','width=700,height=460,toolbar=no,scrollbars=yes'))">포인트정책</a>
####################################
여기를......
$sql_common = " from $g4[board_table] a where (1) and bo_use_search = '1' ";
---------------------------------------------------------------------------------
요렇게 하면 어떨까요?
$sql_common = " from $g4[board_table] a where (1) and bo_use_search = '1' and bo_table = '$bo_table'";
####################################
테스트는 못해봤습니다. 그런데 소스를 보고 이렇게 하면 될 듯 싶어서 글 적습니다.
더 좋은 방법은 고수님들이 해주실거에요....^^
다시...해보세요.
수정했습니다.
<tr><td>
<a href="javascript:void(window.open('<?=$board_skin_path?>/win_point.php?bo_table=<?=$bo_table?>','no','width=700,height=460,toolbar=no,scrollbars=yes'))">포인트정책</a>
</td></tr>
bo_point.php 내용을...
<?
$g4_path = "../../..";
include_once ("$g4_path/common.php");
?>
<?
//게시판포인트
$bo_point=@mysql_query("select * from $g4[board_table] where bo_table='{$bo_table}'");
while($bo_row = @mysql_fetch_array($bo_point))
{
echo"Point:<font color='red'>
읽고: {$bo_row[bo_read_point]}<br>
쓰고: {$bo_row[bo_write_point]}<br>
리플: {$bo_row[bo_comment_point]}<br>
</font>";
}
?>
<?//접속자포인트
$mb_point=@mysql_result(@mysql_query("select mb_point,mb_id from $g4[member_table] where mb_id='{$member[mb_id]}'"),0,0);
if($member[mb_id] !="" ) echo"Point:<font color='red'>{$mb_point}</font>";
?>
수정했습니다.
<tr><td>
<a href="javascript:void(window.open('<?=$board_skin_path?>/win_point.php?bo_table=<?=$bo_table?>','no','width=700,height=460,toolbar=no,scrollbars=yes'))">포인트정책</a>
</td></tr>
bo_point.php 내용을...
<?
$g4_path = "../../..";
include_once ("$g4_path/common.php");
?>
<?
//게시판포인트
$bo_point=@mysql_query("select * from $g4[board_table] where bo_table='{$bo_table}'");
while($bo_row = @mysql_fetch_array($bo_point))
{
echo"Point:<font color='red'>
읽고: {$bo_row[bo_read_point]}<br>
쓰고: {$bo_row[bo_write_point]}<br>
리플: {$bo_row[bo_comment_point]}<br>
</font>";
}
?>
<?//접속자포인트
$mb_point=@mysql_result(@mysql_query("select mb_point,mb_id from $g4[member_table] where mb_id='{$member[mb_id]}'"),0,0);
if($member[mb_id] !="" ) echo"Point:<font color='red'>{$mb_point}</font>";
?>
됩니다^^ 으흐흐흐
감사합니다.
win_point.php 를 bo_point 랑 잘못적힌것 빼곤요^^
아뭍든 이렇게 하고싶은걸 도움을 받아서 또 하나 해결하고나니 기분좋네요^^
감사합니다.
win_point.php 를 bo_point 랑 잘못적힌것 빼곤요^^
아뭍든 이렇게 하고싶은걸 도움을 받아서 또 하나 해결하고나니 기분좋네요^^