86 lines
5.1 KiB
PHP
86 lines
5.1 KiB
PHP
<?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"><?php echo $MSG_NICK?>*</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"><?php echo $MSG_PASSWORD?>*</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"><?php echo $MSG_PASSWORD?></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");?>
|