까만도둑님의 출근부 소스좀 고쳐 주세요~!ㅜ.ㅜ 정보
까만도둑님의 출근부 소스좀 고쳐 주세요~!ㅜ.ㅜ본문
<?
$g4_path = "..";
include_once ("$g4_path/common.php");
include_once("$g4[path]/01attendancehead.php");
$g4_path = "..";
include_once ("$g4_path/common.php");
include_once("$g4[path]/01attendancehead.php");
$g4[title] = "출근부 ($today)";
$today = $g4[time_ymd];
// 총 출석자 확인
$sql = " select count(*) as cnt from $g4[member_table] where mb_today_login like '$today%' and mb_id != '$config[cf_admin]' order by mb_today_login"; $row = sql_fetch($sql);
$today_visit = $row[cnt];
$sql = " select count(*) as cnt from $g4[member_table] where mb_today_login like '$today%' and mb_id != '$config[cf_admin]' order by mb_today_login"; $row = sql_fetch($sql);
$today_visit = $row[cnt];
?>
<script language="javascript" src="<?=$g4[path]?>/js/sideview.js"></script>
<table align=center cellpadding="7" cellspacing="1" width="95%">
<tr bgcolor=white height=50>
<td colspan=2 align=center valign=center>
<div align=right>오늘(<?=$g4[time_ymd]?>) <b><?=$today_visit?></b> 분께서 출석하셨습니다.....^^</div></td>
</tr>
</table>
<tr bgcolor=white height=50>
<td colspan=2 align=center valign=center>
<div align=right>오늘(<?=$g4[time_ymd]?>) <b><?=$today_visit?></b> 분께서 출석하셨습니다.....^^</div></td>
</tr>
</table>
<p>
<table width=95% align=center>
<tr><td colspan=10 height=2 bgcolor='#008987'></td></tr>
<tr height=22 bgcolor='#e1dace' style='font-weight: bold;' align=center>
<td width="40" height="28">순서</td>
<td width="70">출근시간</td>
<td width="60">레벨</td>
<td width="80">이 름</td>
<td width="80">닉네임</td>
<td width="">아이디</td>
<td width="80">포인트</td>
</tr>
<?
$mb_level = $mb[mb_level];
$sql = " select mb_id, mb_name, mb_nick, mb_level, mb_email, mb_homepage, mb_open, mb_today_login, mb_point
from $g4[member_table]
where SUBSTRING(mb_today_login,1,10) = '$today'
and mb_level < '10'
order by mb_today_login asc ";
$result = sql_query($sql);
$mb_level = $mb[mb_level];
$sql = " select mb_id, mb_name, mb_nick, mb_level, mb_email, mb_homepage, mb_open, mb_today_login, mb_point
from $g4[member_table]
where SUBSTRING(mb_today_login,1,10) = '$today'
and mb_level < '10'
order by mb_today_login asc ";
$result = sql_query($sql);
$k=0;
$save_time = "";
for ($i=1; $row=sql_fetch_array($result); $i++)
{
$save_time = "";
for ($i=1; $row=sql_fetch_array($result); $i++)
{
$mb_nick = get_sideview($row[mb_id], $row[mb_nick], $row[mb_email], $row[mb_homepage]);
$mb_name = get_sideview($row[mb_id], $row[mb_name], $row[mb_email], $row[mb_homepage]);
$bgcolor = ($i%2) ? "#FFFDF7" : "#FFFFFF";
$bgcolor = ($i%2) ? "#FFFDF7" : "#FFFFFF";
if ($row[mb_id] == $member[mb_id])
$bgcolor = "#FFCC00";
$bgcolor = "#FFCC00";
if ($save_time != substr($row[mb_today_login],11,8))
{
$save_time = substr($row[mb_today_login],11,8);
$k = $i;
}
?>
{
$save_time = substr($row[mb_today_login],11,8);
$k = $i;
}
?>
<tr bgcolor='<?=$bgcolor?>' onmouseout=this.bgColor='<?=$bgcolor?>' onmouseover=this.bgColor='#FFF3E7'>
<td align=center height=22><?=$k?></td>
<td align=center><?=$save_time?></td>
<td align=center><?=$row[mb_level];?></td>
<td align=center><?=$mb_name ?></td>
<td align=center><?=$mb_nick ?></td>
<td align=center><?=$row[mb_id]?></td>
<td align=right><?=number_format($row[mb_point])?> </td>
</tr>
<tr><td colspan=10 height=1 bgcolor='#E0E0E0'></td></tr>
<? } ?>
</table>
<td align=center height=22><?=$k?></td>
<td align=center><?=$save_time?></td>
<td align=center><?=$row[mb_level];?></td>
<td align=center><?=$mb_name ?></td>
<td align=center><?=$mb_nick ?></td>
<td align=center><?=$row[mb_id]?></td>
<td align=right><?=number_format($row[mb_point])?> </td>
</tr>
<tr><td colspan=10 height=1 bgcolor='#E0E0E0'></td></tr>
<? } ?>
</table>
<?
include_once ("$g4[path]/01attendancetail.php");
?>
include_once ("$g4[path]/01attendancetail.php");
?>
요 소스 인데요 ...
회원 이름이 그대로 나오네요 .. 회원이름이 안나오게끔 주석처리좀 해주세요 ....