/var/www/hkosl.com/excland/view/uploadpay.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="en-HK" prefix="og: http://ogp.me/ns#">

<head>
    <title>EXCLAND - Upload</title>



    <!-- css -->
    <?php include 'inc/headlinks.php'?>
    <!-- js -->
    <?php include 'inc/link-js.php'?>




</head>

<body class="blueTheme">

    <!-- header -->
    <div class="subPageNav">
        <?php include 'inc/navbar_nologin.php'?>
    </div>
    <!-- end of header-->


    <!-- breadcrumb -->
    <div class="breadcrumbWrapper_nonscroll grayDeepBgColor">
        <div class="container">
            <a href="index.php" class="link"> 首頁</a> > <span>
                上傳入數紙</span>
        </div>
    </div>



    <section class="productBoxWrapper">
        <div class="container">
            <form>
                <div class="row mb-4">
                    <div class="col-lg-6 mx-auto">
                        <div class="text-center bigFont mb-4">
                            <i class="fas fa-sticky-note grayFont"></i>
                            <h4>上傳入數紙</h4>
                        </div>

                        <div class="form-group">

                            <input type="text" class="form-control text-center" aria-describedby=""
                                placeholder="請輸入訂單編號">

                        </div>



                        <!-- Upload image input-->
                        <div class="input-group mb-3 px-2 py-2 rounded-pill bg-white shadow-sm">
                            <input id="upload" type="file" onchange="readURL(this);" class="form-control border-0">
                            <label id="upload-label" for="upload" class="font-weight-light text-muted">選擇文件</label>
                            <div class="input-group-append">
                                <label for="upload" class="btn btn-light m-0 rounded-pill px-4"> <i
                                        class="fa fa-cloud-upload mr-2 text-muted"></i><small
                                        class="text-uppercase font-weight-bold text-muted">選擇文件</small></label>
                            </div>
                        </div>

                        <!-- Uploaded image area-->
                        <p class="font-italic text-center">上載入數紙檔案(JPG, 5MB)</p>
                        <div class="image-area mt-4 mb-4"><img id="imageResult" src="#" alt=""
                                class="img-fluid rounded shadow-sm mx-auto d-block"></div>

                        <div class="form-group text-center">
                            <label for="message">備註:</label>
                            <textarea class="form-control" id="message" rows="5"></textarea>
                        </div>


                        <div class="text-center pt-4">
                            <button type="submit" class="btn btn-primary">上傳入數紙</button>
                        </div>
                    </div>

            </form>
        </div>

    </section>







    <!-- end #section -->


    <!-- footer -->
    <?php include 'inc/footer.php'?>


    <!-- custom JS -->
    <script>
    /*  ==========================================
    SHOW UPLOADED IMAGE
* ========================================== */
    function readURL(input) {
        if (input.files && input.files[0]) {
            var reader = new FileReader();

            reader.onload = function(e) {
                $('#imageResult')
                    .attr('src', e.target.result);
            };
            reader.readAsDataURL(input.files[0]);
        }
    }

    $(function() {
        $('#upload').on('change', function() {
            readURL(input);
        });
    });

    /*  ==========================================
        SHOW UPLOADED IMAGE NAME
    * ========================================== */
    var input = document.getElementById('upload');
    var infoArea = document.getElementById('upload-label');

    input.addEventListener('change', showFileName);

    function showFileName(event) {
        var input = event.srcElement;
        var fileName = input.files[0].name;
        infoArea.textContent = 'File name: ' + fileName;
    }
    </script>
</body>



</html>