/var/www/hkosl.com/course_admin/course_record_edit.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<html lang="en">

<head>
    <?php include 'inc/head.php'?>
    <link href="./assets/css/datatables.min.css?<?php rand(10,100?>" rel="stylesheet" />
    <link href="./assets/css/dataTables.checkboxes.css?<?php rand(10,100?>" rel="stylesheet" />
    <?php include 'inc/links.php'?>
</head>

<body>
    <div class="app-container app-theme-white body-tabs-shadow fixed-sidebar ">

        <?php include 'inc/header.php'?>
        <!--  <?php include 'inc/setting.php'?>   -->

        <div class="app-main">

            <?php include 'inc/side_menu.php'?>

            <div class="app-main__outer">
                <div class="app-main__inner">
                    <div class="app-page-title">
                        <div class="page-title-wrapper">
                            <div class="page-title-heading">

                                <div>
                                    課程報名 (修改)
                                    <!--   <div class="page-title-subheading">
                                        This is an example dashboard created using build-in
                                        elements and components.
                                    </div> -->
                                </div>
                            </div>
                            <div class="page-title-actions">

                                <div class="page-title-actionsWrap dropdown">


                                    <div class="input-group">
                                        <div class="custom-file">
                                            <input class="custom-file-input" id="inputGroupFile04" type="file">
                                            <label class="custom-file-label" for="inputGroupFile04">Upload CSV</label>
                                        </div>
                                        <div class="input-group-append">
                                            <button class="btn btn-outline-primary" type="button">匯入文件</button>
                                        </div>

                                    </div>
                                    <button type="button" class="btn-shadow btn btn-light"
                                        onclick="window.location.href = 'course_record.php';">
                                        <span class="btn-icon-wrapper pr-2 opacity-7">

                                            <i class="fas fa-angle-left"></i>
                                        </span>
                                        返回
                                    </button>

                                </div>
                            </div>
                        </div>
                    </div>


                    <div class="formWrap">
                        <div class="row">

                            <div class="col-md-6">
                                <div class="position-relative form-group"><label for="couresname" class="">公司名稱: <span
                                            class="text-danger">*</span></label><input name="couresname" id="couresname"
                                        placeholder="" type="text" value="公司A" class="form-control" disabled></div>
                            </div>
                            <div class="col-md-6">
                                <div class="position-relative form-group"><label for="coursename" class="">課程名稱: <span
                                            class="text-danger">*</span></label><input name="coursename" id="coursename"
                                        placeholder="" type="text" class="form-control" value="梯具安全課程" disabled></div>
                            </div>
                            <div class="col-md-12">
                                <div class="position-relative form-group"><label for="courseinfo"
                                        class="">課程簡介:</label><textarea name="courseinfo" id="courseinfo"
                                        class="form-control"></textarea></div>

                            </div>

                        </div>
                        <div class="addGourpContent mb-4">
                            <div class="addGourpWrap">
                                <div class="row w-100">
                                    <div class="col-md-3">
                                        <div class="position-relative form-group"><label for="name_tc" class="">員工中文名稱:
                                                <span class="text-danger">*</span></label><input name="name_tc"
                                                id="name_tc" placeholder="" type="text" value="陳大文" class="form-control">
                                        </div>

                                    </div>
                                    <div class="col-md-3">
                                        <div class="position-relative form-group"><label for="name_en" class="">員工英文名稱:
                                                <span class="text-danger">*</span></label><input name="name_en"
                                                id="name_en" placeholder="" type="text" value="Chan Tai Man" class="form-control">
                                        </div>

                                    </div>
                                    <div class="col-md-3">
                                        <div class="position-relative form-group"><label for="hkid"
                                                class="">身份証號碼(英文字母頭四位數字):
                                                <span class="text-danger">*</span></label><input name="hkid" id="hkid"
                                                placeholder="" type="text" value="A1234" class="form-control"></div>

                                    </div>
                                    <div class="col-md-3">
                                        <div class="position-relative form-group"><label for="tel" class="">聯絡電話:
                                                <span class="text-danger">*</span></label><input name="tel" id="tel"
                                                placeholder="" type="text" value="12356789" class="form-control"></div>

                                    </div>
                                </div>
                                <div class="d-flex gap10">
                                    <button class="btn btn-info addRowBtn text-light"><i class="fas fa-plus-square"></i></button>
                                    <button class="btn btn-warning copyRowBtn" data-toggle="modal"
                                        data-target="#copylist"><i class="fas fa-copy" data-toggle="modal" data-target="#copylist"></i></button>
                                </div>
                            </div>

                        </div>
                        <button type="button" class="btn-shadow btn btn-primary"
                            onclick="window.location.href = 'course_record.php';">
                            <span class="btn-icon-wrapper pr-2 opacity-7">

                                <i class="fas fa-save fa-w-20"></i>
                            </span>
                            儲存
                        </button>
                    </div>

                </div>
            </div>
        </div>
        <?php include 'inc/footer.php'?>
    </div>

    <?php include 'modal/copylist.php'?>


    <script type="text/javascript" src="./assets/scripts/main.js"></script>
    <script>
    $(document).on("click", ".addRowBtn", function() {



        $(`    <div class="addGourpWrap">
                                <div class="row w-100">
                                    <div class="col-md-3">
                                        <div class="position-relative form-group"><label for="name_tc" class="">員工中文名稱:
                                                <span class="text-danger">*</span></label><input name="name_tc"
                                                id="name_tc" placeholder="" type="text" value="" class="form-control">
                                        </div>

                                    </div>
                                    <div class="col-md-3">
                                        <div class="position-relative form-group"><label for="name_en" class="">員工英文名稱:
                                                <span class="text-danger">*</span></label><input name="name_en"
                                                id="name_en" placeholder="" type="text" value="" class="form-control">
                                        </div>

                                    </div>
                                    <div class="col-md-3">
                                        <div class="position-relative form-group"><label for="hkid"
                                                class="">身份証號碼(英文字母頭四位數字):
                                                <span class="text-danger">*</span></label><input name="hkid" id="hkid"
                                                placeholder="" type="text" value="" class="form-control"></div>

                                    </div>
                                    <div class="col-md-3">
                                        <div class="position-relative form-group"><label for="tel" class="">聯絡電話:
                                                <span class="text-danger">*</span></label><input name="tel" id="tel"
                                                placeholder="" type="text" value="" class="form-control"></div>

                                    </div>
                                </div>
                                <div class="d-flex gap10">
                                <button class="btn btn-danger removeRowBtn"><i class="fas fa-trash-alt"></i></button>
                                    <button class="btn btn-warning copyRowBtn" data-toggle="modal" data-target="#copylist"><i class="fas fa-copy"></i></button>
                                </div>
                            </div>`).appendTo('.addGourpContent');

    });
    $(document).on("click", ".removeRowBtn", function() {

        $(this).closest('.addGourpWrap').remove();

    });
    </script>
</body>

</html>