<div class="form-ele"> <label for="week" class="label col-1">显示日期</label> <div class="form-inner col-10"> <div class="ele-radio" data-for="week" data-double="1"> <a href="javascript:;" value="1" <?php echo !isset($data) || strpos($data['display_week'], '1') !== false ? 'class="now"' : ''; ?>>周一</a> <a href="javascript:;" value="2" <?php echo !isset($data) || strpos($data['display_week'], '2') !== false ? 'class="now"' : ''; ?>>周二</a> <a href="javascript:;" value="3" <?php echo !isset($data) || strpos($data['display_week'], '3') !== false ? 'class="now"' : ''; ?>>周三</a> <a href="javascript:;" value="4" <?php echo !isset($data) || strpos($data['display_week'], '4') !== false ? 'class="now"' : ''; ?>>周四</a> <a href="javascript:;" value="5" <?php echo !isset($data) || strpos($data['display_week'], '5') !== false ? 'class="now"' : ''; ?>>周五</a> <a href="javascript:;" value="6" <?php echo !isset($data) || strpos($data['display_week'], '6') !== false ? 'class="now"' : ''; ?>>周六</a> <a href="javascript:;" value="0" <?php echo isset($data) && strpos($data['display_week'], '0') !== false ? 'class="now"' : ''; ?>>周天</a> </div> <input type="hidden" name="display_week" id="week" value="<?php echo isset($data) ? $data['display_week'] : '123456'; ?>" required /> </div> </div>