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,61 @@
<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 . '/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,111 @@
<div class="box">
<div class="box-table">
<?php
echo show_alert_message($this->session->flashdata('message'), '<div class="alert alert-auto-close alert-dismissible alert-info"><button type="button" class="close alertclose" >&times;</button>', '</div>');
$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 . '/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();
?>
<?php if (element('boardlist', $view)) { ?>
<div class="pull-right mr10">
<select name="brd_id" class="form-control" onChange="location.href='<?php echo current_url(); ?>?brd_id=' + this.value;">
<option value="">전체게시판</option>
<?php foreach (element('boardlist', $view) as $key => $value) { ?>
<option value="<?php echo element('brd_id', $value); ?>" <?php echo set_select('brd_id', element('brd_id', $value), ($this->input->get('brd_id') === element('brd_id', $value) ? true : false)); ?>><?php echo html_escape(element('brd_name', $value)); ?></option>
<?php } ?>
</select>
</div>
<?php } ?>
</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">
<thead>
<tr>
<th><a href="<?php echo element('phi_id', element('sort', $view)); ?>">번호</a></th>
<th>게시판</th>
<th>제목</th>
<th>상세보기</th>
<th>변경한이</th>
<th>최초작성자</th>
<th>작성일</th>
<th>변경일</th>
<th>조회</th>
<th>변경 IP</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="?brd_id=<?php echo element('brd_id', $result); ?>"><?php echo html_escape(element('brd_name', element('board', $result))); ?></a> <a href="<?php echo goto_url(element('boardurl', $result)); ?>" target="_blank"><span class="fa fa-external-link"></span></a></td>
<td><a href="?sfield=post_history.post_id&amp;skeyword=<?php echo element('post_id', $result); ?>"><?php echo html_escape(element('phi_title', $result)); ?></a> <a href="<?php echo goto_url(element('posturl', $result)); ?>" target="_blank"><span class="fa fa-external-link"></span></a></td>
<td><a href="<?php echo admin_url($this->pagedir . '/view/' . element(element('primary_key', $view), $result)); ?>">상세보기</a></td>
<td><?php echo element('display_name', $result); ?> <?php if (element('mem_userid', element('member', $result))) { ?> ( <a href="?sfield=post_history.mem_id&amp;skeyword=<?php echo element('mem_id', element('member', $result)); ?>"><?php echo html_escape(element('mem_userid', element('member', $result))); ?></a> ) <?php } ?></td>
<td><?php echo element('post_display_name', $result); ?></td>
<td><?php echo display_datetime(element('post_datetime', $result), 'full'); ?></td>
<td><?php echo display_datetime(element('phi_datetime', $result), 'full'); ?></td>
<td><?php echo number_format(element('post_hit', $result)); ?></td>
<td><a href="?sfield=phi_ip&amp;skeyword=<?php echo display_admin_ip(element('phi_ip', $result)); ?>"><?php echo display_admin_ip(element('phi_ip', $result)); ?></a></td>
<td><?php echo element('post_secret', $result) === '1' ? '비밀' : '공개'; ?></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="12" 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,122 @@
<div class="box">
<div class="box-table">
<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 . '/cleanlog'); ?>">오래된 로그삭제</a></li>
</ul>
</div>
<div class="box-table-header">
<div class="box-table-title">
<h4>게시물 정보</h4>
</div>
<div class="box-table-button">
<a data-toggle="collapse" href="#collapse1" aria-expanded="false" aria-controls="collapse1"><i class="fa fa-chevron-up"></i></a>
</div>
</div>
<div class="collapse in" id="collapse1">
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped">
<colgroup>
<col class="col-md-2">
<col class="col-md-10">
</colgroup>
<tbody>
<tr>
<th>글쓴이</th>
<td><div class="textbox"><?php echo element('post_display_name', element('data', $view)); ?></div></td>
</tr>
<tr>
<th>작성일</th>
<td><div class="textbox"><?php echo display_datetime(element('post_datetime', element('post', element('data', $view))), 'full'); ?></div></td>
</tr>
<tr>
<th>IP 주소</th>
<td><?php echo display_admin_ip(element('post_ip', element('post', element('data', $view)))); ?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="box-table">
<div class="box-table-header">
<div class="box-table-title">
<h4>게시물 변경정보</h4>
</div>
<div class="box-table-button">
<a data-toggle="collapse" href="#collapse2" aria-expanded="false" aria-controls="collapse2"><i class="fa fa-chevron-up"></i></a>
</div>
</div>
<div class="collapse in" id="collapse2">
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped">
<colgroup>
<col class="col-md-2">
<col class="col-md-10">
</colgroup>
<tbody>
<tr>
<th>변경한 사람</th>
<td><div class="textbox"><?php echo element('display_name', element('data', $view)); ?></div></td>
</tr>
<tr>
<th>변경일</th>
<td><div class="textbox"><?php echo display_datetime(element('phi_datetime', element('data', $view)), 'full'); ?></div></td>
</tr>
<tr>
<th>변경 IP 주소</th>
<td><?php echo display_admin_ip(element('phi_ip', element('data', $view))); ?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="box-table">
<div class="box-table-header">
<div class="box-table-title">
<h4>변경내용</h4>
</div>
<div class="box-table-button">
<a data-toggle="collapse" href="#collapse3" aria-expanded="false" aria-controls="collapse3"><i class="fa fa-chevron-up"></i></a>
</div>
</div>
<div class="collapse in" id="collapse3">
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped">
<colgroup>
<col class="col-md-2">
<col class="col-md-10">
</colgroup>
<tbody>
<tr>
<th>게시판</th>
<td><div class="textbox"><?php echo html_escape(element('brd_name', element('board', element('data', $view)))); ?></div></td>
</tr>
<tr>
<th>변경전 제목</th>
<td><div class="textbox"><?php echo html_escape(element('phi_title', element('prev', element('data', $view)))); ?></div></td>
</tr>
<tr>
<th>변경전 내용</th>
<td><div class="textbox"><?php echo element('content', element('prev', element('data', $view))); ?></div></td>
</tr>
<tr>
<th>변경후 제목</th>
<td><div class="textbox"><?php echo html_escape(element('phi_title', element('data', $view))); ?></div></td>
</tr>
<tr>
<th>변경후 내용</th>
<td><div class="textbox"><?php echo element('content', element('data', $view)); ?></div></td>
</tr>
</tbody>
</table>
</div>
<div class="btn-group pull-right" role="group" aria-label="...">
<button type="button" class="btn btn-outline btn-default btn-sm btn-history-back">목록으로</button>
<button type="button" class="btn btn-outline btn-warning btn-sm btn-one-delete" data-one-delete-url = "<?php echo element('delete_url', $view); ?>">삭제하기</button>
</div>
</div>
</div>
</div>