-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodifypage.php
More file actions
85 lines (83 loc) · 5.11 KB
/
modifypage.php
File metadata and controls
85 lines (83 loc) · 5.11 KB
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
<?php include("template/$OJ_TEMPLATE/header.php");?>
<div class="padding">
<h1><?php echo $MSG_USERINFO ?></h1>
<div class="ui error message" id="error" data-am-alert hidden>
<p id="error_info"></p>
</div>
<form action="modify.php" method="post" role="form" class="ui form">
<div class="field">
<label for="username"><?php echo $MSG_USER_ID?></label>
<input class="form-control" placeholder="<?php echo $MSG_Input.$MSG_USER_ID?>" disabled="disabled" type="text" value="<?php echo $_SESSION[$OJ_NAME.'_'.'user_id']?>">
</div>
<?php require_once('./include/set_post_key.php');?>
<div class="field">
<label for="username">真实姓名*</label>
<input name="nick" placeholder="<?php echo $MSG_Input.$MSG_NICK?>" type="text" value="<?php echo htmlentities($row['nick'],ENT_QUOTES,"UTF-8")?>">
</div>
<div class="field">
<label class="ui header">重置密码-旧密码*</label>
<input name="opassword" placeholder="<?php echo $MSG_Input.$MSG_PASSWORD?>" type="password">
</div>
<div class="two fields">
<div class="field">
<label class="ui header">重置密码-新密码</label>
<input name="npassword" placeholder="<?php echo $MSG_HELP_LEFT_EMPTY ?>" type="password">
</div>
<div class="field">
<label class="ui header"><?php echo $MSG_REPEAT_PASSWORD?></label>
<input name="rptpassword" placeholder="<?php echo $MSG_HELP_LEFT_EMPTY ?>" type="password">
</div>
</div>
<div class="field">
<label for="username"><?php echo $MSG_SCHOOL?></label>
<input name="school" placeholder="<?php echo $MSG_SCHOOL?>" type="text" value="<?php echo htmlentities($row['school'],ENT_QUOTES,"UTF-8")?>">
</div>
<div class="field">
<label for="email"><?php echo $MSG_EMAIL?>*</label>
<input name="email" placeholder="<?php echo $MSG_EMAIL?>" type="text" value="<?php echo htmlentities($row['email'],ENT_QUOTES,"UTF-8")?>">
</div>
<?php if($OJ_VCODE){?>
<div class="field">
<label for="email"><?php echo $MSG_VCODE?>*</label>
<input name="vcode" class="form-control" placeholder="<?php echo $MSG_VCODE?>" type="text" autocomplete=off >
<img alt="click to change" src="vcode.php" onclick="this.src='vcode.php?'+Math.random()" height="30px">
</div>
<?php }?>
<button name="submit" type="submit" class="ui button"><?php echo $MSG_SUBMIT; ?></button>
<button name="submit" type="reset" class="ui button"><?php echo $MSG_RESET; ?></button>
</form>
</div>
<?php if ($OJ_SaaS_ENABLE && $domain==$DOMAIN){ ?>
<div class="center"> <a name='MyOJ'> </a> <label >My OJ:</label>
<form action="saasinit.php" method="post" role="form" class="ui form">
<div class="field">
<label for="template"><?php echo $MSG_TEMPLATE ?></label>
<select name="template" class="form-control" >
<option>bs3</option>
<option>mdui</option>
<option>syzoj</option>
<option>sweet</option>
<option>bshark</option>
<option>sidebar</option>
</select>
</div>
<div class="field">
<label for="friendly"><?php echo $MSG_FRIENDLY_LEVEL ?></label>
<select name="friendly" class="form-control" >
<option value=0>0=<?php echo $MSG_FRIENDLY_L0 ?></option>
<option value=1>1=0+<?php echo $MSG_FRIENDLY_L1 ?></option>
<option value=2>2=1+<?php echo $MSG_FRIENDLY_L2 ?></option>
<option value=3>3=2+<?php echo $MSG_FRIENDLY_L3 ?></option>
<option value=4>4=3+<?php echo $MSG_FRIENDLY_L4 ?></option>
<option value=5>5=4+<?php echo $MSG_FRIENDLY_L5 ?></option>
<option value=6>6=5+<?php echo $MSG_FRIENDLY_L6 ?></option>
<option value=7>7=6+<?php echo $MSG_FRIENDLY_L7 ?></option>
<option value=8>8=7+<?php echo $MSG_FRIENDLY_L8 ?></option>
<option value=9>9=8+<?php echo $MSG_FRIENDLY_L9 ?></option>
</select>
</div>
<button name="submit" type="submit" class="ui button">重新初始化</button>
</form>
</div>
<?php } ?>
<?php include("template/$OJ_TEMPLATE/footer.php");?>