123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <form id="commentForm">
- <div class="row">
- <input name="id" type="hidden" value="{{$req['id']}}">
- <div class="col-lg-12" style="margin-bottom: 10px;margin-left: 10px;">
- <input class="week_time_point_all" name="week_time_point_all" <?php if (empty($data)) { echo 'checked'; } ?> type="checkbox" value="1"><span style="margin-left: 6px;">不限</span>
- </div>
- <div class="col-lg-12">
- <div class="box-body table-responsive no-padding">
- <table class="table table-bordered table-hover table-striped" style="text-align: center;">
- <tbody>
- <tr style="color: #ecf0f4;background-color: #3c8dbc;">
- <th></th>
- <th style="text-align: center">周一</th>
- <th style="text-align: center">周二</th>
- <th style="text-align: center">周三</th>
- <th style="text-align: center">周四</th>
- <th style="text-align: center">周五</th>
- <th style="text-align: center">周六</th>
- <th style="text-align: center">周日</th>
- </tr>
- <tr>
- <td>上午</td>
- <?php for ($i = 11; $i <= 17; $i++) { ?>
- <td><input class="week_time_point" <?php if (in_array($i, $data)) { echo 'checked'; } ?> name="week_time_point[]" type="checkbox" value="{{$i}}"></td>
- <?php } ?>
- </tr>
- <tr>
- <td>下午</td>
- <?php for ($i = 21; $i <= 27; $i++) { ?>
- <td><input class="week_time_point" <?php if (in_array($i, $data)) { echo 'checked'; } ?> name="week_time_point[]" type="checkbox" value="{{$i}}"></td>
- <?php } ?>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div class="col-lg-12" style="text-align: center;margin-top: 10px;">
- <button type="button" class="btn btn-primary" onclick="sub()">提 交</button>
- </div>
- </div>
- </form>
- <script src="/layui/layer/layer.js"></script>
- <script>
- $(function () {
- $('.week_time_point').click(function () {
- $('.week_time_point_all').removeAttr('checked');
- });
- $('.week_time_point_all').click(function () {
- $('.week_time_point').removeAttr('checked');
- });
- })
- function sub()
- {
- $.post('{{url("/cdms/community/vaccineSetting/sumbit")}}', $('#commentForm').serialize(), function (res) {
- if (res.status == 0){
- window.location.href = document.referrer;
- }
- else {
- layer.msg(res.message, {icon: 5, time: 3000});
- }
- });
- }
- </script>
|