제발 도와주세요 정보
제발 도와주세요본문
view.skin.php파일에
<? if ($is_admin) { echo "<a href=\"javascript:win_open('$board_skin_path/field_update.php?bo_table=$bo_table&wr_id=$wr_id', 'FIELDUP', target='hiddenframe');\"><img src=$board_skin_path/img/icon_on.gif border='0'></a> "; } ?>
<? if ($is_admin) { echo "<a href=\"javascript:win_open('$board_skin_path/field_update1.php?bo_table=$bo_table&wr_id=$wr_id', 'FIELDUP', target='hiddenframe');\"><img src=$board_skin_path/img/icon_off.gif border='0'></a> "; } ?>
이렇게 버튼을 만들었고
field_update.php에는
<?php
$g4_path = "../../..";
include_once("$g4_path/common.php");
$sql = " update $write_table
set wr_10 = 'on'
where wr_id = '$wr_id' ";
$row2 = sql_fetch(" select mb_id from {$g4[write_prefix]}{$bo_table} where wr_id = '$wr_id' ");
sql_query(" insert into $g4[point_table] (po_point,mb_id,po_content,po_datetime,po_rel_table,po_rel_id,po_rel_action) values ('10','$row2[mb_id]','추천','$g4[time_ymdhis]','$bo_table','$wr_id','추천') ");
//insert_point($write['mb_id'], 1, "{$bo_table} - {$wr_id} 완료", $bo_table, $wr_id, $member['mb_id']);
sql_query($sql);
echo"
<script type='text/javascript'>
//parent.opener.location.href = '$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$wr_id';
parent.opener.location.reload();
window.close();
</script>
";
?>
이런식으로 했는데요.
아이콘을 클릭하면
wr_10필드에 on이 입력이되는동시에 클릭자에게 포인트를 적립을 하고 싶어요.
위 방법대로 하는것이 정상인지요..
좀 봐주세요
<? if ($is_admin) { echo "<a href=\"javascript:win_open('$board_skin_path/field_update.php?bo_table=$bo_table&wr_id=$wr_id', 'FIELDUP', target='hiddenframe');\"><img src=$board_skin_path/img/icon_on.gif border='0'></a> "; } ?>
<? if ($is_admin) { echo "<a href=\"javascript:win_open('$board_skin_path/field_update1.php?bo_table=$bo_table&wr_id=$wr_id', 'FIELDUP', target='hiddenframe');\"><img src=$board_skin_path/img/icon_off.gif border='0'></a> "; } ?>
이렇게 버튼을 만들었고
field_update.php에는
<?php
$g4_path = "../../..";
include_once("$g4_path/common.php");
$sql = " update $write_table
set wr_10 = 'on'
where wr_id = '$wr_id' ";
$row2 = sql_fetch(" select mb_id from {$g4[write_prefix]}{$bo_table} where wr_id = '$wr_id' ");
sql_query(" insert into $g4[point_table] (po_point,mb_id,po_content,po_datetime,po_rel_table,po_rel_id,po_rel_action) values ('10','$row2[mb_id]','추천','$g4[time_ymdhis]','$bo_table','$wr_id','추천') ");
//insert_point($write['mb_id'], 1, "{$bo_table} - {$wr_id} 완료", $bo_table, $wr_id, $member['mb_id']);
sql_query($sql);
echo"
<script type='text/javascript'>
//parent.opener.location.href = '$g4[bbs_path]/board.php?bo_table=$bo_table&wr_id=$wr_id';
parent.opener.location.reload();
window.close();
</script>
";
?>
이런식으로 했는데요.
아이콘을 클릭하면
wr_10필드에 on이 입력이되는동시에 클릭자에게 포인트를 적립을 하고 싶어요.
위 방법대로 하는것이 정상인지요..
좀 봐주세요
댓글 전체