Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
7
views/note/bootstrap/css/style.css
Normal file
7
views/note/bootstrap/css/style.css
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
note skin css
|
||||
*/
|
||||
|
||||
.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;}
|
||||
61
views/note/bootstrap/lists.php
Normal file
61
views/note/bootstrap/lists.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?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" >×</button>', '</div>'); ?>
|
||||
|
||||
<div class="btn-group btn-group-justified" role="group" aria-label="...">
|
||||
<div class="btn-group" role="group">
|
||||
<a href="<?php echo site_url('note/lists/recv'); ?>" class="btn btn-default <?php echo element('type', $view) === 'recv' ? 'active' : ''; ?>">받은 쪽지</a>
|
||||
</div>
|
||||
<div class="btn-group" role="group">
|
||||
<a href="<?php echo site_url('note/lists/send'); ?>" class="btn btn-default <?php echo element('type', $view) === 'send' ? 'active' : ''; ?>">보낸 쪽지</a>
|
||||
</div>
|
||||
<div class="btn-group" role="group">
|
||||
<a href="<?php echo site_url('note/write'); ?>" class="btn btn-default">쪽지 쓰기</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="table table-striped 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 class="text-danger">아직 읽지 않음</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>
|
||||
40
views/note/bootstrap/view.php
Normal file
40
views/note/bootstrap/view.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?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">
|
||||
<div class="btn-group btn-group-justified" role="group" aria-label="...">
|
||||
<div class="btn-group" role="group">
|
||||
<a href="<?php echo site_url('note/lists/recv'); ?>" class="btn btn-default <?php echo element('type', $view) === 'recv' ? 'active' : ''; ?>">받은 쪽지</a>
|
||||
</div>
|
||||
<div class="btn-group" role="group">
|
||||
<a href="<?php echo site_url('note/lists/send'); ?>" class="btn btn-default <?php echo element('type', $view) === 'send' ? 'active' : ''; ?>">보낸 쪽지</a>
|
||||
</div>
|
||||
<div class="btn-group" role="group">
|
||||
<a href="<?php echo site_url('note/write'); ?>" class="btn btn-default">쪽지 쓰기</a>
|
||||
</div>
|
||||
</div>
|
||||
<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))) { ?>
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item"><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></li>
|
||||
</ul>
|
||||
<?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>
|
||||
76
views/note/bootstrap/write.php
Normal file
76
views/note/bootstrap/write.php
Normal file
@@ -0,0 +1,76 @@
|
||||
<?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">
|
||||
<div class="btn-group btn-group-justified" role="group" aria-label="...">
|
||||
<div class="btn-group" role="group">
|
||||
<a href="<?php echo site_url('note/lists/recv'); ?>" class="btn btn-default">받은 쪽지</a>
|
||||
</div>
|
||||
<div class="btn-group" role="group">
|
||||
<a href="<?php echo site_url('note/lists/send'); ?>" class="btn btn-default">보낸 쪽지</a>
|
||||
</div>
|
||||
<div class="btn-group" role="group">
|
||||
<a href="<?php echo site_url('note/write'); ?>" class="btn btn-default active">쪽지 쓰기</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-horizontal mt20">
|
||||
<?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" >×</button>', '</div>');
|
||||
$attributes = array('class' => 'form-horizontal', 'name' => 'fnote', 'id' => 'fnote');
|
||||
echo form_open_multipart(current_full_url(), $attributes);
|
||||
?>
|
||||
<div class="form-group">
|
||||
<label for="userid" class="col-sm-2 control-label">받은 회원</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" name="userid" id="userid" value="<?php echo set_value('userid', element('userid', $view)); ?>" placeholder="회원아이디를 입력해주세요" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title" class="col-sm-2 control-label">제목</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" name="title" id="title" value="<?php echo set_value('title'); ?>" placeholder="쪽지 제목을 입력해주세요" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="content" class="col-sm-2 control-label">쪽지 내용</label>
|
||||
<div class="col-sm-10">
|
||||
<?php echo display_dhtml_editor('content', set_value('content'), $classname = 'form-control dhtmleditor', $is_dhtml_editor = element('use_dhtml', $view), $editor_type = $this->cbconfig->item('note_editor_type')); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($this->cbconfig->item('use_note_file')) { ?>
|
||||
<div class="form-group">
|
||||
<label for="title" class="col-sm-2 control-label">첨부파일</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="file" class="form-control" name="note_file" />
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-10 pull-right">
|
||||
<button type="submit" class="btn btn-success btn-sm">보내기</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="success text-center">여러명에게 보낼 때에는 회원아이디를 쉼표(,) 로 구분하여 입력해주세요</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
</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>
|
||||
Reference in New Issue
Block a user