first commit
This commit is contained in:
101
application/views/adm/church.php
Executable file
101
application/views/adm/church.php
Executable file
@@ -0,0 +1,101 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">데이터관리 > 교회정보관리</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<div class="box-table-header cm-bottom-control">
|
||||
<div class="col-md-6 cm-top-pagination"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<button type="button" class="btn btn-outline btn-default btn-sm btn-list-delete btn-list-selected disabled" data-list-delete-url="/adm/content/delete?">선택삭제</button>
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" class="btn btn-outline btn-default btn-sm">전체목록</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">전체 : <?php echo $table['total']?>건</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>네이버번호</th>
|
||||
<th>카테고리</th>
|
||||
<th>이름</th>
|
||||
<th>주소</th>
|
||||
<th>연락처</th>
|
||||
<th>등록일</th>
|
||||
<th><input type="checkbox" name="chkall" id="chkall" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><?php foreach ($table['rows'] as $r) {?>
|
||||
<tr>
|
||||
<td><?php echo $r->Id?></td>
|
||||
<td><?php echo $r->NId?></td>
|
||||
<td><?php echo $r->Category?></td>
|
||||
<td><?php echo $r->Name?></td>
|
||||
<td><?php if($r->RoadAddress) echo $r->RoadAddress.'<br />'?><?php echo $r->CommonAddress?> <?php echo $r->Address?></td>
|
||||
<td><?php echo $r->Phone?></td>
|
||||
<td><?php echo $r->CreatedAt?></td>
|
||||
<td><input type="checkbox" name="chk[]" class="list-chkbox" value="<?php echo $r->Id?>" /></td>
|
||||
</tr> <?php }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="box-info row cm-bottom-control">
|
||||
<div class="col-md-6"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" 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="/adm/content/delete?">선택삭제</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script>
|
||||
$(function(){
|
||||
$('.cm-display-select').on('change', function(){
|
||||
if(confirm('공개여부를 ' + this.options[this.selectedIndex].text + '로 변경할까요?')) {
|
||||
var postid = $(this).parent().parent().find('td:first').text();
|
||||
var selectVal = this.value;
|
||||
var is_display = selectVal == 'R' ? 'N': selectVal;
|
||||
$.post('/adm/content/display', {'is_display': is_display, 'postid': postid}, function(res){
|
||||
selectVal == 'R' ? location.href='/adm/content/reserve?list='+postid : location.reload();
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
137
application/views/adm/comment.php
Executable file
137
application/views/adm/comment.php
Executable file
@@ -0,0 +1,137 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">회원관리 > 코멘트관리</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form action="" method="get" name="flist" id="flist">
|
||||
<input type="hidden" name="list">
|
||||
<input type="hidden" name="acttype">
|
||||
<div class="col-md-12" style="margin-bottom:10px;">
|
||||
<select name="category" class="form-control" data-width="200">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $category) { echo '<option value="'.$category->idx.'" '.(param('category') == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control" data-width="200">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach($graceEditors as $editor) { echo '<option value="'.$editor->editorId.'" '.(param('editor') == $editor->editorId ? 'selected':'').'>'. $editor->editorName. '</option>';}?>
|
||||
</select>
|
||||
<div class="input-group" style="display:inline-block;width:350px;vertical-align: middle;">
|
||||
<input type="text" class="form-control" name="term" value="<?php echo param('term')?>" placeholder="검색어를 입력하세요" style="display:inline-block;width:300px;"/>
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-sm" type="submit">검색!</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<button type="button" class="btn btn-outline btn-default btn-sm btn-list-reserve btn-list-selected disabled"
|
||||
data-list-reserve-url="/adm/content/reserve?">선택예약</button>
|
||||
<button type="button" class="btn btn-outline btn-default btn-sm btn-list-delete btn-list-selected disabled"
|
||||
data-list-delete-url="/adm/content/delete?">선택삭제</button>
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" class="btn btn-outline btn-default btn-sm">전체목록</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="box-table-header cm-bottom-control">
|
||||
<div class="col-md-6 cm-top-pagination"><?php echo $paging ?></div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="row">전체 : <?php echo $table['total']?>건</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>글번호</th>
|
||||
<th>카테고리</th>
|
||||
<th>에디터</th>
|
||||
<th>코멘트</th>
|
||||
<th>등록일</th>
|
||||
<th><input type="checkbox" name="chkall" id="chkall" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><?php foreach ($table['rows'] as $r) {?>
|
||||
<tr>
|
||||
<td><?php echo $r->commentId?></td>
|
||||
<td><?php echo $r->idx?></td>
|
||||
<td><?php echo $r->categoryName?></td>
|
||||
<td><?php echo $r->editorName?></td>
|
||||
<td><?php echo '<i style="color:#bbb">'.$r->title.'</i><br />'.$r->comment?></td>
|
||||
<td><?php echo $r->reg_date?></td>
|
||||
<td><input type="checkbox" name="chk[]" class="list-chkbox" value="<?php echo $r->idx?>" /></td>
|
||||
</tr> <?php }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="box-info row cm-bottom-control">
|
||||
<div class="col-md-6"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
<div class="pull-right">
|
||||
<form action="" method="get">
|
||||
<select name="category" class="form-control" style="width:100px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $category) { echo '<option value="'.$category->idx.'" '.(param('category') == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control" style="width:100px">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach($graceEditors as $editor) { echo '<option value="'.$editor->editorId.'" '.(param('editor') == $editor->editorId ? 'selected':'').'>'. $editor->editorName. '</option>';}?>
|
||||
</select>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" name="term" value="<?php echo param('term')?>" placeholder="검색어를 입력하세요" />
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-sm" type="submit">검색!</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" 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="/adm/content/delete?">선택삭제</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script>
|
||||
$(function(){
|
||||
$('.cm-display-select').on('change', function(){
|
||||
if(confirm('공개여부를 ' + this.options[this.selectedIndex].text + '로 변경할까요?')) {
|
||||
var postid = $(this).parent().parent().find('td:first').text();
|
||||
var selectVal = this.value;
|
||||
var is_display = selectVal == 'R' ? 'N': selectVal;
|
||||
$.post('/adm/content/display', {'is_display': is_display, 'postid': postid}, function(res){
|
||||
selectVal == 'R' ? location.href='/adm/content/reserve?list='+postid : location.reload();
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
160
application/views/adm/content.php
Executable file
160
application/views/adm/content.php
Executable file
@@ -0,0 +1,160 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">기본관리 > 컨텐츠관리</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form action="" method="get" name="flist" id="flist">
|
||||
<input type="hidden" name="list">
|
||||
<input type="hidden" name="acttype">
|
||||
<div class="col-md-12" style="margin-bottom:10px;">
|
||||
<select name="category" class="form-control" data-width="200">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $category) { echo '<option value="'.$category->idx.'" '.(param('category') == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control" data-width="200">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach($graceEditors as $editor) { echo '<option value="'.$editor->editorId.'" '.(param('editor') == $editor->editorId ? 'selected':'').'>'. $editor->editorName. '</option>';}?>
|
||||
</select>
|
||||
<div class="input-group" style="display:inline-block;width:350px;vertical-align: middle;">
|
||||
<input type="text" class="form-control" name="term" value="<?php echo param('term')?>" placeholder="검색어를 입력하세요" style="display:inline-block;width:300px;" />
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-sm" type="submit">검색!</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<button type="button" class="btn btn-outline btn-default btn-sm btn-list-reserve btn-list-selected disabled"
|
||||
data-list-reserve-url="/adm/content/reserve?">선택예약</button>
|
||||
<button type="button" class="btn btn-outline btn-default btn-sm btn-list-delete btn-list-selected disabled"
|
||||
data-list-delete-url="/adm/content/delete?">선택삭제</button>
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" class="btn btn-outline btn-default btn-sm">전체목록</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="box-table-header cm-bottom-control">
|
||||
<div class="col-md-6 cm-top-pagination"><?php echo $paging ?></div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="row">전체 : <?php echo $table['total']?>건</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>카테고리 / 에디터 / 제목</th>
|
||||
<th>메인이미지</th>
|
||||
<th>조회수</th>
|
||||
<th>좋아요수</th>
|
||||
<th>댓글수</th>
|
||||
<th>공개여부</th>
|
||||
<th>등록일</th>
|
||||
<th><input type="checkbox" name="chkall" id="chkall" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><?php foreach ($table['rows'] as $r) {?>
|
||||
<tr>
|
||||
<td><?php echo $r->idx?></td>
|
||||
<td><span style="color:red"><?php echo $r->categoryName?></span> / <span style="color:blue"><?php echo $r->editorName?></span><br /><a href="#"
|
||||
class="cm-title-link"><?php echo convertEmoji($r->title)?></a></td>
|
||||
<td><img src="<?php echo imgSrc($r->mainImg)?>" height="50"></td>
|
||||
<td><?php echo $r->views?></td>
|
||||
<td><?php echo $r->likes?></td>
|
||||
<td><?php echo $r->comments?></td>
|
||||
<td><select <?php if(strtotime($r->display_date) > time()) echo 'disabled';?> class="cm-display-select" data-width="80">
|
||||
<?php if($r->is_del == 'Y') {?>
|
||||
<option value="D" selected>삭제</option>
|
||||
<option value="N">비공개</option>
|
||||
<option value="Y">공개</option>
|
||||
<option value="R">예약</option>
|
||||
<?php } else {?>
|
||||
<option value="N" <?php if($r->is_display == 'N') echo ' selected';?>>비공개</option>
|
||||
<option value="Y" <?php if($r->is_display == 'Y') echo ' selected';?>>공개</option>
|
||||
<option value="R" <?php if(strtotime($r->display_date) > time()) echo ' selected';?>>예약</option>
|
||||
<?php }?>
|
||||
</select></td>
|
||||
<td><span
|
||||
style="color:blue"><?php echo $r->reg_date?></span><?php if(strtotime($r->display_date) > time()) echo '<br /><span style="color:red">'. $r->display_date.'</span>'?>
|
||||
</td>
|
||||
<td><input type="checkbox" name="chk[]" class="list-chkbox" value="<?php echo $r->idx?>" /></td>
|
||||
</tr> <?php }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="box-info row cm-bottom-control">
|
||||
<div class="col-md-6"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
<div class="pull-right">
|
||||
<form action="" method="get">
|
||||
<select name="category" class="form-control" style="width:100px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $category) { echo '<option value="'.$category->idx.'" '.(param('category') == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control" style="width:100px">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach($graceEditors as $editor) { echo '<option value="'.$editor->editorId.'" '.(param('editor') == $editor->editorId ? 'selected':'').'>'. $editor->editorName. '</option>';}?>
|
||||
</select>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" name="term" value="<?php echo param('term')?>" placeholder="검색어를 입력하세요" />
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-sm" type="submit">검색!</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" 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="/adm/content/delete?">선택삭제</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script>
|
||||
$(function() {
|
||||
$('.cm-display-select').on('change', function() {
|
||||
if (confirm('공개여부를 ' + this.options[this.selectedIndex].text + '로 변경할까요?')) {
|
||||
var postid = $(this).parent().parent().find('td:first').text();
|
||||
var selectVal = this.value;
|
||||
var is_display = selectVal == 'R' ? 'N' : selectVal;
|
||||
$.post('/adm/content/display', {
|
||||
'is_display': is_display,
|
||||
'postid': postid
|
||||
}, function(res) {
|
||||
selectVal == 'R' ? location.href = '/adm/content/reserve?list=' + postid : location.reload();
|
||||
})
|
||||
}else {
|
||||
location.reload();
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
105
application/views/adm/contentcategory.php
Executable file
105
application/views/adm/contentcategory.php
Executable file
@@ -0,0 +1,105 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">기본관리 > 카테고리관리</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<div class="box-table-header cm-bottom-control">
|
||||
<div class="col-md-6 cm-top-pagination"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="pull-right">
|
||||
<form action="" method="get" name="flist" id="flist">
|
||||
<input type="hidden" name="list">
|
||||
<input type="hidden" name="acttype">
|
||||
<a href="/adm/content/categoryedit" 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="/adm/content/categorydelete?">선택삭제</button>
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" class="btn btn-outline btn-default btn-sm">전체목록</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">전체 : <?php echo $table['total']?>건</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>카테고리</th>
|
||||
<th>등록일</th>
|
||||
<th>변경일</th>
|
||||
<th><input type="checkbox" name="chkall" id="chkall" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><?php foreach ($table['rows'] as $r) {?>
|
||||
<tr>
|
||||
<td><?php echo $r->idx?></td>
|
||||
<td><?php echo $r->category_fullpath?></td>
|
||||
<td><?php echo $r->reg_date?></td>
|
||||
<td><?php echo $r->update_date?></td>
|
||||
<td><input type="checkbox" name="chk[]" class="list-chkbox" value="<?php echo $r->idx?>" /></td>
|
||||
</tr> <?php }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="box-info row cm-bottom-control">
|
||||
<div class="col-md-6"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="pull-right">
|
||||
<a href="/adm/content/categoryedit" 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="/adm/content/delete?">선택삭제</button>
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" class="btn btn-outline btn-default btn-sm">전체목록</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script>
|
||||
$(function() {
|
||||
$('.cm-display-select').on('change', function() {
|
||||
if (confirm('공개여부를 ' + this.options[this.selectedIndex].text + '로 변경할까요?')) {
|
||||
var postid = $(this).parent().parent().find('td:first').text();
|
||||
var selectVal = this.value;
|
||||
var is_display = selectVal == 'R' ? 'N' : selectVal;
|
||||
$.post('/adm/content/display', {
|
||||
'is_display': is_display,
|
||||
'postid': postid
|
||||
}, function(res) {
|
||||
selectVal == 'R' ? location.href = '/adm/content/reserve?list=' + postid : location.reload();
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
68
application/views/adm/contentcategoryedit.php
Executable file
68
application/views/adm/contentcategoryedit.php
Executable file
@@ -0,0 +1,68 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">기본관리 > 카테고리 정보 업데이트</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form method="post" action="" enctype="multipart/form-data">
|
||||
<input type="hidden" name="redirect" value="<?php echo $this->input->server('HTTP_REFERER')?>">
|
||||
<input type="hidden" name="idx" class="form-control" value="<?php if(isset($category)) echo $category->idx?>">
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>상위 카테고리</th>
|
||||
<td>
|
||||
<select name="parent" class="form-control" style="width:200px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $c) { echo '<option value="'.$c->idx.'" '.(!empty($category) && $category->parent == $c->idx ? 'selected':'').'>'. $c->category_name. '</option>';}?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>카테고리명</th>
|
||||
<td>
|
||||
<input type="text" name="category_name" class="form-control" value="<?php if(isset($category->category_name)) echo $category->category_name?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>설명</th>
|
||||
<td>
|
||||
<input type="text" name="description" class="form-control" value="<?php if(isset($category->description)) echo $category->description?>">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center">
|
||||
<a class="btn btn-danger" href="<?php echo $this->input->server('HTTP_REFERER')?>">취소</a>
|
||||
<button type="submit" class="btn btn-success">저장</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
181
application/views/adm/contentwrite.php
Executable file
181
application/views/adm/contentwrite.php
Executable file
@@ -0,0 +1,181 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">컨텐츠관리 > 등록</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table" style="overflow:visible">
|
||||
<form method="post" action="" enctype="multipart/form-data">
|
||||
<input type="hidden" name="contentId" value="<?php if(isset($post)) echo $post->idx?>">
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th width="150">카테고리</th>
|
||||
<td>
|
||||
<select name="category" class="form-control" style="width:200px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $category) { echo '<option value="'.$category->idx.'" '.($post->category_idx == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>에디터</th>
|
||||
<td>
|
||||
<select name="editor" class="form-control" style="width:200px">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach($graceEditors as $editor) { echo '<option value="'.$editor->editorId.'" '.($post->partner_idx == $editor->editorId ? 'selected':'').'>'. $editor->editorName. '</option>';}?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>제목</th>
|
||||
<td>
|
||||
<input type="text" name="title" class="form-control" value="<?php if(isset($post)) echo convertEmoji($post->title)?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>메인이미지</th>
|
||||
<td>
|
||||
<input type="hidden" name="main_img" value="<?php if(isset($post)) echo $post->main_img?>">
|
||||
<input type="file" class="cm-main-img" name="uploadfile">
|
||||
<img src="<?php if(isset($post)) echo imgSrc($post->mainImg)?>" width="200" style="margin-top:5px;<?php if(isset($post)) echo $post ? '':'display:none;'?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>본문</th>
|
||||
<td>
|
||||
<!-- <textarea id="content" name="content"></textarea> -->
|
||||
<textarea name="content" class="js-st-instance"
|
||||
style="width:100%; height:500px;"><?php if(isset($post)) echo contentImgSrc(convertEmoji($post->content))?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>공개설정</th>
|
||||
<td>
|
||||
<div class="input-group">
|
||||
<select name="is_display" style="width:200px" class="cm-display-select">
|
||||
<option value="">공개설정</option>
|
||||
<option value="N" <?php if(isset($post) && $post->is_display == 'N') echo ' selected';?>>비공개</option>
|
||||
<option value="Y" <?php if(isset($post) && $post->is_display == 'Y') echo ' selected';?>>공개</option>
|
||||
<option value="R" <?php if(isset($post) && $post->is_display == 'N' && strtotime($post->display_date) > time()) echo ' selected';?>>예약</option>
|
||||
</select>
|
||||
<div style="margin-top:5px;">
|
||||
<input type="text" name="display_time" class="datetimepicker form-control cm-reserve-datetime"
|
||||
value="<?php if(isset($post->display_date)) echo $post->display_date?>"
|
||||
style="width:200px;display:<?php if(isset($post) && $post->is_display == 'N' && strtotime($post->display_date) > time()) echo 'block'; else echo 'none';?>;">
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center">
|
||||
<a class="btn btn-danger cm-contentedit-cancel">취소</a>
|
||||
<button type="submit" class="btn btn-success">저장</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script src="/assets/adm/js/tinymce/tinymce.min.js"></script>
|
||||
<script>
|
||||
tinyMCE.init({
|
||||
selector: '.js-st-instance',
|
||||
plugins: ['link image code fullscreen lineheight',
|
||||
'autolink lists link anchor table',
|
||||
'textcolor colorpicker textpattern'
|
||||
],
|
||||
file_browser_callback: RoxyFileBrowser,
|
||||
language: 'ko_KR',
|
||||
image_advtab: true,
|
||||
toolbar: 'codesample | bold italic sizeselect fontselect fontsizeselect | hr alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | insertfile undo redo | forecolor backcolor emoticons | code | lineheightselect | table tabledelete | tableprops tablerowprops tablecellprops | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol',
|
||||
fontsize_formats: "8pt 10pt 12pt 14pt 18pt 24pt 36pt",
|
||||
font_formats: '나눔고딕=나눔고딕코딩,NanumGothicCoding,sans-serif; Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif; Arial Black=arial black,avant garde; Book Antiqua=book antiqua,palatino; Comic Sans MS=comic sans ms,sans-serif; Courier New=courier new,courier; Georgia=georgia,palatino; Helvetica=helvetica; Impact=impact,chicago; Symbol=symbol; Tahoma=tahoma,arial,helvetica,sans-serif; Terminal=terminal,monaco; Times New Roman=times new roman,times; Trebuchet MS=trebuchet ms,geneva; Verdana=verdana,geneva; Webdings=webdings; Wingdings=wingdings,zapf dingbats',
|
||||
lineheight_formats: "1pt 2pt 3pt 4pt 5pt 6pt 7pt 8pt 9pt 10pt 11pt 12pt 14pt 16pt 18pt 20pt 22pt 24pt 26pt 36pt 48pt",
|
||||
setup: function(ed) {
|
||||
ed.on('init', function() {
|
||||
// this.getDoc().body.style.fontSize = '12';
|
||||
this.getDoc().body.style.fontFamily = '나눔고딕';
|
||||
});
|
||||
ed.on('Change', function(e) {
|
||||
contentEdited = true;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
function RoxyFileBrowser(field_name, url, type, win) {
|
||||
var roxyFileman = '/fileman/index.html?integration=tinymce4';
|
||||
if (roxyFileman.indexOf("?") < 0) {
|
||||
roxyFileman += "?type=" + type;
|
||||
} else {
|
||||
roxyFileman += "&type=" + type;
|
||||
}
|
||||
roxyFileman += '&input=' + field_name + '&value=' + win.document.getElementById(field_name).value;
|
||||
if (tinyMCE.activeEditor.settings.language) {
|
||||
roxyFileman += '&langCode=' + tinyMCE.activeEditor.settings.language;
|
||||
}
|
||||
tinyMCE.activeEditor.windowManager.open({
|
||||
file: roxyFileman,
|
||||
title: 'Crossmap File Manager',
|
||||
width: 850,
|
||||
height: 650,
|
||||
resizable: "yes",
|
||||
plugins: "media",
|
||||
inline: "yes",
|
||||
close_previous: "no"
|
||||
}, {
|
||||
window: win,
|
||||
input: field_name
|
||||
});
|
||||
return false;
|
||||
}
|
||||
$('.datetimepicker').datetimepicker({
|
||||
format: 'YYYY-MM-DD HH:mm:ss'
|
||||
});
|
||||
|
||||
$('.cm-display-select').on('change', function() {
|
||||
$('.cm-reserve-datetime').hide();
|
||||
if (this.value == 'R') {
|
||||
$('.cm-reserve-datetime').show();
|
||||
}
|
||||
})
|
||||
|
||||
var contentEdited = false;
|
||||
$(function() {
|
||||
$('input,select').on('change', function() {
|
||||
contentEdited = true;
|
||||
})
|
||||
|
||||
$('.cm-contentedit-cancel').on('click', function() {
|
||||
if (contentEdited) {
|
||||
if (confirm('정말로 취소하시겠습니까?')) {
|
||||
location.href = '/adm/content'
|
||||
}
|
||||
} else location.href = '/adm/content';
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
118
application/views/adm/editor.php
Executable file
118
application/views/adm/editor.php
Executable file
@@ -0,0 +1,118 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">회원관리 > 에디터관리</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form action="" method="get" name="flist" id="flist">
|
||||
<input type="hidden" name="list">
|
||||
<input type="hidden" name="acttype">
|
||||
<div class="box-table-header cm-bottom-control">
|
||||
<div class="col-md-6 cm-top-pagination"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
<div class="input-group" style="display:inline-block;width:350px;vertical-align: middle;">
|
||||
<input type="text" class="form-control" name="term" value="<?php echo param('term')?>" placeholder="검색어를 입력하세요" style="display:inline-block;width:300px;"/>
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-sm" type="submit">검색!</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<a class="btn btn-outline btn-default btn-sm" href="/adm/member/editoredit">신규등록</a>
|
||||
<button type="button" class="btn btn-outline btn-default btn-sm btn-list-delete btn-list-selected disabled" data-list-delete-url="/adm/member/editordelete?">선택삭제</button>
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" class="btn btn-outline btn-default btn-sm">전체목록</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">전체 : <?php echo $table['total']?>건</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>아이콘/채널명/아이디</th>
|
||||
<th>이름/이메일</th>
|
||||
<th>활성/비활성</th>
|
||||
<th>등록일</th>
|
||||
<th><input type="checkbox" name="chkall" id="chkall" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><?php foreach ($table['rows'] as $r) {?>
|
||||
<tr>
|
||||
<td><?php echo $r->idx?></td>
|
||||
|
||||
<td><img src="<?php echo imgSrc($r->partner_img)?>" height="50" style="float:left;margin:5px"><a href="/adm/member/editoredit/<?php echo $r->idx?>"
|
||||
style="font-weight:bold"><?php echo $r->partner_name?> (<?php echo $r->partner_id?>)</a><br /><i
|
||||
style="color:#bbb"><?php echo $r->partner_intro?></i></td>
|
||||
<td><?php echo $r->partner_real_name?><br /><?php echo $r->partner_email?></td>
|
||||
|
||||
<td><select class="cm-display-select" data-width="80">
|
||||
<option value="N" <?php if($r->is_del == 'N') echo ' selected';?>>활성</option>
|
||||
<option value="Y" <?php if($r->is_del == 'Y') echo ' selected';?>>비활성</option>
|
||||
</select></td>
|
||||
|
||||
<td><?php echo $r->reg_date?></td>
|
||||
<td><input type="checkbox" name="chk[]" class="list-chkbox" value="<?php echo $r->idx?>" /></td>
|
||||
</tr> <?php }?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</form>
|
||||
<div class="box-info row cm-bottom-control">
|
||||
<div class="col-md-6"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" 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="/adm/member/editordelete?">선택삭제</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script>
|
||||
$(function() {
|
||||
$('.cm-display-select').on('change', function() {
|
||||
if (confirm('에디터를 ' + this.options[this.selectedIndex].text + '로 변경할까요?')) {
|
||||
var postid = $(this).parent().parent().find('td:first').text();
|
||||
var selectVal = this.value;
|
||||
var is_display = selectVal == 'R' ? 'N' : selectVal;
|
||||
$.post('/adm/member/editoractive', {
|
||||
'is_display': is_display,
|
||||
'postid': postid
|
||||
}, function(res) {
|
||||
selectVal == 'R' ? location.href = '/adm/content/reserve?list=' + postid : location.reload();
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
146
application/views/adm/fileman.php
Executable file
146
application/views/adm/fileman.php
Executable file
@@ -0,0 +1,146 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!--
|
||||
RoxyFileman - web based file manager. Ready to use with CKEditor, TinyMCE.
|
||||
Can be easily integrated with any other WYSIWYG editor or CMS.
|
||||
|
||||
Copyright (C) 2013, RoxyFileman.com - Lyubomir Arsov. All rights reserved.
|
||||
For licensing, see LICENSE.txt or http://RoxyFileman.com/license
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Contact: Lyubomir Arsov, liubo (at) web-lobby.com
|
||||
-->
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Roxy file manager</title>
|
||||
<link href="/assets/adm/fileman/css/jquery-ui-1.10.4.custom.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="/assets/adm/fileman/css/main.min.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/adm/fileman/js/jquery-ui-1.10.4.custom.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/adm/fileman/js/custom.js"></script>
|
||||
<script type="text/javascript" src="/assets/adm/fileman/js/main.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/adm/fileman/js/jquery-dateFormat.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<table cellpadding="0" cellspacing="0" id="wraper">
|
||||
<tr>
|
||||
<td valign="top" class="pnlDirs" id="dirActions">
|
||||
<div class="actions">
|
||||
<input type="button" id="btnAddDir" value="Create" title="Create new directory" onclick="addDir()" data-lang-v="CreateDir" data-lang-t="T_CreateDir" />
|
||||
<input type="button" id="btnRenameDir" value="Rename" title="Rename directory" onclick="renameDir()" data-lang-v="RenameDir" data-lang-t="T_RenameDir" />
|
||||
<input type="button" id="btnDeleteDir" value="Delete" title="Delete selected directory" onclick="deleteDir()" data-lang-v="DeleteDir" data-lang-t="T_DeleteDir" />
|
||||
</div>
|
||||
<div id="pnlLoadingDirs">
|
||||
<span>Loading directories...</span><br>
|
||||
<img src="images/loading.gif" title="Loading directory tree, please wait...">
|
||||
</div>
|
||||
<div class="scrollPane">
|
||||
<ul id="pnlDirList"></ul>
|
||||
</div>
|
||||
</td>
|
||||
<td valign="top" id="fileActions">
|
||||
<input type="hidden" id="hdViewType" value="list">
|
||||
<input type="hidden" id="hdOrder" value="asc">
|
||||
<div class="actions">
|
||||
<input type="button" id="btnAddFile" value="Add file" title="Upload files" onclick="addFileClick()" data-lang-v="AddFile" data-lang-t="T_AddFile" />
|
||||
<input type="button" id="btnPreviewFile" value="Preview" title="Preview selected file" onclick="previewFile()" data-lang-v="Preview" data-lang-t="T_Preview" />
|
||||
<input type="button" id="btnRenameFile" value="Rename" title="Rename selected file" onclick="renameFile()" data-lang-v="RenameFile" data-lang-t="T_RenameFile" />
|
||||
<input type="button" id="btnDownloadFile" value="Download" title="Download selected file" onclick="downloadFile()" data-lang-v="DownloadFile" data-lang-t="T_DownloadFile" />
|
||||
<input type="button" id="btnDeleteFile" value="Delete" title="Delete selected file" onclick="deleteFile()" data-lang-v="DeleteFile" data-lang-t="T_DeleteFile" />
|
||||
<input type="button" id="btnSelectFile" value="Select" title="Select highlighted file" onclick="setFile()" data-lang-v="SelectFile" data-lang-t="T_SelectFile" />
|
||||
<br>
|
||||
<span data-lang="OrderBy">Order by</span>:
|
||||
<select id="ddlOrder" onchange="sortFiles()">
|
||||
<option value="name" data-lang="Name_asc">↑ Name</option>
|
||||
<option value="size" data-lang="Size_asc">↑ Size</option>
|
||||
<option value="time" data-lang="Date_asc">↑ Date</option>
|
||||
<option value="name_desc" data-lang="Name_desc">↓ Name</option>
|
||||
<option value="size_desc" data-lang="Size_desc">↓ Size</option>
|
||||
<option value="time_desc" data-lang="Date_desc">↓ Date</option>
|
||||
</select>
|
||||
<input type="button" id="btnListView" class="btnView" value=" " title="List view" onclick="switchView('list')" data-lang-t="T_ListView" />
|
||||
<input type="button" id="btnThumbView" class="btnView" value=" " title="Thumbnails view" onclick="switchView('thumb')" data-lang-t="T_ThumbsView" />
|
||||
<input type="text" id="txtSearch" onkeyup="filterFiles()" onchange="filterFiles()" />
|
||||
</div>
|
||||
<div class="pnlFiles">
|
||||
<div class="scrollPane">
|
||||
<div id="pnlLoading">
|
||||
<span data-lang="LoadingFiles">Loading files...</span><br>
|
||||
<img src="images/loading.gif" title="Loading files, please wait...">
|
||||
</div>
|
||||
<div id="pnlEmptyDir" data-lang="DirIsEmpty">
|
||||
This folder is empty
|
||||
</div>
|
||||
<div id="pnlSearchNoFiles" data-lang="NoFilesFound">
|
||||
No files found
|
||||
</div>
|
||||
<ul id="pnlFileList"></ul>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bottomLine"> CROSSMAP.CO.KR
|
||||
</td>
|
||||
<td class="bottomLine">
|
||||
<div id="pnlStatus">Status bar</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- Forms and other components -->
|
||||
<iframe name="frmUploadFile" width="0" height="0" style="display:none;border:0;"></iframe>
|
||||
<div id="dlgAddFile">
|
||||
<form name="addfile" id="frmUpload" method="post" target="frmUploadFile" enctype="multipart/form-data">
|
||||
<input type="hidden" name="d" id="hdDir" />
|
||||
<div class="form"><br />
|
||||
<input type="file" name="files[]" id="fileUploads" onchange="listUploadFiles(this.files)" multiple="multiple" />
|
||||
<div id="uploadResult"></div>
|
||||
<div class="uploadFilesList">
|
||||
<div id="uploadFilesList"></div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div id="menuFile" class="contextMenu">
|
||||
<a href="#" onclick="setFile()" data-lang="SelectFile" id="mnuSelectFile">Select</a><hr>
|
||||
<a href="#" onclick="previewFile()" data-lang="Preview" id="mnuPreview">Preview</a><hr>
|
||||
<a href="#" onclick="downloadFile()" data-lang="DownloadFile" id="mnuDownload">Download</a><hr>
|
||||
<a href="#" onclick="return pasteToFiles(event, this)" data-lang="Paste" class="paste pale" id="mnuFilePaste">Paste</a><hr>
|
||||
<a href="#" onclick="cutFile()" data-lang="Cut" id="mnuFileCut">Cut</a><hr>
|
||||
<a href="#" onclick="copyFile()" data-lang="Copy" id="mnuFileCopy">Copy</a><hr>
|
||||
<a href="#" onclick="renameFile()" data-lang="RenameFile" id="mnuRenameFile">Rename</a><hr>
|
||||
<a href="#" onclick="deleteFile()" data-lang="DeleteFile" id="mnuDeleteFile">Delete</a><!-- hr>
|
||||
<a href="#" onclick="fileProperties()" id="mnuProp">Properties</a -->
|
||||
</div>
|
||||
<div id="menuDir" class="contextMenu">
|
||||
<a href="#" onclick="downloadDir()" data-lang="Download" id="mnuDownloadDir">Download</a><hr>
|
||||
<a href="#" onclick="addDir()" data-lang="T_CreateDir" id="mnuCreateDir">Create new</a><hr>
|
||||
<a href="#" onclick="return pasteToDirs(event, this)" data-lang="Paste" class="paste pale" id="mnuDirPaste">Paste</a><hr>
|
||||
<a href="#" onclick="cutDir()" data-lang="Cut" id="mnuDirCut">Cut</a><hr>
|
||||
<a href="#" onclick="copyDir()" data-lang="Copy" id="mnuDirCopy">Copy</a><hr>
|
||||
<a href="#" onclick="renameDir()" data-lang="RenameDir" id="mnuRenameDir">Rename</a><hr>
|
||||
<a href="#" onclick="deleteDir()" data-lang="DeleteDir" id="mnuDeleteDir">Delete</a>
|
||||
</div>
|
||||
<div id="pnlRenameFile" class="dialog">
|
||||
<span class="name"></span><br>
|
||||
<input type="text" id="txtFileName">
|
||||
</div>
|
||||
<div id="pnlDirName" class="dialog">
|
||||
<span class="name"></span><br>
|
||||
<input type="text" id="txtDirName">
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
37
application/views/adm/layout/footer.php
Executable file
37
application/views/adm/layout/footer.php
Executable file
@@ -0,0 +1,37 @@
|
||||
<footer class="footer">
|
||||
© 2020 <a>crossmap.co.kr</a>
|
||||
<span class="btn_top"><a href="#">Top <i class="fa fa-arrow-circle-o-up fa-lg"></i></a></span>
|
||||
</footer>
|
||||
<form class="cm-hidden-form" method="post" action="/admin/life/life_list/5" target="_blank" style="display:none">
|
||||
<input type="hidden" name="idx">
|
||||
<input type="hidden" name="mode">
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
$(function() {
|
||||
$('#fsearch').validate({
|
||||
rules: {
|
||||
skeyword: {
|
||||
required: true,
|
||||
minlength: 2
|
||||
}
|
||||
}
|
||||
});
|
||||
$('.cm-title-link').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
var link = $(this);
|
||||
var idx = link.parent().parent().find('td:first').text();
|
||||
var frm = $('.cm-hidden-form').get(0)
|
||||
frm.action = '/adm/content/write/' + idx;
|
||||
frm.submit();
|
||||
})
|
||||
|
||||
$('.cm-main-img').on('change', function() {
|
||||
$(this).next().attr('src', URL.createObjectURL(this.files[0])).show();
|
||||
})
|
||||
changemenu('<?php echo $this->uri->segment(2) ? $this->uri->segment(2) : 'content'?>');
|
||||
$('select').select2();
|
||||
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
26
application/views/adm/layout/head.php
Executable file
26
application/views/adm/layout/head.php
Executable file
@@ -0,0 +1,26 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Crossmap Admin</title>
|
||||
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/assets/adm/css/admin.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/assets/adm/css/nadm.css" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" />
|
||||
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet" />
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/earlyaccess/nanumgothic.css" />
|
||||
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/adm/js/jquery.validate.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/adm/js/jquery.validate.extension.js"></script>
|
||||
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"
|
||||
integrity="sha256-4iQZ6BVL4qNKlQ27TExEhBN1HFPvAvAMbFavKKosSWQ=" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>
|
||||
<script type="text/javascript" src="/assets/adm/js/common.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/js/select2.min.js"></script>
|
||||
22
application/views/adm/layout/header.php
Executable file
22
application/views/adm/layout/header.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<div class="row header">
|
||||
<div class="navbar-minimalize"><a href="#" class="btn btn-primary btn-mini"><i class="fa fa-bars"></i></a></div>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
$(document).on('click', '.navbar-minimalize>a', function() {
|
||||
if ($('.nav-default').is(':visible') === true) {
|
||||
$('.nav-default').hide();
|
||||
$('.content_wrapper').css('margin-left', '0px');
|
||||
} else {
|
||||
$('.nav-default').show();
|
||||
$('.content_wrapper').css('margin-left', '220px');
|
||||
}
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
<ul class="nav-top">
|
||||
<li>
|
||||
<a href="/" target="_blank">홈페이지로 이동</a>
|
||||
</li>
|
||||
<li><a href="/admin/login/logout_proc"><i class="fa fa-sign-out"></i> Log out</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
103
application/views/adm/layout/nav.php
Executable file
103
application/views/adm/layout/nav.php
Executable file
@@ -0,0 +1,103 @@
|
||||
<nav class="nav-default">
|
||||
<h1 class="nav-header"><a href="/adm"><img src="/assets/adm/images/logo.svg" height="25"></a></h1>
|
||||
<ul class="nav">
|
||||
<li class="nav-first-level nav_menuname_content ">
|
||||
<a data-toggle="menu_collapse" href="#collapsecontent" aria-expanded="false" aria-controls="menu_collapsecontent" onClick="changemenu('content');" class="collapsed">
|
||||
<i class="fa fa-pencil-square-o"></i>
|
||||
<span class="nav-label">기본관리</span>
|
||||
<i class="fa fa-angle-left menu-arrow-icon content"></i>
|
||||
</a>
|
||||
<ul class="nav nav-second-level menu_collapse collapse " id="menu_collapsecontent">
|
||||
<li><a href="/adm/content">컨텐츠관리</a></li>
|
||||
<li><a href="/adm/content/category">카테고리관리</a></li>
|
||||
<li><a href="/adm/content/write">컨텐츠등록</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-first-level nav_menuname_news ">
|
||||
<a data-toggle="menu_collapse" href="#collapsenews" aria-expanded="false" aria-controls="menu_collapsenews" onClick="changemenu('news');" class="collapsed">
|
||||
<i class="fa fa-copy"></i>
|
||||
<span class="nav-label">뉴스관리</span>
|
||||
<i class="fa fa-angle-left menu-arrow-icon news"></i>
|
||||
</a>
|
||||
<ul class="nav nav-second-level menu_collapse collapse " id="menu_collapsenews">
|
||||
<li><a href="/adm/news">기사관리</a></li>
|
||||
<li><a href="/adm/news/category">카테고리관리</a></li>
|
||||
<li><a href="/adm/news/company">제휴관리</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-first-level nav_menuname_pageset ">
|
||||
<a data-toggle="menu_collapse" href="#collapsepageset" aria-expanded="false" aria-controls="menu_collapsepageset" onClick="changemenu('pageset');" class="collapsed">
|
||||
<i class="fa fa-laptop"></i>
|
||||
<span class="nav-label">페이지설정</span>
|
||||
<i class="fa fa-angle-left menu-arrow-icon pageset"></i>
|
||||
</a>
|
||||
<ul class="nav nav-second-level menu_collapse collapse " id="menu_collapsepageset" style="height:0;">
|
||||
<li>
|
||||
<a class="collapsed">
|
||||
<i class="fa fa-angle-right"></i>
|
||||
<span class="nav-label">메인</span>
|
||||
</a>
|
||||
<ul class="nav nav-third-level collapse in" aria-expanded="true">
|
||||
<li><a href="/adm/setmain/homenews">상단뉴스</a></li>
|
||||
<li><a href="/adm/setmain/dailyqt">데일리큐티</a></li>
|
||||
<li><a href="/adm/setmain/todayword">오늘의말씀</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="collapsed">
|
||||
<i class="fa fa-angle-right"></i>
|
||||
<span class="nav-label">은혜충전</span>
|
||||
</a>
|
||||
<ul class="nav nav-third-level collapse in" aria-expanded="true">
|
||||
<li><a href="/adm/setgrace/hometop">홈 - 상단</a></li>
|
||||
<!-- <li><a href="/adm/setgrace/homekeyword">홈 - 크맵키워드</a></li> -->
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a class="collapsed">
|
||||
<i class="fa fa-angle-right"></i>
|
||||
<span class="nav-label">크맵TV</span>
|
||||
</a>
|
||||
<ul class="nav nav-third-level collapse in" aria-expanded="true">
|
||||
<li><a href="/adm/setcmtv/homehot">홈 - 최신HOT영상</a></li>
|
||||
<li><a href="/adm/setcmtv/categorylatest">카테고리 - 최신영상</a></li>
|
||||
<li><a href="/adm/setcmtv/channellatest">채널홈 - 상단영상</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-first-level nav_menuname_member ">
|
||||
<a data-toggle="menu_collapse" href="#collapsemember" aria-expanded="false" aria-controls="menu_collapsemember" onClick="changemenu('member');" class="collapsed">
|
||||
<i class="fa fa-users"></i>
|
||||
<span class="nav-label">회원관리</span>
|
||||
<i class="fa fa-angle-left menu-arrow-icon member"></i>
|
||||
</a>
|
||||
<ul class="nav nav-second-level menu_collapse collapse " id="menu_collapsemember" style="height:0;">
|
||||
<li><a href="/adm/member">사용자관리</a></li>
|
||||
<li><a href="/adm/member/editor">에디터관리</a></li>
|
||||
<li><a href="/adm/member/comment">코멘트관리</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-first-level nav_menuname_dataman ">
|
||||
<a data-toggle="menu_collapse" href="#collapsedataman" aria-expanded="false" aria-controls="menu_collapsedataman" onClick="changemenu('dataman');" class="collapsed">
|
||||
<i class="fa fa-database"></i>
|
||||
<span class="nav-label">데이터관리</span>
|
||||
<i class="fa fa-angle-left menu-arrow-icon dataman"></i>
|
||||
</a>
|
||||
<ul class="nav nav-second-level menu_collapse collapse " id="menu_collapsedataman" style="height:0;">
|
||||
<li><a href="/adm/dataman/church">교회정보관리</a></li>
|
||||
<li><a href="/adm/dataman/ytchannel">YT채널관리</a></li>
|
||||
<li><a href="/adm/dataman/podbbang">팟빵관리</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="nav-first-level nav_menuname_dataman ">
|
||||
<a href="/admin/life/life_list/5" aria-expanded="false" class="collapsed">
|
||||
<i class="fa fa-gears"></i>
|
||||
<span class="nav-label">기존 관리자</span>
|
||||
<i class="fa fa-angle-left menu-arrow-icon dataman"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
123
application/views/adm/member.php
Executable file
123
application/views/adm/member.php
Executable file
@@ -0,0 +1,123 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">회원관리 > 사용자관리</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form action="" method="get" name="flist" id="flist">
|
||||
<input type="hidden" name="list">
|
||||
<input type="hidden" name="acttype">
|
||||
<div class="box-table-header cm-bottom-control">
|
||||
<div class="col-md-6 cm-top-pagination"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
<div class="input-group" style="display:inline-block;width:350px;vertical-align: middle;">
|
||||
<input type="text" class="form-control" name="term" value="<?php echo param('term')?>" placeholder="검색어를 입력하세요" style="display:inline-block;width:300px;"/>
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-sm" type="submit">검색!</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<button type="button" class="btn btn-outline btn-default btn-sm btn-list-delete btn-list-selected disabled" data-list-delete-url="/adm/member/delete?">선택삭제</button>
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" class="btn btn-outline btn-default btn-sm">전체목록</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="row">전체 : <?php echo $table['total']?>건</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>아이디</th>
|
||||
<th>이름</th>
|
||||
<th>이메일</th>
|
||||
<th>닉네임</th>
|
||||
<th>생일</th>
|
||||
<th>전화</th>
|
||||
<th>상태</th>
|
||||
<th>등록일</th>
|
||||
<th><input type="checkbox" name="chkall" id="chkall" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><?php foreach ($table['rows'] as $r) {?>
|
||||
<tr>
|
||||
<td><?php echo $r->idx?></td>
|
||||
<td><img src="<?php echo imgSrc($r->member_img)?>" height="15" style="float:left;margin:5px"><?php echo $r->member_id?></td>
|
||||
<td><?php echo $r->member_name?></td>
|
||||
<td><?php echo $r->member_email?></td>
|
||||
<td><?php echo $r->member_nickname?></td>
|
||||
<td><?php echo $r->member_birth?></td>
|
||||
<td><?php echo $r->member_mobile?></td>
|
||||
<td>
|
||||
<select class="cm-display-select" data-width="70">
|
||||
<option value="1" <?php if($r->member_status == 1) echo ' selected';?>>사용</option>
|
||||
<option value="2" <?php if($r->member_status == 2) echo ' selected';?>>탈퇴</option>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
<td><?php echo $r->reg_date?></td>
|
||||
<td><input type="checkbox" name="chk[]" class="list-chkbox" value="<?php echo $r->idx?>" /></td>
|
||||
</tr> <?php }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="box-info row cm-bottom-control">
|
||||
<div class="col-md-6"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" 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="/adm/member/delete?">선택삭제</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script>
|
||||
$(function() {
|
||||
$('.cm-display-select').on('change', function() {
|
||||
if (confirm('회원 상태를 ' + this.options[this.selectedIndex].text + '로 변경할까요?')) {
|
||||
var postid = $(this).parent().parent().find('td:first').text();
|
||||
var selectVal = this.value;
|
||||
var is_display = selectVal == 'R' ? 'N' : selectVal;
|
||||
$.post('/adm/member/active', {
|
||||
'is_display': is_display,
|
||||
'postid': postid
|
||||
}, function(res) {
|
||||
selectVal == 'R' ? location.href = '/adm/content/reserve?list=' + postid : location.reload();
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
120
application/views/adm/membereditoredit.php
Executable file
120
application/views/adm/membereditoredit.php
Executable file
@@ -0,0 +1,120 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">회원관리 > 에디터관리 > 등록</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table" style="overflow:visible">
|
||||
<form method="post" action="" enctype="multipart/form-data">
|
||||
<input type="hidden" name="contentId" value="<?php if(isset($post)) echo $post->idx?>">
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<th>아이디</th>
|
||||
<td>
|
||||
<input type="text" name="partner_id" class="form-control" value="<?php if(isset($post)) echo $post->partner_id?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>이름</th>
|
||||
<td>
|
||||
<input type="text" name="partner_real_name" class="form-control" value="<?php if(isset($post)) echo convertEmoji($post->partner_real_name)?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>채널명</th>
|
||||
<td>
|
||||
<input type="text" name="partner_name" class="form-control" value="<?php if(isset($post)) echo convertEmoji($post->partner_name)?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>설명</th>
|
||||
<td>
|
||||
<input type="text" name="partner_intro" class="form-control" value="<?php if(isset($post)) echo convertEmoji($post->partner_intro)?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>홈페이지</th>
|
||||
<td>
|
||||
<input type="text" name="partner_homepage" class="form-control" value="<?php if(isset($post)) echo $post->partner_homepage?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>아이콘</th>
|
||||
<td>
|
||||
<input type="hidden" name="partner_img" value="<?php if(isset($post)) echo $post->partner_img?>">
|
||||
<input type="file" class="cm-main-img" name="uploadfile">
|
||||
<img src="<?php if(isset($post)) echo imgSrc($post->partner_img)?>" width="200"
|
||||
style="margin-top:5px;<?php if(isset($post)) echo $post ? '':'display:none;'?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>메인이미지</th>
|
||||
<td>
|
||||
<input type="hidden" name="main_img" value="<?php if(isset($post)) echo $post->main_img?>">
|
||||
<input type="file" class="cm-main-img" name="uploadfile2">
|
||||
<img src="<?php if(isset($post)) echo imgSrc($post->main_img)?>"
|
||||
style="max-width:800px;margin-top:5px;<?php if(isset($post)) echo $post ? '':'display:none;'?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>활성/비활성</th>
|
||||
<td>
|
||||
<select name="is_del" data-width="80">
|
||||
<option value="N" <?php if(isset($post) && $post->is_del == 'N') echo ' selected';?>>활성</option>
|
||||
<option value="Y" <?php if(isset($post) && $post->is_del == 'Y') echo ' selected';?>>비활성</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center">
|
||||
<a class="btn btn-danger cm-contentedit-cancel">취소</a>
|
||||
<button type="submit" class="btn btn-success">저장</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script>
|
||||
var contentEdited = false;
|
||||
$(function() {
|
||||
$('input,select').on('change', function() {
|
||||
contentEdited = true;
|
||||
})
|
||||
|
||||
$('.cm-contentedit-cancel').on('click', function() {
|
||||
if (contentEdited) {
|
||||
if (confirm('정말로 취소하시겠습니까?')) {
|
||||
location.href = '/adm/member/editor'
|
||||
}
|
||||
} else location.href = '/adm/member/editor';
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
258
application/views/adm/modal/cmtv.php
Executable file
258
application/views/adm/modal/cmtv.php
Executable file
@@ -0,0 +1,258 @@
|
||||
<!-- common -->
|
||||
<div id="loginModal" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Sign In</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-warning">
|
||||
<p>Your session has expired, please use the form below to sign back in!</p>
|
||||
</div>
|
||||
<div id="loginError" class='alert alert-danger'>The Username of Password entered is incorrect.
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" name="username" value="" id="username" class="form-control"
|
||||
placeholder="Username" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password">Password:</label>
|
||||
<input type="password" name="password" value="" id="password" class="form-control"
|
||||
placeholder="Password" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a id="ajaxLoginbtn" class="btn btn-primary">Sign In</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- grace content list -->
|
||||
<div class="modal fade cm-submenuchange-modal" tabindex="-1" role="dialog" aria-labelledby="cm-submenuchange-modal"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content modal-lg">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">컨텐츠 서브메뉴 변경</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="row">
|
||||
<div class="form-group col-md-10">
|
||||
<label class="col-form-label col-md-2">서브메뉴:</label>
|
||||
<select class="btn btn-default col-md-4 cm-subchg-category-select">
|
||||
<option value="">서브메뉴</option>
|
||||
<?php foreach ($cmtvCategories as $category) {echo '<option value="' . $category->idx . '">' . $category->category_name . '</option>';}?>
|
||||
</select>
|
||||
<label class="col-form-label col-md-2">에디터:</label>
|
||||
<select class="btn btn-default col-md-4 cm-subchg-editor-select">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach ($cmtvEditors as $editor) {echo '<option value="' . $editor->editorId . '">' . $editor->editorName . '</option>';}?>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary cm-submenuchange-save">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- grace category -->
|
||||
<div class="modal fade cm-submenu-modal" tabindex="-1" role="dialog" aria-labelledby="cm-submenu-modal"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">서브메뉴 추가</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
<input type="hidden" name="id" class="cm-submenu-cateogryid">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">카테고리명:</label>
|
||||
<input type="text" class="form-control cm-submenu-categoryname">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">출력순서:</label>
|
||||
<input type="number" class="form-control cm-submenu-dporder">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary cm-submenu-save">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade cm-editdp-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
|
||||
<div class="modal-body">
|
||||
|
||||
|
||||
<!-- Nav tabs -->
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li role="presentation" class="active"><a href=".cm-set-content-dptime" aria-controls="home"
|
||||
role="tab" data-toggle="tab">예약관리</a></li>
|
||||
<li role="presentation"><a href=".cm-set-content-display" aria-controls="profile" role="tab"
|
||||
data-toggle="tab" data-name="cmtv">송출관리</a></li>
|
||||
<li role="presentation"><a href=".cm-reg-content-cmtv" aria-controls="profile" role="tab"
|
||||
data-toggle="tab">크맵TV 등록</a></li>
|
||||
</ul>
|
||||
|
||||
<!-- Tab panes -->
|
||||
<div class="tab-content cm-tab-content">
|
||||
<div role="tabpanel" class="tab-pane active cm-set-content-dptime">
|
||||
<form action="/adm/support/upload" method="post" enctype="multipart/form-data">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">컨텐츠:</label>
|
||||
<input type="text" class="form-control cm-set-dptime-content-title" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">예약시간:</label>
|
||||
<input type="text" class="form-control cm-set-dptime">
|
||||
</div>
|
||||
</form>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane cm-set-content-display">
|
||||
<form action="/adm/content/upload" method="post" enctype="multipart/form-data">
|
||||
<div class="form-group row">
|
||||
<label class="checkbox-inline">
|
||||
<input type="radio" value="home" class="cm-set-content-dp-part"
|
||||
name="dp_part" checked> 홈
|
||||
</label>
|
||||
<label class="checkbox-inline">
|
||||
<input type="radio" value="submenu-top" class="cm-set-content-dp-part"
|
||||
name="dp_part" checked> 서브메뉴 상단
|
||||
</label>
|
||||
<label class="checkbox-inline">
|
||||
<input type="radio" value="editor-home-top" class="cm-set-content-dp-part"
|
||||
name="dp_part"> 에디터 홈상단
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group row cm-config-display cm-config-add">
|
||||
<div style="margin-left:15px">
|
||||
<i class="glyphicon glyphicon-edit cm-saved-config-dp-edit-icon"></i>
|
||||
<select class="btn btn-default cm-saved-config-dp-edit-btn">
|
||||
<option value="">선택</option>
|
||||
<option value="edit">수정</option>
|
||||
<option value="delete">삭제</option>
|
||||
</select>
|
||||
<input type="number" class="form-control cm-set-content-order">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input type="text" class="form-control cm-set-content-title-head" placeholder="말머리">
|
||||
</div>
|
||||
<div class="col-md-6" style="padding:0">
|
||||
<input type="text" class="form-control cm-set-content-title" placeholder="제목">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div><img src="" class="cm-uploaded-img"></div>
|
||||
<input type="file" name="userfile" class="cm-upload-file">
|
||||
</div>
|
||||
</form>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane cm-reg-content-cmtv">
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade cm-displayhome-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">홈페이지 구성요소 관리</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">표시 제목:</label>
|
||||
<input type="text" class="form-control cm-submenu-categoryname">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">이미지:</label>
|
||||
<input type="text" class="form-control cm-submenu-dporder">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">컨텐츠 검색:</label>
|
||||
<input type="button" class="btn btn-info">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade cm-displaysection-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">홈페이지 구성요소 관리</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">표시 제목:</label>
|
||||
<input type="text" class="form-control cm-submenu-categoryname">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">이미지:</label>
|
||||
<input type="text" class="form-control cm-submenu-dporder">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">컨텐츠 검색:</label>
|
||||
<input type="button" class="btn btn-info">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
258
application/views/adm/modal/grace.php
Executable file
258
application/views/adm/modal/grace.php
Executable file
@@ -0,0 +1,258 @@
|
||||
<!-- common -->
|
||||
<div id="loginModal" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Sign In</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-warning">
|
||||
<p>Your session has expired, please use the form below to sign back in!</p>
|
||||
</div>
|
||||
<div id="loginError" class='alert alert-danger'>The Username of Password entered is incorrect.
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" name="username" value="" id="username" class="form-control"
|
||||
placeholder="Username" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password">Password:</label>
|
||||
<input type="password" name="password" value="" id="password" class="form-control"
|
||||
placeholder="Password" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a id="ajaxLoginbtn" class="btn btn-primary">Sign In</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- grace content list -->
|
||||
<div class="modal fade cm-submenuchange-modal" tabindex="-1" role="dialog" aria-labelledby="cm-submenuchange-modal"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content modal-lg">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">컨텐츠 서브메뉴 변경</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="row">
|
||||
<div class="form-group col-md-10">
|
||||
<label class="col-form-label col-md-2">서브메뉴:</label>
|
||||
<select class="btn btn-default col-md-4 cm-subchg-category-select">
|
||||
<option value="">서브메뉴</option>
|
||||
<?php foreach ($graceCategories as $category) {echo '<option value="' . $category->idx . '">' . $category->category_name . '</option>';}?>
|
||||
</select>
|
||||
<label class="col-form-label col-md-2">에디터:</label>
|
||||
<select class="btn btn-default col-md-4 cm-subchg-editor-select">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach ($graceEditors as $editor) {echo '<option value="' . $editor->editorId . '">' . $editor->editorName . '</option>';}?>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary cm-submenuchange-save">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- grace category -->
|
||||
<div class="modal fade cm-submenu-modal" tabindex="-1" role="dialog" aria-labelledby="cm-submenu-modal"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">서브메뉴 추가</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
<input type="hidden" name="id" class="cm-submenu-cateogryid">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">카테고리명:</label>
|
||||
<input type="text" class="form-control cm-submenu-categoryname">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">출력순서:</label>
|
||||
<input type="number" class="form-control cm-submenu-dporder">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary cm-submenu-save">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade cm-editdp-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
|
||||
<div class="modal-body">
|
||||
|
||||
|
||||
<!-- Nav tabs -->
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li role="presentation" class="active"><a href=".cm-set-content-dptime" aria-controls="home"
|
||||
role="tab" data-toggle="tab">예약관리</a></li>
|
||||
<li role="presentation"><a href=".cm-set-content-display" aria-controls="profile" role="tab"
|
||||
data-toggle="tab" data-name="grace">송출관리</a></li>
|
||||
<li role="presentation"><a href=".cm-reg-content-grace" aria-controls="profile" role="tab"
|
||||
data-toggle="tab">은혜충전 등록</a></li>
|
||||
</ul>
|
||||
|
||||
<!-- Tab panes -->
|
||||
<div class="tab-content cm-tab-content">
|
||||
<div role="tabpanel" class="tab-pane active cm-set-content-dptime">
|
||||
<form action="/adm/support/upload" method="post" enctype="multipart/form-data">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">컨텐츠:</label>
|
||||
<input type="text" class="form-control cm-set-dptime-content-title" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">예약시간:</label>
|
||||
<input type="text" class="form-control cm-set-dptime">
|
||||
</div>
|
||||
</form>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane cm-set-content-display">
|
||||
<form action="/adm/content/upload" method="post" enctype="multipart/form-data">
|
||||
<div class="form-group row">
|
||||
<label class="checkbox-inline">
|
||||
<input type="radio" value="home" class="cm-set-content-dp-part"
|
||||
name="dp_part" checked> 홈
|
||||
</label>
|
||||
<label class="checkbox-inline">
|
||||
<input type="radio" value="submenu-top" class="cm-set-content-dp-part"
|
||||
name="dp_part" checked> 서브메뉴 상단
|
||||
</label>
|
||||
<label class="checkbox-inline">
|
||||
<input type="radio" value="home-dailyqt" class="cm-set-content-dp-part"
|
||||
name="dp_part"> 데일리QT
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group row cm-config-display cm-config-add">
|
||||
<div style="margin-left:15px">
|
||||
<i class="glyphicon glyphicon-edit cm-saved-config-dp-edit-icon"></i>
|
||||
<select class="btn btn-default cm-saved-config-dp-edit-btn">
|
||||
<option value="">선택</option>
|
||||
<option value="edit">수정</option>
|
||||
<option value="delete">삭제</option>
|
||||
</select>
|
||||
<input type="number" class="form-control cm-set-content-order">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input type="text" class="form-control cm-set-content-title-head" placeholder="말머리">
|
||||
</div>
|
||||
<div class="col-md-6" style="padding:0">
|
||||
<input type="text" class="form-control cm-set-content-title" placeholder="제목">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div><img src="" class="cm-uploaded-img"></div>
|
||||
<input type="file" name="userfile" class="cm-upload-file">
|
||||
</div>
|
||||
</form>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane cm-reg-content-grace">
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade cm-displayhome-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">홈페이지 구성요소 관리</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">표시 제목:</label>
|
||||
<input type="text" class="form-control cm-submenu-categoryname">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">이미지:</label>
|
||||
<input type="text" class="form-control cm-submenu-dporder">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">컨텐츠 검색:</label>
|
||||
<input type="button" class="btn btn-info">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade cm-displaysection-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">홈페이지 구성요소 관리</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">표시 제목:</label>
|
||||
<input type="text" class="form-control cm-submenu-categoryname">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">이미지:</label>
|
||||
<input type="text" class="form-control cm-submenu-dporder">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">컨텐츠 검색:</label>
|
||||
<input type="button" class="btn btn-info">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
497
application/views/adm/modal/life.php
Executable file
497
application/views/adm/modal/life.php
Executable file
@@ -0,0 +1,497 @@
|
||||
<!-- common -->
|
||||
<div id="loginModal" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Sign In</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="alert alert-warning">
|
||||
<p>Your session has expired, please use the form below to sign back in!</p>
|
||||
</div>
|
||||
<div id="loginError" class='alert alert-danger'>The Username of Password entered is incorrect.
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" name="username" value="" id="username" class="form-control"
|
||||
placeholder="Username" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password">Password:</label>
|
||||
<input type="password" name="password" value="" id="password" class="form-control"
|
||||
placeholder="Password" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a id="ajaxLoginbtn" class="btn btn-primary">Sign In</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- grace content list -->
|
||||
<div class="modal fade cm-submenuchange-modal" tabindex="-1" role="dialog" aria-labelledby="cm-submenuchange-modal"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content modal-lg">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">컨텐츠 서브메뉴 변경</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="row">
|
||||
<div class="form-group col-md-10">
|
||||
<label class="col-form-label col-md-2">서브메뉴:</label>
|
||||
<select class="btn btn-default col-md-4 cm-subchg-category-select">
|
||||
<option value="">서브메뉴</option>
|
||||
<?php foreach ($lifeCategories as $category) {echo '<option value="' . $category->idx . '">' . $category->category_name . '</option>';}?>
|
||||
</select>
|
||||
<label class="col-form-label col-md-2">에디터:</label>
|
||||
<select class="btn btn-default col-md-4 cm-subchg-editor-select">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach ($graceEditors as $editor) {echo '<option value="' . $editor->editorId . '">' . $editor->editorName . '</option>';}?>
|
||||
</select>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary cm-submenuchange-save">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- grace category -->
|
||||
<div class="modal fade cm-submenu-modal" tabindex="-1" role="dialog" aria-labelledby="cm-submenu-modal"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">서브메뉴 추가</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
<input type="hidden" name="id" class="cm-submenu-cateogryid">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">카테고리명:</label>
|
||||
<input type="text" class="form-control cm-submenu-categoryname">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">출력순서:</label>
|
||||
<input type="number" class="form-control cm-submenu-dporder">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary cm-submenu-save">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade cm-editdp-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
|
||||
<div class="modal-body">
|
||||
|
||||
|
||||
<!-- Nav tabs -->
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li role="presentation" class="active"><a href=".cm-set-content-dptime" aria-controls="home"
|
||||
role="tab" data-toggle="tab">예약관리</a></li>
|
||||
<li role="presentation"><a href=".cm-set-content-display" aria-controls="profile" role="tab"
|
||||
data-toggle="tab" data-name="grace">송출관리</a></li>
|
||||
<li role="presentation"><a href=".cm-reg-content-grace" aria-controls="profile" role="tab"
|
||||
data-toggle="tab">은혜충전 등록</a></li>
|
||||
</ul>
|
||||
|
||||
<!-- Tab panes -->
|
||||
<div class="tab-content cm-tab-content">
|
||||
<div role="tabpanel" class="tab-pane active cm-set-content-dptime">
|
||||
<form action="/adm/support/upload" method="post" enctype="multipart/form-data">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">컨텐츠:</label>
|
||||
<input type="text" class="form-control cm-set-dptime-content-title" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">예약시간:</label>
|
||||
<input type="text" class="form-control cm-set-dptime">
|
||||
</div>
|
||||
</form>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane cm-set-content-display">
|
||||
<form action="/adm/content/upload" method="post" enctype="multipart/form-data">
|
||||
<div class="form-group row">
|
||||
<label class="checkbox-inline">
|
||||
<input type="radio" value="home" class="cm-set-content-dp-part"
|
||||
name="dp_part" checked> 홈
|
||||
</label>
|
||||
<label class="checkbox-inline">
|
||||
<input type="radio" value="submenu-top" class="cm-set-content-dp-part"
|
||||
name="dp_part" checked> 서브메뉴 상단
|
||||
</label>
|
||||
<label class="checkbox-inline">
|
||||
<input type="radio" value="editor-home-top" class="cm-set-content-dp-part"
|
||||
name="dp_part"> 에디터 홈상단
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group row cm-config-display cm-config-add">
|
||||
<div style="margin-left:15px">
|
||||
<i class="glyphicon glyphicon-edit cm-saved-config-dp-edit-icon"></i>
|
||||
<select class="btn btn-default cm-saved-config-dp-edit-btn">
|
||||
<option value="">선택</option>
|
||||
<option value="edit">수정</option>
|
||||
<option value="delete">삭제</option>
|
||||
</select>
|
||||
<input type="number" class="form-control cm-set-content-order">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input type="text" class="form-control cm-set-content-title-head" placeholder="말머리">
|
||||
</div>
|
||||
<div class="col-md-6" style="padding:0">
|
||||
<input type="text" class="form-control cm-set-content-title" placeholder="제목">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div><img src="" class="cm-uploaded-img"></div>
|
||||
<input type="file" name="userfile" class="cm-upload-file">
|
||||
</div>
|
||||
</form>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
<div role="tabpanel" class="tab-pane cm-reg-content-grace">
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade cm-displayhome-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">홈페이지 구성요소 관리</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">표시 제목:</label>
|
||||
<input type="text" class="form-control cm-submenu-categoryname">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">이미지:</label>
|
||||
<input type="text" class="form-control cm-submenu-dporder">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">컨텐츠 검색:</label>
|
||||
<input type="button" class="btn btn-info">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade cm-displaysection-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">홈페이지 구성요소 관리</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">표시 제목:</label>
|
||||
<input type="text" class="form-control cm-submenu-categoryname">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">이미지:</label>
|
||||
<input type="text" class="form-control cm-submenu-dporder">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label">컨텐츠 검색:</label>
|
||||
<input type="button" class="btn btn-info">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="modal fade cm-register-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">홈페이지 구성요소 관리</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="fw500">기능</th>
|
||||
<td class="tl">
|
||||
<input type="radio" name="life_type" value="1" checked=""> 일반라이프
|
||||
<input type="radio" name="life_type" value="2"> 포토라이프
|
||||
<input type="radio" name="life_type" value="3"> 동영상라이프
|
||||
<input type="radio" name="life_type" value="4"> 영상링크라이프
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="fw500">카테고리</th>
|
||||
<td class="tl">
|
||||
<select name="category1" id="category1" onchange="change_category(1, this.value)"
|
||||
class="type01">
|
||||
<option value="">선택</option>
|
||||
<option value="5">말씀과 묵상</option>
|
||||
<option value="8">감동</option>
|
||||
<option value="10">지식</option>
|
||||
<option value="11">오피니언</option>
|
||||
<option value="17">책</option>
|
||||
<option value="22">크맵TV</option>
|
||||
<option value="24">자료실</option>
|
||||
<option value="26">기도공감</option>
|
||||
<option value="28">은혜충전</option>
|
||||
<option value="29">라이프</option>
|
||||
<option value="30">말씀엽서</option>
|
||||
<option value="31">크맵북스</option>
|
||||
<option value="32">데일리QT</option>
|
||||
<option value="33">영어묵상</option>
|
||||
<option value="34">지식충전</option>
|
||||
<option value="35">grace-category</option>
|
||||
<option value="36">crossmaptv-category</option>
|
||||
<option value="37">알쓸신학</option>
|
||||
<option value="38">찬양</option>
|
||||
<option value="39">소셜</option>
|
||||
<option value="40">말씀/QT</option>
|
||||
<option value="41">TV방송</option>
|
||||
<option value="46">grace</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="fw500">채널</th>
|
||||
<td class="tl">
|
||||
<select name="category2" id="category2" onchange="change_category(2, this.value)"
|
||||
class="type01">
|
||||
<option value="">선택</option>
|
||||
<option value="3">말씀엽서</option>
|
||||
<option value="4">찬양콘티나눔</option>
|
||||
<option value="5">맘 울리는 이야기</option>
|
||||
<option value="6">운율이 있는 묵상</option>
|
||||
<option value="7">영어 한 컷</option>
|
||||
<option value="8">성경지식인</option>
|
||||
<option value="9">열방을 위한 기도</option>
|
||||
<option value="18">기도&STORY</option>
|
||||
<option value="21">해외통신</option>
|
||||
<option value="25">그림 묵상</option>
|
||||
<option value="26">책 읽는 크리스천</option>
|
||||
<option value="27">묵상의 바다</option>
|
||||
<option value="42">말씀영상</option>
|
||||
<option value="43">찬양영상</option>
|
||||
<option value="44">간증</option>
|
||||
<option value="45">토크쇼</option>
|
||||
<option value="46">순교자의 소리</option>
|
||||
<option value="47">Open door</option>
|
||||
<option value="48">데일리 QT</option>
|
||||
<option value="49">기도24365</option>
|
||||
<option value="50">모퉁이돌 선교회</option>
|
||||
<option value="52">C포스트</option>
|
||||
<option value="51">자료실</option>
|
||||
<option value="53">신앙과 아이</option>
|
||||
<option value="54">말씀엽서채널</option>
|
||||
<option value="55">도서채널</option>
|
||||
<option value="56">데일리QT채널</option>
|
||||
<option value="57">영어묵상채널</option>
|
||||
<option value="58">Q&A채널</option>
|
||||
<option value="59">찬양채널</option>
|
||||
<option value="60">소셜채널</option>
|
||||
<option value="61">말씀QT채널</option>
|
||||
<option value="62">TV방송채널</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="fw500">에디터</th>
|
||||
<td class="tl">
|
||||
<select name="category3" id="category3" class="type01">
|
||||
<option value="">선택</option>
|
||||
<option value="1">오여정</option>
|
||||
<option value="2">숨은진주</option>
|
||||
<option value="3">하늘소</option>
|
||||
<option value="5">주님찬양해</option>
|
||||
<option value="6">하늘시인</option>
|
||||
<option value="7">노네임드</option>
|
||||
<option value="8">Lizzy</option>
|
||||
<option value="9">최성윤</option>
|
||||
<option value="10">바울과야고보</option>
|
||||
<option value="21">아침을 여는 기도</option>
|
||||
<option value="24">해외통신</option>
|
||||
<option value="43">하니</option>
|
||||
<option value="44">책벌레</option>
|
||||
<option value="46">은혜</option>
|
||||
<option value="49">하늘바보</option>
|
||||
<option value="50">탕자 아버지</option>
|
||||
<option value="60">말씀영상</option>
|
||||
<option value="61">찬양영상</option>
|
||||
<option value="62">간증</option>
|
||||
<option value="63">토크쇼</option>
|
||||
<option value="64">사랑이</option>
|
||||
<option value="65">은혜의 한줄</option>
|
||||
<option value="66">겨울</option>
|
||||
<option value="67">은혜의 감동</option>
|
||||
<option value="68">좋은 하루</option>
|
||||
<option value="69">주님 사랑</option>
|
||||
<option value="70">순교자의 소리</option>
|
||||
<option value="71">오픈도어선교회</option>
|
||||
<option value="72">콰이엇타임</option>
|
||||
<option value="73">기도24365</option>
|
||||
<option value="74">모퉁이돌</option>
|
||||
<option value="76">자료실지기</option>
|
||||
<option value="77">오피니언</option>
|
||||
<option value="79">알쓸신학</option>
|
||||
<option value="80">제이어스</option>
|
||||
<option value="81">MARKERS WORSHIP</option>
|
||||
<option value="82">CCM Factory 찬양공방</option>
|
||||
<option value="83">양치기 소년</option>
|
||||
<option value="84">worthking</option>
|
||||
<option value="85">말씀의검</option>
|
||||
<option value="86">C채널설교</option>
|
||||
<option value="87">말씀노트</option>
|
||||
<option value="88">말씀충전</option>
|
||||
<option value="89">크리스천투데이</option>
|
||||
<option value="90">CTS기독교TV</option>
|
||||
<option value="91">극동방송</option>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="fw500">말머리</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="head_title" id="head_title" class="type02" value="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="fw500">제목</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="title" id="title" value="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="fw500">부제목</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="sub_title" id="sub_title" value="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="fw500">메인이미지</th>
|
||||
<td class="tl">
|
||||
|
||||
<input type="file" name="main_img" id="main_img" class="input00" size="100">
|
||||
|
||||
<input type="hidden" name="org_main_img" id="org_main_img" value="">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="fw500">태그</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="tag" id="tag" class="type01" value=""> 최대 5개까지 입력 가능(,로
|
||||
구분해주세요.)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="fw500">원본주소</th>
|
||||
<td class="tl">
|
||||
기사의 원본 주소를 입력하면 기사 클릭시 기사원본의 주소로 이동합니다.<br>
|
||||
<input type="text" name="org_url" id="org_url" class="input00" value="">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="fw500">youtube 주소</th>
|
||||
<td class="tl">
|
||||
https://youtu.be/<input type="text" name="video_url" id="video_url" class="input00"
|
||||
value="" style="width:200px"> (키만 넣어주세요.)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="fw500">본문</th>
|
||||
<td>
|
||||
<!-- <textarea id="content" name="content"></textarea> -->
|
||||
<textarea name="content" id="ir1" style="width:100%; height:500px;"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="fw500">조회수</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="hit_count" id="hit_count" class="type03" value="0"> (관리자가 임의적으로
|
||||
조회수를 설정할 수 있습니다.)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="fw500">좋아요수</th>
|
||||
<td class="tl">
|
||||
<input type="text" name="like_count" id="like_count" class="type03" value="0"> (관리자가
|
||||
임의적으로 좋아요수를 설정할 수 있으나 조회수 이상이 될 수는 없습니다)
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">닫기</button>
|
||||
<button type="button" class="btn btn-primary">저장</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
156
application/views/adm/news.php
Executable file
156
application/views/adm/news.php
Executable file
@@ -0,0 +1,156 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">뉴스관리 > 기사관리</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form action="" method="get" name="flist" id="flist">
|
||||
<input type="hidden" name="list">
|
||||
<input type="hidden" name="acttype">
|
||||
<div class="col-md-12" style="margin-bottom:10px;">
|
||||
<select name="category" class="form-control" data-width="200">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $category) { echo '<option value="'.$category->idx.'" '.(param('category') == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control" data-width="200">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach($graceEditors as $editor) { echo '<option value="'.$editor->editorId.'" '.(param('editor') == $editor->editorId ? 'selected':'').'>'. $editor->editorName. '</option>';}?>
|
||||
</select>
|
||||
<div class="input-group" style="display:inline-block;width:350px;vertical-align: middle;">
|
||||
<input type="text" class="form-control" name="term" value="<?php echo param('term')?>" placeholder="검색어를 입력하세요" style="display:inline-block;width:300px;" />
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-sm" type="submit">검색!</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<button type="button" class="btn btn-outline btn-default btn-sm btn-list-reserve btn-list-selected disabled"
|
||||
data-list-reserve-url="/adm/content/reserve?">선택예약</button>
|
||||
<button type="button" class="btn btn-outline btn-default btn-sm btn-list-delete btn-list-selected disabled" data-list-delete-url="/adm/news/delete?">선택삭제</button>
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" class="btn btn-outline btn-default btn-sm">전체목록</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="box-table-header cm-bottom-control">
|
||||
<div class="col-md-6 cm-top-pagination"><?php echo $paging ?></div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="row">전체 : <?php echo $table['total']?>건</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>카테고리</th>
|
||||
<th>제목</th>
|
||||
<th>이미지</th>
|
||||
<th>제휴처</th>
|
||||
<th>기자</th>
|
||||
<th>공개여부</th>
|
||||
<th>등록일</th>
|
||||
<th><input type="checkbox" name="chkall" id="chkall" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><?php foreach ($table['rows'] as $r) {?>
|
||||
<tr>
|
||||
<td><?php echo $r->idx?></td>
|
||||
<td><?php echo $r->category_code?></td>
|
||||
<td><?php echo $r->title. '<br />'. $r->sub_title?></td>
|
||||
<td><?php echo ($r->main_img ? '<img src="'.imgSrc($r->main_img). '" width="90"><br />':''). ($r->video_url ? '<iframe src="'.$r->video_url.'" frameborder="0"
|
||||
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowfullscreen></iframe>':'')?></td>
|
||||
<td><?php echo $r->press_name?></td>
|
||||
<td><?php echo $r->reporter_name?></td>
|
||||
<td><select <?php if(strtotime($r->display_date) > time()) echo 'disabled';?> class="cm-display-select" data-width="80">
|
||||
<?php if($r->is_del == 'Y') {?>
|
||||
<option value="D" selected>삭제</option>
|
||||
<option value="N">비공개</option>
|
||||
<option value="Y">공개</option>
|
||||
<?php } else {?>
|
||||
<option value="N" <?php if($r->is_display == 'N') echo ' selected';?>>비공개</option>
|
||||
<option value="Y" <?php if($r->is_display == 'Y') echo ' selected';?>>공개</option>
|
||||
<?php }?>
|
||||
</select></td>
|
||||
<td><?php echo $r->reg_date?></td>
|
||||
<td><input type="checkbox" name="chk[]" class="list-chkbox" value="<?php echo $r->idx?>" /></td>
|
||||
</tr> <?php }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="box-info row cm-bottom-control">
|
||||
<div class="col-md-6"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
<div class="pull-right">
|
||||
<form action="" method="get">
|
||||
<select name="category" class="form-control" style="width:100px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $category) { echo '<option value="'.$category->idx.'" '.(param('category') == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control" style="width:100px">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach($graceEditors as $editor) { echo '<option value="'.$editor->editorId.'" '.(param('editor') == $editor->editorId ? 'selected':'').'>'. $editor->editorName. '</option>';}?>
|
||||
</select>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" name="term" value="<?php echo param('term')?>" placeholder="검색어를 입력하세요" />
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-sm" type="submit">검색!</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" 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="/adm/news/delete?">선택삭제</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script>
|
||||
$(function() {
|
||||
$('.cm-display-select').on('change', function() {
|
||||
if (confirm('공개여부를 ' + this.options[this.selectedIndex].text + '로 변경할까요?')) {
|
||||
var postid = $(this).parent().parent().find('td:first').text();
|
||||
var selectVal = this.value;
|
||||
var is_display = selectVal == 'R' ? 'N' : selectVal;
|
||||
$.post('/adm/news/display', {
|
||||
'is_display': is_display,
|
||||
'postid': postid
|
||||
}, function(res) {
|
||||
selectVal == 'R' ? location.href = '/adm/content/reserve?list=' + postid : location.reload();
|
||||
})
|
||||
} else {
|
||||
location.reload();
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
103
application/views/adm/newscategory.php
Executable file
103
application/views/adm/newscategory.php
Executable file
@@ -0,0 +1,103 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">뉴스관리 > 카테고리관리</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<div class="box-table-header cm-bottom-control">
|
||||
<div class="col-md-6 cm-top-pagination"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="pull-right">
|
||||
<form action="" method="get" name="flist" id="flist">
|
||||
<input type="hidden" name="list">
|
||||
<input type="hidden" name="acttype">
|
||||
<a href="/adm/news/categoryedit" 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="/adm/news/categorydelete?">선택삭제</button>
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" class="btn btn-outline btn-default btn-sm">전체목록</a>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">전체 : <?php echo $table['total']?>건</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>카테고리</th>
|
||||
<th>등록일</th>
|
||||
<th><input type="checkbox" name="chkall" id="chkall" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><?php foreach ($table['rows'] as $r) {?>
|
||||
<tr>
|
||||
<td><?php echo $r->idx?></td>
|
||||
<td><?php echo $r->category_fullpath?></td>
|
||||
<td><?php echo $r->reg_date?></td>
|
||||
<td><input type="checkbox" name="chk[]" class="list-chkbox" value="<?php echo $r->idx?>" /></td>
|
||||
</tr> <?php }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="box-info row cm-bottom-control">
|
||||
<div class="col-md-6"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="pull-right">
|
||||
<a href="/adm/news/categoryedit" 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="/adm/news/categorydelete?">선택삭제</button>
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" class="btn btn-outline btn-default btn-sm">전체목록</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script>
|
||||
$(function() {
|
||||
$('.cm-display-select').on('change', function() {
|
||||
if (confirm('공개여부를 ' + this.options[this.selectedIndex].text + '로 변경할까요?')) {
|
||||
var postid = $(this).parent().parent().find('td:first').text();
|
||||
var selectVal = this.value;
|
||||
var is_display = selectVal == 'R' ? 'N' : selectVal;
|
||||
$.post('/adm/content/display', {
|
||||
'is_display': is_display,
|
||||
'postid': postid
|
||||
}, function(res) {
|
||||
selectVal == 'R' ? location.href = '/adm/content/reserve?list=' + postid : location.reload();
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
62
application/views/adm/newscategoryedit.php
Executable file
62
application/views/adm/newscategoryedit.php
Executable file
@@ -0,0 +1,62 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">기본관리 > 카테고리 정보 업데이트</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form method="post" action="" enctype="multipart/form-data">
|
||||
<input type="hidden" name="redirect" value="<?php echo $this->input->server('HTTP_REFERER')?>">
|
||||
<input type="hidden" name="idx" class="form-control" value="<?php if(isset($category)) echo $category->idx?>">
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>상위 카테고리</th>
|
||||
<td>
|
||||
<select name="parent" class="form-control" style="width:200px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($newsCategories as $c) { echo '<option value="'.$c->category_code.'" '.(!empty($category) && $category->p_category_code == $c->category_code && $category->category_code != $c->category_code ? 'selected':'').'>'. $c->category_name. '</option>';}?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>카테고리명</th>
|
||||
<td>
|
||||
<input type="text" name="category_name" class="form-control" value="<?php if(isset($category->category_name)) echo $category->category_name?>">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center">
|
||||
<a class="btn btn-danger" href="<?php echo $this->input->server('HTTP_REFERER')?>">취소</a>
|
||||
<button type="submit" class="btn btn-success">저장</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
134
application/views/adm/newscompany.php
Executable file
134
application/views/adm/newscompany.php
Executable file
@@ -0,0 +1,134 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">뉴스관리 > 제휴관리</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<div class="box-table-header cm-bottom-control">
|
||||
<div class="col-md-6 cm-top-pagination"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
<div class="pull-right">
|
||||
<form action="" method="get" name="flist" id="flist">
|
||||
<input type="hidden" name="list">
|
||||
<input type="hidden" name="acttype">
|
||||
<select name="category" class="form-control" style="width:100px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $category) { echo '<option value="'.$category->idx.'" '.(param('category') == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control" style="width:100px">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach($graceEditors as $editor) { echo '<option value="'.$editor->editorId.'" '.(param('editor') == $editor->editorId ? 'selected':'').'>'. $editor->editorName. '</option>';}?>
|
||||
</select>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" name="term" value="<?php echo param('term')?>" placeholder="검색어를 입력하세요" />
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-sm" type="submit">검색!</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<button type="button" class="btn btn-outline btn-default btn-sm btn-list-reserve btn-list-selected disabled" data-list-reserve-url="/adm/content/reserve?">선택예약</button>
|
||||
<button type="button" class="btn btn-outline btn-default btn-sm btn-list-delete btn-list-selected disabled" data-list-delete-url="/adm/content/delete?">선택삭제</button>
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" class="btn btn-outline btn-default btn-sm">전체목록</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">전체 : <?php echo $table['total']?>건</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>제휴처</th>
|
||||
<th>등록일</th>
|
||||
<th><input type="checkbox" name="chkall" id="chkall" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><?php foreach ($table['rows'] as $r) {?>
|
||||
<tr>
|
||||
<td><?php echo $r->idx?></td>
|
||||
|
||||
<td><?php echo ($r->logo_img ? '<img src="'.imgSrc($r->logo_img). '" style="max-height:90px;max-width:90px;margin-right:10px" align="left">':''). '<a href="'.$r->homepage.'" target="_blank">'. $r->press_name. '</a>'?></td>
|
||||
<td><?php echo $r->reg_date?></td>
|
||||
<td><input type="checkbox" name="chk[]" class="list-chkbox" value="<?php echo $r->idx?>" /></td>
|
||||
</tr> <?php }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="box-info row cm-bottom-control">
|
||||
<div class="col-md-6"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
<div class="pull-right">
|
||||
<form action="" method="get">
|
||||
<select name="category" class="form-control" style="width:100px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $category) { echo '<option value="'.$category->idx.'" '.(param('category') == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control" style="width:100px">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach($graceEditors as $editor) { echo '<option value="'.$editor->editorId.'" '.(param('editor') == $editor->editorId ? 'selected':'').'>'. $editor->editorName. '</option>';}?>
|
||||
</select>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" name="term" value="<?php echo param('term')?>" placeholder="검색어를 입력하세요" />
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-sm" type="submit">검색!</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" 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="/adm/content/delete?">선택삭제</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script>
|
||||
$(function() {
|
||||
$('.cm-display-select').on('change', function() {
|
||||
if (confirm('공개여부를 ' + this.options[this.selectedIndex].text + '로 변경할까요?')) {
|
||||
var postid = $(this).parent().parent().find('td:first').text();
|
||||
var selectVal = this.value;
|
||||
var is_display = selectVal == 'R' ? 'N' : selectVal;
|
||||
$.post('/adm/content/display', {
|
||||
'is_display': is_display,
|
||||
'postid': postid
|
||||
}, function(res) {
|
||||
selectVal == 'R' ? location.href = '/adm/content/reserve?list=' + postid : location.reload();
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
162
application/views/adm/pageset/cmtv/categorylatest.php
Executable file
162
application/views/adm/pageset/cmtv/categorylatest.php
Executable file
@@ -0,0 +1,162 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">페이지설정 > 크맵TV 카테고리 최신영상</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form method="post" action="" enctype="multipart/form-data" class="cm-pageset-form">
|
||||
<input type="hidden" name="redirect" value="<?php echo $this->input->server('REQUEST_URI') ?>">
|
||||
<?php foreach ($posts as $post) {?>
|
||||
<table class="table table-bordered cm-hometopnews-setbox">
|
||||
<thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>검색</th>
|
||||
<td>
|
||||
<select name="category" class="form-control category" style="width:200px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach ($lifeCategories as $category) {echo '<option value="' . $category->idx . '" ' . ($categoryNo == $category->idx ? 'selected' : '') . '>' . $category->category_name . '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control editor" style="width:200px;display:none">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach ($graceEditors as $editor) {echo '<option value="' . $editor->editorId . '" ' . (param('editor') == $editor->editorId ? 'selected' : '') . '>' . $editor->editorName . '</option>';}?>
|
||||
</select>
|
||||
<select name="limit" class="form-control limit" style="width:100px">
|
||||
<option value="">검색결과수</option>
|
||||
<option value="5" selected>5</option>
|
||||
<option value="10">10</option>
|
||||
<option value="30">30</option>
|
||||
<option value="50">50</option>
|
||||
</select>
|
||||
<input type="text" name="keyword" class="form-control keyword" style="width:200px">
|
||||
<a class="btn btn-info btn-sm cm-pageset-searchbtn">검색</a>
|
||||
<a class="btn btn-warning btn-sm cm-pageset-addsetbox">추가</a>
|
||||
<div class="cm-search-result" style="margin-top:3px">
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>아이디</th>
|
||||
<td>
|
||||
<input type="text" name="postid[]" class="form-control postid" value="<?php if (isset($post)) {
|
||||
echo $post->idx;
|
||||
}
|
||||
?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>제목</th>
|
||||
<td>
|
||||
<input type="text" name="title[]" class="form-control title" value="<?php if (isset($post)) {
|
||||
echo convertEmoji($post->title);
|
||||
}
|
||||
?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>메인이미지</th>
|
||||
<td>
|
||||
<img src="<?php if (isset($post)) {
|
||||
echo imgSrc($post->main_img);
|
||||
}
|
||||
?>" width="150" name="main_img[]" class="main_img">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>순서</th>
|
||||
<td>
|
||||
<input type="number" name="display_sort[]" class="form-control display_sort" value="<?php if (isset($post)) {
|
||||
echo $post->display_sort;
|
||||
}
|
||||
?>">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><?php }?>
|
||||
<div style="text-align:center">
|
||||
<a class="btn btn-danger" href="<?php echo $this->input->server('HTTP_REFERER') ?>">취소</a>
|
||||
<button type="submit" class="btn btn-success">저장</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script src="/assets/adm/js/tinymce/tinymce.min.js"></script>
|
||||
<script>
|
||||
var result;
|
||||
$(function() {
|
||||
|
||||
$('.cm-pageset-addsetbox').on('click', function() {
|
||||
var dd = $('.cm-hometopnews-setbox');
|
||||
dd.last().after(dd.eq(0).clone(true));
|
||||
|
||||
})
|
||||
|
||||
$('.cm-pageset-rmsetbox').on('click', function(){
|
||||
$(this).parent().parent().parent().parent().remove();
|
||||
})
|
||||
|
||||
$('.category').change('change', function() {
|
||||
location.href = '/adm/setcmtv/categorylatest/' + this.value;
|
||||
})
|
||||
|
||||
$('.cm-pageset-searchbtn').on('click', function(e) {
|
||||
var searchBtn = $(this);
|
||||
var frm = searchBtn.parent()
|
||||
var params = {
|
||||
category: frm.find('.category').val(),
|
||||
editor: frm.find('.editor').val(),
|
||||
term: frm.find('.keyword').val(),
|
||||
pageset: 1,
|
||||
limit: frm.find('.limit').val()
|
||||
}
|
||||
|
||||
|
||||
$.get('/adm/content', params, function(res) {
|
||||
result = res.data.rows
|
||||
var resultBox = searchBtn.parent().find('.cm-search-result').empty();
|
||||
for (var i = 0; i < result.length; i++) {
|
||||
resultBox.append('<a class="btn btn-sm form-control cm-result-item" style="margin-bottom:3px" tabindex="' + i + '">' + result[i].title + '</a>')
|
||||
}
|
||||
$('.cm-result-item').on('click', function() {
|
||||
var item = result[$(this).attr('tabindex')]
|
||||
var frm = searchBtn.parent().parent().parent().next();
|
||||
console.log(frm)
|
||||
frm.find('.postid').val(item.idx)
|
||||
frm.find('.title').val(item.title)
|
||||
frm.find('.main_img').attr('src', item.mainImg)
|
||||
$('.cm-result-item').remove();
|
||||
})
|
||||
}, 'json')
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
162
application/views/adm/pageset/cmtv/channellatest.php
Executable file
162
application/views/adm/pageset/cmtv/channellatest.php
Executable file
@@ -0,0 +1,162 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">페이지설정 > 크맵TV 채널홈 상단영상</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form method="post" action="" enctype="multipart/form-data" class="cm-pageset-form">
|
||||
<input type="hidden" name="redirect" value="<?php echo $this->input->server('REQUEST_URI') ?>">
|
||||
<?php foreach ($posts as $post) {?>
|
||||
<table class="table table-bordered cm-hometopnews-setbox">
|
||||
<thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>검색</th>
|
||||
<td>
|
||||
<select name="category" class="form-control category" style="width:200px;display:none">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach ($lifeCategories as $category) {echo '<option value="' . $category->idx . '" ' . ($categoryNo == $category->idx ? 'selected' : '') . '>' . $category->category_name . '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control editor" style="width:300px">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach ($graceEditors as $editor) {echo '<option value="' . $editor->editorId . '" ' . ($categoryNo == $editor->editorId ? 'selected' : '') . '>' . $editor->editorName . '</option>';}?>
|
||||
</select>
|
||||
<select name="limit" class="form-control limit" style="width:100px">
|
||||
<option value="">검색결과수</option>
|
||||
<option value="5" selected>5</option>
|
||||
<option value="10">10</option>
|
||||
<option value="30">30</option>
|
||||
<option value="50">50</option>
|
||||
</select>
|
||||
<input type="text" name="keyword" class="form-control keyword" style="width:200px">
|
||||
<a class="btn btn-info btn-sm cm-pageset-searchbtn">검색</a>
|
||||
<a class="btn btn-warning btn-sm cm-pageset-addsetbox">추가</a>
|
||||
<div class="cm-search-result" style="margin-top:3px">
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>아이디</th>
|
||||
<td>
|
||||
<input type="text" name="postid[]" class="form-control postid" value="<?php if (isset($post)) {
|
||||
echo $post->idx;
|
||||
}
|
||||
?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>제목</th>
|
||||
<td>
|
||||
<input type="text" name="title[]" class="form-control title" value="<?php if (isset($post)) {
|
||||
echo convertEmoji($post->title);
|
||||
}
|
||||
?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>메인이미지</th>
|
||||
<td>
|
||||
<img src="<?php if (isset($post)) {
|
||||
echo imgSrc($post->main_img);
|
||||
}
|
||||
?>" width="150" name="main_img[]" class="main_img">
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display:none">
|
||||
<th>순서</th>
|
||||
<td>
|
||||
<input type="number" name="display_sort[]" class="form-control display_sort" value="<?php if (isset($post)) {
|
||||
echo $post->display_sort;
|
||||
}
|
||||
?>">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><?php }?>
|
||||
<div style="text-align:center">
|
||||
<a class="btn btn-danger" href="<?php echo $this->input->server('HTTP_REFERER') ?>">취소</a>
|
||||
<button type="submit" class="btn btn-success">저장</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script src="/assets/adm/js/tinymce/tinymce.min.js"></script>
|
||||
<script>
|
||||
var result;
|
||||
$(function() {
|
||||
|
||||
$('.cm-pageset-addsetbox').on('click', function() {
|
||||
var dd = $('.cm-hometopnews-setbox');
|
||||
dd.last().after(dd.eq(0).clone(true));
|
||||
|
||||
})
|
||||
|
||||
$('.cm-pageset-rmsetbox').on('click', function(){
|
||||
$(this).parent().parent().parent().parent().remove();
|
||||
})
|
||||
|
||||
$('.editor').change('change', function() {
|
||||
location.href = '/adm/setcmtv/channellatest/' + this.value;
|
||||
})
|
||||
|
||||
$('.cm-pageset-searchbtn').on('click', function(e) {
|
||||
var searchBtn = $(this);
|
||||
var frm = searchBtn.parent()
|
||||
var params = {
|
||||
category: frm.find('.category').val(),
|
||||
editor: frm.find('.editor').val(),
|
||||
term: frm.find('.keyword').val(),
|
||||
pageset: 1,
|
||||
limit: frm.find('.limit').val()
|
||||
}
|
||||
|
||||
|
||||
$.get('/adm/content', params, function(res) {
|
||||
result = res.data.rows
|
||||
var resultBox = searchBtn.parent().find('.cm-search-result').empty();
|
||||
for (var i = 0; i < result.length; i++) {
|
||||
resultBox.append('<a class="btn btn-sm form-control cm-result-item" style="margin-bottom:3px" tabindex="' + i + '">' + result[i].title + '</a>')
|
||||
}
|
||||
$('.cm-result-item').on('click', function() {
|
||||
var item = result[$(this).attr('tabindex')]
|
||||
var frm = searchBtn.parent().parent().parent().next();
|
||||
console.log(frm)
|
||||
frm.find('.postid').val(item.idx)
|
||||
frm.find('.title').val(item.title)
|
||||
frm.find('.main_img').attr('src', item.mainImg)
|
||||
$('.cm-result-item').remove();
|
||||
})
|
||||
}, 'json')
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
149
application/views/adm/pageset/cmtv/homehot.php
Executable file
149
application/views/adm/pageset/cmtv/homehot.php
Executable file
@@ -0,0 +1,149 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">페이지설정 > 크맵TV 홈HOT영상</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form method="post" action="" enctype="multipart/form-data" class="cm-pageset-form">
|
||||
<input type="hidden" name="redirect" value="<?php echo $this->input->server('REQUEST_URI')?>">
|
||||
<?php foreach($posts as $post) { ?>
|
||||
<table class="table table-bordered cm-hometopnews-setbox">
|
||||
<thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>검색</th>
|
||||
<td>
|
||||
<select name="category" class="form-control category" style="width:200px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $category) { echo '<option value="'.$category->idx.'" '.(36 == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control editor" style="width:200px">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach($graceEditors as $editor) { echo '<option value="'.$editor->editorId.'" '.(param('editor') == $editor->editorId ? 'selected':'').'>'. $editor->editorName. '</option>';}?>
|
||||
</select>
|
||||
<select name="limit" class="form-control limit" style="width:100px">
|
||||
<option value="">검색결과수</option>
|
||||
<option value="5" selected>5</option>
|
||||
<option value="10">10</option>
|
||||
<option value="30">30</option>
|
||||
<option value="50">50</option>
|
||||
</select>
|
||||
<input type="text" name="keyword" class="form-control keyword" style="width:200px">
|
||||
<a class="btn btn-info btn-sm cm-pageset-searchbtn">검색</a>
|
||||
<a class="btn btn-warning btn-sm cm-pageset-addsetbox">추가</a>
|
||||
<div class="cm-search-result" style="margin-top:3px">
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>아이디</th>
|
||||
<td>
|
||||
<input type="text" name="postid[]" class="form-control postid" value="<?php if(isset($post)) echo $post->idx?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>제목</th>
|
||||
<td>
|
||||
<input type="text" name="title[]" class="form-control title" value="<?php if(isset($post)) echo convertEmoji($post->title)?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>메인이미지</th>
|
||||
<td>
|
||||
<img src="<?php if(isset($post)) echo imgSrc($post->main_img)?>" width="150" name="main_img[]" class="main_img">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>순서</th>
|
||||
<td>
|
||||
<input type="number" name="display_sort[]" class="form-control display_sort" value="<?php if(isset($post)) echo $post->display_sort?>">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><?php }?>
|
||||
<div style="text-align:center">
|
||||
<a class="btn btn-danger" href="<?php echo $this->input->server('HTTP_REFERER')?>">취소</a>
|
||||
<button type="submit" class="btn btn-success">저장</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script src="/assets/adm/js/tinymce/tinymce.min.js"></script>
|
||||
<script>
|
||||
var result;
|
||||
$(function(){
|
||||
|
||||
$('.cm-pageset-addsetbox').on('click', function(){
|
||||
var dd = $('.cm-hometopnews-setbox');
|
||||
dd.last().after(dd.eq(0).clone(true));
|
||||
|
||||
})
|
||||
|
||||
$('.cm-pageset-rmsetbox').on('click', function(){
|
||||
$(this).parent().parent().parent().parent().remove();
|
||||
})
|
||||
|
||||
$('.cm-pageset-searchbtn').on('click', function(e){
|
||||
var searchBtn = $(this);
|
||||
var frm = searchBtn.parent()
|
||||
var c = frm.find('.category').val();
|
||||
if(!c) {
|
||||
c = [];
|
||||
frm.find('.category option').each(function(k,op) {
|
||||
if(op.value)
|
||||
c.push(op.value)
|
||||
})
|
||||
}else c = [c]
|
||||
var params = {category: c.join('-'), editor: frm.find('.editor').val(),
|
||||
term:frm.find('.keyword').val(), pageset: 1, limit: frm.find('.limit').val()}
|
||||
|
||||
|
||||
$.get('/adm/content', params, function(res){
|
||||
result = res.data.rows
|
||||
var resultBox = searchBtn.parent().find('.cm-search-result').empty();
|
||||
for(var i=0; i<result.length; i++) {
|
||||
resultBox.append('<a class="btn btn-sm form-control cm-result-item" style="margin-bottom:3px" tabindex="'+i+'">'+result[i].title+'</a>')
|
||||
}
|
||||
$('.cm-result-item').on('click', function(){
|
||||
var item = result[$(this).attr('tabindex')]
|
||||
var frm = searchBtn.parent().parent().parent().next();
|
||||
console.log(frm)
|
||||
frm.find('.postid').val(item.idx)
|
||||
frm.find('.title').val(item.title)
|
||||
frm.find('.main_img').attr('src', item.mainImg)
|
||||
$('.cm-result-item').remove();
|
||||
})
|
||||
}, 'json')
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
119
application/views/adm/pageset/grace/homekeyword.php
Executable file
119
application/views/adm/pageset/grace/homekeyword.php
Executable file
@@ -0,0 +1,119 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">페이지설정 > 은혜충전 홈 크맵키워드</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form method="post" action="" enctype="multipart/form-data" class="cm-pageset-form">
|
||||
<input type="hidden" name="redirect" value="<?php echo $this->input->server('HTTP_REFERER')?>">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>검색</th>
|
||||
<td>
|
||||
<select name="category" class="form-control" style="width:200px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $category) { echo '<option value="'.$category->idx.'" '.(param('category') == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control" style="width:200px">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach($graceEditors as $editor) { echo '<option value="'.$editor->editorId.'" '.(param('editor') == $editor->editorId ? 'selected':'').'>'. $editor->editorName. '</option>';}?>
|
||||
</select>
|
||||
<select name="limit" class="form-control" style="width:100px">
|
||||
<option value="">검색결과수</option>
|
||||
<option value="5" selected>5</option>
|
||||
<option value="10">10</option>
|
||||
<option value="30">30</option>
|
||||
<option value="50">50</option>
|
||||
</select>
|
||||
<input type="text" name="keyword" class="form-control" style="width:200px">
|
||||
<a class="btn btn-info btn-sm cm-pageset-searchbtn">검색</a>
|
||||
<div class="cm-search-result" style="margin-top:3px">
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>아이디</th>
|
||||
<td>
|
||||
<input type="text" name="postid" class="form-control" value="<?php if(isset($post)) echo $post->idx?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>제목</th>
|
||||
<td>
|
||||
<input type="text" name="title" class="form-control" value="<?php if(isset($post)) echo $post->title?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>메인이미지</th>
|
||||
<td>
|
||||
<img src="<?php if(isset($post)) echo imgSrc($post->main_img)?>" width="150" name="main_img">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center">
|
||||
<a class="btn btn-danger" href="<?php echo $this->input->server('HTTP_REFERER')?>">취소</a>
|
||||
<button type="submit" class="btn btn-success">저장</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script src="/assets/adm/js/tinymce/tinymce.min.js"></script>
|
||||
<script>
|
||||
var result;
|
||||
$(function(){
|
||||
$('.cm-pageset-searchbtn').on('click', function(e){
|
||||
var frm = $('.cm-pageset-form')[0]
|
||||
var params = {category: frm.category.value,
|
||||
editor: frm.editor.value,
|
||||
term:frm.keyword.value, pageset: 1, limit: frm.limit.value}
|
||||
$.get('/adm/content', params, function(res){
|
||||
result = res.data.rows
|
||||
var resultBox = $('.cm-search-result').empty();
|
||||
for(var i=0; i<result.length; i++) {
|
||||
resultBox.append('<a class="btn btn-sm form-control cm-result-item" style="margin-bottom:3px" tabindex="'+i+'">'+result[i].title+'</a>')
|
||||
}
|
||||
$('.cm-result-item').on('click', function(){
|
||||
var item = result[$(this).attr('tabindex')]
|
||||
var frm = $('.cm-pageset-form')[0]
|
||||
frm.postid.value = item.idx
|
||||
frm.title.value = item.title
|
||||
frm.main_img.src = item.mainImg
|
||||
console.log(item)
|
||||
})
|
||||
}, 'json')
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
142
application/views/adm/pageset/grace/hometop.php
Executable file
142
application/views/adm/pageset/grace/hometop.php
Executable file
@@ -0,0 +1,142 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">페이지설정 > 은혜충전 홈 상단</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form method="post" action="" enctype="multipart/form-data" class="cm-pageset-form">
|
||||
<input type="hidden" name="redirect" value="<?php echo $this->input->server('REQUEST_URI')?>">
|
||||
<?php foreach($posts as $post) { ?>
|
||||
<table class="table table-bordered cm-hometopnews-setbox">
|
||||
<thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>검색</th>
|
||||
<td>
|
||||
<select name="category" class="form-control category" style="width:200px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $category) { echo '<option value="'.$category->idx.'" '.(param('category') == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control editor" style="width:200px">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach($graceEditors as $editor) { echo '<option value="'.$editor->editorId.'" '.(param('editor') == $editor->editorId ? 'selected':'').'>'. $editor->editorName. '</option>';}?>
|
||||
</select>
|
||||
<select name="limit" class="form-control limit" style="width:100px">
|
||||
<option value="">검색결과수</option>
|
||||
<option value="5" selected>5</option>
|
||||
<option value="10">10</option>
|
||||
<option value="30">30</option>
|
||||
<option value="50">50</option>
|
||||
</select>
|
||||
<input type="text" name="keyword" class="form-control keyword" style="width:200px">
|
||||
<a class="btn btn-info btn-sm cm-pageset-searchbtn">검색</a>
|
||||
<a class="btn btn-warning btn-sm cm-pageset-addsetbox">추가</a>
|
||||
<a class="btn btn-danger btn-sm cm-pageset-rmsetbox">삭제</a>
|
||||
<div class="cm-search-result" style="margin-top:3px">
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>아이디</th>
|
||||
<td>
|
||||
<input type="text" name="postid[]" class="form-control postid" value="<?php if(isset($post)) echo $post->idx?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>제목</th>
|
||||
<td>
|
||||
<input type="text" name="title[]" class="form-control title" value="<?php if(isset($post)) echo convertEmoji($post->title)?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>메인이미지</th>
|
||||
<td>
|
||||
<img src="<?php if(isset($post)) echo imgSrc($post->main_img)?>" width="150" name="main_img[]" class="main_img">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>순서</th>
|
||||
<td>
|
||||
<input type="number" name="display_sort[]" class="form-control display_sort" value="<?php if(isset($post)) echo $post->display_sort?>">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><?php }?>
|
||||
<div style="text-align:center">
|
||||
<a class="btn btn-danger" href="<?php echo $this->input->server('HTTP_REFERER')?>">취소</a>
|
||||
<button type="submit" class="btn btn-success">저장</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script src="/assets/adm/js/tinymce/tinymce.min.js"></script>
|
||||
<script>
|
||||
var result;
|
||||
$(function(){
|
||||
|
||||
$('.cm-pageset-addsetbox').on('click', function(){
|
||||
var dd = $('.cm-hometopnews-setbox');
|
||||
dd.last().after(dd.eq(0).clone(true));
|
||||
|
||||
})
|
||||
|
||||
$('.cm-pageset-rmsetbox').on('click', function(){
|
||||
$(this).parent().parent().parent().parent().remove();
|
||||
})
|
||||
|
||||
$('.cm-pageset-searchbtn').on('click', function(e){
|
||||
var searchBtn = $(this);
|
||||
var frm = searchBtn.parent()
|
||||
var params = {category: frm.find('.category').val(), editor: frm.find('.editor').val(),
|
||||
term:frm.find('.keyword').val(), pageset: 1, limit: frm.find('.limit').val()}
|
||||
|
||||
|
||||
$.get('/adm/content', params, function(res){
|
||||
result = res.data.rows
|
||||
var resultBox = searchBtn.parent().find('.cm-search-result').empty();
|
||||
for(var i=0; i<result.length; i++) {
|
||||
resultBox.append('<a class="btn btn-sm form-control cm-result-item" style="margin-bottom:3px" tabindex="'+i+'">'+result[i].title+'</a>')
|
||||
}
|
||||
$('.cm-result-item').on('click', function(){
|
||||
var item = result[$(this).attr('tabindex')]
|
||||
var frm = searchBtn.parent().parent().parent().next();
|
||||
console.log(frm)
|
||||
frm.find('.postid').val(item.idx)
|
||||
frm.find('.title').val(item.title)
|
||||
frm.find('.main_img').attr('src', item.mainImg)
|
||||
$('.cm-result-item').remove();
|
||||
})
|
||||
}, 'json')
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
154
application/views/adm/pageset/main/dailyqt.php
Executable file
154
application/views/adm/pageset/main/dailyqt.php
Executable file
@@ -0,0 +1,154 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">페이지설정 > 데일리큐티</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form method="post" action="" enctype="multipart/form-data" class="cm-pageset-form">
|
||||
<input type="hidden" name="redirect" value="<?php echo $this->input->server('REQUEST_URI')?>">
|
||||
<?php foreach($posts as $post) {?>
|
||||
<table class="table table-bordered cm-hometopnews-setbox">
|
||||
<thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>검색</th>
|
||||
<td>
|
||||
<select name="category" class="form-control category" style="width:200px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $category) { echo '<option value="'.$category->idx.'" '.(param('category') == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control editor" style="width:200px">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach($graceEditors as $editor) { echo '<option value="'.$editor->editorId.'" '.(param('editor') == $editor->editorId ? 'selected':'').'>'. $editor->editorName. '</option>';}?>
|
||||
</select>
|
||||
<select name="limit" class="form-control limit" style="width:100px">
|
||||
<option value="">검색결과수</option>
|
||||
<option value="5" selected>5</option>
|
||||
<option value="10">10</option>
|
||||
<option value="30">30</option>
|
||||
<option value="50">50</option>
|
||||
</select>
|
||||
<input type="text" name="keyword" class="form-control term" style="width:200px">
|
||||
<a class="btn btn-info btn-sm cm-pageset-searchbtn">검색</a>
|
||||
<a class="btn btn-warning btn-sm cm-pageset-addsetbox">추가</a>
|
||||
<a class="btn btn-danger btn-sm cm-pageset-rmsetbox">삭제</a>
|
||||
<div class="cm-search-result" style="margin-top:3px">
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>아이디</th>
|
||||
<td>
|
||||
<input type="text" name="postid[]" class="form-control postid" value="<?php if(isset($post)) echo $post->idx?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>제목</th>
|
||||
<td>
|
||||
<input type="text" name="title[]" class="form-control title" value="<?php if(isset($post)) echo $post->title?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>메인이미지</th>
|
||||
<td>
|
||||
<img src="<?php if(isset($post)) echo imgSrc($post->main_img)?>" width="150" name="main_img" class="main_img">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>날짜</th>
|
||||
<td>
|
||||
<input type="text" name="dptime[]" class="form-control datetimepicker" value="<?php if(isset($post->DpTime)) echo $post->DpTime; else echo date('Y-m-d H:i:s');?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="cm-sample" style="display:none">
|
||||
<th>날짜</th>
|
||||
<td>
|
||||
<input type="text" class="form-control">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody><?php }?>
|
||||
</table>
|
||||
<div style="text-align:center">
|
||||
<a class="btn btn-danger" href="<?php echo $this->input->server('HTTP_REFERER')?>">취소</a>
|
||||
<button type="submit" class="btn btn-success">저장</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script src="/assets/adm/js/tinymce/tinymce.min.js"></script>
|
||||
<script>
|
||||
var result;
|
||||
$(function(){
|
||||
$('.datetimepicker').datetimepicker({ format: 'YYYY-MM-DD HH:mm:ss' });
|
||||
|
||||
$('.cm-pageset-addsetbox').on('click', function(){
|
||||
var dd = $('.cm-hometopnews-setbox');
|
||||
var b = dd.eq(0).clone(true);
|
||||
b.find('.datetimepicker').parent().parent().remove();
|
||||
dd.last().after(b);
|
||||
var s = b.find('.cm-sample').clone();
|
||||
b.find('tbody').append(s);
|
||||
s.find('input').attr('name', 'dptime[]')
|
||||
s.find('input').datetimepicker({ format: 'YYYY-MM-DD HH:mm:ss' });
|
||||
s.show();
|
||||
|
||||
})
|
||||
|
||||
$('.cm-pageset-rmsetbox').on('click', function(){
|
||||
$(this).parent().parent().parent().parent().remove();
|
||||
})
|
||||
|
||||
$('.cm-pageset-searchbtn').on('click', function(e){
|
||||
var searchBtn = $(this);
|
||||
var frm = searchBtn.parent()
|
||||
var params = {category: frm.find('.category').val(),editor: frm.find('.editor').val(),
|
||||
term:frm.find('.keyword').val(), pageset: 1, limit: frm.find('.limit').val()}
|
||||
$.get('/adm/content', params, function(res){
|
||||
result = res.data.rows
|
||||
var resultBox = searchBtn.parent().find('.cm-search-result').empty();
|
||||
for(var i=0; i<result.length; i++) {
|
||||
resultBox.append('<a class="btn btn-sm form-control cm-result-item" style="margin-bottom:3px" tabindex="'+i+'">'+result[i].title+'</a>')
|
||||
}
|
||||
$('.cm-result-item').on('click', function(){
|
||||
var item = result[$(this).attr('tabindex')]
|
||||
var frm = searchBtn.parent().parent().parent().next();
|
||||
console.log(frm)
|
||||
frm.find('.postid').val(item.idx)
|
||||
frm.find('.title').val(item.title)
|
||||
frm.find('.main_img').attr('src', item.mainImg)
|
||||
$('.cm-result-item').remove();
|
||||
})
|
||||
}, 'json')
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
120
application/views/adm/pageset/main/todayword.php
Executable file
120
application/views/adm/pageset/main/todayword.php
Executable file
@@ -0,0 +1,120 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">페이지설정 > 오늘의말씀</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form method="post" action="" enctype="multipart/form-data" class="cm-pageset-form">
|
||||
<input type="hidden" name="redirect" value="<?php echo $this->input->server('REQUEST_URI')?>">
|
||||
<?php foreach($posts as $dailyqt) {?>
|
||||
<table class="table table-bordered cm-hometopnews-setbox">
|
||||
<tbody>
|
||||
<tr><td colspan="2"><a class="btn btn-warning btn-sm cm-pageset-addsetbox">추가</a>
|
||||
<a class="btn btn-danger btn-sm cm-pageset-rmsetbox">삭제</a></td></tr>
|
||||
<tr>
|
||||
<th>말씀</th>
|
||||
<td>
|
||||
<input type="text" name="title[]" class="form-control" value="<?php if(isset($dailyqt)) echo $dailyqt->Title?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>구절</th>
|
||||
<td>
|
||||
<input type="text" name="headline[]" class="form-control" value="<?php if(isset($dailyqt)) echo $dailyqt->Headline?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>날짜</th>
|
||||
<td>
|
||||
<input type="text" name="dptime[]" class="form-control datetimepicker" value="<?php if(isset($dailyqt->DpTime)) echo $dailyqt->DpTime; else echo date('Y-m-d H:i:s');?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="cm-sample" style="display:none">
|
||||
<th>날짜</th>
|
||||
<td>
|
||||
<input type="text" class="form-control">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><?php }?>
|
||||
<div style="text-align:center">
|
||||
<a class="btn btn-danger" href="<?php echo $this->input->server('HTTP_REFERER')?>">취소</a>
|
||||
<button type="submit" class="btn btn-success">저장</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script src="/assets/adm/js/tinymce/tinymce.min.js"></script>
|
||||
<script>
|
||||
var result;
|
||||
$(function(){
|
||||
|
||||
$('.datetimepicker').datetimepicker({ format: 'YYYY-MM-DD HH:mm:ss' });
|
||||
|
||||
$('.cm-pageset-addsetbox').on('click', function(){
|
||||
var dd = $('.cm-hometopnews-setbox');
|
||||
var b = dd.eq(0).clone(true);
|
||||
b.find('.datetimepicker').parent().parent().remove();
|
||||
dd.last().after(b);
|
||||
var s = b.find('.cm-sample').clone();
|
||||
b.find('tbody').append(s);
|
||||
s.find('input').attr('name', 'dptime[]')
|
||||
s.find('input').datetimepicker({ format: 'YYYY-MM-DD HH:mm:ss' });
|
||||
s.show();
|
||||
|
||||
})
|
||||
|
||||
$('.cm-pageset-rmsetbox').on('click', function(){
|
||||
$(this).parent().parent().parent().parent().remove();
|
||||
})
|
||||
|
||||
$('.cm-pageset-searchbtn').on('click', function(e){
|
||||
var frm = $('.cm-pageset-form')[0]
|
||||
var params = {category: frm.category.value,
|
||||
editor: frm.editor.value,
|
||||
term:frm.keyword.value, pageset: 1, limit: frm.limit.value}
|
||||
$.get('/adm/content', params, function(res){
|
||||
result = res.data.rows
|
||||
var resultBox = $('.cm-search-result').empty();
|
||||
for(var i=0; i<result.length; i++) {
|
||||
resultBox.append('<a class="btn btn-sm form-control cm-result-item" style="margin-bottom:3px" tabindex="'+i+'">'+result[i].title+'</a>')
|
||||
}
|
||||
$('.cm-result-item').on('click', function(){
|
||||
var item = result[$(this).attr('tabindex')]
|
||||
var frm = $('.cm-pageset-form')[0]
|
||||
frm.postid.value = item.idx
|
||||
frm.title.value = item.title
|
||||
frm.main_img.src = item.mainImg
|
||||
console.log(item)
|
||||
})
|
||||
}, 'json')
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
135
application/views/adm/pageset/main/topnews.php
Executable file
135
application/views/adm/pageset/main/topnews.php
Executable file
@@ -0,0 +1,135 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">페이지설정 > 메인상단뉴스</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form method="post" action="" enctype="multipart/form-data" class="cm-pageset-form">
|
||||
<input type="hidden" name="redirect" value="<?php echo $this->input->server('REQUEST_URI')?>">
|
||||
<?php foreach($posts as $post) { ?>
|
||||
<table class="table table-bordered cm-hometopnews-setbox">
|
||||
<thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th width="80">검색</th>
|
||||
<td>
|
||||
<select name="category" class="form-control category" style="width:200px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($newsCategories as $category) { echo '<option value="'.$category->category_code.'" '.(param('category') == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
<select name="limit" class="form-control limit" style="width:100px">
|
||||
<option value="">검색결과수</option>
|
||||
<option value="5" selected>5</option>
|
||||
<option value="10">10</option>
|
||||
<option value="30">30</option>
|
||||
<option value="50">50</option>
|
||||
</select>
|
||||
<input type="text" name="keyword" class="form-control keyword" style="width:200px">
|
||||
<a class="btn btn-info btn-sm cm-pageset-searchbtn">검색</a>
|
||||
<a class="btn btn-warning btn-sm cm-pageset-addsetbox">추가</a>
|
||||
<a class="btn btn-danger btn-sm cm-pageset-rmsetbox">삭제</a>
|
||||
<div class="cm-search-result" style="margin-top:3px">
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>아이디</th>
|
||||
<td>
|
||||
<input type="text" name="postid[]" class="form-control postid" value="<?php if(isset($post)) echo $post->idx?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>제목</th>
|
||||
<td>
|
||||
<input type="text" name="title[]" class="form-control title" value="<?php if(isset($post)) echo $post->title?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>메인이미지</th>
|
||||
<td>
|
||||
<img src="<?php if(isset($post)) echo imgSrc($post->main_img)?>" width="150" name="main_img[]" class="main_img">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>순서</th>
|
||||
<td>
|
||||
<input type="number" name="display_sort[]" class="form-control display_sort" value="<?php if(isset($post)) echo $post->display_sort?>">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table><?php }?>
|
||||
<div style="text-align:center">
|
||||
<a class="btn btn-danger" href="<?php echo $this->input->server('HTTP_REFERER')?>">취소</a>
|
||||
<button type="submit" class="btn btn-success">저장</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script src="/assets/adm/js/tinymce/tinymce.min.js"></script>
|
||||
<script>
|
||||
var result;
|
||||
$(function(){
|
||||
$('.cm-pageset-addsetbox').on('click', function(){
|
||||
var dd = $('.cm-hometopnews-setbox');
|
||||
dd.last().after(dd.eq(0).clone(true));
|
||||
|
||||
})
|
||||
|
||||
$('.cm-pageset-rmsetbox').on('click', function(){
|
||||
$(this).parent().parent().parent().parent().remove();
|
||||
})
|
||||
|
||||
$('.cm-pageset-searchbtn').on('click', function(e){
|
||||
var searchBtn = $(this);
|
||||
var frm = searchBtn.parent()
|
||||
var params = {category: frm.find('.category').val(),
|
||||
term:frm.find('.keyword').val(), pageset: 1, limit: frm.find('.limit').val()}
|
||||
$.get('/adm/news', params, function(res){
|
||||
result = res.data.rows
|
||||
var resultBox = searchBtn.parent().find('.cm-search-result').empty();
|
||||
for(var i=0; i<result.length; i++) {
|
||||
resultBox.append('<a class="btn btn-sm form-control cm-result-item" style="margin-bottom:3px" tabindex="'+i+'">'+result[i].title+'</a>')
|
||||
}
|
||||
$('.cm-result-item').on('click', function(){
|
||||
var item = result[$(this).attr('tabindex')]
|
||||
var frm = searchBtn.parent().parent().parent().next();
|
||||
console.log(frm)
|
||||
frm.find('.postid').val(item.idx)
|
||||
frm.find('.title').val(item.title)
|
||||
frm.find('.main_img').attr('src', item.main_img)
|
||||
$('.cm-result-item').remove();
|
||||
})
|
||||
}, 'json')
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
29
application/views/adm/partial/bottom.php
Executable file
29
application/views/adm/partial/bottom.php
Executable file
@@ -0,0 +1,29 @@
|
||||
<form class="cm-hidden-form hide" method="post" action="/admin/life/life_list/5" target="_blank">
|
||||
<input type="hidden" name="idx">
|
||||
<input type="hidden" name="mode">
|
||||
</form>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"
|
||||
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"
|
||||
integrity="sha256-4iQZ6BVL4qNKlQ27TExEhBN1HFPvAvAMbFavKKosSWQ=" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js"
|
||||
integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/js/select2.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.16.0/bootstrap-table.min.js"
|
||||
integrity="sha256-JFzlEUS2cZGdNFhVNH3GSFuqZFLjzWIjOqG5BY+Yhvw=" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.16.0/locale/bootstrap-table-ko-KR.min.js"
|
||||
integrity="sha256-VQ1uZxOBAIoPvZoJ4al100ZGU830uTg22G9BXx5jV4Y=" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"
|
||||
integrity="sha256-bqVeqGdJ7h/lYPq6xrPv/YGzMEb6dNxlfiTUHSgRCp8=" crossorigin="anonymous"></script>
|
||||
<script
|
||||
src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js">
|
||||
</script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/5.4.0/bootbox.min.js"
|
||||
integrity="sha256-sfG8c9ILUB8EXQ5muswfjZsKICbRIJUG/kBogvvV5sY=" crossorigin="anonymous"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/timepicker/1.3.5/jquery.timepicker.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.form/4.2.2/jquery.form.min.js" integrity="sha256-2Pjr1OlpZMY6qesJM68t2v39t+lMLvxwpa8QlRjJroA=" crossorigin="anonymous"></script>
|
||||
<script src="/assets/adm/js/jq.flot.js"></script>
|
||||
<script src="/assets/adm/js/jq.flot.tooltip.js"></script>
|
||||
<script src="/assets/adm/js/jq.flot.resize.js"></script>
|
||||
<script src="/assets/adm/js/jq.flot.pie.js"></script>
|
||||
<script src="/assets/adm/js/cm-adm-Fm5tZ263ZtdEmbvT.js"></script>
|
||||
9
application/views/adm/partial/footer.php
Executable file
9
application/views/adm/partial/footer.php
Executable file
@@ -0,0 +1,9 @@
|
||||
<div class="footer">
|
||||
<div class="footer-inner pull-right hidden-xs">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-12"> © 2020 <a>crossmap.co.kr</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
17
application/views/adm/partial/head.php
Executable file
17
application/views/adm/partial/head.php
Executable file
@@ -0,0 +1,17 @@
|
||||
<meta charset="utf-8">
|
||||
<title>Crossmap Admin - 크리스천포털 크로스맵</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.7/css/select2.min.css" />
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,400i,500,500i,700,700i">
|
||||
<link href="/assets/adm/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="/assets/adm/css/sb-admin.css" rel="stylesheet">
|
||||
<link href="/assets/adm/css/crossmap-adm.css" rel="stylesheet">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet"
|
||||
type="text/css">
|
||||
<link rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.17.47/css/bootstrap-datetimepicker.min.css" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.16.0/bootstrap-table.min.css"
|
||||
integrity="sha256-cCxZ912RWIYqgo3Di4S0U4rdHxVGoqE23gqVU4XNABE=" crossorigin="anonymous" />
|
||||
<link rel="stylesheet"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/css/bootstrap-datepicker.min.css"
|
||||
integrity="sha256-siyOpF/pBWUPgIcQi17TLBkjvNgNQArcmwJB8YvkAgg=" crossorigin="anonymous" />
|
||||
80
application/views/adm/partial/header.php
Executable file
80
application/views/adm/partial/header.php
Executable file
@@ -0,0 +1,80 @@
|
||||
<!-- Navigation -->
|
||||
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||
<!-- Brand and toggle get grouped for better mobile display -->
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="/adm"><img src="/assets/adm/images/logo.svg"
|
||||
class="logo-icon" alt="Hoosk CMS"></a>
|
||||
</div>
|
||||
<!-- Top Menu Items -->
|
||||
<ul class="nav navbar-right top-nav">
|
||||
<li>
|
||||
<a href="/" target="_blank"><i class="fa fa-home"></i></a>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i>
|
||||
crossmap <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li>
|
||||
<a href="/admin/login/logout_proc"><i class="fa fa-fw fa-power-off"></i>
|
||||
Logout</a> </li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
|
||||
<div class="collapse navbar-collapse navbar-ex1-collapse">
|
||||
<ul class="nav navbar-nav side-nav">
|
||||
<li class="dropdown<?php echo $this->uri->segment(2) == 'life' ? ' active':''?>">
|
||||
<a href="javascript:;" data-toggle="collapse" data-target=".cm-life-menu"> <i
|
||||
class="fa fa-newspaper-o"></i>
|
||||
<span>라이프관리</span> <b class="caret"></b></a>
|
||||
<ul class="collapse cm-life-menu<?php echo $this->uri->segment(2) == 'life' ? ' in':''?>">
|
||||
<li>
|
||||
<a href="/adm/life/category">서브메뉴관리</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/adm/life">콘텐츠관리</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown<?php echo $this->uri->segment(2) == 'grace' ? ' active':''?>">
|
||||
<a href="javascript:;" data-toggle="collapse" data-target=".cm-grace-menu"> <i
|
||||
class="fa fa-newspaper-o"></i>
|
||||
<span>은혜충전관리</span> <b class="caret"></b></a>
|
||||
<ul class="collapse cm-grace-menu<?php echo $this->uri->segment(2) == 'grace' ? ' in':''?>">
|
||||
<li>
|
||||
<a href="/adm/grace/category">서브메뉴관리</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/adm/grace">콘텐츠관리</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown<?php echo $this->uri->segment(2) == 'cmtv' ? ' active':''?>">
|
||||
<a href="javascript:;" data-toggle="collapse" data-target=".cm-cmtv-menu"> <i
|
||||
class="fa fa-newspaper-o"></i>
|
||||
<span>크로스맵TV관리</span> <b class="caret"></b></a>
|
||||
<ul class="collapse cm-cmtv-menu<?php echo $this->uri->segment(2) == 'cmtv' ? ' in':''?>">
|
||||
<li>
|
||||
<a href="/adm/cmtv/category">서브메뉴관리</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/adm/cmtv">콘텐츠관리</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="<?php echo $this->uri->segment(2) == 'comment' ? 'active':''?>">
|
||||
<a href="/adm/comment"> <i class="fa fa-newspaper-o"></i> <span>코멘트 관리</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/admin/main"> <i class="fa fa-newspaper-o"></i> <span>관리자(구버전)</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- /.navbar-collapse -->
|
||||
</nav>
|
||||
101
application/views/adm/podbbang.php
Executable file
101
application/views/adm/podbbang.php
Executable file
@@ -0,0 +1,101 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">데이터관리 > 팟빵관리</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<div class="box-table-header cm-bottom-control">
|
||||
<div class="col-md-6 cm-top-pagination"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<button type="button" class="btn btn-outline btn-default btn-sm btn-list-delete btn-list-selected disabled" data-list-delete-url="/adm/content/delete?">선택삭제</button>
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" class="btn btn-outline btn-default btn-sm">전체목록</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">전체 : <?php echo $table['total']?>건</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>이미지</th>
|
||||
<th>제목/설명</th>
|
||||
<th width="80">업데이트</th>
|
||||
<th width="50">좋아요</th>
|
||||
<th width="50">구독</th>
|
||||
<th width="70">카테고리</th>
|
||||
<th><input type="checkbox" name="chkall" id="chkall" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><?php foreach ($table['rows'] as $r) {?>
|
||||
<tr>
|
||||
<td><?php echo $r->Id?></td>
|
||||
<td><img src="<?php echo $r->Image?>" width="90"></td>
|
||||
<td><a href="http://www.podbbang.com<?php echo $r->Link?>" target="_blank"><?php echo $r->Title?></a><br /><i style="color:#aaa"><?php echo $r->Description?></i></td>
|
||||
<td><?php echo $r->UpdatedAtStr?></td>
|
||||
<td><?php echo $r->Likes?></td>
|
||||
<td><?php echo $r->Subscribes?></td>
|
||||
<td><?php echo $r->Category?></td>
|
||||
<td><input type="checkbox" name="chk[]" class="list-chkbox" value="<?php echo $r->Id?>" /></td>
|
||||
</tr> <?php }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="box-info row cm-bottom-control">
|
||||
<div class="col-md-6"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" 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="/adm/content/delete?">선택삭제</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script>
|
||||
$(function(){
|
||||
$('.cm-display-select').on('change', function(){
|
||||
if(confirm('공개여부를 ' + this.options[this.selectedIndex].text + '로 변경할까요?')) {
|
||||
var postid = $(this).parent().parent().find('td:first').text();
|
||||
var selectVal = this.value;
|
||||
var is_display = selectVal == 'R' ? 'N': selectVal;
|
||||
$.post('/adm/content/display', {'is_display': is_display, 'postid': postid}, function(res){
|
||||
selectVal == 'R' ? location.href='/adm/content/reserve?list='+postid : location.reload();
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
70
application/views/adm/reserve.php
Executable file
70
application/views/adm/reserve.php
Executable file
@@ -0,0 +1,70 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">기본관리 > 컨텐츠관리 > 예약설정</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<form method="post" action="" enctype="multipart/form-data">
|
||||
<input type="hidden" name="redirect" value="<?php echo $this->input->server('HTTP_REFERER')?>">
|
||||
<table class="table table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>아이디</th>
|
||||
<td>
|
||||
<input type="text" name="postid" class="form-control" value="<?php if(isset($post)) echo $post->idx?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>제목</th>
|
||||
<td>
|
||||
<input type="text" name="title" class="form-control" value="<?php if(isset($post)) echo convertEmoji($post->title)?>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>예약시간</th>
|
||||
<td>
|
||||
<input type="text" name="dptime" class="form-control datetimepicker" value="<?php if(isset($post->reserve_time)) echo $post->reserve_time?>">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="text-align:center">
|
||||
<a class="btn btn-danger" href="<?php echo $this->input->server('HTTP_REFERER')?>">취소</a>
|
||||
<button type="submit" class="btn btn-success">저장</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script src="/assets/adm/js/tinymce/tinymce.min.js"></script>
|
||||
<script>
|
||||
$(function(){
|
||||
$('.datetimepicker').datetimepicker({ format: 'YYYY-MM-DD HH:mm:ss' });
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
127
application/views/adm/template.php
Executable file
127
application/views/adm/template.php
Executable file
@@ -0,0 +1,127 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">컨텐츠관리 > 전체리스트</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<div class="box-table-header cm-bottom-control">
|
||||
<div class="col-md-6 cm-top-pagination"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
<div class="pull-right">
|
||||
<form action="" method="get">
|
||||
<select name="category" class="form-control" style="width:100px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $category) { echo '<option value="'.$category->idx.'" '.(param('category') == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control" style="width:100px">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach($graceEditors as $editor) { echo '<option value="'.$editor->editorId.'" '.(param('editor') == $editor->editorId ? 'selected':'').'>'. $editor->editorName. '</option>';}?>
|
||||
</select>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" name="term" value="" placeholder="검색어를 입력하세요" />
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-sm" type="submit">검색!</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" 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="/adm/board/post/listdelete/?">선택삭제</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">전체 : <?php echo $table['total']?>건</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>에디터</th>
|
||||
<th>제목</th>
|
||||
<th>카테고리</th>
|
||||
<th>메인이미지</th>
|
||||
<th>조회수</th>
|
||||
<th>좋아요수</th>
|
||||
<th>댓글수</th>
|
||||
<th>등록일</th>
|
||||
<th><input type="checkbox" name="chkall" id="chkall" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><?php foreach ($table['rows'] as $r) {?>
|
||||
<tr>
|
||||
<td><?php echo $r->idx?></td>
|
||||
<td><?php echo $r->editorName?></td>
|
||||
<td><a href="#" class="cm-title-link"><?php echo $r->title?></a></td>
|
||||
<td><?php echo $r->categoryName?></td>
|
||||
<td><img src="<?php echo imgSrc($r->mainImg)?>" height="50"></td>
|
||||
<td><?php echo $r->views?></td>
|
||||
<td><?php echo $r->likes?></td>
|
||||
<td><?php echo $r->comments?></td>
|
||||
<td><?php echo $r->reg_date?></td>
|
||||
<td><input type="checkbox" name="chk[]" class="list-chkbox" value="<?php echo $r->idx?>" /></td>
|
||||
</tr> <?php }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="box-info row cm-bottom-control">
|
||||
<div class="col-md-6"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
<div class="pull-right">
|
||||
<form action="" method="get">
|
||||
<select name="category" class="form-control" style="width:100px">
|
||||
<option value="">카테고리</option>
|
||||
<?php foreach($lifeCategories as $category) { echo '<option value="'.$category->idx.'" '.(param('category') == $category->idx ? 'selected':'').'>'. $category->category_name. '</option>';}?>
|
||||
</select>
|
||||
<select name="editor" class="form-control" style="width:100px">
|
||||
<option value="">에디터</option>
|
||||
<?php foreach($graceEditors as $editor) { echo '<option value="'.$editor->editorId.'" '.(param('editor') == $editor->editorId ? 'selected':'').'>'. $editor->editorName. '</option>';}?>
|
||||
</select>
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" name="term" value="" placeholder="검색어를 입력하세요" />
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default btn-sm" type="submit">검색!</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" 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="/adm/board/post/listdelete/?">선택삭제</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
101
application/views/adm/ytchannel.php
Executable file
101
application/views/adm/ytchannel.php
Executable file
@@ -0,0 +1,101 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<?php $this->load->view('adm/layout/head')?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- start wrapper -->
|
||||
<div class="wrapper">
|
||||
<!-- start nav -->
|
||||
<?php $this->load->view('adm/layout/nav')?>
|
||||
<!-- end nav -->
|
||||
<!-- start content_wrapper -->
|
||||
<div class="content_wrapper">
|
||||
<!-- start header -->
|
||||
<?php $this->load->view('adm/layout/header')?>
|
||||
<!-- end header -->
|
||||
<div class="contents">
|
||||
<h3 style="font-size:17px;font-weight:bold;color:#aaa">데이터관리 > YT채널관리</h3>
|
||||
<!-- 여기까지 레이아웃 상단입니다 -->
|
||||
<div class="box">
|
||||
<div class="box-table">
|
||||
<div class="box-table-header cm-bottom-control">
|
||||
<div class="col-md-6 cm-top-pagination"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<button type="button" class="btn btn-outline btn-default btn-sm btn-list-delete btn-list-selected disabled" data-list-delete-url="/adm/content/delete?">선택삭제</button>
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" class="btn btn-outline btn-default btn-sm">전체목록</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">전체 : <?php echo $table['total']?>건</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>번호</th>
|
||||
<th>제목</th>
|
||||
<th>카테고리</th>
|
||||
<th>에디터</th>
|
||||
<th>등록일</th>
|
||||
<th>최근수집일</th>
|
||||
<th>수집건수</th>
|
||||
<th><input type="checkbox" name="chkall" id="chkall" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><?php foreach ($table['rows'] as $r) {?>
|
||||
<tr>
|
||||
<td><?php echo $r->Id?></td>
|
||||
<td><?php echo $r->Title?></td>
|
||||
<td><?php echo $r->CategoryId?></td>
|
||||
<td><?php echo $r->editorId?></td>
|
||||
<td><?php echo $r->reg_date?></td>
|
||||
<td><?php echo $r->sync_date?></td>
|
||||
<td><?php echo $r->contentCount?></td>
|
||||
<td><input type="checkbox" name="chk[]" class="list-chkbox" value="<?php echo $r->Id?>" /></td>
|
||||
</tr> <?php }?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="box-info row cm-bottom-control">
|
||||
<div class="col-md-6"><?php echo $paging ?></div>
|
||||
<div class="col-md-4">
|
||||
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" role="group" aria-label="...">
|
||||
<a href="<?php echo explode('?', get_instance()->input->server('REQUEST_URI'))[0]?>" 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="/adm/content/delete?">선택삭제</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 여기부터 레이아웃 하단입니다 -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- end content_wrapper -->
|
||||
</div>
|
||||
<!-- end wrapper -->
|
||||
<?php $this->load->view('adm/layout/footer')?>
|
||||
<script>
|
||||
$(function(){
|
||||
$('.cm-display-select').on('change', function(){
|
||||
if(confirm('공개여부를 ' + this.options[this.selectedIndex].text + '로 변경할까요?')) {
|
||||
var postid = $(this).parent().parent().find('td:first').text();
|
||||
var selectVal = this.value;
|
||||
var is_display = selectVal == 'R' ? 'N': selectVal;
|
||||
$.post('/adm/content/display', {'is_display': is_display, 'postid': postid}, function(res){
|
||||
selectVal == 'R' ? location.href='/adm/content/reserve?list='+postid : location.reload();
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user