<?php if($this->session->flashdata('success')): ?> <div class="row"> <div class="alert alert-block alert-success" style="margin-bottom: 5px"> <button type="button" class="close" data-dismiss="alert"> <i class="ace-icon fa fa-times"></i> </button> <i class="ace-icon fa fa-check green"></i> <?php echo $this->session->flashdata('success'); ?> </div> </div> <?php endif; ?> <?php if($this->session->flashdata('error')): ?> <div class="row"> <div class="alert alert-block alert-danger" style="margin-bottom: 5px"> <button type="button" class="close" data-dismiss="alert"> <i class="ace-icon fa fa-times"></i> </button> <i class="ace-icon fa fa-times"></i> <?php echo $this->session->flashdata('error'); ?> </div> </div> <?php endif; ?> <?php if(isset($user[0])): ?> <div class="row"> <div class="profile-user-info profile-user-info-striped"> <div class="profile-info-row"> <div class="profile-info-name"> ID </div> <div class="profile-info-value"> <span>#<?php echo $user[0]['id']?></span> </div> </div> <div class="profile-info-row"> <div class="profile-info-name">Ảnh đại diện</div> <div class="profile-info-value"> <span> <?php ($user[0]['avatar'] != '') ? $avatar_path = $user[0]['avatar'] : $avatar_path = 'upload/avatar/user.jpg' ?> <img src="<?php echo base_url($avatar_path);?>" style="width: 100px; height: 100px"> </span> </div> </div> <div class="profile-info-row"> <div class="profile-info-name">Tên người chơi</div> <div class="profile-info-value"> <span><?php echo $user[0]['fullname']?></span> </div> </div> <div class="profile-info-row"> <div class="profile-info-name">Tên tài khoản</div> <div class="profile-info-value"> <span><?php echo $user[0]['username']?></span> </div> </div> <div class="profile-info-row"> <div class="profile-info-name">Ngày sinh</div> <div class="profile-info-value"> <span><?php echo MyHelper::reFormatDate($user[0]['birthday'], 'd/m/Y') ?></span> </div> </div> <div class="profile-info-row"> <div class="profile-info-name">Giới tính</div> <div class="profile-info-value"> <span><?php echo $user[0]['gender']?></span> </div> </div> <div class="profile-info-row"> <div class="profile-info-name">Địa chỉ</div> <div class="profile-info-value"> <span><?php echo $user[0]['address']?></span> </div> </div> <div class="profile-info-row"> <div class="profile-info-name">Email</div> <div class="profile-info-value"> <span><?php echo $user[0]['email']?></span> </div> </div> <div class="profile-info-row"> <div class="profile-info-name">Mobile</div> <div class="profile-info-value"> <span><?php echo $user[0]['mobile']?></span> </div> </div> <div class="profile-info-row"> <div class="profile-info-name">Mã dự thưởng</div> <div class="profile-info-value"> <span><?php echo $user[0]['reward_code']?></span> </div> </div> <div class="profile-info-row"> <div class="profile-info-name">Ngày tham gia</div> <div class="profile-info-value"> <span><?php echo MyHelper::reFormatDate($user[0]['created_at']) ?></span> </div> </div> </div> </div> <?php else: ?> <p>Không tìm thấy thông tin Người chơi!</p> <?php endif; ?>