-
Notifications
You must be signed in to change notification settings - Fork 1
/
userAccount.php
97 lines (87 loc) · 3.79 KB
/
userAccount.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
include('template/init.php');
include('template/function.php');
?><!DOCTYPE html>
<html lang="zh">
<head>
<?php include('template/head.php'); ?>
</head>
<body>
<?php include('template/menu.php'); ?>
<br />
<div class="container marketing">
<div class="row">
<div class="col-lg-12">
<br><br><br>
<div class="row">
<div class="col-lg-2">
<?php include('template/sidebar.php'); ?>
</div>
<div class="col-lg-6">
<br>
<legend>註冊</legend>
<?php
$text = json_decode(post('control/user.php',array('user_data'=>$_SESSION['user_data'],'cmd'=>'getUserData')),1);
?>
<form class="form-horizontal">
<input type="hidden" name="cmd" value="update_passwd">
<input type="hidden" name="key" value="<?php echo key_gen();?>">
<fieldset>
<div class="form-group">
<label for="inputUser" class="col-lg-2 control-label">我的帳號</label>
<div class="col-lg-10">
<strong class="form-control"><?=$text['usernm']?></strong>
</div>
</div>
<div class="form-group">
<label for="inputName" class="col-lg-2 control-label">我的名字</label>
<div class="col-lg-10">
<strong class="form-control"><?=$text['realname']?></strong>
</div>
</div>
<div class="form-group">
<label for="confrimEmail" class="col-lg-2 control-label">我的學校</label>
<div class="col-lg-10">
<strong class="form-control"><?=$text['school']?></strong>
</div>
</div>
<div class="form-group">
<label for="inputPassword" class="col-lg-2 control-label">修改密碼</label>
<div class="col-lg-10">
<input type="password" class="form-control" name="passwd" id="inputPassword" placeholder="New Password">
</div>
</div>
<div class="form-group">
<label for="confrimPassword" class="col-lg-2 control-label">確認修改</label>
<div class="col-lg-10">
<input type="password" name="re_passwd" class="form-control form-warring" id="confrimPassword" placeholder="Confirm Password">
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<button class="btn btn-default col-md-3 pull-left">取消</button>
<button type="submit" class="btn btn-primary col-md-3 pull-right" onclick="javascript:(function(){if($('#confrimPassword').val() != $('#inputPassword').val()) alert('兩次輸入的密碼不一樣!');})();">修改</button>
</div>
</div>
</fieldset>
</form>
</div>
<div class="col-lg-4">
<img src="http://soucyagency.com/blog/wp-content/uploads/2012/08/female-college-student1.jpg" class="img-responsive" alt="Image">
</div>
</div>
</div>
</div>
<hr>
<footer>
<p>© Company 2013</p>
</footer>
</div>
<!-- /container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
</body>
</html>