[제나플러스] 오늘 생일자 출력하기
페이지 정보
본문
<?
if (!defined("_GNUBOARD_")) exit; // 個別ページに接近不可
?>
<style type="text/css">
/* birth */
#zp_birth { border:1px solid #dbe1e4; }
#zp_birth .birth_bar { padding:5px 10px; font-weight:bold; background:url(<?=$birth_skin_path?>/img/birth_bar.gif) repeat-x; text-align:center; color:#ffffff; }
.zn_birth2_box { border:1px solid #dddddd; padding:5px 10px 10px 10px; }
.zn_birth2_title { border:1px solid #dddddd; padding:5px; text-align:center; font-weight:bold; }
</style>
<div id="zp_birth">
<?
$today = getdate();
$b_mon = $today['mon'];
$b_day = $today['mday'];
$b_year = $today['year'];
$birthday = date("md");
$sql = " select mb_id, mb_nick, mb_name, mb_birth from {$g4['member_table']} where substring(mb_birth,5,4) = '{$birthday}' ";
$result = sql_query($sql);
?>
<div class="birth_bar"><?=$b_mon?>月 <?=$b_day?>日 誕生日</div>
<?
echo "<marquee direction=down truespeed scrollamount='1' scrolldelay=50 onmouseover='this.stop();' onmouseout='this.start();' height=50>";
echo "<ul>";
for ($i=0; $row=mysql_fetch_array($result); $i++) {
$birth_month = substr("$row[mb_birth]",-4,2);
$birth_day = substr("$row[mb_birth]",-2,2);
if ($birth_month == $b_mon) {
echo "<li><img src='$birth_skin_path/img/bullet_red.gif' border=0 style='vertical-align:middle;'>$row[mb_nick] 会員</li>";
}
}
echo "</ul>";
echo "</marquee>";
?>
</div>
if (!defined("_GNUBOARD_")) exit; // 個別ページに接近不可
?>
<style type="text/css">
/* birth */
#zp_birth { border:1px solid #dbe1e4; }
#zp_birth .birth_bar { padding:5px 10px; font-weight:bold; background:url(<?=$birth_skin_path?>/img/birth_bar.gif) repeat-x; text-align:center; color:#ffffff; }
.zn_birth2_box { border:1px solid #dddddd; padding:5px 10px 10px 10px; }
.zn_birth2_title { border:1px solid #dddddd; padding:5px; text-align:center; font-weight:bold; }
</style>
<div id="zp_birth">
<?
$today = getdate();
$b_mon = $today['mon'];
$b_day = $today['mday'];
$b_year = $today['year'];
$birthday = date("md");
$sql = " select mb_id, mb_nick, mb_name, mb_birth from {$g4['member_table']} where substring(mb_birth,5,4) = '{$birthday}' ";
$result = sql_query($sql);
?>
<div class="birth_bar"><?=$b_mon?>月 <?=$b_day?>日 誕生日</div>
<?
echo "<marquee direction=down truespeed scrollamount='1' scrolldelay=50 onmouseover='this.stop();' onmouseout='this.start();' height=50>";
echo "<ul>";
for ($i=0; $row=mysql_fetch_array($result); $i++) {
$birth_month = substr("$row[mb_birth]",-4,2);
$birth_day = substr("$row[mb_birth]",-2,2);
if ($birth_month == $b_mon) {
echo "<li><img src='$birth_skin_path/img/bullet_red.gif' border=0 style='vertical-align:middle;'>$row[mb_nick] 会員</li>";
}
}
echo "</ul>";
echo "</marquee>";
?>
</div>
추천0
댓글목록
등록된 댓글이 없습니다.