<?php global $tpl; $currentMatchTypeId = $tpl->getVar('currentType'); $rankTypeList = $tpl->getVar('rankTypeList'); $userRankList = $tpl->getVar('userRankList'); ?> <table width="100%" border="0" cellspacing="1" cellpadding="0"> <tr> <td width="10%"> <form name= "currentSelect" method= "post"> <select name="currentTypeSelect" id="currentTypeSelect" onChange="document.currentSelect.submit();" > <?php drawMatchTypeSelect($currentMatchTypeId, 0); ?> </select> </form> </td> <td width="3%">添加分类</td> <td width="17%"> <form method= "post"> <input name="matchTypeId" type="hidden" value="<?php echo $currentMatchTypeId; ?> " /> <input name="category" type="hidden" value="addRankType" /> <input name="rankName" type="text" id="rankName" value="例如:助攻" style="width:80px;"/> <input type="submit" name="submit" id="submit" value="提交" /> </form> </td> <td width="40%">查找队员:
/* Template Name: Rank List */ get_header(); ?> <div class="vsPos"></div> <h2 class="busyTitle margin-t22">选手排行榜</h2> <div class="chaxun"> <form name="currentSelect" method="post"> <select name="currentMatchTypeId" id="currentMatchTypeId" onChange="document.currentSelect.submit();"> <?php $currentMatchTypeId = intval($_POST['currentMatchTypeId']); $matchTypeList = getMatchTypeList(OBJECT_K); $currentMatchTypeId = drawMatchTypeSelect($currentMatchTypeId, 0, $matchTypeList); $rankTypeList = getRankTypeList(-1, $currentMatchTypeId); ?> </select> </form> </div> <p class="margin-t10 margin-l80 font-size14"><?php echo $matchTypeList[$currentMatchTypeId]->type; ?> </p> <div class="flo width-400 margin-l80 font-size14 table"> <table width="800" border="1" cellspacing="0" cellpadding="0"> <tr> <td width="8%" height="24" align="center">排名</td> <td width="8%" height="24" align="center">选手</td> <?php
<?php get_header(); ?> <div class="margin-l18 flo width-600"> <div id="tab"> <div class="title"> <h3 class="flo margin-l12">查看</h3> <div class="kind flo"> <form name= "matchTypeSelect" action= "" method= "post"> <select name="currentMatchTypeId" onChange= "document.matchTypeSelect.submit();"> <?php $currentTypeId = intval($_POST['currentMatchTypeId']); drawMatchTypeSelect($currentTypeId); ?> </select> </form> </div> <ul class="tab_menu fro margin-t6 padding-r6"><li class="select">全部比赛</li><li>正在进行中</li><li>报名中</li><li>比赛结束</li></ul> </div> <div class="tab_main"> <?php if ($currentTypeId != 0) { $matchList = getMatchList(-1, $currentTypeId, -1, 4); } else { $matchList = getMatchList(-1, -1, -1, 4); } $count = 0; if (count($matchList)) { foreach ($matchList as $match) { $args = get_match_post($match->id);