Initial import from local backup (Documents-Playground/pakerpale)

This commit is contained in:
jeonghwa
2026-07-03 05:27:41 +09:00
commit 5b1bfe3390
2223 changed files with 561621 additions and 0 deletions

View File

@@ -0,0 +1,64 @@
<div class="box">
<div class="box-table">
<div class="box-table-header">
<ul class="nav nav-pills">
<li role="presentation"><a href="<?php echo admin_url($this->pagedir); ?>">인기검색어</a></li>
<li role="presentation"><a href="<?php echo admin_url($this->pagedir . '/rank'); ?>">순위</a></li>
<li role="presentation" class="active"><a href="<?php echo admin_url($this->pagedir . '/cleanlog'); ?>">오래된 로그삭제</a></li>
</ul>
</div>
<?php
echo validation_errors('<div class="alert alert-warning" role="alert">', '</div>');
echo show_alert_message(element('alert_message', $view), '<div class="alert alert-auto-close alert-dismissible alert-info"><button type="button" class="close alertclose" >&times;</button>', '</div>');
?>
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped">
<tbody>
<tr>
<td>
<?php
$attributes = array('class' => 'form-horizontal', 'name' => 'fadminwrite', 'id' => 'fadminwrite');
echo form_open(current_full_url(), $attributes);
?>
<input type="number" class="form-control" name="day" value="<?php echo set_value('day', 180); ?>" /> 일 이상된 검색어로그를 모두 검색합니다.
<button type="submit" class="btn btn-warning btn-sm">검색</button>
<?php echo form_close(); ?>
</td>
</tr>
</tbody>
</table>
</div>
<div class="box-info">
<?php
if (element('msg', $view)) {
$attributes = array('class' => 'form-horizontal', 'name' => 'fadminwrite2', 'id' => 'fadminwrite2', 'onSubmit' => 'return deletecheck()');
echo form_open(current_full_url(), $attributes);
?>
<input type="hidden" name="day" value="<?php echo element('day', $view); ?>" />
<input type="hidden" name="criterion" value="<?php echo element('criterion', $view); ?>" />
<input type="hidden" name="log_count" value="<?php echo element('log_count', $view); ?>" />
<?php echo element('msg', $view); ?>
<div class="box-button btn-group">
<button type="submit" class="btn btn-success btn-sm">삭제하기</button>
</div>
<?php
echo form_close();
}
?>
</div>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
$(function() {
$('#fadminwrite').validate({
rules: {
day: {required:true, number:true, min:0}
}
});
});
//]]>
</script>

View File

