You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
2.8 KiB
77 lines
2.8 KiB
<?php
|
|
if ($_REQUEST["token"]) {
|
|
$item = substr($_REQUEST["token"], 0, strpos($_REQUEST["token"], "."));
|
|
if ($item) {
|
|
require_once "header.php";
|
|
}
|
|
}
|
|
?>
|
|
|
|
|
|
|
|
<!-- 主頁header -->
|
|
<?php
|
|
require_once "header.php";
|
|
require_once "database.php"; # 載入db.php來連結資料庫
|
|
$data = array(); # 設置一個空陣列來放資料
|
|
$sql = "SELECT * FROM account where (accountid = '$user_id')"; # sql語法存在變數中
|
|
$data = mysqli_query($link, $sql); # 用mysqli_query方法執行(sql語法)將結果存在變數中
|
|
|
|
|
|
foreach ($data as $data) {
|
|
$phone_call_help = $data['phone_call_help'];
|
|
}
|
|
|
|
|
|
?>
|
|
<div>
|
|
<div id="loader">
|
|
<div class="spinner-border text-primary" role="status"></div>
|
|
</div>
|
|
<div class="appHeader bg-primary text-light">
|
|
<div class="left">
|
|
<a href="javascript:;" class="headerButton goBack">
|
|
<ion-icon name="chevron-back-outline"></ion-icon>
|
|
</a>
|
|
</div>
|
|
<div class="pageTitle">變更密碼</div>
|
|
</div>
|
|
<div id="appCapsule">
|
|
<div class="section full mt-2">
|
|
<div class="section-title">請輸入變更前後密碼!</div>
|
|
<div class="wide-block pt-2 pb-2">
|
|
<form action="change-password-update.php?token=<?php echo $_REQUEST["token"];?>" method="post" enctype="multipart/form-data">
|
|
<!-- 以下是要傳遞的資料 -->
|
|
<input type="hidden" name="token" value="<?php echo $token; ?>" />
|
|
<!-- 以上是要傳遞的資料 -->
|
|
<div class="form-group boxed">
|
|
<div class="input-wrapper">
|
|
<input type="text" class="form-control" name="old_pwd" placeholder="變更前密碼">
|
|
<i class="clear-input">
|
|
<ion-icon name="close-circle"></ion-icon>
|
|
</i>
|
|
</div>
|
|
</div>
|
|
<div class="form-group boxed">
|
|
<div class="input-wrapper">
|
|
<input type="text" class="form-control" name="new_pwd" placeholder="變更後密碼">
|
|
<i class="clear-input">
|
|
<ion-icon name="close-circle"></ion-icon>
|
|
</i>
|
|
</div>
|
|
</div>
|
|
<div class="mt-1">
|
|
<button type="submit" class="btn btn-primary btn-lg btn-block">
|
|
確定
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- * App Capsule -->
|
|
</div>
|
|
<?php
|
|
|
|
mysqli_close($link);
|
|
?>
|