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,12 @@
/**
note skin css
*/
.note_menu li {width:32%;}
.note_menu a {font-size:14px;padding:5px 0px;width:100%;}
.note-view small{float:right;}
.note-contents{padding:20px;}
.note-view-title{border-bottom: 1px solid #ccc;padding-bottom: 5px;padding-left: 10px;padding-right: 10px;background: #D0E3F1;height: 30px;line-height: 30px;}
form li>span {float: left;width: 25%;text-align: right;padding-right: 20px;margin-top: 5px;color: #000;font-weight: bold;}
form .input {margin-bottom:15px;}
textarea.input {width:400px;height:200px;}

View File

@@ -0,0 +1,55 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="modal-header">
<h4 class="modal-title">쪽지함</h4>
</div>
<div class="modal-body">
<?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>'); ?>
<ul class="note_menu">
<li><a href="<?php echo site_url('note/lists/recv'); ?>" class="btn btn-default <?php echo element('type', $view) === 'recv' ? 'active' : ''; ?>">받은 쪽지</a></li>
<li><a href="<?php echo site_url('note/lists/send'); ?>" class="btn btn-default <?php echo element('type', $view) === 'send' ? 'active' : ''; ?>">보낸 쪽지</a></li>
<li><a href="<?php echo site_url('note/write'); ?>" class="btn btn-default">쪽지 쓰기</a></li>
</ul>
<table class="table mt20">
<thead>
<tr>
<th><?php echo element('type', $view) === 'recv' ? "보낸사람":"받은사람"; ?></th>
<th>제목</th>
<th>보낸시간</th>
<th>읽은시간</th>
<th>관리</th>
</tr>
</thead>
<tbody>
<?php
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $result) {
?>
<tr>
<td><?php echo element('display_name', $result); ?></td>
<td><a href="<?php echo site_url('note/view/' . element('type', $view) . '/' . element('nte_id', $result)); ?>"><?php echo html_escape(element('nte_title', $result)); ?></a></td>
<td><a href="<?php echo site_url('note/view/' . element('type', $view) . '/' . element('nte_id', $result)); ?>"><?php echo display_datetime(element('nte_datetime', $result), 'full'); ?></a></td>
<td><a href="<?php echo site_url('note/view/' . element('type', $view) . '/' . element('nte_id', $result)); ?>"><?php echo element('nte_read_datetime', $result) > '0000-00-00 00:00:00' ? display_datetime(element('nte_read_datetime', $result), 'full') : '<span style="color:#a94442;">아직 읽지 않음</span>'; ?></a></td>
<td><button class="btn-link btn-one-delete" data-one-delete-url = "<?php echo element('delete_url', $result); ?>">삭제</button></td>
</tr>
<?php
}
}
if ( ! element('list', element('data', $view))) {
?>
<tr>
<td colspan="5" class="nopost">쪽지가 없습니다</td>
</tr>
<?php
}
?>
</tbody>
</table>
<div class="pull-left">
<nav><?php echo element('paging', $view); ?></nav>
</div>
<div class="pull-right" style="margin:20px;"><button class="btn btn-default" onClick="window.close();">닫기</button></div>
</div>

38
views/note/basic/view.php Normal file
View File

@@ -0,0 +1,38 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="modal-header">
<h4 class="modal-title">쪽지함</h4>
</div>
<div class="modal-body">
<ul class="note_menu">
<li><a href="<?php echo site_url('note/lists/recv'); ?>" class="btn btn-default <?php echo element('type', $view) === 'recv' ? 'active' : ''; ?>">받은 쪽지</a></li>
<li><a href="<?php echo site_url('note/lists/send'); ?>" class="btn btn-default <?php echo element('type', $view) === 'send' ? 'active' : ''; ?>">보낸 쪽지</a></li>
<li><a href="<?php echo site_url('note/write'); ?>" class="btn btn-default">쪽지 쓰기</a></li>
</ul>
<div class="note-view mt20">
<div class="note-view-title">
<?php echo html_escape(element('nte_title', element('data', $view))); ?> <small><?php echo element('display_name', element('data', $view)); ?>, <?php echo display_datetime(element('nte_datetime', element('data', $view)), 'full'); ?> </small>
</div>
<?php if (element('nte_originname', element('data', $view))) { ?>
<div class="table-box">
<table class="table-body">
<tbody>
<tr>
<td><i class="fa fa-download"></i> <a href="<?php echo element('download_link', element('data', $view)); ?>"><?php echo html_escape(element('nte_originname', element('data', $view))); ?></a></td>
</tr>
</tbody>
</table>
</div>
<?php } ?>
<div class="note-contents"><?php echo element('content', element('data', $view)); ?></div>
</div>
<div class="pull-right" aria-label="...">
<button type="button" class="btn btn-success btn-sm" onClick="history.back();">이전페이지</button>
<?php if (element('userid', element('data', $view))) { ?><a href="<?php echo site_url('note/write/' . html_escape(element('userid', element('data', $view)))); ?>" class="btn btn-danger btn-sm"><?php echo element('type', $view) === 'send' ? "쪽지쓰기":"답장"; ?></a><?php } ?>
<button class="btn btn-default btn-sm" onClick="window.close();">닫기</button>
</div>
</div>

View File

@@ -0,0 +1,54 @@
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
<div class="modal-header">
<h4 class="modal-title">쪽지함</h4>
</div>
<div class="modal-body">
<ul class="note_menu">
<li><a href="<?php echo site_url('note/lists/recv'); ?>" class="btn btn-default">받은 쪽지</a></li>
<li><a href="<?php echo site_url('note/lists/send'); ?>" class="btn btn-default ">보낸 쪽지</a></li>
<li><a href="<?php echo site_url('note/write'); ?>" class="btn btn-default active">쪽지 쓰기</a></li>
</ul>
<?php
echo validation_errors('<div class="alert alert-warning" role="alert">', '</div>');
echo show_alert_message(element('message', $view), '<div class="alert alert-auto-close alert-dismissible alert-info"><button type="button" class="close alertclose" >&times;</button>', '</div>');
$attributes = array('class' => 'mt20', 'name' => 'fnote', 'id' => 'fnote');
echo form_open_multipart(current_full_url(), $attributes);
?>
<ol>
<li><span>받은 회원</span>
<input type="text" class="input px300" name="userid" id="userid" value="<?php echo set_value('userid', element('userid', $view)); ?>" placeholder="회원아이디를 입력, 여러명에게 보낼 때는 쉼표로 구분" />
</li>
<li><span>제목</span>
<input type="text" class="input px300" name="title" id="title" value="<?php echo set_value('title'); ?>" placeholder="쪽지 제목을 입력해주세요" />
</li>
<li>
<?php echo display_dhtml_editor('content', set_value('content'), $classname = 'dhtmleditor', $is_dhtml_editor = element('use_dhtml', $view), $editor_type = $this->cbconfig->item('note_editor_type')); ?>
</li>
<?php if ($this->cbconfig->item('use_note_file')) { ?>
<li><span>첨부파일</span>
<input type="file" class="form-control" name="note_file" />
</li>
<?php } ?>
</ol>
<div class="pull-right">
<button type="submit" class="btn btn-success">보내기</button>
</div>
<?php echo form_close(); ?>
</div>
<script type="text/javascript">
//<![CDATA[
$(function() {
$('#fnote').validate({
rules: {
userid: {required :true, minlength:3 },
title: {required :true},
content : {<?php echo (element('use_dhtml', $view)) ? 'required_' . $this->cbconfig->item('note_editor_type') : 'required'; ?> : true }
}
});
});
//]]>
</script>