@@ -0,0 +1,101 @@
<div class="box">
<div class="box-table">
<?php
$attributes = array('class' => 'form-inline', 'name' => 'flist', 'id' => 'flist');
echo form_open(current_full_url(), $attributes);
?>
<div class="box-table-header">
<ul class="nav nav-pills">
<li role="presentation" class="active"><a href="<?php echo admin_url($this->pagedir); ?>">인기검색어</a></li>
<li role="presentation"><a href="<?php echo admin_url($this->pagedir . '/rank'); ?>">순위</a></li>
<li role="presentation"><a href="<?php echo admin_url($this->pagedir . '/cleanlog'); ?>">오래된 로그삭제</a></li>
</ul>
<?php
ob_start();
?>
<div class="btn-group pull-right" role="group" aria-label="...">
<a href="<?php echo element('listall_url', $view); ?>" class="btn btn-outline btn-default btn-sm">전체목록</a>
<button type="button" class="btn btn-outline btn-default btn-sm btn-list-delete btn-list-selected disabled" data-list-delete-url = "<?php echo element('list_delete_url', $view); ?>" >선택삭제</button>
</div>
<?php
$buttons = ob_get_contents();
ob_end_flush();
?>
</div>
<div class="row">전체 : <?php echo element('total_rows', element('data', $view), 0); ?>건</div>
<div class="table-responsive">
<table class="table table-hover table-striped table-bordered">
<colgroup>
<col class="col-md-1">
<col class="col-md-3">
<col class="col-md-3">
<col class="col-md-2">
<col class="col-md-2">
<col class="col-md-1">
</colgroup>
<thead>
<tr>
<th><a href="<?php echo element('sek_id', element('sort', $view)); ?>">번호</a></th>
<th><a href="<?php echo element('sek_keyword', element('sort', $view)); ?>">검색어</a></th>
<th><a href="<?php echo element('sek_datetime', element('sort', $view)); ?>">검색일시</a></th>
<th><a href="<?php echo element('sek_ip', element('sort', $view)); ?>">IP</a></th>
<th>회원명</th>
<th><input type="checkbox" name="chkall" id="chkall" /></th>
</tr>
</thead>
<tbody>
<?php
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $result) {
?>
<tr>
<td><?php echo number_format(element('num', $result)); ?></td>
<td><a href="<?php echo goto_url(site_url('search/?sfield=post_both&skeyword=' . urlencode(element('sek_keyword', $result)))); ?>" target="_blank"><?php echo html_escape(element('sek_keyword', $result)); ?></a></td>
<td><?php echo display_datetime(element('sek_datetime', $result), 'full'); ?></td>
<td><a href="?sfield=sek_ip&amp;skeyword=<?php echo display_admin_ip(element('sek_ip', $result)); ?>"><?php echo display_admin_ip(element('sek_ip', $result)); ?></a></td>
<td><?php echo element('display_name', $result); ?> <?php if (element('mem_userid', $result)) { ?> ( <a href="?sfield=search_keyword.mem_id&amp;skeyword=<?php echo element('mem_id', $result); ?>"><?php echo html_escape(element('mem_userid', $result)); ?></a> ) <?php } ?></td>
<td><input type="checkbox" name="chk[]" class="list-chkbox" value="<?php echo element(element('primary_key', $view), $result); ?>" /></td>
</tr>
<?php
}
}
if ( ! element('list', element('data', $view))) {
?>
<tr>
<td colspan="6" class="nopost">자료가 없습니다</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<div class="box-info">
<?php echo element('paging', $view); ?>
<div class="pull-left ml20"><?php echo admin_listnum_selectbox();?></div>
<?php echo $buttons; ?>
</div>
<?php echo form_close(); ?>
</div>
<form name="fsearch" id="fsearch" action="<?php echo current_full_url(); ?>" method="get">
<div class="box-search">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<select class="form-control" name="sfield" >
<?php echo element('search_option', $view); ?>
</select>
<div class="input-group">
<input type="text" class="form-control" name="skeyword" value="<?php echo html_escape(element('skeyword', $view)); ?>" placeholder="Search for..." />
<span class="input-group-btn">
<button class="btn btn-default btn-sm" name="search_submit" type="submit">검색!</button>
</span>
</div>
</div>
</div>
</div>
</form>
</div>

View File

@@ -0,0 +1,142 @@
<div class="box">
<div class="box-table">
<div class="box-table-header">
<ul class="nav nav-pills">
<li role="presentation"><a href="<?php echo admin_url($this->pagedir); ?>">인기검색어</a></li>
<li role="presentation" class="active"><a href="<?php echo admin_url($this->pagedir . '/rank'); ?>">순위</a></li>
<li role="presentation"><a href="<?php echo admin_url($this->pagedir . '/cleanlog'); ?>">오래된 로그삭제</a></li>
</ul>
<form class="form-inline" name="flist" action="<?php echo current_url(); ?>" method="get" >
<div class="box-table-button">
<span class="mr10">
기간 : <input type="text" class="form-control input-small datepicker " name="start_date" value="<?php echo element('start_date', $view); ?>" readonly="readonly" /> - <input type="text" class="form-control input-small datepicker" name="end_date" value="<?php echo element('end_date', $view); ?>" readonly="readonly" />
</span>
<div class="btn-group" role="group" aria-label="...">
<button type="submit" class="btn btn-default btn-sm">검색</button>
</div>
</div>
</form>
</div>
<div id="chart_div"></div>
<div class="table-responsive">
<table class="table table-hover table-striped table-bordered">
<colgroup>
<col class="col-md-1">
<col class="col-md-2">
<col class="col-md-1">
<col class="col-md-2">
<col class="col-md-6">
</colgroup>
<thead>
<tr>
<th>순위</th>
<th>검색어</th>
<th>검색회수</th>
<th>비율</th>
<th>그래프</th>
</tr>
</thead>
<tbody>
<?php
if (element('list', $view)) {
foreach (element('list', $view) as $result) {
?>
<tr>
<td><?php echo element('no', $result); ?></td>
<td><?php echo html_escape(element('key', $result)); ?></td>
<td><?php echo number_format(element('count', $result, 0)); ?></td>
<td><?php echo element('s_rate', $result, 0); ?>%</td>
<td>
<div class="progress">
<div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="<?php echo element('s_rate', $result, 0); ?>" aria-valuemin="0" aria-valuemax="<?php echo element('max_value', $view, 0); ?>" style="width: <?php echo element('bar', $result, 0); ?>%">
<span class="sr-only"><?php echo element('s_rate', $result, 0); ?>%</span>
</div>
</div>
</td>
</tr>
<?php
}
}
if ( ! element('list', $view)) {
?>
<tr>
<td colspan="5" class="nopost">자료가 없습니다</td>
</tr>
<?php
}
?>
</tbody>
<?php
if (element('list', $view)) {
?>
<tfoot>
<tr class="warning">
<td>전체</td>
<td></td>
<td><?php echo element('sum_count', $view, 0); ?></td>
<td></td>
<td></td>
</tr>
</tfoot>
<?php
}
?>
</table>
</div>
<div class="box-info">
<div class="btn-group pull-right" role="group" aria-label="...">
<button type="button" class="btn btn-outline btn-success btn-sm" id="export_to_excel"><i class="fa fa-file-excel-o"></i> 엑셀 다운로드</button>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
// Load the Visualization API and the corechart package.
google.charts.load('current', {'packages':['corechart']});
// Set a callback to run when the Google Visualization API is loaded.
google.charts.setOnLoadCallback(drawChart);
// Callback that creates and populates a data table,
// instantiates the pie chart, passes in the data and
// draws it.
function drawChart() {
var data = new google.visualization.arrayToDataTable([
['검색어', '비율'],
<?php
$sum = 0;
if (element('list', $view)) {
$i=0;
foreach (element('list', $view) as $result) {
?>
['<?php echo html_escape(element('key', $result)); ?>',<?php echo element('count', $result, 0); ?>],
<?php
$i++;
$sum += element('count', $result, 0);
if ($i > 8) break;
}
}
if (element('sum_count', $view) && $sum && $sum < element('sum_count', $view)) {
?>
['기타',<?php echo element('sum_count', $view, 0) - $sum; ?>],
<?php
}
?>
]);
var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
chart.draw(data, {
width: '100%', height: '400',
});
}
$(document).on('click', '#export_to_excel', function(){
exporturl = '<?php echo admin_url($this->pagedir . '/rank/excel' . '?' . $this->input->server('QUERY_STRING', null, '')); ?>';
document.location.href = exporturl;
})
</script>

View File

@@ -0,0 +1,35 @@
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo config_item('charset');?>" />
<style type="text/css">
th {font-weight:bold;padding:5px; min-width:120px; width:120px; _width:120px; text-align:center; line-height:18px; font-size:12px; color:#959595; font-family:dotum,돋움; border-right:1px solid #e4e4e4;}
td {text-align:center; line-height:40px; font-size:12px; color:#474747; font-family:gulim,굴림; border-right:1px solid #e4e4e4;}
</style>
<table width="100%" border="1" bordercolor="#E4E4E4" cellspacing="0" cellpadding="0">
<tr>
<th height="40">순위</th>
<th>검색어</th>
<th>검색회수</th>
<th>비율</th>
</tr>
<?php
if (element('list', $view)) {
foreach (element('list', $view) as $result) {
?>
<tr>
<td height="40"><?php echo element('no', $result); ?></td>
<td><?php echo html_escape(element('key', $result)); ?></td>
<td><?php echo number_format(element('count', $result, 0)); ?></td>
<td><?php echo element('s_rate', $result, 0); ?>%</td>
</tr>
<?php
}
?>
<tr>
<td height="40" bgcolor="#DEDEDE">전체</td>
<td bgcolor="#DEDEDE"></td>
<td bgcolor="#DEDEDE"><?php echo number_format(element('sum_count', $view, 0)); ?></td>
<td bgcolor="#DEDEDE"></td>
</tr>
<?php
}
?>
</table>