=$LimitAccount){$without=1;} else{$without=0;} //開始與結束日 $s_time=date("Y-m-d",strtotime($s_time)); $e_time=date("Y-m-d",strtotime($e_time)); //條件限制 if($gbgametest==0){$gbgametest_str="遊戲基地-";} if($gbgametest<=1) { if($needstatus==0){$needstatus_str="一般會員";} else if($needstatus==10){$needstatus_str="進階會員";} else if($needstatus==100){$needstatus_str="進階會員";} if($needstatus_str && $needlevel>0){$needstatus_str.="、等級{$needlevel}";} if($needstatus_str && $needcoin>0){$needstatus_str.="、{$needcoin}G";} if($needstatus_str && $needcontribution>0){$needstatus_str.="、{$needcontribution}Pow瓦";} } else { $needstatus_str="基地會員、非基地會員 皆可"; } //類型 if($mode==0){$type_str="{$stString1}/{$stString2}";} else{$type_str="{$stString1}";} //備注 /*if($LimitEveryDay!=$LimitAccount){$ps_str="每日{$LimitEveryDay}";} else{$ps_str="送完為止";}*/ //隱藏帳號數 if($hide_type>=1){$LimitAccount_str="-";} else{$LimitAccount_str=$LimitAccount;} //圖片 if($pic){$pic_str="";} else{$pic_str="";} //索取 if($new_url){$getway_str=$new_url;} else if($gbgametest==2){$getway_str=$out_url;} else if($getway==1){$getway_str="http://www.gamebase.com.tw/event/{$GameTable}/";} else{$getway_str="check.php?no={$no}";} //處理css if($css_i==4){$css_str="class=\"account\"";} else{$css_str="class=\"account mar\"";} //特殊活動 if(preg_match("/event_20110302_sh/", $GameTable)){ $GameTable = "event_20110302_sh"; } if ($webgame_link) { $webgame_link = "
  • "; } if ($needcoin > 0) { $getway_class = 'need_coin'; } else{ $getway_class = ''; } $html_main.=<<
    {$pic_str}

    《{$GameName}》

    類型:{$type_str}
    限制:{$needstatus_str}
    時間:{$s_time}~{$e_time}
    數量:{$LimitAccount_str}
    備註:{$stPS}

    NOTE; $css_i++; $myreader = mysql_fetch_array( $myexec ); } // 下方列表頁(活動焦點+非活動焦點) //產生列表 $html_list =""; $page = safe_int($_GET["page"] ? $_GET["page"] : $_POST["page"] ); $a_page =20; $css_i=1; $count_sql = "SELECT count(*) " . $sqlstradd; $add_urlstr=""; $purl="?page=".$add_urlstr; if ( !$page ) $page = 1 ; $page_str = Cut_Page( $count_sql , "gb_event_membershare" , $purl , $a_page , $page , '' ); $sqlstr = "SELECT * {$sqlstradd} {$sqlorder} LIMIT " . ( ( $page - 1 ) * $a_page ). " , " . $a_page; $myexec = sql_query( $sqlstr , db_read("gb_event_membershare") ); $myreader = mysql_fetch_array( $myexec ); while($myreader) { $new_url=$myreader["new_url"]; $no=$myreader["no"]; $GameName=$myreader["GameName"]; $GameTable=$myreader["GameTable"]; $s_time=$myreader["s_time"]; $e_time=$myreader["e_time"]; $stString1=$myreader["stString1"]; $stString2=$myreader["stString2"]; $stString3=$myreader["stString3"]; $gbgametest=$myreader["gbgametest"]; $needstatus=$myreader["needstatus"]; $needlevel=$myreader["needlevel"]; $needcoin=$myreader["needcoin"]; $needcontribution=$myreader["needcontribution"]; $thefocus=$myreader["thefocus"]; $getway=$myreader["getway"]; $hide_type=$myreader["hide_type"]; $LimitAccount=$myreader["LimitAccount"]; $LimitEveryDay=$myreader["LimitEveryDay"]; $url1 =$myreader["url1"]; $url2 =$myreader["url2"]; $url3 =$myreader["url3"]; $url4 =$myreader["url4"]; $pic=$myreader["pic"]; $stPS=$myreader["stPS"]; $hide_type=$myreader["hide_type"]; $out_url=$myreader["out_url"]; $mode=$myreader["mode"]; $webgame_link = $myreader["webgame_link"]; /////////////帳號是否索取完畢!? $sqlstr2="select IFNULL(MAX(no),0) as CNT from event_account_center_log where GameTable='{$GameTable}'"; $myreader2=sql_get_row(db_read("event"),$sqlstr2 ); $nowaccount=$myreader2["CNT"]; if($nowaccount>=$LimitAccount){$without=1;} else{$without=0;} //開始與結束日 $s_time=date("Y-m-d",strtotime($s_time)); $e_time=date("Y-m-d",strtotime($e_time)); //條件限制 if($gbgametest==0){$gbgametest_str="遊戲基地-";} if($gbgametest<=1) { if($needstatus==0){$needstatus_str="一般會員";} else if($needstatus==10){$needstatus_str="進階會員";} else if($needstatus==100){$needstatus_str="進階會員";} if($needstatus_str && $needlevel>0){$needstatus_str.="、等級{$needlevel}";} if($needstatus_str && $needcoin>0){$needstatus_str.="、{$needcoin}G";} if($needstatus_str && $needcontribution>0){$needstatus_str.="、{$needcontribution}Pow瓦";} } else { $needstatus_str="基地會員、非基地會員 皆可"; } //類型 if($mode==0){$type_str="{$stString1}/{$stString2}";} else{$type_str="{$stString1}";} //備注 /*if($LimitEveryDay!=$LimitAccount){$ps_str="每日{$LimitEveryDay}";} else{$ps_str="送完為止";}*/ //隱藏帳號數 if($hide_type>=1){$LimitAccount_str="-";} else{$LimitAccount_str=$LimitAccount;} //官網 / 討論 $link_group_str=<<介紹│討論官網 NOTE; //特殊活動 if(preg_match("/event_20120427_dt3/", $GameTable)){ $GameTable = "event_20120427_dt3"; } else if(preg_match("/event_20110401_mhxx/", $GameTable)){ $GameTable = "event_20110401_mhxx"; } else if(preg_match("/event_20110428_zgfy/", $GameTable)){ $GameTable = "event_20110428_zgfy"; } else if(preg_match("/event_20110505_miw/", $GameTable)){ $GameTable = "event_20110505_miw"; } else if(preg_match("/event_20110506_zgfy/", $GameTable)){ $GameTable = "event_20110506_zgfy"; } else if(preg_match("/event_20110711_zg/", $GameTable)){ $GameTable = "event_20110711_zg"; } else if(preg_match("/event_20110722_mtw/", $GameTable)){ $GameTable = "event_20110722_mtw"; } else if(preg_match("/event_20110819_sew/", $GameTable)){ $GameTable = "event_20110819_sew"; } else if(preg_match("/event_20120112_yxwz/", $GameTable)){ $GameTable = "event_20120112_yxwz"; } //索取 if($new_url){$getway_str=$new_url;} else if($gbgametest==2){$getway_str=$out_url;} else if($getway==1){$getway_str="http://www.gamebase.com.tw/event/{$GameTable}/";} else{$getway_str="check.php?no={$no}";} $getway_str1="[索取]"; if($without){$getway_str="javascript:alert('活動已索取完畢');";$getway_str1="[索取]";} //處理css if($css_i%2==0){$css_str="class=\"tr2bg\"";} else{$css_str="";} if ($webgame_link) $webgame_link = '[直接玩]'; $getway_class = ''; if ($needcoin > 0) { $getway_class = 'need_coin'; } //html $html_list.=<< {$GameName} {$type_str} {$needstatus_str} {$s_time} {$e_time} {$LimitAccount_str} {$stPS} {$link_group_str} [索取] [查] {$webgame_link} NOTE; $css_i++; $myreader = mysql_fetch_array( $myexec ); } if($check_mid > 100) { $html_yd_str0=<<