Beispiel #1
0
                echo '<li><a href="./tag/?name=' . urlencode($values['name']) . '"  target="_blank" class="tag-box">' . $values['name'] . '</a></li>';
            }
        }
        ?>
								</ul>
								<div class="list-date"> <?php 
        echo $value['type'] == 3 ? $value['answer_id']['nickname'] . "回答于:" . date("Y-m-d H:i:s", $value['answer_time']) : "创建于:" . $value['ctime'];
        ?>
</div>
							</li>
						<?php 
    }
} else {
    foreach ($problem_list as $key => $value) {
        $value['avatar'] = $value['avatar'] == "" ? "static/image/default.jpg" : $value['avatar'];
        $button = check_follow(json_decode($user['follow_users']), $value['id']) ? '<button id="ajax_uneye" data-id="' . $value['id'] . '"> 取消关注 </button>' : '<button id="ajax_eye" data-id="' . $value['id'] . '"> <font>+</font> 关注</button>';
        echo '<div class="data fl">
									<div class="left_box">
										<a href="./home?uid=' . $value['id'] . '" target="_blank"><img src="' . $value['avatar'] . '" alt="" class="pic"></a>
										' . $button . '
									</div>
									<div class="right_box">
										<p class="name"><a href="./home?uid=' . $value['id'] . '" target="_blank">' . $value['nickname'] . '</a>
										<font class="fr"><img src="static/image/look.png" width="26px" alt="">' . $value['follower_count'] . '</font></p>
										<a href="./home?uid=' . $value['id'] . '" target="_blank">' . $value['level_name'] . '</a>
										<p class="desk">' . $value['god_description'] . '</p>';
        $skilled_tags = json_decode($value['god_skilled_tags']);
        foreach (count($skilled_tags) > 0 ? $skilled_tags : array() as $key => $value) {
            echo '<a href="javascript:" class="tagBox">' . $value . '</a>';
        }
        echo '</div></div>';
Beispiel #2
0
?>
><a href="./god?type=Cocos2d-x">Cocos2d-x</a></li>
			<li data-id="Android" <?php 
echo $types == 4 ? $active : "";
?>
><a href="./god?type=Android">Android</a></li>
		</ul>
		<ul>
			<li style="overflow: hidden;">
				<?php 
foreach ($data as $key => $value) {
    $value['avatar'] = $value['avatar'] == "" ? "static/image/default.jpg" : $value['avatar'];
    if ($value['id'] == @$id) {
        $button = '<button disabled="disabled" style="background:#ccc">自己</button>';
    } else {
        $button = check_follow($follow_users, $value['id']) ? '<button id="ajax_uneye" data-id="' . $value['id'] . '"> 取消关注 </button>' : '<button id="ajax_eye" data-id="' . $value['id'] . '"> <font>+</font> 关注</button>';
    }
    ?>

					<div class="data fl">
						<div class="left_box">
							<a href="./home?uid=<?php 
    echo $value['id'];
    ?>
" target="_blank"><img src="<?php 
    echo $value['avatar'];
    ?>
" alt="" class="pic"><img class="god" src="./static/image/god_right.png"></a>
							<?php 
    echo $button;
    ?>
Beispiel #3
0
" alt="" class="pic">
            <h3 class="name"><?php 
echo $user["nickname"];
?>
</h3>
            <h4 class="name" style="font-size: 12px;font-weight:600;"><?php 
echo $user['level_name'];
?>
</h4>

            <p class="desk"><?php 
echo $user["description"] == "" ? "这货居然没写描述" : $user['description'];
?>
</p>
			<?php 
echo !check_follow(json_decode(isset($follow_users) ? $follow_users : "[]"), $user['id']) ? '<button id="ajax_eye" data-id="' . $user["id"] . '">+ 关注</button>' : '<button id="ajax_uneye" data-id="' . $user["id"] . '">取消关注</button>';
?>
		</div>
		<div class="tacher-tag">
			<h2>擅长标签:</h2>
			<?php 
$god_skilled_tags = json_decode($user['god_skilled_tags']);
echo count($god_skilled_tags) <= 0 ? '<p class="not">他还没有擅长的标签</p>' : '';
foreach (count($god_skilled_tags) > 0 ? $god_skilled_tags : array() as $key => $value) {
    echo '<a href="./tag/?name=' . urldecode($value) . '" class="tagBox">' . $value . '</a>';
}
?>
		</div>

		<div class="tacher-class">
			<h2>正在开的课程:</h2>