구매고객
판매자
솔루션별 질문
객관적이지 않은 사유는 인정되지 않으며, 신고 권한이 제재될 수 있습니다.
0/200
신고 사유에 해당하지 않는 글을 신고하면 신고 권한이 제한될 수 있습니다.
이 회원의 커뮤니티 콘텐츠와 알림을 내 화면에서만 숨깁니다.
신고는 접수되지 않으며, 숨긴 회원은 내 정보에서 다시 보이게 할 수 있습니다.
신고할 글이 아닌가요? 이 회원만 숨기기
신고하기로 돌아가기
그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.
전체 67032개 중 50681-50700번째
댓글 6개
include_once("./_common.php");
를 포함 하셨는지 확인해보시구요.
경로 패스를
$g4_path로 잡으셨는지 확인해보세요.
../head.php를 찾을수 없다네요
또한 소스를 같이 올려주셔야 답변을 할수 있습니다. ^^;
현재 다른 게시물을 보니깐 그누 폴더 자체에 만들어진것 같은데 그렇다면 저 경로에 분명히 head.php파일이 있었을 것입니다. 그런데 저런 오류가 떴다면.. 다른이름으로 바꾸셨어 이용하고 계신거 아니신지요.
한번 다시 확인해보시기 바랍니다.
point.php에 있는 소스를 그대로 복사해서 가져왔습니다.
레일즈님의 말씀은 무슨말씀인지 이해가 안됩니다.
다시한번자세히 설명좀 부탁드립니다.
<?
include_once("./_common.php");
if (!$member[mb_id])
alert_close("ȸ¿ø¸¸ Á¶È¸ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
$g4[title] = $member[mb_nick] . "´ÔÀÇ Æ÷ÀÎÆ? ³»¿ª";
include_once("$g4[path]/head.php");
$list = array();
$sql_common = " from $g4[point_table] where mb_id = '$member[mb_id]' ";
$sql_order = " order by po_id desc ";
$sql = " select count(*) as cnt $sql_common ";
$row = sql_fetch($sql);
$total_count = $row[cnt];
$rows = $config[cf_page_rows];
$total_page = ceil($total_count / $rows); // Àüü ÆäÀÌÁö °è»ê
if (!$page) { $page = 1; } // ÆäÀÌÁö°¡ ¾øÀ¸¸é ù ÆäÀÌÁö (1 ÆäÀÌÁö)
$from_record = ($page - 1) * $rows; // ½ÃÀÛ ¿À» ±¸ÇÔ
?>
<!--center_table s-->
<table align="center" border="0" cellpadding="0" cellspacing="0" width="690">
<tr>
<td>
<p><img src="../image/sub09/sub09_title01.gif" border="0" width="690" height="40"></p>
</td>
</tr>
<tr>
<td style="padding-right:10px" height="25" align="right">
<p>home > MY PAGE > MY POINT</p>
</td>
</tr>
<tr>
<td height="25"></td>
</tr>
<tr>
<td>
<!--??? ?? s-->
<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="<?=$g4[bbs_img_path]?>/icon_01.gif" width="5" height="5"></td>
<td width="" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b><?=$g4[title]?></b></font></td>
</tr>
</table></td>
</tr>
</table>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="200" 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" bgcolor="#FFFFFF">
<table width=100% cellpadding=1 cellspacing=1 border=0>
<tr bgcolor=#E1E1E1 align=center>
<td width="130" height="24"><b>ÀϽÃ</b></td>
<td width=""><b>³»¿ë</b></td>
<td width="70"><b>Áö±ÞÆ÷ÀÎÆ?</b></td>
<td width="70"><b>»ç¿ëÆ÷ÀÎÆ?</b></td>
</tr>
<?
$sum_point1 = $sum_point2 = 0;
$sql = " select *
$sql_common
$sql_order
limit $from_record, $rows ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$point1 = $point2 = 0;
if ($row[po_point] > 0) {
$point1 = "+" . number_format($row[po_point]);
$sum_point1 += $row[po_point];
} else {
$point2 = number_format($row[po_point]);
$sum_point2 += $row[po_point];
}
echo <<<HEREDOC
<tr height=25 bgcolor="#F6F6F6" align="center">
<td height="24">$row[po_datetime]</td>
<td align="left" title='$row[po_content]'><nobr style='display:block; overflow:hidden; width:250px;'> $row[po_content]</a></td>
<td align=right>{$point1} </td>
<td align=right>{$point2} </td>
</tr>
HEREDOC;
}
if ($i == 0)
echo "<tr><td colspan=5 align=center height=100>ÀÚ·á°¡ ¾ø½À´Ï´Ù.</td></tr>";
else {
if ($sum_point1 > 0)
$sum_point1 = "+" . number_format($sum_point1);
$sum_point2 = number_format($sum_point2);
echo <<<HEREDOC
<tr height=25 bgcolor="#E1E1E1" align="center">
<td height="24" colspan=2 align=center>¼Ò°è</td>
<td align=right>{$sum_point1} </td>
<td align=right>{$sum_point2} </td>
</tr>
HEREDOC;
}
?>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="30" align="center"><?=get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");?></td>
</tr>
<tr>
<td height="30" align="center" bgcolor="#F6F6F6">
<img src='<?=$g4[bbs_img_path]?>/icon_02.gif'> º¸À¯ Æ÷ÀÎÆ? : <B><?=number_format($member[mb_point])?> Á¡</B></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"><a href="javascript:window.close();"><img src="<?=$g4[bbs_img_path]?>/close.gif" width="66" height="20" border="0"></a></td>
</tr>
</table>
<br>
<?/*?>
<table width='100%' cellpadding=0 cellspacing=0>
<tr><td bgcolor=#B8B7B7><img src='<?=$g4[bbs_img_path]?>/title_point.gif'></td></tr>
</table>
<br>
<table width='99%' align=center cellpadding=3 cellspacing=0 border=1 bordercolordark=#F0F0F0>
<colgroup width=130></colgroup>
<colgroup width=''></colgroup>
<colgroup width=70></colgroup>
<colgroup width=70></colgroup>
<tr height=25 bgcolor=#F9F9F9 align=center>
<td>ÀϽÃ</td>
<td>³»¿ë</td>
<td>Áö±ÞÆ÷ÀÎÆ?</td>
<td>»ç¿ëÆ÷ÀÎÆ?</td>
</tr>
<?
$sql = " select *
$sql_common
$sql_order
limit $from_record, $rows ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$point1 = $point2 = "";
if ($row[po_point] >= 0) {
$point1 = "+" . number_format($row[po_point]);
} else {
$point2 = number_format($row[po_point]);
}
echo "
<tr height=25>
<td align=center>$row[po_datetime]</td>
<td title='$row[po_content]'><nobr style='display:block; overflow:hidden; width:200px;'> $row[po_content]</a></td>
<td align=right>$point1 </td>
<td align=right>$point2 </td>
</tr>
";
}
if ($i == 0)
echo "<tr><td colspan=4 align=center height=100>ÀÚ·á°¡ ¾ø½À´Ï´Ù.</td></tr>";
?>
</table>
<table width='100%' cellpadding=3 cellspacing=0>
<tr><td height=45 align=center><?=get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");?></td></tr>
</table>
<table width='99%' align=center cellpadding=1 cellspacing=0 bgcolor=#CCCCCC>
<tr>
<td>
<table width='100%' cellpadding=0 cellspacing=0 bgcolor=#F9F9F9>
<tr>
<td height=50> <B>³» Æ÷ÀÎÆ? </B></td>
<td><img src='<?=$g4[bbs_img_path]?>/icon_02.gif'> º¸À¯ Æ÷ÀÎÆ? : <B><?=number_format($member[mb_point])?></B></td>
</tr>
</table>
</td>
</tr>
</table>
<table width='100%' cellpadding=3 cellspacing=0>
<tr><td colspan=2 height=45 align=center><a href='javascript:window.close();'><img src='<?=$g4[bbs_img_path]?>/btn_close.gif' border=0></a></td></tr>
</table>
<?*/?>
<?
include_once("$g4[path]/tail.sub.php");
?>
<? include "../inc/footer.php" ?>
head.php
-
-
-
sub를 첨가하니까 되네요~^^감사드립니다.
사이트손볼곳이 많은데 ,,,,
참고맙습니다.
잘돼셨나 확인해보는데..와우..잘하셨네요.^^
앞으로 많은 답변기대가됩니다..^^