/var/www/hkosl.com/billingsystem/dashboard/component/add_productpack.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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<div class="modal fade bd-example-modal-lg" id="addNewPack" tabindex="-1" role="dialog" aria-labelledby="addNew" aria-disabled="true">
    <div class="modal-dialog modal-md modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title">Add New Pack
                </h3>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-disabled="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="card-body boxShadow whiteBg mb-3">
                    <div class="row">
                        <div class="col-lg-4">
                            <div class="form-group">
                                <label for="AddPackCode">Product Code</label>
                                <input type="text" class="form-control" id="AddPackCode" value="" placeholder="">
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="form-group">
                                <label for="AddPackNameclient">Product Name(client)</label>
                                <input type="text" class="form-control" id="AddPackNameclient" value="" placeholder="">
                            </div>
                        </div>
                        <div class="col-lg-3">
                            <div class="form-group">
                                <label for="AddPackNameinternal">Product Name(internal)</label>
                                <input type="text" class="form-control" id="AddPackNameinternal" value="" placeholder="">
                            </div>
                        </div>

                        <div class="col-lg-2">
                            <div class="custom-dropdown fright">
                                <select class="statusSelect">
                                    <option value="" hidden>Status</option>
                                    <option value="Active">Active</option>
                                    <option value="Inactive">Inactive</option>

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



                        <div class="col-md-2">
                            <div class="form-group">
                                <label for="AddPickType">Type </label>
                                <select class="form-control" id="AddType">
                                    <option value="" Selected></option>
                                    <option value="Rental">Rental</option>
                                    <option value="Retail">Retail</option>

                                </select>
                            </div>
                        </div>
                        <div class="col-md-4">

                            <div class="form-group">
                                <label for="AddPackCategory">Category</label>
                                <select class="form-control" id="AddPackCategory" multiple="multiple" style="width: 100%;">

                                    <option value="Food">Food</option>
                                    <option value="Cloth">Cloth</option>
                                    <option value="Phone">Phone</option>

                                </select>
                            </div>

                        </div>

                        <div class="col-md-4">


                            <div class="form-group ">
                                <label for="AddPackBrand">Brand</label>
                                <select class="form-control" id="AddPackBrand" multiple="multiple" style="width: 100%;">

                                    <option value="Apple">Apple</option>


                                </select>
                            </div>



                        </div>
                        <div class="col-lg-2">
                            <div class="form-group">
                                <label for="AddPackSalesPrice">Sales Price</label>
                                <input type="text" class="form-control" id="AddPackSalesPrice" value="" placeholder="">
                            </div>
                        </div>



                        <div class="col-md-12">
                            <div class="form-group">
                                <label for="AddPackRemarks">Description</label>
                                <textarea class="form-control" id="AddPackRemarks" rows="3"></textarea>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="card-body boxShadow whiteBg mb-3">
                    <div class="d-flex justify-content-between align-items-center mb-4">

                        <p class="bold mb-0">Set BOM</p>

                        <button class="sbtn btn-info smaller addNewVariationsBtn_add"><i class="mdi mdi-library-plus"></i>
                            Add New</button>
                    </div>
                    <div class="table-responsive collapse show mt-3">
                        <table class="table custom-table small text-dark">
                            <thead>
                                <tr>
                                    <th>SKU#</th>
                                    <th>Product Name (internal)</th>
                                    <th>Qty.</th>
                                    <th>Delete</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>

                                    <td>
                                        <input type="text" class="form-control" value="P02-GN0-1_5M-000" placeholder="">
                                    </td>
                                    <td>
                                        <input type="text" class="form-control" value="1.5米綠色黃金葛" placeholder="">
                                    </td>
                                    <td>
                                        <input type="text" class="form-control" value="2" placeholder="">
                                    </td>

                                    <td>
                                        <a href="#" class="link"> <i class="mdi mdi-delete"></i></a>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="form-control" value="P02-GN0-1_5M-000" placeholder="">
                                    </td>
                                    <td>
                                        <input type="text" class="form-control" value="1.5米綠色黃金葛" placeholder="">
                                    </td>
                                    <td>
                                        <input type="text" class="form-control" value="2" placeholder="">
                                    </td>

                                    <td>
                                        <a href="#" class="link"> <i class="mdi mdi-delete"></i></a>
                                    </td>
                                </tr>

                            </tbody>
                        </table>

                        <div class="card-body boxShadow whiteBg mb-3 text-center">

                                    <p>Upload Image
                                    </p>

                                    <input name="file1" type="file" class="dropify" data-height="100" />
                                </div>
                    </div>

                </div>





            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>

                <button type="button" class="btn btn-primary saveDate shadow_blue">Create</button>
            </div>
        </div>
    </div>
</div>



<script src="../assets/js/image-uploader.js?<?= rand(110000) / 7?>"></script>
<script>
   
    $("#AddPackCategory").select2({
        placeholder: "",
        allowClear: true
    });
    $("#AddPackBrand").select2({
        placeholder: "",
        allowClear: true
    });

    $(document).on('click', '.skugenBtn', function() {
        $(".addSkuWrap").fadeIn();

    });

    $(document).on('change', '.optionConSize', function() {
        if (this.checked) {
            $('.addSizeWrap').fadeIn();
        } else {
            $('.addSizeWrap').fadeOut();
        }

    });

    $(document).on('change', '.optionConOther', function() {
        if (this.checked) {
            $('.addOtherWrap').fadeIn();
        } else {
            $('.addOtherWrap').fadeOut();
        }

    });
    $('.inputImages01').imageUploader();

    $(document).on("change", "#AddColour", function() {
        var colorCode = $(this).val();
        $(this).parent().find(".colorCub").attr("style", `background-color:${colorCode};`)


    });
</script>