first commit
This commit is contained in:
307
application/views/admin/setting/blind_limit_list.php
Executable file
307
application/views/admin/setting/blind_limit_list.php
Executable file
@@ -0,0 +1,307 @@
|
||||
<?
|
||||
include_once ("./static_data/code.php");
|
||||
$menu_code = '122';
|
||||
require_once (APPPATH.'views/skin/admin/_content_comm.php');
|
||||
|
||||
|
||||
$arr_status = array();
|
||||
$arr_status[1] = '0';
|
||||
$arr_status[2] = '0';
|
||||
foreach ($status_list as $val) {
|
||||
$arr_status[$val['limit_status']] = $val['cnt'];
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
<form name="input_form" id="input_form" method="post" action="/admin/setting/blind_limit_list/1">
|
||||
<input type="hidden" id="page" name="page" value="<?=$page?>">
|
||||
<input type="hidden" id="search_type" name="search_type" value="member">
|
||||
<input type="hidden" id="search_is_today" name="search_is_today" value="<?=$search_is_today?>">
|
||||
<input type="hidden" id="idx" name="idx">
|
||||
|
||||
<div class="common_table clearfix type01">
|
||||
<div class="searh_area">
|
||||
<input type="text" name="search_keyword" id="search_keyword" value="<?=$search_keyword?>" placeholder="회원" onkeypress="if( event.keyCode==13 ){check_search();}">
|
||||
<a href="javascript:check_search();" class="btn"><i class="fa moving_all fa-search" style="margin-left:8px;"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="common_table" style="margin-top: 30px">
|
||||
<a href="javascript:search_total();"><span><b>Total:</b> <?=number_format($total_count);?></span></a>
|
||||
<a href="javascript:search_today('Y');"><span style="margin-left:10px"><b>오늘신규:</b> <?=number_format($new_count);?></span></a>
|
||||
<a href="javascript:search_status(1);"><span style="margin-left:10px" class="text_red"><b>제재진행중:</b> <?=number_format($arr_status[1]);?></span></a>
|
||||
<a href="javascript:search_status(2);"><span style="margin-left:10px" class="text_blue"><b>제재완료:</b> <?=number_format($arr_status[2]);?></span></a>
|
||||
|
||||
<div class="searh_area">
|
||||
<select name="search_limit_type" id="search_limit_type" onchange="check_search();" style="width:120px">
|
||||
<option value="" <? if($search_limit_type==""){ echo 'selected';}?>>제재내용</option>
|
||||
<? foreach ($def_arr_blind_limit_type as $key1=>$val1) {?>
|
||||
<option value="<?=$key1?>" <? if($search_limit_type==(string)$key1){ echo 'selected';}?>><?=$val1?></option>
|
||||
<? }?>
|
||||
</select>
|
||||
<select name="search_status" id="search_status" onchange="check_search();" style="width:120px">
|
||||
<option value="" <? if($search_status==""){ echo 'selected';}?>>진행상태</option>
|
||||
<? foreach ($def_arr_blind_limit_status as $key2=>$val2) {?>
|
||||
<option value="<?=$key2?>" <? if($search_status==(string)$key2){ echo 'selected';}?>><?=$val2?></option>
|
||||
|
||||
<? }?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="common_table">
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>아이디</th>
|
||||
<th>제재누적횟수</th>
|
||||
<th>내용</th>
|
||||
<th>진행상태</th>
|
||||
<th>처리(해제)일시</th>
|
||||
<th>관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
<?
|
||||
if(count($list)==0) {
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="7">등록된 내용이 없습니다.</td>
|
||||
</tr>
|
||||
<?
|
||||
|
||||
} else {
|
||||
$dataNumber = ($total_count + $limit)-($page*$limit);
|
||||
foreach($list as $val) {
|
||||
$idx = $val['idx'];
|
||||
$limit_type = $val['limit_type'];
|
||||
$limit_status = $val['limit_status'];
|
||||
$member_id = $val['member_id'];
|
||||
$member_name = $val['member_name'];
|
||||
$start_date = $val['start_date'];
|
||||
$end_date = $val['end_date'];
|
||||
$limit_sum_count = $val['limit_sum_count'];
|
||||
|
||||
$limit_type_txt = $def_arr_blind_limit_type[$limit_type];
|
||||
$limit_status_txt = $def_arr_blind_limit_status[$limit_status];
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td><?=$dataNumber?></td>
|
||||
<td><?=$member_id?>(<?=$member_name?>)</td>
|
||||
<td><?=number_format($limit_sum_count)?>회</td>
|
||||
<td><?=$limit_type_txt?></td>
|
||||
<td><?=$limit_status_txt?></td>
|
||||
<td><?=$start_date?></br><span class="text_blue"><?=$end_date?></span></td>
|
||||
<td class="tool_btn">
|
||||
<? if($limit_status != '2') {?>
|
||||
<a href="javascript:blind_limit_edit('<?=$idx?>')"><i class="fa fa-close"></i>수정</a>
|
||||
<? }?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
$dataNumber--;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pasing_wrap">
|
||||
<?=$pagination?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="reg_layer" style="display:none">
|
||||
<div class="black_board" style="display:block"></div>
|
||||
<div class="pop_con common_table moving_all" style="display:block;top:100px;">
|
||||
<a href="javascript:commonLayerClose('reg_layer')" class="pop_close">x</a>
|
||||
<input type="hidden" name="start_date" id="start_date">
|
||||
<input type="hidden" name="blind_setting_idx" id="blind_setting_idx">
|
||||
<input type="hidden" name="blind_id" id="blind_id">
|
||||
<h2>제재 수정</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>아이디</th>
|
||||
<td class="tl"><div id="layer_member"></div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>제재일</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="limit_day" id="limit_day" class="type03">일 동안
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>제재내용</th>
|
||||
<td class="tl">
|
||||
<select name="limit_type" id="limit_type" style="width:120px">
|
||||
<option value="">선택</option>
|
||||
<? foreach ($def_arr_blind_limit_type as $key1=>$val1) {?>
|
||||
<option value="<?=$key1?>"><?=$val1?></option>
|
||||
<? }?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>제재상태</th>
|
||||
<td class="tl">
|
||||
<select name="limit_status" id="limit_status" style="width:120px">
|
||||
<option value="">선택</option>
|
||||
<? foreach ($def_arr_blind_limit_status as $key2=>$val2) {?>
|
||||
<option value="<?=$key2?>"><?=$val2?></option>
|
||||
<? }?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>마지막수정일</th>
|
||||
<td class="tl"><div id="layer_update_date"></div></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="write_btn tc">
|
||||
<a href="javascript:blind_limit_edit_proc()">수정</a>
|
||||
<a href="javascript:commonLayerClose('reg_layer')">취소하기</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function search_status(type) {
|
||||
$("#search_status").val(type);
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
function search_today(type) {
|
||||
$("#search_is_today").val(type);
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
function search_total() {
|
||||
$("#search_status").val('');
|
||||
$("#search_is_today").val('');
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
|
||||
function check_search(){
|
||||
if($("#search_type").val()=="" && $("#search_keyword").val()!=""){
|
||||
alert("검색할 항목을 선택해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
function reset(){
|
||||
$("#idx").val('');
|
||||
$("#layer_member").empty();
|
||||
$("#limit_day").val('');
|
||||
$("#layer_update_date").empty();
|
||||
$("#limit_type").val("").prop("selected", true);
|
||||
$("#limit_status").val("").prop("selected", true);
|
||||
}
|
||||
|
||||
// 수정 - layer열기
|
||||
function blind_limit_edit(idx){
|
||||
reset();
|
||||
|
||||
$("#idx").val(idx);
|
||||
var form_data = {
|
||||
"idx" : idx
|
||||
};
|
||||
$.ajax({
|
||||
url: '/admin/setting/blind_limit_detail',
|
||||
sync: false,
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
data: form_data,
|
||||
success: function (rtn_json) {
|
||||
if(rtn_json.result_code=='0000') {
|
||||
var result = rtn_json.result_data;
|
||||
|
||||
var member = result.member_id + "("+result.member_name+")";
|
||||
$("#layer_member").html(member);
|
||||
$("#blind_id").val(result.member_id);
|
||||
$("#limit_day").val(result.limit_day);
|
||||
$("#layer_update_date").html(result.update_date);
|
||||
$("#limit_type").val(result.limit_type).prop("selected", true);
|
||||
$("#start_date").val(result.start_date);
|
||||
$("#blind_setting_idx").val(result.blind_setting_idx);
|
||||
$("#limit_status").val(result.limit_status).prop("selected", true);
|
||||
|
||||
|
||||
|
||||
commonLayerOpen('reg_layer');
|
||||
} else {
|
||||
alert("데이터로드에 실패했습니다.");
|
||||
return false;
|
||||
}
|
||||
},
|
||||
error: function (rtnHtml) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
function blind_limit_edit_proc(){
|
||||
if($("#limit_day").val()=='') {
|
||||
alert("제재일을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
if($("#limit_type").val()=='') {
|
||||
alert("제재내용을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
if($("#limit_status").val()=='') {
|
||||
alert("제재상태를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#limit_type").val()=='0') {
|
||||
alert("경고메일은 발송할수 없습니다.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#input_form").attr("action", "/admin/setting/blind_limit_edit_proc");
|
||||
$("#input_form").submit();
|
||||
|
||||
}
|
||||
|
||||
// 삭제
|
||||
function blind_limit_del_proc(idx) {
|
||||
if(confirm("제재내용이 삭제됩니다. 삭제하시겠습니까?") == true) { //확인
|
||||
$("#idx").val(idx);
|
||||
$("#input_form").attr("action", "/admin/setting/blind_limit_del_proc");
|
||||
$("#input_form").submit();
|
||||
} else { //취소
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
236
application/views/admin/setting/blind_list.php
Executable file
236
application/views/admin/setting/blind_list.php
Executable file
@@ -0,0 +1,236 @@
|
||||
<?
|
||||
include_once ("./static_data/code.php");
|
||||
$menu_code = '121';
|
||||
require_once (APPPATH.'views/skin/admin/_content_comm.php');
|
||||
|
||||
|
||||
$arr_status = array();
|
||||
foreach ($status_list as $val) {
|
||||
$arr_status[$val['blind_status']] = $val['cnt'];
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<form name="input_form" id="input_form" method="post" action="/admin/setting/blind_list/1">
|
||||
<input type="hidden" id="page" name="page" value="<?=$page?>">
|
||||
<input type="hidden" id="idx" name="idx">
|
||||
<input type="hidden" id="mode" name="mode">
|
||||
<input type="hidden" id="status" name="status">
|
||||
<input type="hidden" id="search_status" name="search_status" value="<?=$search_status?>">
|
||||
|
||||
|
||||
<div class="common_table clearfix type01">
|
||||
<div class="searh_area">
|
||||
<select name="search_type" id="search_type">
|
||||
<option value="" <? if($search_type==''){ echo 'selected';}?>>선택</option>
|
||||
<option value="blind_comment" <? if($search_type=='blind_comment'){ echo 'selected';}?>>댓글내용</option>
|
||||
<option value="blind_id" <? if($search_type=='blind_id'){ echo 'selected';}?>>신고대상아이디</option>
|
||||
<option value="blind_name" <? if($search_type=='blind_name'){ echo 'selected';}?>>신고대상이름</option>
|
||||
</select> <input type="text" name="search_keyword" id="search_keyword" value="<?=$search_keyword?>" onkeypress="if( event.keyCode==13 ){check_search();}">
|
||||
<a href="javascript:check_search();" class="btn"><i class="fa moving_all fa-search" style="margin-left:8px;"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="common_table" style="margin-top: 30px">
|
||||
<span><a href="/admin/setting/blind_list/1"><b>Total:</b> <?=number_format($total_count);?></a></span>
|
||||
<?
|
||||
foreach ($def_arr_blind_status as $key=>$val) {
|
||||
switch ($key) {
|
||||
case '0' : $class="text_green"; break;
|
||||
case '1' : $class="text_blue"; break;
|
||||
case '2' : $class="text_red"; break;
|
||||
}
|
||||
|
||||
$count = 0;
|
||||
if(isset($arr_status[$key])==true) $count = $arr_status[$key];
|
||||
|
||||
?>
|
||||
<span style="margin-left:10px"><a href="/admin/setting/blind_list/1?search_status=<?=$key?>" class="<?=$class?>" ><b><?=$val?>:</b> <?=number_format($count);?></a></span>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
<span style="margin-left:10px">본인삭제: <?=number_format($self_del_count)?></span>
|
||||
|
||||
<div class="searh_area">
|
||||
<select name="search_spam_reason" onchange="check_search();" style="width:100px">
|
||||
<option value="">신고사유</option>
|
||||
<? foreach ($def_arr_spam_reason as $key=>$val) {?>
|
||||
<option value="<?=$key?>" <? if($search_spam_reason==$key){ echo 'selected';}?>><?=$val?></option>
|
||||
|
||||
<? }?>
|
||||
</select>
|
||||
<select name="search_content_type" onchange="check_search();" style="width:100px">
|
||||
<option value="">카테고리</option>
|
||||
<? foreach ($def_arr_content as $key=>$val) {?>
|
||||
<option value="<?=$key?>" <? if($search_content_type==$key){ echo 'selected';}?>><?=$val?></option>
|
||||
|
||||
<? }?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="common_table">
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>신고사유</th>
|
||||
<th>카테고리</th>
|
||||
<th>신고대상</th>
|
||||
<th>댓글내용</th>
|
||||
<th>신고수</th>
|
||||
<th>누적신고</th>
|
||||
<th>상태</th>
|
||||
<th>관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
|
||||
<?
|
||||
if(count($list)==0) {
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="9">등록된 내용이 없습니다.</td>
|
||||
</tr>
|
||||
<?
|
||||
|
||||
} else {
|
||||
|
||||
$now_date = date("Y-m-d");
|
||||
$dataNumber = ($total_count + $limit)-($page*$limit);
|
||||
foreach($list as $val) {
|
||||
$idx = $val['idx'];
|
||||
$reason_type = $val['reason_type'];
|
||||
$blind_status = $val['blind_status'];
|
||||
$blind_id = $val['blind_id'];
|
||||
$blind_name = $val['blind_name'];
|
||||
$blind_comment = $val['blind_comment'];
|
||||
$spam_count = $val['spam_count'];
|
||||
$admin_spam_count = $val['admin_spam_count'];
|
||||
$content_type = $val['content_type'];
|
||||
$blind_status = $val['blind_status'];
|
||||
|
||||
$arr_reason_type = explode(",", $reason_type);
|
||||
|
||||
$reason_txt = '';
|
||||
$reason_count = count($arr_reason_type);
|
||||
if($reason_type > 0 && $reason_count > 0) {
|
||||
$reason_txt = $def_arr_spam_reason[$arr_reason_type[0]];
|
||||
if($reason_count > 1) {
|
||||
$reason_txt.=' 외 '.($reason_count-1).'개';
|
||||
}
|
||||
}
|
||||
$content_txt = $def_arr_content[$content_type];
|
||||
|
||||
switch ($blind_status) {
|
||||
case '0': $blind_status_txt = '<span class="text_green">블라인드 해지</span>'; break;
|
||||
case '1': $blind_status_txt = '<span class="text_blue">블라인드</span>'; break;
|
||||
case '2': $blind_status_txt = '<span class="text_red">블라인드 승인</span>'; break;
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td><?=$dataNumber?></td>
|
||||
<td><?=$reason_txt?></td>
|
||||
<td><?=$content_txt?></td>
|
||||
<td><?=$blind_id?>(<?=$blind_name?>)</td>
|
||||
<td class="title" style="text-align:left;">
|
||||
<a href="javascript:blind_view('<?=$idx?>')"><?=$blind_comment?></a>
|
||||
</td>
|
||||
<td><?=number_format($spam_count)?></td>
|
||||
<td><?=number_format($admin_spam_count)?></td>
|
||||
<td><?=$blind_status_txt?></td>
|
||||
<td class="tool_btn">
|
||||
<? if($blind_status == '1') {?>
|
||||
<a href="javascript:blind_status_proc('2', '<?=$idx?>')"><i class="fa fa-pencil"></i>블라인드승인</a>
|
||||
<a href="javascript:blind_status_proc('0', '<?=$idx?>')"><i class="fa fa-close"></i>블라인드해지</a>
|
||||
<? }?>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<?
|
||||
$dataNumber--;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pasing_wrap">
|
||||
<?=$pagination?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!--// 카테고리 등록/수정 layer -->
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function check_search(){
|
||||
if($("#search_type").val()=="" && $("#search_keyword").val()!=""){
|
||||
alert("검색할 항목을 선택해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
|
||||
function media_list_reg(){
|
||||
$("#mode").val('add');
|
||||
$("#input_form").attr("action", "/admin/etc_section/media_list_reg/6");
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
|
||||
// view
|
||||
function blind_view(idx){
|
||||
$("#idx").val(idx);
|
||||
$("#input_form").attr("action", "/admin/setting/blind_view/1");
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 블라인드 승인 / 해지
|
||||
function blind_status_proc(status, idx) {
|
||||
if(status == '0') {
|
||||
var msg = "블라인드를 해지하시겠습니까?";
|
||||
} else {
|
||||
var msg = "블라인드를 승인하시겠습니까?";
|
||||
}
|
||||
|
||||
if(confirm(msg) == true) { //확인
|
||||
$("#idx").val(idx);
|
||||
$("#status").val(status);
|
||||
$("#input_form").attr("action", "/admin/setting/blind_status_proc");
|
||||
$("#input_form").submit();
|
||||
} else { //취소
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
165
application/views/admin/setting/blind_setting_reg.php
Executable file
165
application/views/admin/setting/blind_setting_reg.php
Executable file
@@ -0,0 +1,165 @@
|
||||
<?
|
||||
include_once ("./static_data/code.php");
|
||||
$menu_code = '123';
|
||||
require_once (APPPATH.'views/skin/admin/_content_comm.php');
|
||||
|
||||
|
||||
$arr_blind_setting = array();
|
||||
foreach ($list as $val) {
|
||||
$arr_blind_setting[$val['idx']] = array('limit_count'=>$val['limit_count'], 'limit_type'=>$val['limit_type'], 'limit_status'=>$val['limit_status'], 'limit_day'=>$val['limit_day'], 'limit_content'=>$val['limit_content']);
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<form name="input_form" id="input_form" action="/admin/setting/blind_setting_reg_proc" method="post">
|
||||
<div class="common_table">
|
||||
<table>
|
||||
<tr>
|
||||
<th>블라인드제재</br>알림설정</th>
|
||||
<td class="tl">
|
||||
<b>블라인드 누적으로 제재를 당할 경우 알림내용을 설정 합니다.</b></br>
|
||||
- 사용가능 추출태그</br>
|
||||
{{제재내용}} , {{제재만료일시}}</br></br>
|
||||
1) 페이지 접근시 경고창 내용 (게시글 작성, 열람 불가시 또는 로그인 불가시)</br>
|
||||
|
||||
<div style="border:1px solid #ccc; width:500px;padding:10px;background-color:#ebebeb;margin-bottom: 10px">
|
||||
블라인드 누적으로 인해 기능이 제한 되었습니다.</br></br>
|
||||
|
||||
제제내용 : {{제재내용}}</br>
|
||||
제제기간 : {{제재만료일시}} 까지</br>
|
||||
</div>
|
||||
|
||||
2) 게시판 리스트에 출력할 내용(게시판 이용 불가시) </br>
|
||||
<div style="border:1px solid #ccc; width:500px;padding:10px;background-color:#ebebeb">
|
||||
블라인드 누적으로 인해 <br>
|
||||
<span class="red">{{제재만료일시}}</span> 까지<br>
|
||||
게시글 보기가 제한되었습니다.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>블라인드제재</br>단계별 설정</th>
|
||||
<td class="tl">
|
||||
<b>블라인드 회수에 따른 제재방식 및 기간 등을 설정합니다.</b></br>
|
||||
<table>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>횟수</th>
|
||||
<th>제재내용</th>
|
||||
<th>기간</th>
|
||||
<th>경고메일내용</th>
|
||||
</tr>
|
||||
<? for ($i=1;$i<=5;$i++) {
|
||||
$limit_count = $arr_blind_setting[$i]['limit_count'];
|
||||
$limit_type = $arr_blind_setting[$i]['limit_type'];
|
||||
|
||||
$limit_day = $arr_blind_setting[$i]['limit_day'];
|
||||
$limit_content = $arr_blind_setting[$i]['limit_content'];
|
||||
|
||||
$disabled = '';
|
||||
if($limit_type == '0' || $limit_type == '3' || $limit_type == '4') {
|
||||
$disabled = 'disabled'; $limit_day = '-';
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<th><?=$i?>단계</th>
|
||||
<td><input type="text" name="limit_count<?=$i?>" id="limit_count<?=$i?>" value="<?=$limit_count?>" class="type03">회</td>
|
||||
<td>
|
||||
<select name="limit_type<?=$i?>" id="limit_type<?=$i?>" style="width:120px" onchange="change_limit_type('<?=$i?>', this.value);">
|
||||
<option value="">선택</option>
|
||||
<? foreach ($def_arr_blind_limit_type as $key1=>$val1) {?>
|
||||
<option value="<?=$key1?>" <? if($limit_type==(string)$key1) { echo 'selected';}?>><?=$val1?></option>
|
||||
<? }?>
|
||||
</select>
|
||||
</td>
|
||||
<td><input type="text" name="limit_day<?=$i?>" id="limit_day<?=$i?>" value="<?=$limit_day?>" class="type03" <?=$disabled?>>일</td>
|
||||
<td style="width:250px">
|
||||
<textarea name="limit_content<?=$i?>" id="limit_content<?=$i?>" cols="2"><?=$limit_content?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<? }?>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
<div class="write_btn tc">
|
||||
<a href="javascript:blind_setting_reg_proc()">저장하기</a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function blind_setting_reg_proc(){
|
||||
|
||||
if(checkNumber($("#limit_count1").val())==false) {
|
||||
alert("횟수를 확인해주세요.");
|
||||
return false;
|
||||
}
|
||||
if($("#limit_count1").val()==0) {
|
||||
alert("횟수를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
if($("#limit_type1").val()=='') {
|
||||
alert("재제내용을 선택해주세요.");
|
||||
return false;
|
||||
}
|
||||
if($("#limit_day1").val()=='') {
|
||||
alert("재제일을 선택해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#limit_content1").val()=='') {
|
||||
alert("경고메일내용을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
for(var i=2;i<=5;i++) {
|
||||
if($("#limit_count"+i).val() > 0) {
|
||||
if(checkNumber($("#limit_count2").val())==false) {
|
||||
alert("횟수를 확인해주세요.");
|
||||
return false;
|
||||
}
|
||||
if($("#limit_type"+i).val()=='') {
|
||||
alert("재제내용을 선택해주세요.");
|
||||
return false;
|
||||
}
|
||||
if($("#limit_day"+i).val()=='') {
|
||||
alert("재제일을 선택해주세요.");
|
||||
return false;
|
||||
}
|
||||
if($("#limit_content"+i).val()=='') {
|
||||
alert("경고메일내용을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$("#input_form").submit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function change_limit_type(key, val){
|
||||
if(val == '0' || val == '3' || val == '4' ) {
|
||||
$('#limit_day'+key).val('-');
|
||||
$('#limit_day'+key).attr('disabled', true);
|
||||
} else {
|
||||
$('#limit_day'+key).val('');
|
||||
$('#limit_day'+key).removeAttr('disabled');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
135
application/views/admin/setting/blind_view.php
Executable file
135
application/views/admin/setting/blind_view.php
Executable file
@@ -0,0 +1,135 @@
|
||||
<?php
|
||||
include_once ("./static_data/code.php");
|
||||
|
||||
$menu_code = '121';
|
||||
require_once (APPPATH.'views/skin/admin/_content_comm.php');
|
||||
|
||||
|
||||
$arr_reason_type = array();
|
||||
foreach ($reason_type_list as $val) {
|
||||
$arr_reason_type[$val['reason_type']] = $val['cnt'];
|
||||
}
|
||||
|
||||
$blind_name = $result['blind_name'];
|
||||
$blind_id = $result['blind_id'];
|
||||
$blind_comment = $result['blind_comment'];
|
||||
$write_date = $result['write_date'];
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<div class="common_table clearfix">
|
||||
<a href="/admin/setting/blind_view/1?idx=<?=$idx?>"><span style="font-weight:bold">Total:</span> <?=number_format($total_count);?></a>
|
||||
|
||||
<?
|
||||
foreach ($def_arr_spam_reason as $key=>$val) {
|
||||
|
||||
$count = 0;
|
||||
if(isset($arr_reason_type[$key])==true) $count = $arr_reason_type[$key];
|
||||
|
||||
?>
|
||||
<a href="/admin/setting/blind_view/1?idx=<?=$idx?>&search_reason_type=<?=$key?>"><span style="margin-left:10px"><b><?=$val?>:</b> <?=number_format($count);?></span></a>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="common_table">
|
||||
<table>
|
||||
<tr>
|
||||
<th style="text-align: left">
|
||||
<?=$blind_name?>(<?=$blind_id?>) <?=$write_date?>
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left;vertical-align: top" colspan="2"><?=$blind_comment?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="common_table news">
|
||||
<h2>신고리스트</h2>
|
||||
|
||||
|
||||
<?
|
||||
if(count($spam_list)==0) {
|
||||
?>
|
||||
<table><tr><td>신고내역이 없습니다.</td></tr></table>
|
||||
<?
|
||||
} else {
|
||||
|
||||
foreach($spam_list as $val) {
|
||||
$idx = $val['idx'];
|
||||
$write_name = $val['write_name'];
|
||||
$write_id = $val['write_id'];
|
||||
$reason_type = $val['reason_type'];
|
||||
$reason_content = $val['reason_content'];
|
||||
if($reason_type > 0) {
|
||||
$reason_type_txt = $def_arr_spam_reason[$reason_type];
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>신고사유</th>
|
||||
<td style="text-align: left">
|
||||
<? if($reason_type > 0) { ?>
|
||||
<?=$reason_type_txt?>
|
||||
<? } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>신고자</th>
|
||||
<td style="text-align: left">
|
||||
<?=$write_name?> (<?=$write_id?>)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>신고내용</th>
|
||||
<td style="text-align: left"><?=$reason_content?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</br>
|
||||
|
||||
|
||||
<?
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="write_btn tc">
|
||||
<a href="/admin/setting/blind_list/1/<?=$page?>?search_type=<?=$search_type?>&search_keyword=<?=$search_keyword?>&search_status=<?=$search_status?>&search_spam_reason=<?=$search_spam_reason?>&search_content_type=<?=$search_content_type?>">목록으로</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function check_search(){
|
||||
if($("#search_type").val()=="" && $("#search_keyword").val()!=""){
|
||||
alert("검색할 항목을 선택해주세요.");
|
||||
return false;
|
||||
}
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
// 삭제
|
||||
function news_comment_del_proc(idx) {
|
||||
if(confirm("댓글이 삭제됩니다. 삭제하시겠습니까?") == true) { //확인
|
||||
$("#idx").val(idx);
|
||||
$("#input_form").attr("action", "/admin/news/news_comment_del_proc");
|
||||
$("#input_form").submit();
|
||||
} else { //취소
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
209
application/views/admin/setting/realtime_keyword_list.php
Executable file
209
application/views/admin/setting/realtime_keyword_list.php
Executable file
@@ -0,0 +1,209 @@
|
||||
<?
|
||||
$menu_code = '132';
|
||||
require_once (APPPATH.'views/skin/admin/_content_comm.php');
|
||||
?>
|
||||
|
||||
|
||||
<form name="input_form" id="input_form" method="post">
|
||||
|
||||
- 메인화면에 출력되고 있는 실시간인기검색어의 검색어를 등록합니다. </br>
|
||||
- 통합검색창에서 검색어를 입력할경우 자동으로 횟수가 합산되어 인기검색어에 등록 되지만 관리자가 임의로 지정할 수 도 있습니다.</br>
|
||||
- 검색어 및 검색횟수를 관리자 임의대로 설정해줄수있습니다. 똑같은 검색어를 입력하는경우 상위에 있는검색어에 횟수가 + 포함되며 중복됐던 두번째 검색어는 자동 삭제됩니다. </br>
|
||||
- 개별 삭제 및 다중삭제가 가능하고, 순위변동을 임의대로 조절할 수도 있습니다.</br>
|
||||
|
||||
<!-- 테이블 시작-->
|
||||
<div class="common_table">
|
||||
<table>
|
||||
<thead>
|
||||
<th>순위</th>
|
||||
<th>순위변동</th>
|
||||
<th>검색어</th>
|
||||
<th>검색횟수</th>
|
||||
<th><input type="checkbox" name="all_check" id="all_check">전체</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
if(count($list)==0) {
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="5">등록된 내용이 없습니다.</td>
|
||||
</tr>
|
||||
<?
|
||||
} else {
|
||||
foreach($list as $val) {
|
||||
$idx = $val['idx'];
|
||||
$rank = $val['rank'];
|
||||
$last_rank = $val['last_rank'];
|
||||
$keyword = $val['keyword'];
|
||||
$search_count = $val['search_count'];
|
||||
$rank_diff = $last_rank - $rank;
|
||||
|
||||
$rank_diff_txt = '';
|
||||
if($last_rank == 0) {
|
||||
$rank_diff_txt = '<span class="txt_red">new</span>';
|
||||
} else {
|
||||
if($rank_diff == 0) {
|
||||
$rank_diff_txt = '-';
|
||||
} else if($rank_diff > 0) {
|
||||
$rank_diff_txt = "▲ ".$rank_diff;
|
||||
} else {
|
||||
$rank_diff_txt = "▼ ".abs($rank_diff);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<!-- 리스트출력 -->
|
||||
<input type="hidden" name="idx[]" value="<?=$idx?>">
|
||||
<tr>
|
||||
<td><?=$rank?></td>
|
||||
<td><?=$rank_diff_txt?></td>
|
||||
<td><input type="text" name="edit_keyword[]" id="keyword_<?=$idx?>" class="input00" size="30" value="<?=$keyword?>"></td>
|
||||
<td><input type="text" name="edit_search_count[]" id="search_count_<?=$idx?>" class="input00" size="10" value="<?=$search_count?>"></td>
|
||||
<td><input type="checkbox" name="is_del[]" value="<?=$idx?>"> 삭제</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<? }
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="write_btn">
|
||||
<a href="javascript:realtime_keyword_edit_proc()">일괄수정</a>
|
||||
<a href="javascript:realtime_keyword_del_proc()">삭제</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="common_table">
|
||||
<h2 class="subtitle">실시간 인기검색어 랭킹정보 추가</h2>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>검색어</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="keyword" id="keyword">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>검색횟수</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="search_count" id="search_count" class="type02" onkeypress="if( event.keyCode==13 ){realtime_keyword_add_proc();}"> 회
|
||||
</br>- 검색횟수 조절시 정확한 숫자로 업데이트 되지 않을수 있습니다.
|
||||
</br>- 최대 2,147,483,647까지 입력 가능합니다.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="write_btn tc">
|
||||
<a href="javascript:realtime_keyword_add_proc()">저장하기</a>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
// 랭킹정보 추가
|
||||
function realtime_keyword_add_proc(){
|
||||
if($("#keyword").val()==''){
|
||||
alert('검색어를 입력하세요.');
|
||||
return false;
|
||||
}
|
||||
if($("#search_count").val()==''){
|
||||
alert('검색횟수를 입력하세요.');
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#search_count").val() > 2147483647) {
|
||||
alert("검색횟수가 너무 큽니다.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(checkNumber($("#search_count").val())==false) {
|
||||
alert("검색횟수를 확인해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var input1 = $("input:text[name='edit_keyword[]']");
|
||||
var count1 = 0;
|
||||
for(var i = 0; i < input1.length; i ++){
|
||||
if($(input1[i]).val()==$("#keyword").val()) {
|
||||
count1++;
|
||||
}
|
||||
}
|
||||
if(count1 > 0) {
|
||||
alert("이미 동일한 검색어가 있습니다.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#input_form").attr("action", "/admin/setting/realtime_keyword_add_proc");
|
||||
$("#input_form").submit();
|
||||
|
||||
}
|
||||
|
||||
// 삭제
|
||||
function realtime_keyword_del_proc() {
|
||||
if($("input:checkbox[name='is_del[]']").is(":checked") == false) {
|
||||
alert("삭제할 내용이 없습니다.");
|
||||
return false;
|
||||
}
|
||||
if(confirm("실시간검색어가 삭제됩니다. 삭제하시겠습니까?") == true) { //확인
|
||||
$("#input_form").attr("action", "/admin/setting/realtime_keyword_del_proc");
|
||||
$("#input_form").submit();
|
||||
} else { //취소
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// 수정
|
||||
function realtime_keyword_edit_proc() {
|
||||
var input1 = $("input:text[name='edit_keyword[]']");
|
||||
var count1 = 0;
|
||||
for(var i = 0; i < input1.length; i ++){
|
||||
if($(input1[i]).val()=='') {
|
||||
count1++;
|
||||
}
|
||||
}
|
||||
if(count1 > 0) {
|
||||
alert("검색어를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var input2 = $("input:text[name='edit_search_count[]']");
|
||||
var count2 = 0;
|
||||
for(var i = 0; i < input2.length; i ++){
|
||||
if($(input2[i]).val()=='') {
|
||||
count2++;
|
||||
}
|
||||
if(checkNumber($(input2[i]).val())==false) {
|
||||
count2++;
|
||||
}
|
||||
}
|
||||
if(count2 > 0) {
|
||||
alert("검색횟수를 확인해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#input_form").attr("action", "/admin/setting/realtime_keyword_edit_proc");
|
||||
$("#input_form").submit();
|
||||
|
||||
}
|
||||
|
||||
// checkbox all checked/unchecked
|
||||
$(function(){
|
||||
$("#all_check").click(function(){
|
||||
if($("#all_check").prop("checked")) {
|
||||
$("input:checkbox[name='is_del[]']").prop('checked', true); // 전체선택하기
|
||||
} else {
|
||||
$("input:checkbox[name='is_del[]']").prop("checked", false);
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
166
application/views/admin/setting/realtime_keyword_log_list.php
Executable file
166
application/views/admin/setting/realtime_keyword_log_list.php
Executable file
@@ -0,0 +1,166 @@
|
||||
<link rel="stylesheet" href="<?=DIR_CSS?>/jquery-ui.min.css" />
|
||||
<script src="<?=DIR_JS?>/jquery-ui.min.js"></script>
|
||||
|
||||
<?
|
||||
$menu_code = '133';
|
||||
require_once (APPPATH.'views/skin/admin/_content_comm.php');
|
||||
?>
|
||||
|
||||
|
||||
<form name="input_form" id="input_form" method="post">
|
||||
|
||||
|
||||
|
||||
<div class="big_search clearfix common_table">
|
||||
<ul class="tl moth">
|
||||
<a href="javascript:;" onclick="setting_date(this,'0');" id="s_btn_date1" class="on">1일</a>
|
||||
<a href="javascript:;" onclick="setting_date(this,'7');" id="s_btn_date2">7일</a>
|
||||
<a href="javascript:;" onclick="setting_date(this,'1');" id="s_btn_date3">1개월</a>
|
||||
<a href="javascript:;" onclick="setting_date(this,'3');" id="s_btn_date4">3개월</a>
|
||||
<a href="javascript:;" onclick="setting_date(this,'6');" id="s_btn_date5">6개월</a>
|
||||
<a href="javascript:;" onclick="setting_date(this,'12');" id="s_btn_date6">1년</a>
|
||||
<input type="text" name="start_date" id="start_date" class="type02" value="<?=$start_date?>" /> ~ <input type="text" name="end_date" id="end_date" class="type02" value="<?=$end_date?>" />
|
||||
<button type="button" class="btn_black" style="width:80px" onclick="check_search();" style="cursor: pointer;">검색</button> <button type="button" class="btn_green" style="width:80px" onclick="excel_downlaod();" style="cursor: pointer;">엑셀다운</button>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 테이블 시작-->
|
||||
<div class="common_table">
|
||||
<span style="font-weight:bold">Total:</span> <?=number_format($total_count);?>
|
||||
<table>
|
||||
<thead>
|
||||
<th>순위</th>
|
||||
<th>순위변동</th>
|
||||
<th>날짜</th>
|
||||
<th>검색어</th>
|
||||
<th>검색횟수</th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?
|
||||
if(count($list)==0) {
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="5">등록된 내용이 없습니다.</td>
|
||||
</tr>
|
||||
<?
|
||||
} else {
|
||||
foreach($list as $val) {
|
||||
$idx = $val['idx'];
|
||||
$rank = $val['rank'];
|
||||
$last_rank = $val['last_rank'];
|
||||
$keyword = $val['keyword'];
|
||||
$search_count = $val['search_count'];
|
||||
$reg_date = $val['reg_date'];
|
||||
$rank_diff = $last_rank - $rank;
|
||||
|
||||
$rank_diff_txt = '';
|
||||
if($last_rank == 0) {
|
||||
$rank_diff_txt = '<span class="txt_red">new</span>';
|
||||
} else {
|
||||
if($rank_diff == 0) {
|
||||
$rank_diff_txt = '-';
|
||||
} else if($rank_diff > 0) {
|
||||
$rank_diff_txt = "▲ ".$rank_diff;
|
||||
} else {
|
||||
$rank_diff_txt = "▼ ".abs($rank_diff);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<input type="hidden" name="idx[]" value="<?=$idx?>">
|
||||
<tr>
|
||||
<td><?=$rank?></td>
|
||||
<td><?=$rank_diff_txt?></td>
|
||||
<td><?=$reg_date?></td>
|
||||
<td><?=$keyword?></td>
|
||||
<td><?=$search_count?></td>
|
||||
</tr>
|
||||
|
||||
<? }
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="pasing_wrap">
|
||||
<?=$pagination?>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
// 검색
|
||||
function check_search(){
|
||||
$("#input_form").attr("action", "/admin/setting/realtime_keyword_log_list/1");
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
// 일자 계산
|
||||
function setting_date(t, termVal){
|
||||
|
||||
$(t).parent().children("a").removeClass("on");
|
||||
$(t).addClass("on");
|
||||
|
||||
var nowDate = new Date();
|
||||
if(termVal == '') {
|
||||
$("#start_date").val('');
|
||||
$("#end_date").val('');
|
||||
} else {
|
||||
if(termVal!='0') {
|
||||
if(termVal=='7') {
|
||||
nowDate.setDate(nowDate.getDate() - 7);
|
||||
} else {
|
||||
nowDate.setMonth(nowDate.getMonth() - parseInt(termVal));
|
||||
}
|
||||
}
|
||||
var newDate = new Date(nowDate);
|
||||
var sDate = newDate.format("yyyy-MM-dd");
|
||||
var eDate = new Date().format("yyyy-MM-dd");
|
||||
|
||||
$("#start_date").val(sDate);
|
||||
$("#end_date").val(eDate);
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// 엑셀다운로드
|
||||
function excel_downlaod(){
|
||||
if($("#start_date").val()==''){
|
||||
alert('일자를 선택해주세요.');
|
||||
return false;
|
||||
}
|
||||
if($("#end_date").val()==''){
|
||||
alert('일자를 선택해주세요.');
|
||||
return false;
|
||||
}
|
||||
$("#input_form").attr("action", "/admin/setting/realtime_keyword_excel_download_proc");
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
|
||||
// jquery datepicker
|
||||
$("#start_date").datepicker({
|
||||
inline: true,
|
||||
dateFormat: 'yy-mm-dd',
|
||||
buttonImage:"/img/btn_date.png",
|
||||
showOn: "both",
|
||||
buttonImageOnly: true
|
||||
|
||||
});
|
||||
$("#end_date").datepicker({
|
||||
inline: true,
|
||||
dateFormat: 'yy-mm-dd',
|
||||
buttonImage:"/img/btn_date.png",
|
||||
showOn: "both",
|
||||
buttonImageOnly: true
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
51
application/views/admin/setting/realtime_keyword_setting_reg.php
Executable file
51
application/views/admin/setting/realtime_keyword_setting_reg.php
Executable file
@@ -0,0 +1,51 @@
|
||||
<?
|
||||
$menu_code = '131';
|
||||
require_once (APPPATH.'views/skin/admin/_content_comm.php');
|
||||
?>
|
||||
|
||||
|
||||
<form name="input_form" id="input_form" action="/admin/setting/realtime_keyword_setting_reg_proc" method="post">
|
||||
<div class="common_table">
|
||||
<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
|
||||
<tr>
|
||||
<th>기준시간선정</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="base_hour" id="base_hour" value="<?=$base_hour?>" class="type02"> 시간
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>검색어저장여부</th>
|
||||
<td class="tl">
|
||||
<div>검색결과가 없는 검색어도 저장할지 여부를 설정합니다.</div>
|
||||
<input type="checkbox" name="is_no_result_keyword" id="is_no_result_keyword" class="input00" value="Y" <? if($is_no_result_keyword =='Y') { echo 'checked'; }?>> 전부저장
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="write_btn tc">
|
||||
<a href="javascript:realtime_keyword_setting_reg_proc()">저장하기</a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
// 저장하기
|
||||
function realtime_keyword_setting_reg_proc(){
|
||||
if($("#base_hour").val()=='') {
|
||||
alert("기준시간을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
if(checkNumber($("#base_hour").val())==false) {
|
||||
alert("기준시간을 확인해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#input_form").submit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
92
application/views/admin/setting/setting_comment_reg.php
Executable file
92
application/views/admin/setting/setting_comment_reg.php
Executable file
@@ -0,0 +1,92 @@
|
||||
<?
|
||||
$menu_code = '14';
|
||||
require_once (APPPATH.'views/skin/admin/_content_comm.php');
|
||||
?>
|
||||
|
||||
|
||||
<form name="input_form" id="input_form" action="/admin/setting/setting_comment_reg_proc" method="post">
|
||||
<div class="common_table news">
|
||||
<table>
|
||||
<tr>
|
||||
<th>컨텐츠</th>
|
||||
<td class="tl">
|
||||
<input type="radio" name="setting_type" id="setting_type" class="input00" value="3" onclick="select_setting_type()" <? if($setting_type=='3') { echo 'checked'; }?>> 라이프
|
||||
<input type="radio" name="setting_type" id="setting_type" class="input00" value="1" onclick="select_setting_type()" <? if($setting_type=='1') { echo 'checked'; }?>> 뉴스기사
|
||||
<input type="radio" name="setting_type" id="setting_type" class="input00" value="2" onclick="select_setting_type()" <? if($setting_type=='2') { echo 'checked'; }?>> 칼럼
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<h2 class="subtitle">배댓설정안내</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>좋아요수</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="best_comment_like_count" id="best_comment_like_count" class="type03" value="<?=$best_comment_like_count?>"> 회 이상이 될 경우, 베댓으로 등록
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>최대 배댓수</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="max_best_comment_count" id="max_best_comment_count" class="type03" value="<?=$max_best_comment_count?>"> 개 까지만 베댓으로 노출이 됩니다.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2 class="subtitle">차단설정안내</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>신고횟수</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="block_call_count" id="block_call_count" class="type03" size="5" value="<?=$block_call_count?>"> 회 이상이 될 경우
|
||||
<input type="radio" name="block_call_type" id="block_call_type" class="input00" value="1" <? if($block_call_type=='1') { echo 'checked'; }?>> 블라인드처리(열람불가)
|
||||
<input type="radio" name="block_call_type" id="block_call_type" class="input00" value="2" <? if($block_call_type=='2') { echo 'checked'; }?>> 삭제처리
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>블라인드문구</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="block_blind_conent" id="block_blind_conent" class="input00" size="40" value="<?=$block_blind_conent?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>삭제문구</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="block_del_conent" id="block_del_conent" class="input00" size="40" value="<?=$block_del_conent?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>본인삭제문구</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="self_del_contnet" id="self_del_contnet" class="input00" size="40" value="<?=$self_del_contnet?>">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="write_btn tc">
|
||||
<a href="javascript:setting_comment_reg_proc()">저장하기</a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
// 컨텐츠 선택
|
||||
function select_setting_type(){
|
||||
$("#input_form").attr("action", "/admin/setting/setting_comment_reg/1");
|
||||
$("#input_form").submit();
|
||||
}
|
||||
|
||||
// 저장하기
|
||||
function setting_comment_reg_proc(){
|
||||
$("#input_form").submit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
43
application/views/admin/setting/setting_footer_reg.php
Executable file
43
application/views/admin/setting/setting_footer_reg.php
Executable file
@@ -0,0 +1,43 @@
|
||||
|
||||
<?
|
||||
$menu_code = '112';
|
||||
require_once (APPPATH.'views/skin/admin/_content_comm.php');
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<form name="input_form" id="input_form" action="/admin/setting/setting_footer_reg_proc" method="post">
|
||||
<div class="common_table">
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>사이트 하단 정보입력</th>
|
||||
<td class="tl">
|
||||
<textarea style="width:600px;height:200px" id="footer_content" name="footer_content"><?=$footer_content?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="write_btn tc">
|
||||
<a href="javascript:setting_site_reg_proc()">저장하기</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function setting_site_reg_proc(){
|
||||
if($("#footer_content").val()=='') {
|
||||
alert("사이트 하단 정보를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
$("#input_form").submit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
41
application/views/admin/setting/setting_forbidden_word_reg.php
Executable file
41
application/views/admin/setting/setting_forbidden_word_reg.php
Executable file
@@ -0,0 +1,41 @@
|
||||
<?
|
||||
$menu_code = '113';
|
||||
require_once (APPPATH.'views/skin/admin/_content_comm.php');
|
||||
?>
|
||||
|
||||
|
||||
<form name="input_form" id="input_form" action="/admin/setting/setting_forbidden_word_reg_proc" method="post">
|
||||
<div class="common_table">
|
||||
<table>
|
||||
<tr>
|
||||
<th>단어 필터링</th>
|
||||
<td class="tl">
|
||||
<textarea style="width:600px;height:200px" id="forbidden_word" name="forbidden_word"><?=$forbidden_word?></textarea>
|
||||
</br>* 글, 댓글에 차단어가 포함될 경우 oo처리 되어 표시됩니다.
|
||||
</br>* 단어는 ,로 구분해주세요.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="write_btn tc">
|
||||
<a href="javascript:setting_forbidden_word_reg_proc()">저장하기</a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function setting_forbidden_word_reg_proc(){
|
||||
if($("#forbidden_word").val()=='') {
|
||||
alert("필터링할 단어를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#input_form").submit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
63
application/views/admin/setting/setting_policy_reg.php
Executable file
63
application/views/admin/setting/setting_policy_reg.php
Executable file
@@ -0,0 +1,63 @@
|
||||
<?
|
||||
$menu_code = '114';
|
||||
require_once (APPPATH.'views/skin/admin/_content_comm.php');
|
||||
?>
|
||||
|
||||
<form name="input_form" id="input_form" action="/admin/setting/setting_policy_reg_proc" method="post">
|
||||
<div class="common_table">
|
||||
|
||||
<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
|
||||
<tr>
|
||||
<th>이용약관</th>
|
||||
<td class="tl">
|
||||
<textarea style="width:600px;height:200px" id="service" name="service"><?=$service?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>개인정보 취급방침</th>
|
||||
<td class="tl">
|
||||
<textarea style="width:600px;height:200px" id="privacy" name="privacy"><?=$privacy?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>개인정보 수집</br>이용동의</th>
|
||||
<td class="tl">
|
||||
<textarea style="width:600px;height:200px" id="privacy_agreement" name="privacy_agreement"><?=$privacy_agreement?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div class="write_btn tc">
|
||||
<a href="javascript:setting_policy_reg_proc()">저장하기</a>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function setting_policy_reg_proc(){
|
||||
if($("#service").val()=='') {
|
||||
alert("이용약관을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#privacy").val()=='') {
|
||||
alert("개인정보 취급방침을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#privacy_agreement").val()=='') {
|
||||
alert("개인정보 수집 이용동의를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#input_form").submit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
79
application/views/admin/setting/setting_site_access_reg.php
Executable file
79
application/views/admin/setting/setting_site_access_reg.php
Executable file
@@ -0,0 +1,79 @@
|
||||
|
||||
<!-- 페이지타이틀 -->
|
||||
<div style="width:980px; margin:0 auto;">
|
||||
<table style="width:980px;line-height:42px;">
|
||||
<tr>
|
||||
<td><span style="font-weight:bold; font-size:14px; color:#333; padding-left:4px;"> 환경설정</span></td>
|
||||
<td style="text-align:right"><img src="/img/admin/ar_box01.gif" align="absmiddle"> <span style=" font-size:11px; color:#666666;">Home > 환경설정 > 기본환경관리</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<?
|
||||
$menu_code = '110102';
|
||||
include_once(APPPATH.'views/skin/admin/_submenu.php');
|
||||
?>
|
||||
|
||||
|
||||
<form name="input_form" id="input_form" action="/admin/setting/setting_site_access_reg_proc" method="post">
|
||||
<div style="width:980px; margin:0 auto;">
|
||||
<ul style="border-top:solid 2px #5362a4;">
|
||||
<li class="tb_tit_li">
|
||||
<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
|
||||
<tr style="height:240px">
|
||||
<td class="tb_tit18">관리자 페이지 접근가능 IP</td>
|
||||
<td colspan="3" class="tb_tit01">
|
||||
<textarea class="input00" style="width:600px;height:200px" id="access_type_1" name="access_type_1"><?=$access_type_1?></textarea></br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
<li class="tb_tit_li">
|
||||
<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
|
||||
<tr style="height:240px">
|
||||
<td class="tb_tit18">사이트 접근불가 IP</td>
|
||||
<td colspan="3" class="tb_tit01">
|
||||
<textarea class="input00" style="width:600px;height:200px" id="access_type_2" name="access_type_2"><?=$access_type_2?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
<li class="tb_tit_li">
|
||||
<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
|
||||
<tr style="height:240px">
|
||||
<td class="tb_tit18">사이트 접근가능 IP</td>
|
||||
<td colspan="3" class="tb_tit01">
|
||||
<textarea class="input00" style="width:600px;height:200px" id="access_type_3" name="access_type_3"><?=$access_type_3?></textarea>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
<li class="tb_tit_li">
|
||||
<table border="0" cellspacing="0" cellpadding="0" style="width:100%;">
|
||||
<tr style="height:260px">
|
||||
<td class="tb_tit01">
|
||||
각 해당 아이피에서만 페이지에 접근 및 차단이 가능합니다.</br>IP주소 입력형식</br>1. 와일드카드(*) 사용가능(예: 192.168.0.*)</br>2. 하이픈(-)을 사용하여 대역으로 입력가능</br>(단, 대역폭으로 입력할 경우 와일드카드 사용불가. 예: 192.168.0.1-192.168.0.254)</br>3. 여러개의 항목은 줄을 바꾸어 입력하세요.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
</ul>
|
||||
<ul style="text-align:center; padding-top:10px; padding-bottom:10px;">
|
||||
<table style="width:980px" border="0" cellpadding="0" cellspacing="0" style="width:210px; margin:0px auto;">
|
||||
<tr>
|
||||
<td style="text-align:right"><button type="button" class="btn_blue" style="width:100px" onclick="setting_site_access_reg_proc()" style="cursor: pointer;">저장하기</button></td>
|
||||
</tr>
|
||||
</table>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function setting_site_access_reg_proc() {
|
||||
$("#input_form").submit();
|
||||
|
||||
}
|
||||
</script>
|
||||
81
application/views/admin/setting/setting_site_reg.php
Executable file
81
application/views/admin/setting/setting_site_reg.php
Executable file
@@ -0,0 +1,81 @@
|
||||
<?
|
||||
$menu_code = '111';
|
||||
require_once (APPPATH.'views/skin/admin/_content_comm.php');
|
||||
?>
|
||||
|
||||
|
||||
<form name="input_form" id="input_form" action="/admin/setting/setting_site_reg_proc" method="post" enctype="multipart/form-data">
|
||||
<div class="common_table">
|
||||
<table>
|
||||
<tr>
|
||||
<th>홈페이지 제목</th>
|
||||
<td class="tl"><input type="text" name="homepage_title" id="homepage_title" value="<?=$homepage_title?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>관리자페이지 로고</th>
|
||||
<td class="tl"><input type="file" name="admin_logo" id="admin_logo">
|
||||
<? if($admin_logo!='') { ?>
|
||||
<input type="checkbox" name="is_del_admin_logo" value="Y">삭제
|
||||
<img src="<?=$admin_logo?>" style="width:100px">
|
||||
<? } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>하단스크립트</th>
|
||||
<td class="tl">
|
||||
<textarea style="width:600px;height:200px" name="footer_script"><?=$footer_script?></textarea></br>* 페이지 하단에 스크립트를 삽입합니다. 통계스크립트 등을 입력해주시면 됩니다. 관리자페이지에는 반영되지 않습니다.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>웹마스터 이름</th>
|
||||
<td class="tl"><input type="text" name="webmaster_name" id="webmaster_name" size="100" value="<?=$webmaster_name?>"></br>* 이메일 발송시 보내는 이름입니다.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>웹마스터 이메일주소</th>
|
||||
<td class="tl"><input type="text" name="webmaster_email" id="webmaster_email" size="100" value="<?=$webmaster_email?>"></br>* 이메일 발송시 보내는 이메일입니다.</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="write_btn tc">
|
||||
<a href="javascript:setting_site_reg_proc()">저장하기</a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function setting_site_reg_proc(){
|
||||
if($("#homepage_title").val()=='') {
|
||||
alert("홈페이지 제목을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#webmaster_name").val()=='') {
|
||||
alert("웹마스터 이름을 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#webmaster_email").val()=='') {
|
||||
alert("웹마스터 이메일주소를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if($("#webmaster_email").val()=='') {
|
||||
alert("웹마스터 이메일주소를 입력해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(checkEmail($("#webmaster_email").val())==false) {
|
||||
alert("메일주소를 확인해주세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
$("#input_form").submit();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user