<?php
//-------------------------------------------------------------------------------
// 游戏类别菜单输出
//-------------------------------------------------------------------------------
$toprs = mssql_query("select id,gamename,dbo.getCorpSort(id_company) as corpsort from type_game where isshow=1 order by corpsort,sortno");
$recount = mssql_num_rows($toprs); //总游戏个数
$sizeline = 12;//每行放置个数
$linecount = ceil($recount/$sizeline); //行数
$maxline = 4;//最大显示行数
$hotcount = 7;//热门点击个数
//一周内点击次数最多的游戏
$hotdjsql = "select top ".$hotcount." id_game,count(id_game) as num from game_dj_count where dj_time >=dateadd(day,-7,getdate()) and dj_time <=getdate() group by id_game order by num desc";
$hotdjrs = mssql_query($hotdjsql);