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
86
87
|
<?php include_once('templates/top.php'); ?> <section id="page-title" style="background-image: url('../images/myimg/lady_gold_2018.jpg');" class="background-title"> <div class="container clearfix"> <h1>登記 | 註冊</h1> <ol class="breadcrumb"> <li><a href="#">主頁</a></li> <li class="active">登記 | 註冊</li> </ol> </div> </section>
<!-- Content ============================================= --> <section id="content"> <div class="content-wrap"> <div class="container clearfix"> <div class="tabs divcenter nobottommargin clearfix" id="tab-login-forgot" style="max-width: 500px;"> <div class="tab-container"> <div class="tab-content clearfix" id="tab-forgot"> <div class="panel panel-default nobottommargin"> <div class="panel-body" style="padding: 40px;"> <?php echo form_open(front_url('application/change_email/' . $id), 'id="change_form"'); ?> <?php if (validation_errors() || isset($_SESSION['error_msg'])) {?> <div class="col_full alert alert-danger"> <?php echo validation_errors(); ?> <?php echo $_SESSION['error_msg']; ?> <?php unset($_SESSION['error_msg']); ?> </div> <?php }?> <div class="col_full"> <?php $field = 'nominee_email'; ?> <label for="<?php echo $field; ?>"><?php echo __('Nominee Email'); ?>:</label> <input type="email" id="<?php echo $field; ?>" name="<?php echo $field; ?>" value="<?php echo set_value($field, $$field); ?>" class="sm-form-control" required <?php echo $nominee_submitted ? 'readonly' : ''; ?>> </div>
<div class="col_full"> <?php $field = 'nominator_email'; ?> <label for="<?php echo $field; ?>"><?php echo __('Nominator Email'); ?>:</label> <input type="email" id="<?php echo $field; ?>" name="<?php echo $field; ?>" value="<?php echo set_value($field, $$field); ?>" class="sm-form-control" required <?php echo $nominator_submitted ? 'readonly' : ''; ?>> </div>
<div class="col_full nobottommargin"> <button class="button button-3d button-black nomargin"><?php echo __('Submit'); ?></button> </div> <?php echo form_close(); ?> </div> </div> </div>
</div> </div> <?php include_once('templates/bottom.php'); ?> <script> $(function() { var change_lock = false; var confirm = false; $('#change_form').bind('submit', function(e) { var form = $(this); if(!confirm) { if (change_lock) { e.preventDefault(); } else { e.preventDefault(); alertify.set({ labels: { ok: "<?=__('Confirm')?>", cancel: "<?=__('Cancel')?>" } });
alertify.confirm("<?=__('Confirm to change email?<br>*** Will clear all related data of this application! ***')?>", function (e) { if (e) { change_lock = true; confirm = true; form.submit(); } }); } } }); }); </script> <?php unset($_SESSION['error_msg']); ?>
|