1 Star 0 Fork 0

布吉岛/school

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
teacher_query_sourse.php 3.04 KB
一键复制 编辑 原始数据 按行查看 历史
布吉岛 提交于 2016-12-02 09:29 . NO.1
<?php
require "./include/common.inc.php";
$id = $_COOKIE['uid'];
$sql = "select `id`,`name`,`avatar`,`sex`,`age`,`mobi`,`qq`,`email`,`descr`,`last_login_time`,`last_login_ip` from `teacher` where `id`= $id";
$data = get_all( $sql );
?>
<!DOCTYPE html>
<html>
<head>
<title>我的资料</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- loading mui -->
<link rel="stylesheet" type="text/css" href="css/mui.min.css">
<!-- custorm style -->
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<!-- 导航栏 -->
<header id="header" class="mui-bar mui-bar-nav">
<h1 class="mui-title">奇猿学生课程管理系统</h1>
<a class="mui-action-back mui-btn mui-btn-blue mui-btn-link mui-btn-nav mui-pull-left" href="javascript:history.go(-1)"><span class="mui-icon mui-icon-left-nav"></span></a>
<a class="mui-icon mui-icon-bars mui-pull-right" href="#topPopover"></a>
</header>
<!-- 右上角弹出菜单 -->
<div id="topPopover" class="mui-popover">
<div class="mui-popover-arrow"></div>
<div class="mui-scroll-wrapper">
<div class="mui-scroll">
<ul class="mui-table-view">
<li class="mui-table-view-cell"><a href="teacher_index.php">首页</a>
</li>
<li class="mui-table-view-cell"><a href="vote.html">我要投票</a>
</li>
<li class="mui-table-view-cell"><a href="rate.html">我要评价</a>
</li>
<li class="mui-table-view-cell"><a href="teacher_message.php">我要留言</a>
</li>
<li class="mui-table-view-cell"><a href="payment.html">我要缴费</a>
</li>
<li class="mui-table-view-cell"><a href="teacher_center.php">修改资料</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- 主内容部分 -->
<div class="content">
<section class="xueqi">
<div class="class">
<label id="classResult">我的资料</label>
</div>
</section>
<section class="rate_group">
<div style="width:100px;height:100px;overflow:hidden;margin:0 auto;"><img src="./uploads/teacher/<?=$data[0]['avatar']; ?>" alt="" style="width:100px;"></div>
<table>
<?php foreach($data as $item){ ?>
<tr>
<th style="width:80px;">编号</th>
<td><?=$item['id']; ?></td>
</tr>
<tr>
<th>姓名</th>
<td><?=$item['name']; ?></td>
</tr>
<tr>
<th>性别</th>
<td><?=$item['sex']==1?'男':'女'; ?></td>
</tr>
<tr>
<th>年龄</th>
<td><?=$item['age']; ?></td>
</tr>
<tr>
<th>手机</th>
<td><?=$item['mobi']; ?></td>
</tr>
<tr>
<th>QQ</th>
<td><?=$item['qq']; ?></td>
</tr>
<tr>
<th>邮箱</th>
<td><?=$item['email']; ?></td>
</tr>
<tr>
<th>个性签名</th>
<td><?=$item['descr']; ?></td>
</tr>
<tr>
<th>最后登录时间</th>
<td><?=$item['last_login_time']; ?></td>
</tr>
<tr>
<th>最后登录IP地址</th>
<td><?=$item['last_login_ip']; ?></td>
</tr>
<?php } ?>
</table>
</div>
<script src="js/mui.min.js"></script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/jovan_557/school.git
[email protected]:jovan_557/school.git
jovan_557
school
school
master

搜索帮助