복권 달팽이 가위바위보

복권 달팽이 가위바위보

더시민 2 1081 0

가위바위보는 @sprgame

insert_point($member['mb_id'], $game_point_bglose * (-1), "가위바위보게임 비김 포인트차감", '@sprgame', $member['mb_id'], G5_TIME_YMDHIS);
}

 

달팽이는 @daroll

 

 

 

<style>
.lottery_table {margin: 0 auto;}
.lottery_view {max-width: 440px;margin: 0 auto;background-color: #fafafa;padding: 20px 0px 20px 0px;}
    
.lottery_method {
    position: relative;
    overflow: hidden;
    height: 100px;
    margin: 0 20px 20px 20px;
    background: white;
}
.lottery_method .l_div {
    float: left;
    width: 100px;
    text-align: center;
}
.lottery_method .r_div {
    float: left;
    margin: 20px 0 0 10px;
}
.lottery_method .r_div .g_info {
    display: block;
    height: 20px;
    line-height: 20px;
    padding-left: 20px;
    border-left: 3px solid #bbb;
}
.lottery_view .lottery_method .l_div .g_subject {
    display: inline-block;
    line-height: 100px;
    font-size: 18px;
    font-weight: bold;
}

.luck_rank p{
    width:200px;
text-align: center;
    font-weight: bold;
    margin: 15px auto 0px auto;
    padding: 5px;
    background: gold;
    border-radius: 5px 5px 0px 0px;}
.luck_rank table {margin:0 auto;}
</style>
<div class="lottery_view">
    <div class="lottery_method">
            <div class="l_div">
                <span class="g_subject">이용 방법</span>
            </div>
            <div class="r_div">
                <span class="g_info" style="border-color:tomato">씨밤 복권은 매일 <b><?php echo $today_max;?>매</b> 까지 구매 가능합니다.</span>            
                <span class="g_info"><b>구매 버튼</b>을 클릭하여 복권을 구매합니다.</span>
                <span class="g_info">당첨시 당첨금은 <b>자동수령</b> 됩니다.</span>
            </div>
        </div>
        
    <?
    $sql = " select mb_id, sum(po_point) as qty from {$g5['point_table']} where po_rel_table in ('@bok') and substring(po_datetime,1,10) = '".G5_TIME_YMD."' group by mb_id order by qty desc limit 0, 5";
    
    $result = sql_query($sql);
    ?>
    
        
    <div class="luck_rank">
                        <p>오늘의 점수 왕 Top5</p>
                        <table cellpadding="3" cellspacing="0" border="0">
                                                                                <tbody>     
    <?php for($i=0; $row=sql_fetch_array($result); $i++) {
        if($i>5) break;
        $mrow = get_member($row['mb_id']);
        ?>
    <tr>
        <td style="width:40px;"><b><?php echo $i+1;?>위</b></td>
        <td> <?php    echo  apms_sideview($mrow['mb_id'], $mrow['mb_nick'], $mrow['mb_email'], $mrow['mb_homepage'],$mrow['as_level']);?></td>
        <td style="color:cornflowerblue;width:90px;text-align:right;padding-right:10px;"><b> <?php if($row['qty']>0) echo "+ ";echo $row['qty'];?>점</b></td>
    </tr>   
        <?
        
    }
    ?>
    </tbody></table></div>
    
    
    
    <?
    $sql = " select mb_id, sum(po_point) as qty from {$g5['point_table']} where po_rel_table in ('@bok') and substring(po_datetime,1,10) = '".G5_TIME_YMD."' group by mb_id order by qty asc limit 0, 5";
    
    $result = sql_query($sql);
    ?>
    
    <div class="luck_rank">
                        <p>오늘의 불행 왕 Top5</p>
                        <table cellpadding="3" cellspacing="0" border="0">
                                                                                <tbody>     
    <?php for($i=0; $row=sql_fetch_array($result); $i++) {
        if($i>5) break;
        $mrow = get_member($row['mb_id']);
        ?>
    <tr>
        <td style="width:40px;"><b><?php echo $i+1;?>위</b></td>
        <td> <?php    echo  apms_sideview($mrow['mb_id'], $mrow['mb_nick'], $mrow['mb_email'], $mrow['mb_homepage'],$mrow['as_level']);?></td>
        <td style="color:cornflowerblue;width:90px;text-align:right;padding-right:10px;"><b> <?php echo $row['qty'];?>점</b></td>
    </tr>   
        <?
        
    }
    ?>
    </tbody></table></div>                                                        
</div>

 

복권 랭킹 적당히 수정해서 각각넣어줌

2 Comments
더시민 2021.09.16 16:23  
{"result":"error","card":"","bNum":"","pNum":"","win":"","tie":"","money":"1"}
더시민 2021.09.16 14:01  
<?php include_once("./rank.php");?>
제목
Category
Facebook Twitter GooglePlus KakaoStory KakaoTalk NaverBand