-
Notifications
You must be signed in to change notification settings - Fork 4
/
upUlist.php
70 lines (66 loc) · 2.56 KB
/
upUlist.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
session_start();
if (isset($_SESSION["username"])) {
?>
<?php require_once('common/header.php'); ?>
<!--页面主要内容-->
<main class="lyear-layout-content">
<div class="container-fluid">
<?php
include_once("../untils/conn.php");
$uid = $_GET['uid'];
$data = mysqli_query($con, "select * from user where uid=" . $uid);
$rows = mysqli_fetch_row($data);
?>
<div class="card">
<div class="card-header bg-primary">
<h4>用户信息修改</h4>
</div>
<div class="card-body">
<form class="form-horizontal" action="controller/doUlist.php" method="POST">
<div class="form-group">
<label for="title" class="col-xs-12">账号:</label>
<div class="col-xs-12">
<input type="text" class="form-control" name="username" placeholder="请输入产品名称" value="<?php echo $rows[1] ?>" required>
</div>
</div>
<div class="form-group">
<label for="title" class="col-xs-12">密码:</label>
<div class="col-xs-12">
<input type="text" class="form-control" name="password" placeholder="请输入产品简短介绍" value="<?php echo $rows[2] ?>" required>
</div>
</div>
<div class="form-group">
<label for="title" class="col-xs-12">姓名:</label>
<div class="col-xs-12">
<input type="text" class="form-control" name="name" placeholder="套餐时长,建议四个字" value="<?php echo $rows[3] ?>" required>
</div>
</div>
<div class="form-group">
<label for="title" class="col-xs-12">手机号:</label>
<div class="col-xs-12">
<input type="text" class="form-control" name="phone" placeholder="请输入号卡归属地" value="<?php echo $rows[4] ?>" required>
</div>
</div>
<div class="form-group">
<input type="hidden" name="uid" value="<?php echo $uid ?>">
<div class="offset-2 col-xs-12">
<button class="btn btn-success" type="submit" value="添加">确认修改</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<!--End 页面主要内容-->
<?php require_once('common/footer.php'); ?>
<?php
} else {
echo "<script>alert('您尚未登录,没有权限访问该页面');location.href='login.php';</script>";
}