admin/userDetail.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
  require_once('tpl/header.php');
  connect();
  $uid=$_GET["uid"];
  $sql="select * from users where uid=$uid";
  $result=mysql_query($sql);
  $row=mysql_fetch_assoc($result);
  $sqlc="select * from comments join videos on comments.vid=videos.vid where uid=$uid";
  $rs=mysql_query($sqlc);
  ?>
<div class="row">
<div class="col-md-4">
	<table class="table table-bordered">
	<caption>基本信息</caption>
<tr>
	<th>用户名</th>
	<td><?php echo $row["uname"] ?></td>
</tr>
<tr>
	<th>性别</th>
	<td><?php 
if ($row["gender"]==0) {
	echo "男";
}else{
	echo "女";
	}?>
	</td>

</tr>
<tr>
	<th>生日</th>
	<td><?php echo $row["birthdate"] ?></td>
</tr>
<tr>
	<th>电子邮件</th>
	<td><?php echo $row["email"] ?></td>
</tr>
<tr>
	<th>头像</th>
	<td><img class="img-circle" src="../images/<?php echo $row["pic"] ?>" width="100" height="100" alt=""></td>
</tr>
	
</table>
</div>

<div class="col-md-8">
	<table class="table table-bordered">
<caption style="align-content: center">发表的评论</caption>
<tr>
	<th>序号</th>
	<th>视频名称</th>
	<th>评论内容</th>
	<th>发表日期</th>
</tr>
<?php 
$i=0;
while ($rowc=mysql_fetch_assoc($rs)) {
	?>
<tr>
	<td><?php echo $i++; ?></td>
后面还有 22 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。