コード例 #1
0
adminHeader();
?>
	<!--header end-->
	<!--sidebar start-->
	<?php 
adminSidebar("member");
if (isset($_GET['type'])) {
    $web = false;
    if ($_GET['type'] === 'gym' && isset($_GET['barcode'])) {
        $barcode = $_GET['barcode'];
        $profile = MemberManagemant::getGymMemberInfo($barcode);
    } else {
        if ($_GET['type'] === 'page' && isset($_GET['email'])) {
            $web = true;
            $email = $_GET['email'];
            $profile = MemberManagemant::getPageMemberInfo($email);
            print_r($profile);
        } else {
            //에러닷
        }
    }
} else {
    $web = false;
    //에러닷
}
?>
	<!--sidebar end-->
	<section id="main-content">
		<section class="wrapper">
			<h3><i class="fa fa-angle-right"></i> 회원 프로필</h3>
			<div class="col-lg-12 mt">
コード例 #2
0
										<?php 
} else {
    ?>
										<th>이름</th>
										<th class="hidden-phone">전화번호</th>
										<th class="hidden-phone">마감일</th>
										<th class="hidden-phone">회원코드</th>
										<?php 
}
?>
									</tr>
								</thead>
								<tbody>
								<?php 
//가독성 구려서 미안해요 ㅠㅠ
$members = $web ? MemberManagemant::getPageMembers($filter) : MemberManagemant::getGymMembers($filter);
foreach ($members as $member) {
    ?>
								<tr>
									<?php 
    if ($web) {
        ?>
									<td><input type="checkbox"></td>
									<td><a href='profile.php?type=page&amp;email=<?php 
        echo $member["email"];
        ?>
'>
										<?php 
        echo $member['email'];
        ?>
									</a></td>