Files
cm-web-legacy/application/views/admin/life/life_setting_reg.php
2020-06-10 06:19:03 +09:00

85 lines
4.4 KiB
PHP
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
$is_duplication = $result['is_duplication'];
$no_duplication_setting = $result['no_duplication_setting'];
$stat_time = $result['stat_time'];
$arr_stat_time = explode(':', $stat_time);
$stat_time1 = $arr_stat_time[0];
$stat_time2 = $arr_stat_time[1];
$stat_time3 = $arr_stat_time[2];
$menu_code = '51';
require_once (APPPATH.'views/skin/admin/_content_comm.php');
?>
<form name="input_form" id="input_form" action="/admin/life/life_setting_reg_proc" method="post">
<input type="hidden" name="idx" value="<?=$idx?>">
<div class="common_table news">
<h2 class="subtitle">조회수설정</h2>
<table>
<tr>
<th rowspan="3">집계설정</th>
<td colspan="3" class="tl">
<input type="radio" name="is_duplication" id="is_duplication" value="N" class="input00" <? if($is_duplication=='N') { echo 'checked';}?>> 중복집계 비허용&nbsp;&nbsp;
<input type="radio" name="is_duplication" id="is_duplication" value="Y" class="input00" <? if($is_duplication=='Y') { echo 'checked';}?>> 중복집계 허용
<div>
한 명당 여러 번의 집계가 가능한지 불가능한지를 설정합니다.</br>
중복집계 비허용 : 중복집계를 비허용으로 설정하시면 아래의 중복집계 판단 기준에 따라 중복이라고 판단되면 집계에 포함되지 않습니다..</br>
중복집계허용 : 중복잡계 판단 기준과 관계없이 모두 집계가 됩니다.</br>
</div>
</td>
</tr>
<tr>
<td colspan="3" class="tl">
<div><b>중복집계 판단 기준 설정 (중복집계 비허용시)</b></div>
<input type="radio" name="no_duplication_setting" id="no_duplication_setting" value="1" class="input00" <? if($no_duplication_setting=='1') { echo 'checked';}?>> 아이디 기준 중복방지&nbsp;&nbsp;
<input type="radio" name="no_duplication_setting" id="no_duplication_setting" value="2" class="input00" <? if($no_duplication_setting=='2') { echo 'checked';}?>> 아아피 기준 중복방지
<div>
중복집계를 비허용으로 설정하셨을 경우 중복기준을 아이디로 할 것인지 아이피로 할 것인지의 선택</br>
아이디 기준 중복방지 : 중복집계를 비허용으로 하셨다면 같은 아이디로 접속시 중복으로 판단하고 집계가 되지 않습니다.</br>
아이피 기중 중복장지 : 중복집계를 비허용으로 하셨다면 같은 아이피에서 접속시 중복으로 판단하고 집계가 되지 않습니다.</br>
</div>
</td>
</tr>
<tr>
<td colspan="3" class="tl">
<div><b>집계 허용시간</b></div>
<input type="text" name="stat_time1" id="stat_time1" class="type03" size="5" value="<?=$stat_time1?>">시간 <input type="text" name="stat_time2" id="stat_time2" class="type03" size="5" value="<?=$stat_time2?>">분 <input type="text" name="stat_time3" id="stat_time3" class="type03" size="5" value="<?=$stat_time3?>">초
<div>
관리자의 랭킹집계관리 페이지에서 랭킹집계를 관리자가 수동으로 랭킹을 집계하셔야 합니다.</br>
랭킹집계는 랭킹집계관리 페이지에서재집계버튼, 전체재집계버튼, 집계시작버튼으로 집계를 하실수 있습니다.</br>
출력중 : 출력중으로 설정하시면 수동집계시 해당 집계가 사용자화면에 출력됩니다.</br>
미출력 : 미출력으로 설정하시면 수동집계시 해당 집계가 사용자화면에 출력되지 않습니다. </br>
예) 2013년 2월 랭킹집계는 출력으로 되어있고 3월 랭킹집계는 미출력으로 되어있다면 2013년 2월 랭킹집계는 출력되지만 3월은 출력되지 않습니다.</br>
수동 집계 방식은 관리자가 랭킹을 직접 집계하고 출력상태로 해놓아야지만 사용자가 볼수 있습니다.</br>
</div>
</td>
</tr>
</table>
</div>
<div class="write_btn tc">
<a href="javascript:life_setting_reg_proc()">저장하기</a>
</div>
</form>
<script type="text/javascript">
function life_setting_reg_proc(){
if($("#stat_time1").val()=='' && $("#stat_time2").val()=='' && $("#stat_time3").val()=='') {
alert("집계허용시간을 설정해주세요.");
return false;
}
$("#input_form").submit();
}
</script>