first commit
This commit is contained in:
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>
|
||||
Reference in New Issue
Block a user