/var/www/hkosl.com/ifapc/html_20210817/IFAPC2021/application/views/main/member_reset_index.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
60
61
62
63
64
65
66
67
68
<?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-reset" style="max-width: 500px;">
                <div class="tab-container">
                    <div class="tab-content clearfix" id="tab-reset">
                        <div class="panel panel-default nobottommargin">
                            <div class="panel-body" style="padding: 40px;">
                                <?php echo form_open(front_url('member/reset_password/' $id '/' $token), 'id="reset_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 'password'?>
                                    <label for="<?php echo $field?>"><?php echo __('Password'); ?>:</label>
                                    <input type="password" id="<?php echo $field?>"
                                        name="<?php echo $field?>" class="sm-form-control" required>
                                </div>

                                <div class="col_full">
                                    <?php $field 'confirm_password'?>
                                    <label for="<?php echo $field?>"><?php echo __('Confirm password'); ?>:</label>
                                    <input type="password" id="<?php echo $field?>"
                                        name="<?php echo $field?>" class="sm-form-control" required>
                                </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 reset_lock = false;
    $('#reset_form').bind('submit', function(e) {
        if (reset_lock) {
            e.preventDefault();
        } else {
            reset_lock = true;
        }
    });
});
</script>
<?php unset($_SESSION['error_msg']); ?>