장선근
6 years ago
25 changed files with 1083 additions and 1539 deletions
-
4_src/common/scss/_utility.scss
-
2public_html/assets/css/admin.min.css
-
2public_html/assets/css/admin.min.css.map
-
2public_html/assets/css/desktop.min.css
-
2public_html/assets/css/desktop.min.css.map
-
2public_html/assets/css/mobile.min.css
-
2public_html/assets/css/mobile.min.css.map
-
79wheeparam/application/controllers/Board.php
-
217wheeparam/application/controllers/admin/Board.php
-
2wheeparam/application/core/WB_Controller.php
-
44wheeparam/application/helpers/widgets_helper.php
-
419wheeparam/application/libraries/Boardlib.php
-
396wheeparam/application/models/Board_model.php
-
28wheeparam/config/wheeparam.sql
-
2wheeparam/views/skins/board/comment/basic/c_list.php
-
15wheeparam/views/skins/board/list/basic/list.php
-
69wheeparam/views/skins/board/view/basic/view.php
-
28wheeparam/views/skins/board/write/basic/write.php
-
72wheeparam/views/themes/admin/board/category.php
-
15wheeparam/views/themes/admin/board/category_form.php
-
871wheeparam/views/themes/admin/board/form.php
-
154wheeparam/views/themes/admin/board/posts.php
-
63wheeparam/views/themes/admin/board/read.php
-
125wheeparam/views/themes/admin/board/write.php
-
1wheeparam/views/themes/admin/members/login.php
2
public_html/assets/css/admin.min.css
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2
public_html/assets/css/admin.min.css.map
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2
public_html/assets/css/desktop.min.css
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2
public_html/assets/css/desktop.min.css.map
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2
public_html/assets/css/mobile.min.css
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
2
public_html/assets/css/mobile.min.css.map
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,72 +0,0 @@ |
|||
<div class="page-header"> |
|||
<h1 class="page-title">'<?=$board['brd_title']?>' 게시판 카테고리 설정</h1> |
|||
</div> |
|||
|
|||
<div class="row"> |
|||
<div class="col-sm-3"> |
|||
<ul class="nav nav-cards"> |
|||
<li role="presentation"><a class="card" href="<?=base_url('admin/board/form/'.$board['brd_key'])?>">게시판 정보 수정</a></li> |
|||
<li role="presentation" class="active"><a href="#" class="card selected">카테고리 설정</a></li> |
|||
</ul> |
|||
</div> |
|||
<div class="col-sm-9"> |
|||
|
|||
<ul class="category-list"> |
|||
<li> |
|||
<div> |
|||
<?=$board['brd_title']?>
|
|||
<button type="button" class="btn btn-xs btn-default" onclick="APP.BOARD.CATEGORY.form('<?=$board['brd_key']?>',0)"><i class="fal fa-plus-circle"></i></button> |
|||
</div> |
|||
<ul id="category-list"> |
|||
<?php foreach($board['category'] as $cate) : ?>
|
|||
<li data-idx="<?=$cate['bca_idx']?>"> |
|||
<div> |
|||
<i class="fal fa-folder-open"></i> <span class="move-item"><?=$cate['bca_name']?></span>
|
|||
<button type="button" class="btn btn-xs btn-default" onclick="APP.BOARD.CATEGORY.form('<?=$board['brd_key']?>', <?=$cate['bca_idx']?>)"><i class="fal fa-plus-circle"></i></button> |
|||
<button type="button" class="btn btn-xs btn-default" onclick="APP.BOARD.CATEGORY.form('<?=$board['brd_key']?>', 0,<?=$cate['bca_idx']?>)"><i class="fal fa-pencil"></i></button> |
|||
<button type="button" class="btn btn-xs btn-danger" onclick="APP.BOARD.CATEGORY.remove('<?=$cate['bca_idx']?>')"><i class="fal fa-trash"></i></button> |
|||
</div> |
|||
<ul class="items"> |
|||
|
|||
<?php foreach($cate['items'] as $ct):?>
|
|||
<li data-idx="<?=$ct['bca_idx']?>"> |
|||
<div> |
|||
<span class="move-item"><?=$ct['bca_name']?></span>
|
|||
<button type="button" class="btn btn-xs btn-default" onclick="APP.BOARD.CATEGORY.form('<?=$board['brd_key']?>', <?=$cate['bca_idx']?>, <?=$ct['bca_idx']?>)"><i class="fal fa-pencil"></i></button> |
|||
<button type="button" class="btn btn-xs btn-danger" onclick="APP.BOARD.CATEGORY.remove('<?=$ct['bca_idx']?>')"><i class="fal fa-trash"></i></button> |
|||
</div> |
|||
</li> |
|||
<?php endforeach;?>
|
|||
</ul> |
|||
</li> |
|||
<?php endforeach;?>
|
|||
</ul> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</div> |
|||
|
|||
|
|||
<script> |
|||
$(function(){ |
|||
$("#category-list").sortable({ |
|||
update: function(){ |
|||
var obj = []; |
|||
$("#category-list > li").each(function(){ |
|||
obj.push( $(this).data('idx') ); |
|||
}); |
|||
$.post(base_url+'/ajax/board/category_sort',{brd_key:'<?=$board['brd_key']?>', idxs:obj}); |
|||
} |
|||
}); |
|||
|
|||
$("#category-list >li > .items").sortable({ |
|||
update : function(event, ui) { |
|||
var obj = []; |
|||
$("#category-list >li > .items > li").each(function(){ |
|||
obj.push( $(this).data('idx') ); |
|||
}); |
|||
$.post(base_url+'/ajax/board/category_sort',{brd_key:'<?=$board['brd_key']?>', idxs:obj}); |
|||
} |
|||
}); |
|||
}); |
|||
</script> |
@ -1,15 +0,0 @@ |
|||
<?=form_open(NULL,array('autocomplete'=>'off','class'=>'form-flex'))?>
|
|||
<input type="hidden" name="brd_key" value="<?=$brd_key?>"> |
|||
<input type="hidden" name="bca_parent" value="<?=$bca_parent?>"> |
|||
<input type="hidden" name="bca_idx" value="<?=$bca_idx?>"> |
|||
<div class="form-group"> |
|||
<label class="control-label control-label-sm">카테고리 이름</label> |
|||
<div class="controls"> |
|||
<input class="form-control" name="bca_name" value="<?=element('bca_name', $view)?>" required autofocus> |
|||
</div> |
|||
</div> |
|||
<div class="H10"></div> |
|||
<div class="text-center"> |
|||
<button class="btn btn-primary"><i class="fal fa-save"></i> 저장하기</button> |
|||
</div> |
|||
<?=form_close()?>
|
@ -1,70 +1,95 @@ |
|||
<div class="container"> |
|||
<div class="ax-button-group"> |
|||
<div class="left"> |
|||
<h2><?=$board['brd_title']?> 글쓰기</h2>
|
|||
</div> |
|||
<div class="ax-button-group"> |
|||
<div class="left"> |
|||
<h2><?=$board['brd_title']?> 글쓰기</h2>
|
|||
</div> |
|||
</div> |
|||
|
|||
<?=$form_open?>
|
|||
|
|||
<div class="form-flex"> |
|||
<?=$form_open?>
|
|||
<?=validation_errors('<p class="alert alert-danger">')?>
|
|||
<div class="form-group"> |
|||
<label class="control-label">제목</label> |
|||
<div class="controls"> |
|||
<?=validation_errors('<p class="alert alert-danger">')?>
|
|||
|
|||
<div data-ax-tbl> |
|||
<?php if($use_category) :?>
|
|||
<div data-ax-tr> |
|||
<div data-ax-td> |
|||
<div data-ax-td-label>카테고리</div> |
|||
<div data-ax-td-wrap> |
|||
<select class="form-control" name="post_category"> |
|||
<?php foreach($board['category'] as $cate):?>
|
|||
<option value="<?=$cate?>" <?=$cate==element('post_category', $view)?'selected':''?>><?=$cate?></option>
|
|||
<?php endforeach;?>
|
|||
</select> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<?php endif;?>
|
|||
<div data-ax-tr> |
|||
<div data-ax-td class="width-100"> |
|||
<div data-ax-td-label>제목</div> |
|||
<div data-ax-td-wrap> |
|||
<input class="form-control" id="w_title" name="post_title" value="<?=element('post_title', $view)?>" required> |
|||
</div> |
|||
</div> |
|||
<?php if(! defined('IS_REPLY_WRITE_FORM') && $use_notice) :?>
|
|||
<div class="form-group"> |
|||
<label class="control-label">공지</label> |
|||
<div class="controls"> |
|||
<label class="w-check"> |
|||
<input type="checkbox" value="Y" name="post_notice" <?=element('post_notice',$view,'N')=='Y'?'checked':''?>><span>공지로 등록</span>
|
|||
</label> |
|||
</div> |
|||
</div> |
|||
<?php if(! defined('IS_REPLY_WRITE_FORM') && $use_notice) :?>
|
|||
<div data-ax-tr> |
|||
<div data-ax-td class="width-100"> |
|||
<div data-ax-td-label>공지</div> |
|||
<div data-ax-td-wrap> |
|||
<label class="w-check"> |
|||
<input type="checkbox" value="Y" name="post_notice" <?=element('post_notice',$view,'N')=='Y'?'checked':''?>><span>공지로 등록</span>
|
|||
</label> |
|||
</div> |
|||
<?php endif;?>
|
|||
<div class="form-group"> |
|||
<label class="control-label">내용</label> |
|||
<div class="controls"> |
|||
</div> |
|||
</div> |
|||
<?php endif;?>
|
|||
<div data-ax-tr> |
|||
<div data-ax-td class="width-100"> |
|||
<div data-ax-td-label>내용</div> |
|||
<div data-ax-td-wrap> |
|||
<?=get_editor('post_content', element('post_content', $view), '');?>
|
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="control-label">태그</label> |
|||
<div class="controls"> |
|||
</div> |
|||
<div data-ax-tr> |
|||
<div data-ax-td class="width-100"> |
|||
<div data-ax-td-label>태그</div> |
|||
<div data-ax-td-wrap> |
|||
<input class="form-control" id="w_keywords" name="post_keywords" value="<?=element('post_keywords', $view)?>"> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="control-label">파일첨부</label> |
|||
<div class="controls"> |
|||
</div> |
|||
<div data-ax-tr> |
|||
<div data-ax-td class="width-100"> |
|||
<div data-ax-td-label>파일첨부</div> |
|||
<div data-ax-td-wrap> |
|||
[widget name="board_file_upload"] |
|||
</div> |
|||
</div> |
|||
|
|||
<?php if( $post_idx && count(element('file', $view, array())) > 0) :?>
|
|||
<div class="form-group"> |
|||
<label class="control-label">첨부된 파일</label> |
|||
<div class="controls"> |
|||
<?php foreach($view['file'] as $attach) : ?>
|
|||
<div class="col-sm-3"> |
|||
<?php $img_url = ($attach['att_is_image'] == 'Y') ? base_url($attach['att_filepath']) : base_url('assets/images/common/attach.png'); ?>
|
|||
<figure> |
|||
<img class="img-responsive" src="<?=$img_url?>" <?=($attach['att_is_image'] != 'Y')?'style="max-width:64px;margin:auto"':''?>>
|
|||
<figcaption><?=$attach['att_origin']?></figcaption>
|
|||
</figure> |
|||
<div class="checkbox"> |
|||
<label><input type="checkbox" name="del_file[]" value="<?=$attach['att_idx']?>"> 파일 삭제</label> |
|||
</div> |
|||
</div> |
|||
<?php if( $post_idx && count(element('file', $view, array())) > 0) :?>
|
|||
<div data-ax-tr> |
|||
<div data-ax-td class="width-100"> |
|||
<div data-ax-td-label>첨부된 파일</div> |
|||
<div data-ax-td-wrap> |
|||
<?php foreach($view['file'] as $attach) : ?>
|
|||
<div class="col-sm-3"> |
|||
<?php $img_url = ($attach['att_is_image'] == 'Y') ? base_url($attach['att_filepath']) : base_url('assets/images/common/attach.png'); ?>
|
|||
<figure> |
|||
<img class="img-responsive" src="<?=$img_url?>" <?=($attach['att_is_image'] != 'Y')?'style="max-width:64px;margin:auto"':''?>>
|
|||
<figcaption><?=$attach['att_origin']?></figcaption>
|
|||
</figure> |
|||
<div class="checkbox"> |
|||
<label><input type="checkbox" name="del_file[]" value="<?=$attach['att_idx']?>"> 파일 삭제</label> |
|||
</div> |
|||
<?php endforeach;?>
|
|||
</div> |
|||
</div> |
|||
<?php endforeach;?>
|
|||
</div> |
|||
<?php endif;?>
|
|||
<div class="text-center MT10"> |
|||
<button class="btn btn-primary">작성하기</button> |
|||
</div> |
|||
<?=$form_close?>
|
|||
</div> |
|||
<?php endif;?>
|
|||
</div> |
|||
<div class="text-center MT15"> |
|||
<button class="btn btn-primary">작성하기</button> |
|||
</div> |
|||
<?=$form_close?>
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue