<form action="<?= base_url('member/changeAccountInformation') ?>" method="post" onSubmit="return checkPassword(this)">
  <div class="container">
    <div class="row">
		<div class="form-group col-12 col-md-6 leftColTextbox ">
			<label for="email">電郵地址 <span class="required">*</span></label>
			<input type="email" class="form-control text-center " id="email" name="email" value="<?= $userInfoObject["email"] ?>" readonly>
		</div>
      <div class="form-group col-12 col-md-6 rightColTextbox ">
      </div>
    </div>
    <div class="row">
		<div class="form-group col-12 col-md-6 leftColTextbox ">
			<label for="name">姓名 <span class="required">*</span></label>
			<input type="text" class="form-control text-center" id="name" name="name" value="<?= $userInfoObject['name'] ?>" required >
		</div>
		<div class="form-group col-12 col-md-6 rightColTextbox ">
			<label for="phoneNumber">電話號碼 <span class="required">*</span></label>
			<input type="text" class="form-control text-center " id="phoneNumber" name="phone" value="<?= $userInfoObject["phone"] ?>" pattern="[0-9]+" required>
		</div>
    </div>
    <div class="row">
      <div class="form-group col-12 col-md-6 leftColTextbox ">
        <label for=" cp">目前的密碼(不需變更請留空)</label>
        <input type="password" class="form-control text-center " id="cp" name="current_password" value="******" readonly>
      </div>
      <div class="form-group col-12 col-md-6 rightColTextbox ">
        <div class="text-center edm">
          <input type="checkbox" class="form-check-input " id="edm" name="edm" title="接收宣傳郵件">
          <label for="edm" class="form-check-label">接收宣傳郵件</label>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="form-group col-12 col-md-6 leftColTextbox ">
        <label for="password">新密碼(不需變更請留空)</label>
        <input type="password" class="form-control text-center " id="password" name="password">
      </div>
      <div class="form-group col-12 col-md-6 rightColTextbox ">
        <label for="rpassword">確認新密碼</label>
        <input type="password" class="form-control text-center " id="rpassword" name="rpassword">
      </div>
    </div>
    <div class="row">
      <div class="form-group col-12 col-md-6 leftColButton">
        <button type="submit" class="btn btn-submit w-100">儲存設定</button>
      </div>
    </div>
  </div>
</form>
