1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?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");
- $id = 1;
- $data = mysqli_query($con, "select * from admin where id=" . $id);
- $rows = mysqli_fetch_row($data);
- ?>
- <div class="card">
- <div class="card-header bg-primary">
- <h4>个人信息修改</h4>
- </div>
- <div class="card-body">
- <form action="controller/doUser.php" method="POST">
- <form action="controller/tianjiaSort.php" method="POST">
- <div class="input-group m-b-10">
- <label class="input-group-addon" id="basic-addon1">账号</label>
- <input type="text" class="form-control" name="user" placeholder="请输入新用户名" value="<?php echo $rows[1] ?>" >
- </div>
- <div class="input-group m-b-10">
- <label class="input-group-addon" id="basic-addon1">密码</label>
- <input type="text" class="form-control" name="password" placeholder="请输入新密码" value="<?php echo $rows[2] ?>" >
- </div>
- <div class="input-group m-b-10">
- <label class="input-group-addon" id="basic-addon1">安全令牌</label>
- <input type="text" class="form-control" name="token" placeholder="请输入新令牌">
- </div>
- <div class="form-row mt-3">
- <input type="hidden" name="id" value="<?php echo $id ?>">
- <div class="offset-2">
- <button class="btn btn-success" type="submit" value="添加">确认修改</button>
- <!-- <button class="btn btn-danger ml-3" type="reset" 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>";
- }
- ?>
|