익명닉네임 출석부 사용중입니다.
출석부 설정에 7일마다 포인트 설정하면. 7일째 포인트지급 14일되면 포인트가 지급이 안되네요.
Copy
<?phpinclude_once('./_common.php');include_once(G5_PATH.'/_head.php');add_stylesheet('<link rel="stylesheet" href="'.G5_PLUGIN_URL.'/attendance/adm/css/admin.bootstrap.min.css" />', 99);add_stylesheet('<link rel="stylesheet" href="'.G5_PLUGIN_URL.'/attendance/adm/css/admin.min.css" />', 99);add_stylesheet('<link rel="stylesheet" href="'.G5_PLUGIN_URL.'/attendance/adm/css/admin_ko.css" />', 99);add_stylesheet('<!--[if ie]><link rel="stylesheet" href="'.G5_PLUGIN_URL.'/attendance/adm/css/admin.iefix.css" /><![endif]-->', 99);add_javascript('<script src="'.G5_PLUGIN_URL.'/attendance/adm/js/admin.min.js"></script>', 99);add_javascript('<script src="'.G5_PLUGIN_URL.'/attendance/adm/js/jquery.tmpl.js"></script>', 99);add_javascript('<script src="'.G5_PLUGIN_URL.'/attendance/adm/js/jquery.jstree.js"></script>', 99);if(!$cf_sql) alert('출석부 셋팅 DB 가 설치되어 있지 않습니다.\\n install 페이지로 이동됩니다.', G5_PLUGIN_URL.'/attendance/install');$ac = sql_fetch(" select * from g5_attendance_config ");if($w){$sql = " update g5_attendance_config set browser_title = '{$_POST['browser_title']}', power = '{$_POST['power']}', point = '{$_POST['point']}', week_point = '{$_POST['week_point']}', month_point = '{$_POST['month_point']}', year_point = '{$_POST['year_point']}', first_point = '{$_POST['first_point']}', second_point = '{$_POST['second_point']}', third_point = '{$_POST['third_point']}', sta = '{$_POST['sta']}', eta = '{$_POST['eta']}', ip_check = '{$_POST['ip_check']}', initialization = '{$_POST['initialization']}', bonus = '{$_POST['bonus']}', subject_option = '{$_POST['subject_option']}', subject = '{$_POST['subject']}' ";sql_query($sql);alert('수정 완료 !', './');}?><div class="x"><form class="x_form-horizontal" method="post" enctype="multipart/form-data"><input type="hidden" name="w" value="u" /><section class="section"> <h1>출석부 설정</h1> <div class="x_control-group"> <label class="x_control-label" for="browser_title">브라우저 제목</label> <div class="x_controls"> <input type="text" name="browser_title" id="browser_title" value="<?php echo $ac['browser_title'] ?>" class="lang_code" /> <a href="#browser_title_help" class="x_icon-question-sign" data-toggle>도움말</a> <p id="browser_title_help" class="x_help-block" hidden>브라우저 제목에 나타나는 값입니다. RSS/Trackback에서도 사용됩니다.</p> </div> </div> <div class="x_control-group"> <label class="x_control-label" for="power">출석권한 설정</label> <div class="x_controls"> <select name="power" id="power"> <option value="0"<?php echo get_selected($ac['power'], '0', true); ?>>사용안함</option> <option value="1"<?php echo get_selected($ac['power'], '1', true); ?>>로그인 이용자</option> <option value="2"<?php echo get_selected($ac['power'], '2', true); ?>>관리 권한만</option> </select> <a href="#power_help" class="x_icon-question-sign" data-toggle>도움말</a> <p id="power_help" class="x_help-block" hidden>출석권한을 선택해주세요.</p> </div> </div> <div class="x_control-group"> <label class="x_control-label">출석 시간 설정</label> <div class="x_controls"> <input type="text" name="sta" id="sta" value="<?php echo $ac['sta'] ?>" style="width:100px" /> <p class="x_help-inline">-</p> <input type="text" name="eta" id="eta" value="<?php echo $ac['eta'] ?>" style="width:100px" /> </div> </div> <div class="x_control-group"> <label class="x_control-label" for="ip_check ">중복 IP 설정</label> <div class="x_controls"> <input type="text" name="ip_check" id="ip_check" value="<?php echo $ac['ip_check'] ?>" style="width:50px" /> <p class="x_help-inline">중복 IP 얼마만큼 인정할건지 적으세요. (숫자만 입력하세요. 컴마 넣지마세요.)</p> </div> </div> <div class="x_control-group"> <label class="x_control-label" for="point">출석 포인트</label> <div class="x_controls"> <input type="text" name="point" id="point" value="<?php echo $ac['point'] ?>" style="width:100px" /> <p class="x_help-inline">기본 출석 포인트 (숫자만 입력하세요. 컴마 넣지마세요.)</p> </div> </div> <div class="x_control-group"> <label class="x_control-label" for="first_point">1등 출석 포인트</label> <div class="x_controls"> <input type="text" name="first_point" id="first_point" value="<?php echo $ac['first_point'] ?>" style="width:100px" /> <p class="x_help-inline">1등 출석 포인트 (숫자만 입력하세요. 컴마 넣지마세요.)</p> </div> </div> <div class="x_control-group"> <label class="x_control-label" for="second_point">2등 출석 포인트</label> <div class="x_controls"> <input type="text" name="second_point" id="second_point" value="<?php echo $ac['second_point'] ?>" style="width:100px" /> <p class="x_help-inline">2등 출석 포인트 (숫자만 입력하세요. 컴마 넣지마세요.)</p> </div> </div> <div class="x_control-group"> <label class="x_control-label" for="third_point">3등 출석 포인트</label> <div class="x_controls"> <input type="text" name="third_point" id="third_point" value="<?php echo $ac['third_point'] ?>" style="width:100px" /> <p class="x_help-inline">3등 출석 포인트 (숫자만 입력하세요. 컴마 넣지마세요.)</p> </div> </div> <div class="x_control-group"> <label class="x_control-label" for="week_point">7일 개근 출석 포인트</label> <div class="x_controls"> <input type="text" name="week_point" id="week_point" value="<?php echo $ac['week_point'] ?>" style="width:100px" /> <p class="x_help-inline">7일 개근 출석 포인트 (숫자만 입력하세요. 컴마 넣지마세요.)</p> </div> </div> <div class="x_control-group"> <label class="x_control-label" for="month_point">30일 개근 출석 포인트</label> <div class="x_controls"> <input type="text" name="month_point" id="month_point" value="<?php echo $ac['month_point'] ?>" style="width:100px" /> <p class="x_help-inline">30일 개근 출석 포인트 (숫자만 입력하세요. 컴마 넣지마세요.)</p> </div> </div> <div class="x_control-group"> <label class="x_control-label" for="year_point">365일 개근 출석 포인트</label> <div class="x_controls"> <input type="text" name="year_point" id="year_point" value="<?php echo $ac['year_point'] ?>" style="width:100px" /> <p class="x_help-inline">365일 개근 출석 포인트 (숫자만 입력하세요. 컴마 넣지마세요.)</p> </div> </div> <div class="x_control-group"> <label class="x_control-label">개근출석 초기화 사용</label> <div class="x_controls"> <label class="x_inline" for="initialization"> <input type="checkbox" name="initialization" id="initialization" <?php echo ($ac['initialization'])?'checked':''; ?> value="1" /> 개근 못했을시 개근출석 초기화할건지 체크하세요.(체크:초기화함/미체크:초기화안함)</label> </div> </div> <div class="x_control-group"> <label class="x_control-label">출석보너스 사용</label> <div class="x_controls"> <label class="x_inline" for="bonus"> <input type="checkbox" name="bonus" id="bonus" <?php echo ($ac['bonus'])?'checked':''; ?> value="1" /> 출석포인트 + 개근 & 등수 포인트 함께 지급할건지 체크하세요 (체크:지급함/미체크:지급안함)</label> </div> </div> <div class="x_control-group"> <label class="x_control-label">자동 인사말 사용</label> <div class="x_controls"> <label class="x_inline" for="subject_option"> <input type="checkbox" name="subject_option" id="subject_option" <?php echo ($ac['subject_option'])?'checked':''; ?> value="1" /> 자동인사말 기능을 사용하실건지 안할건지 체크하세요.(체크:사용함/미체크:사용안함)</label> </div> </div> <div class="x_control-group"> <label class="x_control-label">자동 인사말 내용</label> <div class="x_controls"> <textarea id="subject" name="subject" style="width:97%;height:250px"><?php echo $ac['subject'] ?></textarea> <a href="#subject_help" class="x_icon-question-sign" data-toggle>도움말</a> <p id="subject_help" class="x_help-block" hidden>자동 인사말 출력될 내용을 입력해주세요. (엔터로 구분)</p> </div> </div></section><div class="x_clearfix btnArea"> <div class="x_pull-left"> <a href="<?php echo G5_PLUGIN_URL; ?>/attendance/" type="button" class="x_btn">취소</a> </div> <div class="x_pull-right"> <button class="x_btn x_btn-primary" type="submit">등록</button> </div></div></form></div><?phpinclude_once(G5_PATH.'/_tail.php');?>
|
답변 1개
채택된 답변
+20 포인트
돼지코구뇽
2015-12-20 (일) 19:24:51
익명닉네임님이 보셔서 패치를 하셔야할부분같네요
답변을 작성하려면 로그인이 필요합니다.