Пример #1
0
function showMember($member)
{
    global $team;
    $gender = $member['gender'] ? 'Female' : 'Male';
    print "{$team['id']}, {$team['enname']}, {$team['cnname']}, {$member['title']}, {$member['firstname']}, {$member['lastname']}," . " {$member['cnname']}, {$gender}, {$member['email']}, {$member['phone']}, {$member['tshirt']}, {$member['institution']}," . "\"{$member['location']}\", {$member['country']}, {$member['degree']}, {$member['major']}, {$member['majorcn']}," . " {$member['grade']}, {$member['class']}, {$member['admitdate']}, {$member['graduatedate']}, {$member['birthday']}\n";
    //    <td align="center" nowrap="nowrap"><? echo $member["firstname"].' '.$member["lastname"].'('.$member["cnname"].')'</td>
    //    <td align="center"><? echo $member["gender"]?"Female":"Male"</td>
    //	 align="center"><? echo $member["email"]</td>
    //		<td align="center" width="200" nowrap="nowrap"><? echo $member["major"]."<br />(".$member["majorcn"].")"</td>
    //		<td align="center"><? echo $member["grade"]</td>
    //		<td align="center"><? echo $member["class"]</td>
}
header("Content-Type: text/plain");
$result = mysql_query("SELECT * FROM team WHERE cid = {$contest['cid']} ORDER BY tid ASC");
$rank = 0;
for ($i = 0;; $i++, $rank++) {
    $team = mysql_fetch_array($result);
    if ($team == null) {
        break;
    }
    $team["id"] = $rank;
    $members = mysql_query("SELECT * FROM contestant WHERE tid = {$team['tid']}");
    for ($j = 0; $j < 3; $j++) {
        $member[$j] = mysql_fetch_array($members, MYSQL_ASSOC);
    }
    if ($fullmode) {
        showMembers($member);
    } else {
        showTeam($member);
    }
}
Пример #2
0
     break;
 case 'showfilterbicycles':
     showBicycles($option, TRUE);
     break;
 case 'editbicycle':
 case 'addbicycle':
     editBicycle($option);
     break;
 case 'editbicyclebytag':
     editBicycleByTag($option);
     break;
 case 'showfiltermembers':
     showMembers($option, TRUE);
     break;
 case 'showmembers':
     showMembers($option, FALSE);
     break;
 case 'showloggedin':
     showLoggedInMembers($option);
     break;
 case 'showtasks':
     showTasks($option);
     break;
 case 'renewmember':
     adminRenewMember($option);
     break;
 case 'toggletaskflag':
     toggleTaskFlag($option);
     break;
 case 'listtransactions':
     listTransactions($option, $mode);