Exemplo n.º 1
0
/**
 * 首页分类调用
 */
function index_matchType_content($currentTypeId = 0, $stage = -1)
{
    if ($currentTypeId != 0) {
        $matchList = getMatchList(-1, $currentTypeId, $stage, 4);
    } else {
        $matchList = getMatchList(-1, -1, $stage, 4);
    }
    if (count($matchList)) {
        foreach ($matchList as $match) {
            $args = get_match_post($match->id);
            query_posts($args);
            echo '<ul class="joinList margin-t2">';
            if (have_posts()) {
                while (have_posts()) {
                    the_post();
                    echo '<li> <a href="?p=77&matchid=' . $match->id . '" target="_blank">';
                    the_post_thumbnail();
                    echo '</a><dl>';
                    the_excerpt();
                    get_apply_match_button($current_user->ID, $match->id, $stage);
                    echo '</dl><div class="clear"></div></li>';
                }
            }
            echo '</ul>';
        }
    }
    wp_reset_postdata();
}
Exemplo n.º 2
0
}
?>
			</div>
			<!--微博管理-->
			<div class="tab_main">
				<?php 
if (!$accept) {
    echo '<div style="width:360px; height:200px; line-height:200px; font-family:\'微热雅黑\'; font-size:30px; text-align:center; margin:20px auto; border:8px solid #e8e8e8; color:#333; background: #FDFDFD;">权限错误或没有登陆</div>';
} else {
    ?>
					<div class="wraningText margin-t22 font-size14">
						没登陆腾讯微博的登陆后,点击收听并按F5刷新页面
					</div>
					<div class="width-600 margin-t18">
						<?php 
    query_posts(get_match_post($matchid, 17));
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            echo '<h4 class="margin-t10 vs-h4">';
            the_title_attribute();
            echo '</h4>';
            the_content();
        }
    } else {
        echo '还没有结束的比赛';
    }
    wp_reset_query();
    ?>
					</div>
				<?php 
Exemplo n.º 3
0
        ?>
					<li style="width: 100%; float: left;">
						* 目前你还没有参加过任何比赛
					</li>
					<?php 
    }
    ?>
				</ul>
			</div>
			<div class="tab_main">
				<ul class="joinList margin-t13" style="width: 100%; float: left;">
					<?php 
    $users = getUserList($current_user->ID, -1, -1, 1);
    if (count($users)) {
        foreach ($users as $user) {
            $args = get_match_post($user->match_id);
            query_posts($args);
            if (have_posts()) {
                while (have_posts()) {
                    the_post();
                    ?>
					<li style="width: 100%; float: left;">
						<a href="?p=77&matchid=<?php 
                    echo $user->match_id;
                    ?>
"><?php 
                    the_post_thumbnail();
                    ?>
</a>
						<dl>
							<?php 
Exemplo n.º 4
0
	                </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);
        query_posts($args);
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                if ($count == 0) {
                    $count++;
                    ?>
								<div class="margin-t10 tabimg">
									<a href="?p=77&matchid=<?php 
                    echo $match->id;
                    ?>
" target="_blank" class="fl" title="<?php 
                    the_title_attribute();
                    ?>
" >