-
Notifications
You must be signed in to change notification settings - Fork 1
/
register_entrance.php
59 lines (53 loc) · 1.81 KB
/
register_entrance.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
<?php
include_once 'Controller/ErrorSettings.php';
include('Connect/Connect.php');
include('Controller/Auth.php');
include('common/head.php');
include('common/navigation.php');
?>
<link rel="stylesheet" type="text/css" href="css/member.css">
<!--<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>-->
<!-- <script src="js/bootstrap.min.js" type="text/javascript" charset="utf-8" async defer></script> -->
<!--<script src="layer/layer.js" type="text/javascript" charset="utf-8" async defer></script>-->
<div class="form-box l-col-wrap">
<div class="l-col form-box__content">
<h1 class="form-box__title">Register</h1>
<br>
<div class="u-auto-format-text">
<p>請點擊下方按鈕進行註冊</p>
<?php
$levels = Auth::registerlevel();
if($levels){
foreach ($levels as $level){
?>
<button type="submit" class="form__button button" value="<?php echo $level['lev_id'];?>" onclick="lev_value(this)" style="margin-bottom: 10px;">註冊<?php echo $level['lev_name'];?> </button>
<!--<input name="submit" type="submit" class="form__button button" value="<?php echo $_SESSION['lev_id']; ?>. 註冊<?php echo $level['lev_name'];?>" style="margin-bottom: 10px;" onclick="lev_vel(vel)">-->
<?php
}
}
?>
<small class="form-box__addon u-auto-format-text">
已經註冊了嗎? <a href="login_entrance.php">登入</a>
</small>
</div>
</div>
</div>
<!-- Footer -->
<?php
include('common/footer.php');
?>
<script type="text/javascript">
function lev_value($val){
switch($val.value) {
case '1':
// alert ($vel.value)
window.location.href = "register.php?val=1";
break;
case '2':
// alert (lev_id);
window.location.href = "register.php?val=2";
break;
//}
}
}
</script>