가운데 정렬 어떻게 해야 되나요? 어느부분에서 고쳐야 되는지... 정보
가운데 정렬 어떻게 해야 되나요? 어느부분에서 고쳐야 되는지...본문
point_rank.php 소스중...
<?
include_once("./_common.php");
//include_once("../111.php");
include_once("./rank.php");
//include_once("../222.php");
?>
-------------------------------------------------------------------------------------------------------------------------------------
rank.php 소스중...
<?
if (!defined("_GNUBOARD_")) exit;
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
define("_CO_POINT_RANK_", TRUE);
$html_title ="포인트 랭킹";
$g4[title] = "" . $html_title;
?>
<style type="text/css">
<!--
.bk123 {
border: 1px solid #CCCCCC;
}
-->
</style>
<table width="650" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td height="15" colspan="6" align="left" valign="top"></td>
</tr>
<tr>
<td height="100" colspan="6" align="left" valign="middle"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="bk123">
<tr>
<td height="35" style="padding-left:20px;">회원권한제도: <img src="/level_img/level5.gif"> 준회원, <img src="/level_img/level6.gif"> 정회원, <img src="/level_img/level7.gif"> 우수회원, <img src="/level_img/level8.gif"> VIP회원, <img src="/level_img/level9.gif"> 운영자, <img src="/level_img/level10.gif"> 웹마스터. </td>
</tr>
<?
if ($member[mb_id])
{
?>
<tr>
<td height="35" style="padding-left:20px;"><?
$sql = " select sum(mb_point) as sum_point from $g4[member_table]";
$row = sql_fetch($sql);
$sum_point = $row[sum_point];
echo "레벨상황: 현재 <b>".$member[mb_id]."</b>님의 포인트는 <B>".$member[mb_point]."점</B>";
$sql = " select count(mb_id) as cnt from $g4[member_table]
where mb_point >= '$member[mb_point]' order by mb_point desc ";
$row = sql_fetch($sql);
$sql2 = " select count(mb_id) as cnt from $g4[member_table]";
$row2 = sql_fetch($sql2);
$total_count = $row2[cnt];
echo " 이고, 랭킹은 전체회원수 <b>".$total_count."</b>명중 <B>".number_format($row[cnt])."등</B> 입니다.<br>";
?></td>
</tr>
<? } ?>
</table></td>
</tr>
<tr >
<td width="11%"><b><font color="blue">랭킹</font></b></td>
<td width="23%" background="img/title_bg.gif" height="25"><b><font color="blue">닉네임</font></b></td>
<td width="17%" background="img/title_bg.gif"><strong><font color="blue">이름</font></strong></td>
<td width="17%" background="img/title_bg.gif" height="25"><b><font color="blue">아이디</font></b></td>
<td width="13%" background="img/title_bg.gif" align="right" height="25"><b><font color="blue">회원권한</font></b></td>
<td width="19%" align="right" background="img/title_bg.gif" ><b><font color="blue">포인트</font></b></td>
</tr>
<tr>
<td colspan="6" height="5"></td>
</tr>
<tr>
<td colspan="6" height="1" bgcolor="#CCCCCC"></td>
</tr>
<tr>
<td colspan="6" height="5"></td>
</tr>
<?
$sql = " select count(*) as cnt from $g4[member_table]";
$row = sql_fetch($sql);
$total_count = $row[cnt];
$rows = 15;
$total_page = ceil($total_count / $rows);
if ($page == "") { $page = 1; }
$from_record = ($page - 1) * $rows;
$mod = 48;
$tbl_col =2 ;
$tbl_col_sep = (int)($mod / $tbl_col) + ($mod % $tbl_col) ;
$sql = " select * from $g4[member_table]
order by mb_point desc, mb_today_login desc
limit $from_record, $rows ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$rank = (($page - 1) * $rows) + $i + 1;
$point = number_format($row[mb_point]);
$id = $row[mb_id];
?>
<tr height="30" >
<td width="11%" height="35" ><?=$rank?></td>
<td height="35"><?= level_icon($row[mb_id])?> <a title="쪽지보내기" onfocus='this.blur()' style="FILTER: blendTrans(duration=0.7); CURSOR: pointer" onclick="window.open('/bbs/memo_form.php?me_recv_mb_id=<?=$row[mb_id]?>','www_yiwuauction_com1','width=602,height=521,toolbars=no,resizable=no,scrollbars=no')"><?=$row[mb_nick]?></a> </td>
<td height="35">
<font color="#3399FF"><?=$row[mb_name]?></font>
</td>
<td width="17%" height="35"><a title="정보보기" onfocus='this.blur()' style="FILTER: blendTrans(duration=0.7); CURSOR: pointer" onclick="window.open('/bbs/profile.php?mb_id=<?=$row[mb_id]?>','www_yiwuauction_com2','width=602,height=521,toolbars=no,resizable=no,scrollbars=no')"><b><?=$row[mb_id]?></b></a></td>
<td width="13%" height="35" align="right">
<?
if ($level = $row[mb_level] == 10)
$level="웹마스터";
else if ($level = $row[mb_level] == 9)
$level="운영자";
else if ($level = $row[mb_level] == 8)
$level="VIP회원";
else if ($level = $row[mb_level] == 7)
$level="우수회원";
else if ($level = $row[mb_level] == 6)
$level="정회원";
else if ($level = $row[mb_level] == 5)
$level="준회원";
else if ($level = $row[mb_level] == 1)
$level="유람객";
else if ($level = $row[mb_level] == 0)
$level="비회원";
?>
<font color=green><?=$level?></font> </td>
<td width="19%" height="35" align="right"><font color="#FF0000"><?=$point?> 점</font></td>
</tr>
<tr>
<td colspan="6" height="1" background="img/dot_line.gif"></td>
</tr>
<? } ?>
<tr>
<td colspan="6" height="10"></td>
</tr>
<tr>
<td height="40" colspan="6">
<?
$page = get_paging($config[cf_write_pages], $page, $total_page, "?$qstr&page=");
echo "<p><table width=100% cellpadding=0 cellspacing=0><tr><td align=center>$page</td></tr></table><br>";
?></td>
</tr>
</table>
<?
include_once("./_common.php");
//include_once("../111.php");
include_once("./rank.php");
//include_once("../222.php");
?>
-------------------------------------------------------------------------------------------------------------------------------------
rank.php 소스중...
<?
if (!defined("_GNUBOARD_")) exit;
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
define("_CO_POINT_RANK_", TRUE);
$html_title ="포인트 랭킹";
$g4[title] = "" . $html_title;
?>
<style type="text/css">
<!--
.bk123 {
border: 1px solid #CCCCCC;
}
-->
</style>
<table width="650" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td height="15" colspan="6" align="left" valign="top"></td>
</tr>
<tr>
<td height="100" colspan="6" align="left" valign="middle"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="bk123">
<tr>
<td height="35" style="padding-left:20px;">회원권한제도: <img src="/level_img/level5.gif"> 준회원, <img src="/level_img/level6.gif"> 정회원, <img src="/level_img/level7.gif"> 우수회원, <img src="/level_img/level8.gif"> VIP회원, <img src="/level_img/level9.gif"> 운영자, <img src="/level_img/level10.gif"> 웹마스터. </td>
</tr>
<?
if ($member[mb_id])
{
?>
<tr>
<td height="35" style="padding-left:20px;"><?
$sql = " select sum(mb_point) as sum_point from $g4[member_table]";
$row = sql_fetch($sql);
$sum_point = $row[sum_point];
echo "레벨상황: 현재 <b>".$member[mb_id]."</b>님의 포인트는 <B>".$member[mb_point]."점</B>";
$sql = " select count(mb_id) as cnt from $g4[member_table]
where mb_point >= '$member[mb_point]' order by mb_point desc ";
$row = sql_fetch($sql);
$sql2 = " select count(mb_id) as cnt from $g4[member_table]";
$row2 = sql_fetch($sql2);
$total_count = $row2[cnt];
echo " 이고, 랭킹은 전체회원수 <b>".$total_count."</b>명중 <B>".number_format($row[cnt])."등</B> 입니다.<br>";
?></td>
</tr>
<? } ?>
</table></td>
</tr>
<tr >
<td width="11%"><b><font color="blue">랭킹</font></b></td>
<td width="23%" background="img/title_bg.gif" height="25"><b><font color="blue">닉네임</font></b></td>
<td width="17%" background="img/title_bg.gif"><strong><font color="blue">이름</font></strong></td>
<td width="17%" background="img/title_bg.gif" height="25"><b><font color="blue">아이디</font></b></td>
<td width="13%" background="img/title_bg.gif" align="right" height="25"><b><font color="blue">회원권한</font></b></td>
<td width="19%" align="right" background="img/title_bg.gif" ><b><font color="blue">포인트</font></b></td>
</tr>
<tr>
<td colspan="6" height="5"></td>
</tr>
<tr>
<td colspan="6" height="1" bgcolor="#CCCCCC"></td>
</tr>
<tr>
<td colspan="6" height="5"></td>
</tr>
<?
$sql = " select count(*) as cnt from $g4[member_table]";
$row = sql_fetch($sql);
$total_count = $row[cnt];
$rows = 15;
$total_page = ceil($total_count / $rows);
if ($page == "") { $page = 1; }
$from_record = ($page - 1) * $rows;
$mod = 48;
$tbl_col =2 ;
$tbl_col_sep = (int)($mod / $tbl_col) + ($mod % $tbl_col) ;
$sql = " select * from $g4[member_table]
order by mb_point desc, mb_today_login desc
limit $from_record, $rows ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$rank = (($page - 1) * $rows) + $i + 1;
$point = number_format($row[mb_point]);
$id = $row[mb_id];
?>
<tr height="30" >
<td width="11%" height="35" ><?=$rank?></td>
<td height="35"><?= level_icon($row[mb_id])?> <a title="쪽지보내기" onfocus='this.blur()' style="FILTER: blendTrans(duration=0.7); CURSOR: pointer" onclick="window.open('/bbs/memo_form.php?me_recv_mb_id=<?=$row[mb_id]?>','www_yiwuauction_com1','width=602,height=521,toolbars=no,resizable=no,scrollbars=no')"><?=$row[mb_nick]?></a> </td>
<td height="35">
<font color="#3399FF"><?=$row[mb_name]?></font>
</td>
<td width="17%" height="35"><a title="정보보기" onfocus='this.blur()' style="FILTER: blendTrans(duration=0.7); CURSOR: pointer" onclick="window.open('/bbs/profile.php?mb_id=<?=$row[mb_id]?>','www_yiwuauction_com2','width=602,height=521,toolbars=no,resizable=no,scrollbars=no')"><b><?=$row[mb_id]?></b></a></td>
<td width="13%" height="35" align="right">
<?
if ($level = $row[mb_level] == 10)
$level="웹마스터";
else if ($level = $row[mb_level] == 9)
$level="운영자";
else if ($level = $row[mb_level] == 8)
$level="VIP회원";
else if ($level = $row[mb_level] == 7)
$level="우수회원";
else if ($level = $row[mb_level] == 6)
$level="정회원";
else if ($level = $row[mb_level] == 5)
$level="준회원";
else if ($level = $row[mb_level] == 1)
$level="유람객";
else if ($level = $row[mb_level] == 0)
$level="비회원";
?>
<font color=green><?=$level?></font> </td>
<td width="19%" height="35" align="right"><font color="#FF0000"><?=$point?> 점</font></td>
</tr>
<tr>
<td colspan="6" height="1" background="img/dot_line.gif"></td>
</tr>
<? } ?>
<tr>
<td colspan="6" height="10"></td>
</tr>
<tr>
<td height="40" colspan="6">
<?
$page = get_paging($config[cf_write_pages], $page, $total_page, "?$qstr&page=");
echo "<p><table width=100% cellpadding=0 cellspacing=0><tr><td align=center>$page</td></tr></table><br>";
?></td>
</tr>
</table>
댓글 전체
<?
if (!defined("_GNUBOARD_")) exit;
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
define("_CO_POINT_RANK_", TRUE);
$html_title ="포인트 랭킹";
$g4[title] = "" . $html_title;
?>
<style type="text/css">
<!--
.bk123 {
border: 1px solid #CCCCCC;
}
-->
</style>
<table width="650" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td height="15" colspan="6" align="left" valign="top"></td>
</tr>
<tr>
<td height="100" colspan="6" align="left" valign="middle"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="bk123">
위 스크립트부분이 끝나고 바로 <table width="650" border="0" cellpadding="0" cellspacing="0" >
이부분이 있습니다. 이부분에 <table width="650" border="0" cellpadding="0" cellspacing="0" align="center"> 이렇게 넣어주시면 될듯 한데요...
그럼
if (!defined("_GNUBOARD_")) exit;
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
define("_CO_POINT_RANK_", TRUE);
$html_title ="포인트 랭킹";
$g4[title] = "" . $html_title;
?>
<style type="text/css">
<!--
.bk123 {
border: 1px solid #CCCCCC;
}
-->
</style>
<table width="650" border="0" cellpadding="0" cellspacing="0" >
<tr>
<td height="15" colspan="6" align="left" valign="top"></td>
</tr>
<tr>
<td height="100" colspan="6" align="left" valign="middle"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="bk123">
위 스크립트부분이 끝나고 바로 <table width="650" border="0" cellpadding="0" cellspacing="0" >
이부분이 있습니다. 이부분에 <table width="650" border="0" cellpadding="0" cellspacing="0" align="center"> 이렇게 넣어주시면 될듯 한데요...
그럼
아, 됫습니다...정말 감사드립니다...^^*