팁텍 다운로드 할때 포인트 감소
본문
<script>
function pointdel(point)
{
window.open('./?doc=<?=$board_skin?>/pointdel.php&bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>&point='+point, 'PointDelWin', 'left=10000,top=10000,width=100,height=100');
}
</script>
<?
// 파일 업로드 설정한 값만큼 출력
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($member[mb_point] >= $point) {
if ($file[$i][source]) { echo "<tr><td class=tt> <img src='$board_skin/icon_download.gif' align='absmiddle'> <a href='{$file[$i][href]}' onclick='pointdel($point)'><span class=tt>{$file[$i][source]} ({$file[$i][size]})</span></a>, Down:{$file[$i][download]}</td></tr>"; }
} else {
// 포인트가 없으면 글읽기 세션을 없애므로 다운로드 금지한다.
$$ss_name = $HTTP_SESSION_VARS[$ss_name] = FALSE;
}
}
?>
function pointdel(point)
{
window.open('./?doc=<?=$board_skin?>/pointdel.php&bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>&point='+point, 'PointDelWin', 'left=10000,top=10000,width=100,height=100');
}
</script>
<?
// 파일 업로드 설정한 값만큼 출력
for ($i=1; $i<=$cfg[file_count]; $i++) {
if ($member[mb_point] >= $point) {
if ($file[$i][source]) { echo "<tr><td class=tt> <img src='$board_skin/icon_download.gif' align='absmiddle'> <a href='{$file[$i][href]}' onclick='pointdel($point)'><span class=tt>{$file[$i][source]} ({$file[$i][size]})</span></a>, Down:{$file[$i][download]}</td></tr>"; }
} else {
// 포인트가 없으면 글읽기 세션을 없애므로 다운로드 금지한다.
$$ss_name = $HTTP_SESSION_VARS[$ss_name] = FALSE;
}
}
?>
첨부파일
- pointdel.php (987byte) 5회 다운로드 | DATE : 2004-06-30 23:28:42
댓글목록 0
등록된 댓글이 없습니다.