当前位置: 首页>>代码示例>>PHP>>正文


PHP Student::get_username方法代码示例

本文整理汇总了PHP中Student::get_username方法的典型用法代码示例。如果您正苦于以下问题:PHP Student::get_username方法的具体用法?PHP Student::get_username怎么用?PHP Student::get_username使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Student的用法示例。


在下文中一共展示了Student::get_username方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Student

					<?php 
}
?>

				<div class="row">
					<?php 
$buddy_ids = $student->get_all_buddy_ids();
foreach ($buddy_ids as $buddy_id) {
    $buddy = new Student($buddy_id);
    ?>
						<div class="buddy-list-entry col-lg-2 col-md-2 col-sm-3 col-xs-4">
							<a href="<?php 
    echo BASE;
    ?>
student/<?php 
    echo strtolower($buddy->get_username());
    ?>
/">
								<img src="<?php 
    echo $buddy->get_avatar();
    ?>
" class="student-avatar">
								<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
									<h3 class="student-name text-center">
										<?php 
    echo $buddy->get_fullname();
    ?>
									</h3>
								</div>
							</a>
						</div>
开发者ID:DonBananos,项目名称:studyteam,代码行数:31,代码来源:buddies.php

示例2:

            }
            $header .= " image in ";
        }
        require './post/single_post_view.php';
        $feed_populater_count++;
    }
} else {
    ?>
							<div class="content-box" id="suggestions_<?php 
    echo $feed_populater_count;
    ?>
">
								<div class="row">
									<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
										<h4>Welcome to StudyTeam <?php 
    echo $student->get_username();
    ?>
!</h4>
										<p>As you join groups, your feed will be filled with posts from your StudyTeam Society</p>
									</div>
								</div>
							</div>
							<?php 
    $suggested_group_ids = $student->get_group_suggestions_for_feed(2);
    ?>
							<div class="content-box" id="suggestions_<?php 
    echo $feed_populater_count;
    ?>
">
								<div class="row">
									<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
开发者ID:DonBananos,项目名称:studyteam,代码行数:31,代码来源:member_area.php

示例3: strtolower

<div class="content-box" id="post_<?php 
echo $feed_post['post_id'];
?>
">
	<div class="row">
		<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
			<img src="<?php 
echo $poster->get_avatar();
?>
" class="student-avatar-thumb">
			<div class="post-header">
				<a href="<?php 
echo BASE;
?>
student/<?php 
echo strtolower($poster->get_username());
?>
/"><?php 
echo $poster->get_username();
?>
</a>
				<?php 
echo $header;
if ($view == "student feed") {
    ?>
					<a href="<?php 
    echo BASE;
    ?>
group/<?php 
    echo $feed_post['group_id'];
    ?>
开发者ID:DonBananos,项目名称:studyteam,代码行数:31,代码来源:single_post_view.php

示例4: foreach

										<h3>Former members of group</h3>
									</div>
									<?php 
        $new_runs = 1;
        foreach ($inactive_members_array as $student_id => $member_data) {
            if ($member_data['active'] != 1) {
                $member = new Student($student_id);
                ?>
											<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
												<div class="row">
													<div class="group-member-block">
														<a href="<?php 
                echo BASE;
                ?>
student/<?php 
                echo strtolower($member->get_username());
                ?>
/">
															<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
																<div class="row">
																	<img src="<?php 
                echo $member->get_avatar();
                ?>
" class="student-avatar">
																</div>
															</div>
															<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
																<div class="row">
																	<h4 class="student-name">
																		<?php 
                echo $member->get_username();
开发者ID:DonBananos,项目名称:studyteam,代码行数:31,代码来源:details.php

示例5: get_permission_name_from_id

							</div>
						</div>
					</div>
					<?php 
}
?>
				<div class="row">
					<div class="col-lg-3 col-md-3 col-sm-4 col-xs-12">
						<div class="content-box" id="student-profile-general-info">
							<div class="page-info">
								<span class="fa fa-user"></span> <?php 
echo $student_visited->get_fullname();
?>
<br/>
								<span class="fa fa-tag"></span> <?php 
echo $student_visited->get_username();
?>
<br/>
								<span class="fa fa-at"></span> <?php 
echo $student_visited->get_email();
?>
<br/>
								<span class="fa fa-lock"></span> <?php 
echo get_permission_name_from_id($student_visited->get_permission());
?>
<br/>
								<span class="fa fa-clock-o"></span> <?php 
echo date("d/m-Y", strtotime($student_visited->get_joined()));
?>
							</div>
						</div>
开发者ID:DonBananos,项目名称:studyteam,代码行数:31,代码来源:details.php

示例6: Student

search/" method="GET">
								<label>Search for a Student</label>
								<input type="text" name="s" value="<?php 
echo $search_string;
?>
" class="form-control">
								<input type="submit" class="btn btn-primary" value="Search!">
							</form>
							<hr>
							<?php 
foreach ($search_student_ids as $student_id) {
    $search_student = new Student($student_id);
    ?>
								<label>Username: </label>
								<?php 
    echo $search_student->get_username();
    ?>
<br/>
								<label>Name: </label>
								<?php 
    echo $search_student->get_fullname();
    ?>
<br/>
								<label>Email: </label>
								<?php 
    echo $search_student->get_email();
    ?>
<br/>
								<a href="<?php 
    echo BASE;
    ?>
开发者ID:DonBananos,项目名称:studyteam,代码行数:31,代码来源:search.php


注:本文中的Student::get_username方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。