first
This commit is contained in:
209
modules/bbs/admin/_add_fgroup.php
Normal file
209
modules/bbs/admin/_add_fgroup.php
Normal file
@@ -0,0 +1,209 @@
|
||||
<!--
|
||||
// makebbs.php 의 추가설정 부분
|
||||
-->
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">게시판 관리자</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<div class="input-group">
|
||||
<input class="form-control" placeholder="" type="text" name="admin" value="<?php echo $d['bbs']['admin']?>">
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-secondary" type="button" data-toggle="collapse" data-target="#bbs_admin-guide" data-tooltip="tooltip" title="도움말">
|
||||
<i class="fa fa-question-circle fa-lg"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<p class="help-block collapse" id="bbs_admin-guide">
|
||||
<small class="form-text text-muted">
|
||||
이 게시판에 대해서 관리자권한을 별도로 부여할 회원이 있을경우
|
||||
회원아이디를 콤마(,)로 구분해서 등록해 주세요.<br />
|
||||
관리자로 지정될 경우 열람/수정/삭제등의 모든권한을 얻게 됩니다.
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">최근글 제외</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="display" name="display" value="1" <?php if($d['bbs']['display']):?> checked<?php endif?>>
|
||||
<label class="custom-control-label" for="display">최근글 추출에서 제외합니다.</label>
|
||||
</div>
|
||||
<div class="help-text">
|
||||
<small class="text-muted">
|
||||
<a data-toggle="collapse" href="#bbs_display-guide"><i class="fa fa-question-circle fa-fw"></i>도움말</a>
|
||||
</small>
|
||||
</div>
|
||||
<p class="help-block collapse" id="bbs_display-guide">
|
||||
<small class="form-text text-muted">
|
||||
최근글 추출제외는 게시물등록시에 이 설정값을 따르므로 설정값을 중간에 변경하면 이전 게시물에 대해서는 적용되지 않습니다.
|
||||
최근글 제외설정은 게시판 서비스전에 확정하여 주세요.<br />
|
||||
최근글에서 제외하면 통합검색에서도 제외됩니다.
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">쿼리 생략</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="hidelist" name="hidelist" value="1" <?php if($d['bbs']['hidelist']):?> checked<?php endif?>>
|
||||
<label class="custom-control-label" for="hidelist">게시물가공 기본쿼리를 생략합니다.</label>
|
||||
</div>
|
||||
<div class="help-text">
|
||||
<small class="text-muted">
|
||||
<a data-toggle="collapse" href="#bbs_hidelist-guide"><i class="fa fa-question-circle fa-fw"></i>도움말</a>
|
||||
</small>
|
||||
</div>
|
||||
<p class="help-block collapse" id="bbs_hidelist-guide">
|
||||
<small class="form-text text-muted">
|
||||
종종 기본쿼리가 아닌 테마자체에서 데이터를 가공해야 하는 경우가 있습니다.<br />
|
||||
1:1상담게시판,일정관리 등 특수한 테마의 경우 쿼리생략이 요구되기도 합니다.<br />
|
||||
쿼리생략이 요구되는 테마를 사용할 경우 체크해 주세요.<br />
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">RSS 발행</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="rss" name="rss" value="1" <?php if($d['bbs']['rss']):?> checked<?php endif?>>
|
||||
<label class="custom-control-label" for="rss">RSS발행을 허용합니다. (개별게시판별 RSS발행은 개별게시판 설정을 따름)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">조회수 증가</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
|
||||
<div class="custom-control custom-radio custom-control-inline">
|
||||
<input type="radio" id="hitcount_1" name="hitcount" value="1" <?php if($d['bbs']['hitcount']):?> checked<?php endif?> class="custom-control-input">
|
||||
<label class="custom-control-label" for="hitcount_1">무조건 증가</label>
|
||||
</div>
|
||||
<div class="custom-control custom-radio custom-control-inline">
|
||||
<input type="radio" id="hitcount_0" name="hitcount" value="0"<?php if(!$d['bbs']['hitcount']):?> checked<?php endif?> class="custom-control-input">
|
||||
<label class="custom-control-label" for="hitcount_0">1회만 증가</label>
|
||||
</div>
|
||||
|
||||
</div><!-- .col-lg-10 col-xl-9 -->
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">게시물 출력</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<input type="text" name="recnum" value="<?php echo $d['bbs']['recnum']?$d['bbs']['recnum']:20?>" class="form-control">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">개</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-5 form-control-static text-muted">
|
||||
<small>한페이지에 출력할 게시물의 수</small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">제목 끊기</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<input type="text" name="sbjcut" value="<?php echo $d['bbs']['sbjcut']?$d['bbs']['sbjcut']:40?>" class="form-control">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">자</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-5 form-control-static text-muted">
|
||||
<small>제목이 길 경우 보여줄 글자 수 </small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">새글 유지시간</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<input type="text" name="newtime" value="<?php echo $d['bbs']['newtime']?$d['bbs']['newtime']:24?>" class="form-control">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">시간</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-5 text-muted form-control-static">
|
||||
<small> 새글로 인식되는 시간 </small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">등록 포인트</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<input type="text" name="point1" value="<?php echo $d['bbs']['point1']?$d['bbs']['point1']:0?>" class="form-control">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">포인트 지급</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-5 text-muted form-control-static">
|
||||
<small> 게시물 삭제시 환원됩니다. </small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">열람 포인트</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<input type="text" name="point2" value="<?php echo $d['bbs']['point2']?$d['bbs']['point2']:0?>" class="form-control">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">포인트 차감</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-5 text-muted form-control-static">
|
||||
<small> </small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">다운 포인트</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<div class="row">
|
||||
<div class="col-sm-4">
|
||||
<div class="input-group">
|
||||
<input type="text" name="point3" value="<?php echo $d['bbs']['point3']?$d['bbs']['point3']:0?>" class="form-control">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">포인트 차감</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-5 text-muted form-control-static">
|
||||
<small> </small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">부가필드</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<textarea name="addinfo" class="form-control" rows="3"><?php echo htmlspecialchars($R['addinfo'])?></textarea>
|
||||
<small class="form-text text-muted">
|
||||
이 게시판에 대해서 추가적인 정보가 필요할 경우 사용합니다.<br />
|
||||
필드명은 <code>[addinfo]</code> 입니다.
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
49
modules/bbs/admin/_footer_fgroup.php
Normal file
49
modules/bbs/admin/_footer_fgroup.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<!--
|
||||
// makebbs.php 의 픗터삽입 부분
|
||||
-->
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">픗터 파일</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<input type="file" name="imgfoot">
|
||||
|
||||
<?php if($R['imgfoot']):?>
|
||||
<p class="form-control-static">
|
||||
<a class="btn bnt-link" href="<?php echo $g['s']?>/?m=<?php echo $module?>&a=bbs_file_delete&bid=<?php echo $R['id']?>&dtype=foot" target="_action_frame_admin" onclick="return hrefCheck(this,true,'정말로 삭제하시겠습니까?');">삭제</a>
|
||||
<a class="btn btn-link" href="<?php echo $g['s']?>/modules/<?php echo $module?>/var/files/<?php echo $R['imgfoot']?>" target="_blank">등록파일 보기</a>
|
||||
</p>
|
||||
<?php else:?>
|
||||
<small class="help-block">(gif/jpg/png 가능)</small>
|
||||
<?php endif?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">
|
||||
픗터 코드
|
||||
</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<p>
|
||||
<textarea name="codfoot" id="codfootArea" class="form-control" rows="5"><?php if(is_file($g['path_module'].$module.'/var/code/'.$R['id'].'.footer.php')) echo htmlspecialchars(implode('',file($g['path_module'].$module.'/var/code/'.$R['id'].'.footer.php')))?></textarea>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">
|
||||
노출 위치
|
||||
</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
|
||||
<div class="custom-control custom-checkbox custom-control-inline">
|
||||
<input type="checkbox" class="custom-control-input" id="inc_foot_list" name="inc_foot_list" value="[l]"<?php if(strstr($R['putfoot'],'[l]')):?> checked <?php endif?>>
|
||||
<label class="custom-control-label" for="inc_foot_list">목록</label>
|
||||
</div>
|
||||
<div class="custom-control custom-checkbox custom-control-inline">
|
||||
<input type="checkbox" class="custom-control-input" id="inc_foot_view" name="inc_foot_view" value="[v]"<?php if(strstr($R['putfoot'],'[v]')):?> checked <?php endif?>>
|
||||
<label class="custom-control-label" for="inc_foot_view">본문</label>
|
||||
</div>
|
||||
<div class="custom-control custom-checkbox custom-control-inline">
|
||||
<input type="checkbox" class="custom-control-input" id="inc_foot_write" name="inc_foot_write" value="[w]"<?php if(strstr($R['putfoot'],'[w]')):?> checked <?php endif?>>
|
||||
<label class="custom-control-label" for="inc_foot_write">쓰기</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
48
modules/bbs/admin/_header_fgroup.php
Normal file
48
modules/bbs/admin/_header_fgroup.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<!--
|
||||
// makebbs.php 의 헤더삽입 부분
|
||||
-->
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right" >헤더 파일</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<input type="file" name="imghead">
|
||||
<?php if($R['imghead']):?>
|
||||
<p class="form-control-static">
|
||||
<a class="btn bnt-link" href="<?php echo $g['s']?>/?m=<?php echo $module?>&a=bbs_file_delete&bid=<?php echo $R['id']?>&dtype=head" target="_action_frame_admin" onclick="return hrefCheck(this,true,'정말로 삭제하시겠습니까?');">삭제</a>
|
||||
<a class="btn btn-link" href="<?php echo $g['s']?>/modules/<?php echo $module?>/var/files/<?php echo $R['imghead']?>" target="_blank">등록파일 보기</a>
|
||||
</p>
|
||||
<?php else:?>
|
||||
<small class="help-block">(gif/jpg/png 가능)</small>
|
||||
<?php endif?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">
|
||||
헤더 코드
|
||||
</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<p>
|
||||
<textarea name="codhead" id="codheadArea" class="form-control" rows="5"><?php if(is_file($g['path_module'].$module.'/var/code/'.$R['id'].'.header.php')) echo htmlspecialchars(implode('',file($g['path_module'].$module.'/var/code/'.$R['id'].'.header.php')))?></textarea>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">
|
||||
노출 위치
|
||||
</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
|
||||
<div class="custom-control custom-checkbox custom-control-inline">
|
||||
<input type="checkbox" class="custom-control-input" id="inc_head_list" name="inc_head_list" value="[l]"<?php if(strstr($R['puthead'],'[l]')):?> checked <?php endif?>>
|
||||
<label class="custom-control-label" for="inc_head_list">목록</label>
|
||||
</div>
|
||||
<div class="custom-control custom-checkbox custom-control-inline">
|
||||
<input type="checkbox" class="custom-control-input" id="inc_head_view" name="inc_head_view" value="[v]"<?php if(strstr($R['puthead'],'[v]')):?> checked <?php endif?>>
|
||||
<label class="custom-control-label" for="inc_head_view">본문</label>
|
||||
</div>
|
||||
<div class="custom-control custom-checkbox custom-control-inline">
|
||||
<input type="checkbox" class="custom-control-input" id="inc_head_write" name="inc_head_write" value="[w]"<?php if(strstr($R['puthead'],'[w]')):?> checked <?php endif?>>
|
||||
<label class="custom-control-label" for="inc_head_write">쓰기</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
29
modules/bbs/admin/_info.php
Normal file
29
modules/bbs/admin/_info.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
$license_local = $g['path_module'].$module.'/LICENSE';
|
||||
$license_global = $g['path_root'].'LICENSE';
|
||||
|
||||
if (file_exists($license_local)) $license = $license_local;
|
||||
else $license = $license_global;
|
||||
?>
|
||||
|
||||
<link href="<?php echo $g['s']?>/_core/css/github-markdown.css" rel="stylesheet">
|
||||
<?php getImport('jquery-markdown','jquery.markdown','0.0.10','js')?>
|
||||
|
||||
<?php @include $g['path_module'].$module.'/var/var.moduleinfo.php' ?>
|
||||
|
||||
<article class="rb-docs markdown-body px-5 pt-3">
|
||||
<h1><?php echo sprintf('%s 모듈정보',ucfirst($MD['name']))?></h1>
|
||||
|
||||
<div class="pb-5 readme">
|
||||
<?php readfile($g['path_module'].$module.'/README.md')?>
|
||||
</div>
|
||||
|
||||
<div class="pb-5">
|
||||
<h2>라이센스</h2>
|
||||
<textarea class="form-control" rows="10"><?php readfile($license)?></textarea>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(".markdown-body .readme").markdown();
|
||||
</script>
|
||||
39
modules/bbs/admin/_noti_fgroup.php
Normal file
39
modules/bbs/admin/_noti_fgroup.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">게시물 등록</label>
|
||||
<div class="col-lg-10 col-xl-9 pt-1">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="noti_newpost" name="noti_newpost" value="1" <?php if($d['bbs']['noti_newpost']):?> checked<?php endif?>>
|
||||
<label class="custom-control-label small text-muted" for="noti_newpost">신규 게시물 등록시, 게시판 관리자에게 알림발송</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">좋아요 등록</label>
|
||||
<div class="col-lg-10 col-xl-9 pt-1">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="noti_opinion" name="noti_opinion" value="1" <?php if($d['bbs']['noti_opinion']):?> checked<?php endif?>>
|
||||
<label class="custom-control-label small text-muted" for="noti_opinion">게시물에 좋아요(싫어요) 등록(취소)시, 게시물 등록회원에게 알림발송</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">게시물 신고</label>
|
||||
<div class="col-lg-10 col-xl-9 pt-2">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="noti_report" name="noti_report" value="1" <?php if($d['bbs']['noti_report']):?> checked<?php endif?>>
|
||||
<label class="custom-control-label small text-muted" for="noti_report">게시물 신고시, 게시판 관리자에게 알림발송</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row d-none">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">회원 언급</label>
|
||||
<div class="col-lg-10 col-xl-9 pt-1">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="noti_mention" name="noti_mention" value="1" <?php if($d['bbs']['noti_mention']):?> checked<?php endif?>>
|
||||
<label class="custom-control-label small text-muted" for="noti_mention">게시물에 언급시, 언급된 회원(들)에게 알림발송</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
122
modules/bbs/admin/_right_fgroup.php
Normal file
122
modules/bbs/admin/_right_fgroup.php
Normal file
@@ -0,0 +1,122 @@
|
||||
<!--
|
||||
// makebbs.php 의 권한설정 부분
|
||||
-->
|
||||
<fieldset>
|
||||
<legend><span class="badge badge-pill badge-primary">목록접근</span></legend>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">허용등급</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="perm_l_list" class="form-control custom-select">
|
||||
<option value="0"> + 전체허용</option>
|
||||
<option value="0">--------------------------------</option>
|
||||
<?php $_LEVEL=getDbArray($table['s_mbrlevel'],'','*','uid','asc',0,1)?>
|
||||
<?php while($_L=db_fetch_array($_LEVEL)):?>
|
||||
<option value="<?php echo $_L['uid']?>"<?php if($_L['uid']==$d['bbs']['perm_l_list']):?> selected="selected"<?php endif?>>ㆍ<?php echo $_L['name']?>(<?php echo number_format($_L['num'])?>) 이상</option>
|
||||
<?php if($_L['gid'])break; endwhile?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">차단그룹</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="_perm_g_list" class="form-control custom-select" multiple size="5">
|
||||
<option value=""<?php if(!$d['bbs']['perm_g_list']):?> selected="selected"<?php endif?>>ㆍ차단안함</option>
|
||||
<?php $_SOSOK=getDbArray($table['s_mbrgroup'],'','*','gid','asc',0,1)?>
|
||||
<?php while($_S=db_fetch_array($_SOSOK)):?>
|
||||
<option value="<?php echo $_S['uid']?>"<?php if(strstr($d['bbs']['perm_g_list'],'['.$_S['uid'].']')):?> selected="selected"<?php endif?>>ㆍ<?php echo $_S['name']?>(<?php echo number_format($_S['num'])?>)</option>
|
||||
<?php endwhile?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="mt-4">
|
||||
<legend><span class="badge badge-pill badge-primary">본문열람</span></legend>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">허용등급</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="perm_l_view" class="form-control custom-select">
|
||||
<option value="0"> + 전체허용</option>
|
||||
<option value="0">--------------------------------</option>
|
||||
<?php $_LEVEL=getDbArray($table['s_mbrlevel'],'','*','uid','asc',0,1)?>
|
||||
<?php while($_L=db_fetch_array($_LEVEL)):?>
|
||||
<option value="<?php echo $_L['uid']?>"<?php if($_L['uid']==$d['bbs']['perm_l_view']):?> selected="selected"<?php endif?>>ㆍ<?php echo $_L['name']?>(<?php echo number_format($_L['num'])?>) 이상</option>
|
||||
<?php if($_L['gid'])break; endwhile?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">차단그룹</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="_perm_g_view" class="form-control custom-select" multiple size="5">
|
||||
<option value=""<?php if(!$d['bbs']['perm_g_view']):?> selected="selected"<?php endif?>>ㆍ차단안함</option>
|
||||
<?php $_SOSOK=getDbArray($table['s_mbrgroup'],'','*','gid','asc',0,1)?>
|
||||
<?php while($_S=db_fetch_array($_SOSOK)):?>
|
||||
<option value="<?php echo $_S['uid']?>"<?php if(strstr($d['bbs']['perm_g_view'],'['.$_S['uid'].']')):?> selected="selected"<?php endif?>>ㆍ<?php echo $_S['name']?>(<?php echo number_format($_S['num'])?>)</option>
|
||||
<?php endwhile?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="mt-4">
|
||||
<legend><span class="badge badge-pill badge-primary">글쓰기</span></legend>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">허용등급</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<?php if (!$uid): ?>
|
||||
<input type="hidden" name="perm_l_write" value="1">
|
||||
<?php else: ?>
|
||||
<select name="perm_l_write" class="form-control custom-select">
|
||||
<option value="0"> + 전체허용</option>
|
||||
<option value="0">--------------------------------</option>
|
||||
<?php $_LEVEL=getDbArray($table['s_mbrlevel'],'','*','uid','asc',0,1)?>
|
||||
<?php while($_L=db_fetch_array($_LEVEL)):?>
|
||||
<option value="<?php echo $_L['uid']?>"<?php if($_L['uid']==$d['bbs']['perm_l_write']):?> selected="selected"<?php endif?>>ㆍ<?php echo $_L['name']?>(<?php echo number_format($_L['num'])?>) 이상</option>
|
||||
<?php if($_L['gid'])break; endwhile?>
|
||||
</select>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">차단그룹</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="_perm_g_write" class="form-control custom-select" multiple size="5">
|
||||
<option value=""<?php if(!$d['bbs']['perm_g_write']):?> selected="selected"<?php endif?>>ㆍ차단안함</option>
|
||||
<?php $_SOSOK=getDbArray($table['s_mbrgroup'],'','*','gid','asc',0,1)?>
|
||||
<?php while($_S=db_fetch_array($_SOSOK)):?>
|
||||
<option value="<?php echo $_S['uid']?>"<?php if(strstr($d['bbs']['perm_g_write'],'['.$_S['uid'].']')):?> selected="selected"<?php endif?>>ㆍ<?php echo $_S['name']?>(<?php echo number_format($_S['num'])?>)</option>
|
||||
<?php endwhile?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="mt-4">
|
||||
<legend><span class="badge badge-pill badge-primary">다운로드</span></legend>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">허용등급</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="perm_l_down" class="form-control custom-select">
|
||||
<option value="0"> + 전체허용</option>
|
||||
<option value="0">--------------------------------</option>
|
||||
<?php $_LEVEL=getDbArray($table['s_mbrlevel'],'','*','uid','asc',0,1)?>
|
||||
<?php while($_L=db_fetch_array($_LEVEL)):?>
|
||||
<option value="<?php echo $_L['uid']?>"<?php if($_L['uid']==$d['bbs']['perm_l_down']):?> selected="selected"<?php endif?>>ㆍ<?php echo $_L['name']?>(<?php echo number_format($_L['num'])?>) 이상</option>
|
||||
<?php if($_L['gid'])break; endwhile?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">차단그룹</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="_perm_g_down" class="form-control custom-select" multiple size="5">
|
||||
<option value=""<?php if(!$d['bbs']['perm_g_down']):?> selected="selected"<?php endif?>>ㆍ차단안함</option>
|
||||
<?php $_SOSOK=getDbArray($table['s_mbrgroup'],'','*','gid','asc',0,1)?>
|
||||
<?php while($_S=db_fetch_array($_SOSOK)):?>
|
||||
<option value="<?php echo $_S['uid']?>"<?php if(strstr($d['bbs']['perm_g_down'],'['.$_S['uid'].']')):?> selected="selected"<?php endif?>>ㆍ<?php echo $_S['name']?>(<?php echo number_format($_S['num'])?>)</option>
|
||||
<?php endwhile?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
379
modules/bbs/admin/comment.php
Normal file
379
modules/bbs/admin/comment.php
Normal file
@@ -0,0 +1,379 @@
|
||||
<?php
|
||||
//동기화URL
|
||||
function getCyncUrl($cync)
|
||||
{
|
||||
if (!$cync) return $GLOBALS['g']['r'];
|
||||
$_r = getArrayString($cync);
|
||||
$_r = $_r['data'][5];
|
||||
if ($GLOBALS['_HS']['rewrite']&&strpos('_'.$_r,'m:bbs,bid:'))
|
||||
{
|
||||
$_r = str_replace('m:bbs','b',$_r);
|
||||
$_r = str_replace(',bid:','/',$_r);
|
||||
$_r = str_replace(',uid:','/',$_r);
|
||||
$_r = str_replace(',CMT:','/',$_r);
|
||||
$_r = str_replace(',s:','/s',$_r);
|
||||
return $GLOBALS['g']['r'].'/'.$_r;
|
||||
}
|
||||
else return $GLOBALS['g']['s'].'/?'.($GLOBALS['_HS']['usescode']?'r='.$GLOBALS['_HS']['id'].'&':'').str_replace(':','=',str_replace(',','&',$_r));
|
||||
}
|
||||
|
||||
$SITES = getDbArray($table['s_site'],'','*','gid','asc',0,1);
|
||||
$sort = $sort ? $sort : 'uid';
|
||||
$orderby= $orderby ? $orderby : 'asc';
|
||||
$recnum = $recnum && $recnum < 200 ? $recnum : 20;
|
||||
$_WHERE='uid>0';
|
||||
if($account) $_WHERE .=' and site='.$account;
|
||||
if ($d_start) $_WHERE .= ' and d_regis > '.str_replace('/','',$d_start).'000000';
|
||||
if ($d_finish) $_WHERE .= ' and d_regis < '.str_replace('/','',$d_finish).'240000';
|
||||
if ($bid) $_WHERE .= ' and bbs='.$bid;
|
||||
if ($category) $_WHERE .= " and category ='".$category."'";
|
||||
if ($notice) $_WHERE .= ' and notice=1';
|
||||
if ($hidden) $_WHERE .= ' and hidden=1';
|
||||
if ($where && $keyw)
|
||||
{
|
||||
if (strstr('[name][nic][id][ip]',$where)) $_WHERE .= " and ".$where."='".$keyw."'";
|
||||
else $_WHERE .= getSearchSql($where,$keyw,$ikeyword,'or');
|
||||
}
|
||||
$RCD = getDbArray($table['s_comment'],$_WHERE,'*',$sort,$orderby,$recnum,$p);
|
||||
$NUM = getDbRows($table['s_comment'],$_WHERE);
|
||||
$TPG = getTotalPage($NUM,$recnum);
|
||||
|
||||
|
||||
?>
|
||||
<div class="page-header">
|
||||
<h4>댓글 리스트 </h4>
|
||||
</div>
|
||||
<form name="procForm" action="<?php echo $g['s']?>/" method="get" class="form-horizontal rb-form">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>" />
|
||||
<input type="hidden" name="m" value="<?php echo $m?>" />
|
||||
<input type="hidden" name="module" value="<?php echo $module?>" />
|
||||
<input type="hidden" name="front" value="<?php echo $front?>" />
|
||||
|
||||
<div class="rb-heading well well-sm">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-1 control-label">필터 </label>
|
||||
<div class="col-sm-10">
|
||||
<div class="row">
|
||||
<div class="col-sm-3">
|
||||
<select name="account" class="form-control input-sm" onchange="this.form.submit();">
|
||||
<option value="">+ 전체사이트</option>
|
||||
<option value="">--------------------</option>
|
||||
<?php while($S = db_fetch_array($SITES)):?>
|
||||
<option value="<?php echo $S['uid']?>"<?php if($account==$S['uid']):?> selected="selected"<?php endif?>>ㆍ<?php echo $S['name']?></option>
|
||||
<?php endwhile?>
|
||||
<?php if(!db_num_rows($SITES)):?>
|
||||
<option value="">등록된 사이트가 없습니다.</option>
|
||||
<?php endif?>
|
||||
</select>
|
||||
</div>
|
||||
</div> <!-- .row -->
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
<!-- 고급검색 시작 -->
|
||||
<div id="search-more" class="collapse<?php if($_SESSION['sh_bbspost']):?> in<?php endif?>">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-1 control-label">옵션 </label>
|
||||
<div class="col-sm-10">
|
||||
<div class="row">
|
||||
<div class="col-sm-2">
|
||||
<label class="checkbox" style="margin-top:0">
|
||||
<input type="checkbox" name="notice" value="Y"<?php if($notice=='Y'):?> checked<?php endif?> onclick="this.form.submit();" class="form-control"> <i></i>공지글
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<label class="checkbox" style="margin-top:0">
|
||||
<input type="checkbox" name="hidden" value="Y"<?php if($hidden=='Y'):?> checked<?php endif?> onclick="this.form.submit();" class="form-control"><i></i>비밀글
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-1 control-label">기간</label>
|
||||
<div class="col-sm-10">
|
||||
<div class="row">
|
||||
<div class="col-sm-5">
|
||||
<div class="input-daterange input-group input-group-sm" id="datepicker">
|
||||
<input type="text" class="form-control" name="d_start" placeholder="시작일 선택" value="<?php echo $d_start?>">
|
||||
<span class="input-group-addon">~</span>
|
||||
<input type="text" class="form-control" name="d_finish" placeholder="종료일 선택" value="<?php echo $d_finish?>">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" type="submit">기간적용</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3 hidden-xs">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" type="button" onclick="dropDate('<?php echo date('Y/m/d',mktime(0,0,0,substr($date['today'],4,2),substr($date['today'],6,2)-1,substr($date['today'],0,4)))?>','<?php echo date('Y/m/d',mktime(0,0,0,substr($date['today'],4,2),substr($date['today'],6,2)-1,substr($date['today'],0,4)))?>');">어제</button>
|
||||
<button class="btn btn-default" type="button" onclick="dropDate('<?php echo getDateFormat($date['today'],'Y/m/d')?>','<?php echo getDateFormat($date['today'],'Y/m/d')?>');">오늘</button>
|
||||
<button class="btn btn-default" type="button" onclick="dropDate('<?php echo date('Y/m/d',mktime(0,0,0,substr($date['today'],4,2),substr($date['today'],6,2)-7,substr($date['today'],0,4)))?>','<?php echo getDateFormat($date['today'],'Y/m/d')?>');">일주</button>
|
||||
<button class="btn btn-default" type="button" onclick="dropDate('<?php echo date('Y/m/d',mktime(0,0,0,substr($date['today'],4,2)-1,substr($date['today'],6,2),substr($date['today'],0,4)))?>','<?php echo getDateFormat($date['today'],'Y/m/d')?>');">한달</button>
|
||||
<button class="btn btn-default" type="button" onclick="dropDate('<?php echo getDateFormat(substr($date['today'],0,6).'01','Y/m/d')?>','<?php echo getDateFormat($date['today'],'Y/m/d')?>');">당월</button>
|
||||
<button class="btn btn-default" type="button" onclick="dropDate('<?php echo date('Y/m/',mktime(0,0,0,substr($date['today'],4,2)-1,substr($date['today'],6,2),substr($date['today'],0,4)))?>01','<?php echo date('Y/m/',mktime(0,0,0,substr($date['today'],4,2)-1,substr($date['today'],6,2),substr($date['today'],0,4)))?>31');">전월</button>
|
||||
<button class="btn btn-default" type="button" onclick="dropDate('','');">전체</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group hidden-xs">
|
||||
<label class="col-sm-1 control-label">정렬</label>
|
||||
<div class="col-sm-10">
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group btn-group-sm" data-toggle="buttons">
|
||||
<label class="btn btn-default<?php if($sort=='gid'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="uid" name="sort"<?php if($sort=='uid'):?> checked<?php endif?>> 등록일
|
||||
</label>
|
||||
<label class="btn btn-default<?php if($sort=='hit'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="hit" name="sort"<?php if($sort=='hit'):?> checked<?php endif?>> 조회
|
||||
</label>
|
||||
<label class="btn btn-default<?php if($sort=='down'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="down" name="sort"<?php if($sort=='down'):?> checked<?php endif?>> 다운
|
||||
</label>
|
||||
<label class="btn btn-default<?php if($sort=='oneline'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="oneline" name="sort"<?php if($sort=='oneline'):?> checked<?php endif?>> 한줄의견
|
||||
</label>
|
||||
<label class="btn btn-default<?php if($sort=='score1'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="score1" name="sort"<?php if($sort=='score1'):?> checked<?php endif?>> 점수1
|
||||
</label>
|
||||
<label class="btn btn-default<?php if($sort=='score2'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="score2" name="sort"<?php if($sort=='score2'):?> checked<?php endif?>> 점수2
|
||||
</label>
|
||||
<label class="btn btn-default<?php if($sort=='report'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="report" name="sort"<?php if($sort=='report'):?> checked<?php endif?>> 신고
|
||||
</label>
|
||||
</div>
|
||||
<div class="btn-group btn-group-sm" data-toggle="buttons">
|
||||
<label class="btn btn-default<?php if($orderby=='desc'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="desc" name="orderby"<?php if($orderby=='desc'):?> checked<?php endif?>> <i class="fa fa-sort-amount-desc"></i>역순
|
||||
</label>
|
||||
<label class="btn btn-default<?php if($orderby=='asc'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="asc" name="orderby"<?php if($orderby=='asc'):?> checked<?php endif?>> <i class="fa fa-sort-amount-asc"></i>정순
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-1 control-label">검색</label>
|
||||
<div class="col-sm-10">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-btn hidden-xs" style="width:165px">
|
||||
<select name="where" class="form-control btn btn-default">
|
||||
<option value="subject"<?php if($where=='subject'):?> selected="selected"<?php endif?>>제목</option>
|
||||
<option value="content"<?php if($where=='content'):?> selected="selected"<?php endif?>>본문</option>
|
||||
<option value="name"<?php if($where=='name'):?> selected="selected"<?php endif?>>이름</option>
|
||||
<option value="nic"<?php if($where=='nic'):?> selected="selected"<?php endif?>>닉네임</option>
|
||||
<option value="id"<?php if($where=='id'):?> selected="selected"<?php endif?>>아이디</option>
|
||||
<option value="ip"<?php if($where=='ip'):?> selected="selected"<?php endif?>>아이피</option>
|
||||
</select>
|
||||
</span>
|
||||
<input type="text" name="keyw" value="<?php echo stripslashes($keyw)?>" class="form-control">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-default" type="submit">검색</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-1 control-label">출력</label>
|
||||
<div class="col-sm-10">
|
||||
<div class="row">
|
||||
<div class="col-sm-2">
|
||||
<select name="recnum" onchange="this.form.submit();" class="form-control input-sm">
|
||||
<option value="20"<?php if($recnum==20):?> selected="selected"<?php endif?>>20</option>
|
||||
<option value="35"<?php if($recnum==35):?> selected="selected"<?php endif?>>35</option>
|
||||
<option value="50"<?php if($recnum==50):?> selected="selected"<?php endif?>>50</option>
|
||||
<option value="75"<?php if($recnum==75):?> selected="selected"<?php endif?>>75</option>
|
||||
<option value="90"<?php if($recnum==90):?> selected="selected"<?php endif?>>90</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-1 col-sm-10">
|
||||
<button type="button" class="btn btn-link rb-advance<?php if(!$_SESSION['sh_bbspost']):?> collapsed<?php endif?>" data-toggle="collapse" data-target="#search-more" onclick="sessionSetting('sh_bbspost','1','','1');">고급검색<small></small></button>
|
||||
<a href="<?php echo $g['adm_href']?>" class="btn btn-link">초기화</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="page-header">
|
||||
<h4>
|
||||
<small><?php echo number_format($NUM)?> 개 ( <?php echo $p?>/<?php echo $TPG.($TPG>1?'pages':'page')?> )</small>
|
||||
</h4>
|
||||
</div>
|
||||
<form name="listForm" action="<?php echo $g['s']?>/" method="post">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="<?php echo $module?>">
|
||||
<input type="hidden" name="a" value="">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><label data-tooltip="tooltip" title="선택"><input type="checkbox" class="checkAll-post-user"></label></th>
|
||||
<th>번호</th>
|
||||
<th>제목</th>
|
||||
<th>이름</th>
|
||||
<th>조회</th>
|
||||
<th>다운</th>
|
||||
<th>점수1</th>
|
||||
<th>점수2</th>
|
||||
<th>신고</th>
|
||||
<th>날짜</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php while($R=db_fetch_array($RCD)):?>
|
||||
<?php $R['mobile']=isMobileConnect($R['agent'])?>
|
||||
<tr>
|
||||
<td><input type="checkbox" name="comment_members[]" value="<?php echo $R['uid']?>" class="rb-post-user" onclick="checkboxCheck();"/></td>
|
||||
<td>
|
||||
<?php echo $NUM-((($p-1)*$recnum)+$_rec++)?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if($R['notice']):?><i class="fa fa-volume-up"></i><?php endif?>
|
||||
<?php if($R['mobile']):?><i class="fa fa-mobile f-lg"></i><?php endif?>
|
||||
<a href="<?php echo getCyncUrl($R['cync'].',CMT:'.$R['uid'].',s:'.$R['site'])?>#CMT" target="_blank"><?php echo $R['subject']?></a>
|
||||
<?php if(strstr($R['content'],'.jpg')):?><i class="fa fa-picture-o"></i><?php endif?>
|
||||
<?php if($R['upload']):?><i class="glyphicon glyphicon-floppy-disk"></i><?php endif?>
|
||||
<?php if($R['hidden']):?><i class="fa fa-lock fa-lg"></i><?php endif?>
|
||||
<?php if($R['oneline']):?><span class="comment">[<?php echo $R['oneline']?>]</span><?php endif?>
|
||||
<?php if(getNew($R['d_regis'],24)):?><small class="label label-danger">new</small><?php endif?>
|
||||
</td>
|
||||
<?php if($R['id']):?>
|
||||
<td><a href="javascript:OpenWindow('<?php echo $g['s']?>/?r=<?php echo $r?>&iframe=Y&m=member&front=manager&page=post&mbruid=<?php echo $R['mbruid']?>');" title="게시정보"><?php echo $R[$_HS['nametype']]?></a></td>
|
||||
<?php else:?>
|
||||
<td><?php echo $R[$_HS['nametype']]?></td>
|
||||
<?php endif?>
|
||||
<td><strong><?php echo $R['hit']?></strong></td>
|
||||
<td><?php echo $R['down']?></td>
|
||||
<td><?php echo $R['score1']?></td>
|
||||
<td><?php echo $R['score2']?></td>
|
||||
<td><?php echo $R['report']?></td>
|
||||
<td><?php echo getDateFormat($R['d_regis'],'Y.m.d H:i')?></td>
|
||||
</tr>
|
||||
<?php endwhile?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(!$NUM):?>
|
||||
<div class="rb-none">게시물이 없습니다.</div>
|
||||
<?php endif?>
|
||||
<div class="rb-footer clearfix">
|
||||
<div class="pull-right">
|
||||
<ul class="pagination">
|
||||
<script>getPageLink(5,<?php echo $p?>,<?php echo $TPG?>,'');</script>
|
||||
<?php //echo getPageLink(5,$p,$TPG,'')?>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<button type="button" onclick="chkFlag('comment_members[]');checkboxCheck();" class="btn btn-default btn-sm">선택/해제 </button>
|
||||
<button type="button" onclick="actCheck('comment_multi_delete');" class="btn btn-default btn-sm rb-action-btn" disabled>삭제</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="MoveCopy" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title">Modal title</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
...
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
<button type="button" class="btn btn-primary">Save changes</button>
|
||||
</div>
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
<!-- bootstrap-datepicker, http://eternicode.github.io/bootstrap-datepicker/ -->
|
||||
<?php getImport('bootstrap-datepicker','css/datepicker3',false,'css')?>
|
||||
<?php getImport('bootstrap-datepicker','js/bootstrap-datepicker',false,'js')?>
|
||||
<?php getImport('bootstrap-datepicker','js/locales/bootstrap-datepicker.kr',false,'js')?>
|
||||
<style type="text/css">
|
||||
.datepicker {z-index: 1151 !important;}
|
||||
</style>
|
||||
<script>
|
||||
$('.input-daterange').datepicker({
|
||||
format: "yyyy/mm/dd",
|
||||
todayBtn: "linked",
|
||||
language: "kr",
|
||||
calendarWeeks: true,
|
||||
todayHighlight: true,
|
||||
autoclose: true
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
// 선택박스 체크 이벤트 핸들러
|
||||
$(".checkAll-post-user").click(function(){
|
||||
$(".rb-post-user").prop("checked",$(".checkAll-post-user").prop("checked"));
|
||||
checkboxCheck();
|
||||
});
|
||||
// 선택박스 체크시 액션버튼 활성화 함수
|
||||
function checkboxCheck()
|
||||
{
|
||||
var f = document.listForm;
|
||||
var l = document.getElementsByName('comment_members[]');
|
||||
var n = l.length;
|
||||
var i;
|
||||
var j=0;
|
||||
for (i = 0; i < n; i++)
|
||||
{
|
||||
if (l[i].checked == true) j++;
|
||||
}
|
||||
if (j) $('.rb-action-btn').prop("disabled",false);
|
||||
else $('.rb-action-btn').prop("disabled",true);
|
||||
}
|
||||
// 기간 검색 적용 함수
|
||||
function dropDate(date1,date2)
|
||||
{
|
||||
var f = document.procForm;
|
||||
f.d_start.value = date1;
|
||||
f.d_finish.value = date2;
|
||||
f.submit();
|
||||
}
|
||||
function actCheck(act)
|
||||
{
|
||||
var f = document.listForm;
|
||||
var l = document.getElementsByName('comment_members[]');
|
||||
var n = l.length;
|
||||
var j = 0;
|
||||
var i;
|
||||
var s = '';
|
||||
for (i = 0; i < n; i++)
|
||||
{
|
||||
if(l[i].checked == true)
|
||||
{
|
||||
j++;
|
||||
s += '['+l[i].value+']';
|
||||
}
|
||||
}
|
||||
if (!j)
|
||||
{
|
||||
alert('선택된 게시물이 없습니다. ');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (act == 'comment_multi_delete')
|
||||
{
|
||||
if(confirm('정말로 삭제하시겠습니까? '))
|
||||
{
|
||||
getIframeForAction(f);
|
||||
f.a.value = act;
|
||||
f.submit();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
436
modules/bbs/admin/config.php
Normal file
436
modules/bbs/admin/config.php
Normal file
@@ -0,0 +1,436 @@
|
||||
<form class="p-4" role="form" name="procForm" action="<?php echo $g['s']?>/" method="post" target="_action_frame_<?php echo $m?>" onsubmit="return saveCheck(this);">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="<?php echo $module?>">
|
||||
<input type="hidden" name="a" value="config">
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">
|
||||
<i class="fa fa-columns fa-fw" aria-hidden="true"></i> 게시판 대표 테마
|
||||
</label>
|
||||
<div class="col-md-10 col-xl-9">
|
||||
<select name="skin_main" class="form-control custom-select">
|
||||
<option value="">선택하세요</option>
|
||||
<option value="" disabled>--------------------------------</option>
|
||||
|
||||
<optgroup label="데스크탑">
|
||||
<?php $tdir = $g['path_module'].$module.'/themes/_desktop/'?>
|
||||
<?php $dirs = opendir($tdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($tdir.$skin))continue?>
|
||||
<option value="_desktop/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['skin_main']=='_desktop/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($tdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
<optgroup label="모바일">
|
||||
<?php $tdir = $g['path_module'].$module.'/themes/_mobile/'?>
|
||||
<?php $dirs = opendir($tdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($tdir.$skin))continue?>
|
||||
<option value="_mobile/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['skin_main']=='_mobile/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($tdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
|
||||
</select>
|
||||
<small class="form-text text-muted">
|
||||
지정된 대표테마는 게시판설정시 별도의 테마지정없이 자동으로 적용됩니다.
|
||||
가장 많이 사용하는 테마를 지정해 주세요.
|
||||
</small>
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">
|
||||
<span class="badge badge-dark">게시판 모바일 대표테마</span>
|
||||
</label>
|
||||
<div class="col-md-10 col-xl-9">
|
||||
<select name="skin_mobile" class="form-control custom-select">
|
||||
<option value="">모바일 테마 사용안함</option>
|
||||
<option value="" disabled>--------------------------------</option>
|
||||
<optgroup label="모바일">
|
||||
<?php $tdir = $g['path_module'].$module.'/themes/_mobile/'?>
|
||||
<?php $dirs = opendir($tdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($tdir.$skin))continue?>
|
||||
<option value="_mobile/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['skin_mobile']=='_mobile/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($tdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
<optgroup label="데스크탑">
|
||||
<?php $tdir = $g['path_module'].$module.'/themes/_desktop/'?>
|
||||
<?php $dirs = opendir($tdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($tdir.$skin))continue?>
|
||||
<option value="_desktop/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['skin_mobile']=='_desktop/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($tdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
</select>
|
||||
<small class="form-text text-muted">
|
||||
선택하지 않으면 데스크탑 대표테마로 설정됩니다.
|
||||
</small>
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">
|
||||
통합보드테마
|
||||
</label>
|
||||
<div class="col-md-10 col-xl-9">
|
||||
<select name="skin_total" class="form-control custom-select">
|
||||
<option value="">통합보드 사용안함</option>
|
||||
<option value="" disabled>--------------------------------</option>
|
||||
<optgroup label="데스크탑">
|
||||
<?php $tdir = $g['path_module'].$module.'/themes/_desktop/'?>
|
||||
<?php $dirs = opendir($tdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($tdir.$skin))continue?>
|
||||
<option value="_desktop/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['skin_main']=='_desktop/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($tdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
<optgroup label="모바일">
|
||||
<?php $tdir = $g['path_module'].$module.'/themes/_mobile/'?>
|
||||
<?php $dirs = opendir($tdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($tdir.$skin))continue?>
|
||||
<option value="_mobile/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['skin_main']=='_mobile/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($tdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
</select>
|
||||
<small class="form-text text-muted">
|
||||
통합보드란 모든 게시판의 전체 게시물을 하나의 게시판으로 출력해 주는 서비스입니다.<br>
|
||||
사용하시려면 통합보드용 테마를 지정해 주세요.<br>
|
||||
통합보드의 호출은 <code><a href="<?php echo $g['s']?>/?r=<?php echo $r?>&m=<?php echo $module?>" target="_blank"><?php echo $g['r']?>/?m=<?php echo $module?></a></code> 입니다.
|
||||
</small>
|
||||
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">
|
||||
<i class="fa fa-pencil-square-o fa-fw" aria-hidden="true"></i> 대표 에디터
|
||||
</label>
|
||||
<div class="col-md-10 col-xl-9">
|
||||
<select name="editor_main" class="form-control custom-select">
|
||||
<?php $dirs = opendir($g['path_plugin'])?>
|
||||
<?php while(false !== ($tpl = readdir($dirs))):?>
|
||||
<?php if(!is_file($g['path_plugin'].$tpl.'/import.desktop.php'))continue?>
|
||||
<option value="<?php echo $tpl?>"<?php if($d['bbs']['editor_main']==$tpl):?> selected<?php endif?>>
|
||||
ㆍ<?php echo getFolderName($g['path_plugin'].$tpl)?> (<?php echo $tpl?>)
|
||||
</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</select>
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">
|
||||
<span class="badge badge-dark">모바일 대표테마</span>
|
||||
</label>
|
||||
<div class="col-md-10 col-xl-9">
|
||||
<input type="hidden" name="editor_mobile" value="">
|
||||
<input type="text" readonly class="form-control-plaintext" value="모바일 기본형">
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">
|
||||
<i class="fa fa-paperclip fa-fw" aria-hidden="true"></i> 파일첨부 대표 테마
|
||||
</label>
|
||||
<div class="col-md-10 col-xl-9">
|
||||
<select name="attach_main" class="form-control custom-select">
|
||||
<option value="">사용안함</option>
|
||||
<option value="" disabled>--------------------------------</option>
|
||||
<optgroup label="데스크탑">
|
||||
<?php $mdir = $g['path_module'].'mediaset/themes/_desktop/'?>
|
||||
<?php $dirs = opendir($mdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($mdir.$skin))continue?>
|
||||
<option value="_desktop/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['attach_main']=='_desktop/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($mdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
<optgroup label="모바일">
|
||||
<?php $mdir = $g['path_module'].'mediaset/themes/_mobile/'?>
|
||||
<?php $dirs = opendir($mdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($mdir.$skin))continue?>
|
||||
<option value="_mobile/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['attach_main']=='_mobile/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($mdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
</select>
|
||||
<small class="form-text text-muted">
|
||||
지정된 대표테마는 게시판설정시 별도의 테마지정없이 자동으로 적용됩니다.
|
||||
가장 많이 사용하는 테마를 지정해 주세요.
|
||||
</small>
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">
|
||||
<span class="badge badge-dark">모바일 대표테마</span>
|
||||
</label>
|
||||
<div class="col-md-10 col-xl-9">
|
||||
<select name="attach_mobile" class="form-control custom-select">
|
||||
<option value="">사용안함</option>
|
||||
<option value="" disabled>--------------------------------</option>
|
||||
<optgroup label="모바일">
|
||||
<?php $mmdir = $g['path_module'].'mediaset/themes/_mobile/'?>
|
||||
<?php $dirs = opendir($mmdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($mmdir.$skin))continue?>
|
||||
<option value="_mobile/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['attach_mobile']=='_mobile/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($mmdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
<optgroup label="데스크탑">
|
||||
<?php $mmdir = $g['path_module'].'mediaset/themes/_desktop/'?>
|
||||
<?php $dirs = opendir($mmdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($mmdir.$skin))continue?>
|
||||
<option value="_desktop/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['attach_mobile']=='_desktop/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($mmdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
</select>
|
||||
<small class="form-text text-muted">
|
||||
선택하지 않으면 데스크탑 대표테마로 설정됩니다.
|
||||
</small>
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
<hr>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">
|
||||
<i class="fa fa-comments-o fa-fw" aria-hidden="true"></i> 댓글 대표 테마
|
||||
</label>
|
||||
<div class="col-md-10 col-xl-9">
|
||||
<select name="comment_main" class="form-control custom-select">
|
||||
<option value="">사용안함</option>
|
||||
<option value="" disabled>--------------------------------</option>
|
||||
<optgroup label="데스크탑">
|
||||
<?php $cdir = $g['path_module'].'comment/themes/_desktop/'?>
|
||||
<?php $dirs = opendir($cdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($cdir.$skin))continue?>
|
||||
<option value="_desktop/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['comment_main']=='_desktop/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($cdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
<optgroup label="모바일">
|
||||
<?php $cdir = $g['path_module'].'comment/themes/_mobile/'?>
|
||||
<?php $dirs = opendir($cdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($cdir.$skin))continue?>
|
||||
<option value="_mobile/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['comment_main']=='_mobile/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($cdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
</select>
|
||||
<small class="form-text text-muted">
|
||||
지정된 대표테마는 게시판설정시 별도의 테마지정없이 자동으로 적용됩니다.
|
||||
가장 많이 사용하는 테마를 지정해 주세요.
|
||||
</small>
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">
|
||||
<span class="badge badge-dark">모바일 대표테마</span>
|
||||
</label>
|
||||
<div class="col-md-10 col-xl-9">
|
||||
<select name="comment_mobile" class="form-control custom-select">
|
||||
<option value="">사용안함</option>
|
||||
<option value="" disabled>--------------------------------</option>
|
||||
<optgroup label="모바일">
|
||||
<?php $cmdir = $g['path_module'].'comment/themes/_mobile/'?>
|
||||
<?php $dirs = opendir($cmdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($cmdir.$skin))continue?>
|
||||
<option value="_mobile/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['comment_mobile']=='_mobile/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($cmdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
<optgroup label="데스크탑">
|
||||
<?php $cmdir = $g['path_module'].'comment/themes/_desktop/'?>
|
||||
<?php $dirs = opendir($cmdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($cmdir.$skin))continue?>
|
||||
<option value="_desktop/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['comment_mobile']=='_desktop/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($cmdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
</select>
|
||||
<small class="form-text text-muted">
|
||||
선택하지 않으면 데스크탑 대표테마로 설정됩니다.
|
||||
</small>
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
<hr>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">RSS 발행</label>
|
||||
<div class="col-md-10 col-xl-9">
|
||||
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="rss" name="rss" value="1" <?php if($d['bbs']['rss']):?> checked<?php endif?>>
|
||||
<label class="custom-control-label" for="rss">RSS발행을 허용합니다. <small>(개별게시판별 RSS발행은 개별게시판 설정을 따름)</small></label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">게시물 출력</label>
|
||||
<div class="col-md-4 col-xl-3">
|
||||
<div class="input-group">
|
||||
<input type="text" name="recnum" value="<?php echo $d['bbs']['recnum']?$d['bbs']['recnum']:20?>" class="form-control">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">개</span>
|
||||
</div>
|
||||
</div>
|
||||
<small class="form-text text-muted">한페이지에 출력할 게시물의 수</small>
|
||||
</div>
|
||||
<label class="col-md-2 col-form-label text-md-right">제목 끊기</label>
|
||||
<div class="col-md-4 col-xl-4">
|
||||
<div class="input-group">
|
||||
<input type="text" name="sbjcut" value="<?php echo $d['bbs']['sbjcut']?$d['bbs']['sbjcut']:40?>" class="form-control">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">자</span>
|
||||
</div>
|
||||
</div>
|
||||
<small class="form-text text-muted">제목이 길 경우 보여줄 글자 수 </small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">새글 유지시간</label>
|
||||
<div class="col-md-4 col-xl-3">
|
||||
<div class="input-group">
|
||||
<input type="text" name="newtime" value="<?php echo $d['bbs']['newtime']?$d['bbs']['newtime']:24?>" class="form-control">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">시간</span>
|
||||
</div>
|
||||
</div>
|
||||
<small class="form-text text-muted">새글로 인식되는 시간</small>
|
||||
</div>
|
||||
<label class="col-md-2 col-form-label text-md-right">답글 인식문자</label>
|
||||
<div class="col-md-4 col-xl-4">
|
||||
<input type="text" name="restr" value="<?php echo $d['bbs']['restr']?>" class="form-control">
|
||||
<small class="form-text text-muted">제목이 길 경우 보여줄 글자 수 </small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">평가 제한</label>
|
||||
<div class="col-md-10 col-xl-9">
|
||||
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="denylikemy" name="denylikemy" value="1" <?php if($d['bbs']['denylikemy']):?> checked<?php endif?>>
|
||||
<label class="custom-control-label" for="denylikemy">내글에 대한 좋아요와 싫어요 참여를 제한합니다.</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">삭제 제한</label>
|
||||
<div class="col-md-10 col-xl-9">
|
||||
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="replydel" name="replydel" value="1" <?php if($d['bbs']['replydel']):?> checked<?php endif?>>
|
||||
<label class="custom-control-label" for="replydel">답변글이 있는 원본글의 삭제를 제한합니다.</label>
|
||||
</div>
|
||||
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="commentdel" name="commentdel" value="1" <?php if($d['bbs']['commentdel']):?> checked<?php endif?>>
|
||||
<label class="custom-control-label" for="commentdel">댓글이 있는 원본글의 삭제를 제한합니다.</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">불량글 처리</label>
|
||||
<div class="col-md-10 col-xl-9">
|
||||
<div class="form-inline">
|
||||
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="singo_del"name="singo_del" value="1" <?php if($d['bbs']['singo_del']):?> checked<?php endif?> >
|
||||
<label class="custom-control-label" for="singo_del">신고건 수가</label>
|
||||
</div>
|
||||
<div class="input-group ml-3">
|
||||
<input type="text" name="singo_del_num" value="<?php echo $d['bbs']['singo_del_num']?>" class="form-control">
|
||||
<div class="input-group-append">
|
||||
<span class="input-group-text">건 이상인 경우</span>
|
||||
</div>
|
||||
</div>
|
||||
<select name="singo_del_act" class="form-control custom-select ml-2">
|
||||
<option value="1"<?php if($d['bbs']['singo_del_act']==1):?> selected="selected"<?php endif?>>자동삭제</option>
|
||||
<option value="2"<?php if($d['bbs']['singo_del_act']==2):?> selected="selected"<?php endif?>>비밀처리</option>
|
||||
</select>
|
||||
|
||||
</div> <!-- .form-inline -->
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">제한단어</label>
|
||||
<div class="col-md-10 col-xl-9">
|
||||
<textarea name="badword" rows="5" class="form-control"><?php echo $d['bbs']['badword']?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-md-2 col-form-label text-md-right">제한단어 처리</label>
|
||||
<div class="col-sm-10">
|
||||
|
||||
<div class="custom-control custom-radio">
|
||||
<input type="radio" id="badword_action_0" class="custom-control-input" name="badword_action" value="0" <?php if($d['bbs']['badword_action']==0):?> checked<?php endif?>>
|
||||
<label class="custom-control-label" for="badword_action_0">제한단어 체크하지 않음</label>
|
||||
</div>
|
||||
<div class="custom-control custom-radio">
|
||||
<input type="radio" id="badword_action_1" class="custom-control-input" name="badword_action" value="1"<?php if($d['bbs']['badword_action']==1):?> checked<?php endif?>>
|
||||
<label class="custom-control-label" for="badword_action_1">등록을 차단함</label>
|
||||
</div>
|
||||
<div class="custom-control custom-radio">
|
||||
<input type="radio" id="badword_action_2" class="custom-control-input" name="badword_action" value="2"<?php if($d['bbs']['badword_action']==2):?> checked<?php endif?>>
|
||||
<label class="custom-control-label" for="badword_action_2">
|
||||
제한단어를 다음의 문자로 치환하여 등록함
|
||||
<input type="text" name="badword_escape" value="<?php echo $d['bbs']['badword_escape']?>" maxlength="1" class="d-inline form-control form-control-sm">
|
||||
</label>
|
||||
</div>
|
||||
|
||||
</div><!-- .col-sm-10 -->
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="offset-md-2 col-md-10 col-xl-9">
|
||||
<button type="submit" class="btn btn-outline-primary btn-block my-4">저장하기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
|
||||
putCookieAlert('bbs_config_result') // 실행결과 알림 메시지 출력
|
||||
|
||||
$('[data-role="siteSelector"]').removeClass('d-none') //사이트 셀렉터 출력
|
||||
|
||||
function saveCheck(f)
|
||||
{
|
||||
if (f.skin_main.value == '')
|
||||
{
|
||||
alert('대표테마를 선택해 주세요. ');
|
||||
f.skin_main.focus();
|
||||
return false;
|
||||
}
|
||||
// if (f.skin_mobile.value == '')
|
||||
// {
|
||||
// alert('모바일테마를 선택해 주세요. ');
|
||||
// f.skin_mobile.focus();
|
||||
// return false;
|
||||
// }
|
||||
getIframeForAction(f);
|
||||
f.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
BIN
modules/bbs/admin/image/bg_top.gif
Normal file
BIN
modules/bbs/admin/image/bg_top.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 138 B |
BIN
modules/bbs/admin/image/ico_notice.gif
Normal file
BIN
modules/bbs/admin/image/ico_notice.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 157 B |
1
modules/bbs/admin/main.css
Normal file
1
modules/bbs/admin/main.css
Normal file
@@ -0,0 +1 @@
|
||||
h6 {text-align: left;width: auto;line-height: 160%}
|
||||
417
modules/bbs/admin/main.php
Normal file
417
modules/bbs/admin/main.php
Normal file
@@ -0,0 +1,417 @@
|
||||
<?php
|
||||
include $g['path_module'].$module.'/var/var.php';
|
||||
$bbs_time=$d['bbs']['time']; // 아래 $d 배열과 충돌을 피하기 위해서 별도로 지정
|
||||
$sort = $sort ? $sort : 'gid';
|
||||
$orderby= $orderby ? $orderby : 'desc';
|
||||
$recnum = $recnum && $recnum < 301 ? $recnum : 30;
|
||||
$bbsque = 'uid';
|
||||
$account = $SD['uid'];
|
||||
if ($account) $bbsque .= ' and site='.$account;
|
||||
|
||||
if ($where && $keyw)
|
||||
{
|
||||
if (strstr('[id]',$where)) $bbsque .= " and ".$where."='".$keyw."'";
|
||||
else $bbsque .= getSearchSql($where,$keyw,$ikeyword,'or');
|
||||
}
|
||||
|
||||
$RCD = getDbArray($table[$module.'list'],$bbsque,'*',$sort,$orderby,$recnum,$p);
|
||||
$NUM = getDbRows($table[$module.'list'],$bbsque);
|
||||
$TPG = getTotalPage($NUM,$recnum);
|
||||
|
||||
$_LEVELNAME = array('l0'=>'전체허용');
|
||||
$_LEVELDATA=getDbArray($table['s_mbrlevel'],'','*','uid','asc',0,1);
|
||||
while($_L=db_fetch_array($_LEVELDATA)) $_LEVELNAME['l'.$_L['uid']] = $_L['name'].' 이상';
|
||||
|
||||
$SITES = getDbArray($table['s_site'],'','*','gid','asc',0,1);
|
||||
$SITEN = db_num_rows($SITES);
|
||||
?>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-sm-4 col-md-4 col-xl-3 d-none sidebar">
|
||||
|
||||
<div id="accordion" role="tablist" style="height: calc(100vh - 10rem);">
|
||||
<form name="procForm" action="<?php echo $g['s']?>/" method="get">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="<?php echo $m?>">
|
||||
<input type="hidden" name="module" value="<?php echo $module?>">
|
||||
<input type="hidden" name="front" value="<?php echo $front?>">
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header p-0">
|
||||
<a class="d-block muted-link collapsed" href="#collapse-sort" data-toggle="collapse" role="button" aria-expanded="true" aria-controls="collapse-sort">
|
||||
정렬
|
||||
</a>
|
||||
</div>
|
||||
<div id="collapse-sort" class="collapse" role="tabpanel" aria-labelledby="headingOne" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
<div class="btn-group btn-group-toggle btn-group-sm mb-2" data-toggle="buttons">
|
||||
<label class="btn btn-light<?php if($sort=='gid'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="gid" name="sort"<?php if($sort=='gid'):?> checked<?php endif?>> 지정순서
|
||||
</label>
|
||||
<label class="btn btn-light<?php if($sort=='uid'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="uid" name="sort"<?php if($sort=='uid'):?> checked<?php endif?>> 개설일
|
||||
</label>
|
||||
<label class="btn btn-light<?php if($sort=='num_r'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="num_r" name="sort"<?php if($sort=='num_r'):?> checked<?php endif?>> 게시물수
|
||||
</label>
|
||||
<label class="btn btn-light<?php if($sort=='d_last'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="d_last" name="sort"<?php if($sort=='d_last'):?> checked<?php endif?>> 최근게시
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="btn-group btn-group-toggle btn-group-sm mb-3" data-toggle="buttons">
|
||||
<label class="btn btn-light<?php if($orderby=='desc'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="desc" name="orderby"<?php if($orderby=='desc'):?> checked<?php endif?>> <i class="fa fa-sort-amount-desc"></i> 정순
|
||||
</label>
|
||||
<label class="btn btn-light<?php if($orderby=='asc'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="asc" name="orderby"<?php if($orderby=='asc'):?> checked<?php endif?>> <i class="fa fa-sort-amount-asc"></i> 역순
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">출력수</span>
|
||||
</div>
|
||||
<select name="recnum" onchange="this.form.submit();" class="form-control custom-select">
|
||||
<option value="20"<?php if($recnum==20):?> selected="selected"<?php endif?>>20 개</option>
|
||||
<option value="35"<?php if($recnum==35):?> selected="selected"<?php endif?>>35 개</option>
|
||||
<option value="50"<?php if($recnum==50):?> selected="selected"<?php endif?>>50 개</option>
|
||||
<option value="75"<?php if($recnum==75):?> selected="selected"<?php endif?>>75 개</option>
|
||||
<option value="90"<?php if($recnum==90):?> selected="selected"<?php endif?>>90 개</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- .card -->
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header p-0">
|
||||
<a class="collapsed d-block muted-link" href="#collapse-search" data-toggle="collapse" href="#collapse-search" role="button" aria-expanded="false" aria-controls="collapse-search">
|
||||
게시판 검색
|
||||
</a>
|
||||
</div>
|
||||
<div class="collapse<?php if($_SESSION['sh_mediaset']):?> show<?php endif?>" id="collapse-search">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<div class="input-group mb-3">
|
||||
<select name="where" class="form-control custom-select" style="width: 30px">
|
||||
<option value="name"<?php if($where=='name'):?> selected="selected"<?php endif?>>게시판명</option>
|
||||
<option value="id"<?php if($where=='id'):?> selected="selected"<?php endif?>>아이디</option>
|
||||
</select>
|
||||
|
||||
<input type="text" name="keyw" value="<?php echo stripslashes($keyw)?>" class="form-control">
|
||||
|
||||
</div>
|
||||
<button class="btn btn-outline-secondary" type="submit">검색</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 고급검색 시작 -->
|
||||
<div id="search-more" class="collapse<?php if($_SESSION['sh_mediaset']):?> in<?php endif?>">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-1 control-label">검색</label>
|
||||
<div class="col-sm-10">
|
||||
<div class="input-group input-group-sm">
|
||||
<span class="input-group-btn hidden-xs" style="width:165px">
|
||||
<select name="where" class="form-control btn btn-light">
|
||||
<option value="name"<?php if($where=='name'):?> selected="selected"<?php endif?>>게시판명</option>
|
||||
<option value="id"<?php if($where=='id'):?> selected="selected"<?php endif?>>아이디</option>
|
||||
</select>
|
||||
</span>
|
||||
<input type="text" name="keyw" value="<?php echo stripslashes($keyw)?>" class="form-control">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-primary" type="submit">검색</button>
|
||||
</span>
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-light" type="button" onclick="location.href='<?php echo $g['adm_href']?>';">리셋</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- .form-group -->
|
||||
</div>
|
||||
<!-- 고급검색 끝 -->
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-offset-1 col-sm-10">
|
||||
<button type="button" class="btn btn-link rb-advance<?php if(!$_SESSION['sh_mediaset']):?> collapsed<?php endif?>" data-toggle="collapse" data-target="#search-more" onclick="sessionSetting('sh_mediaset','1','','1');">고급검색 <small></small></button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div> <!-- .rb-heading well well-sm : 검색영역 회색 박스 -->
|
||||
|
||||
<?php if($NUM):?>
|
||||
<div class="p-2">
|
||||
<a href="<?php echo $g['adm_href']?>" class="btn btn-light btn-block">검색조건 초기화</a>
|
||||
<a href="<?php echo $g['adm_href']?>&front=main_detail" class="btn btn-outline-primary btn-block">
|
||||
<i class="fa fa-plus"></i> 새 게시판 만들기
|
||||
</a>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
</div><!-- /.sidebar -->
|
||||
<div class="col-sm-12 col-md-12 col-xl-12">
|
||||
|
||||
<div class="card p-2 mb-0 bg-dark d-flex justify-content-between pr-4">
|
||||
|
||||
<form class="form-inline" name="procForm" action="<?php echo $g['s']?>/" method="get">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="<?php echo $m?>">
|
||||
<input type="hidden" name="module" value="<?php echo $module?>">
|
||||
<input type="hidden" name="front" value="<?php echo $front?>">
|
||||
|
||||
<select class="form-control custom-select" name="sort" onchange="this.form.submit();">
|
||||
<option value="gid" selected="selected">지정순서</option>
|
||||
<option value="uid">개설일</option>
|
||||
<option value="num_r">게시물수</option>
|
||||
<option value="d_last">최근게시</option>
|
||||
</select>
|
||||
|
||||
<select class="form-control custom-select" name="orderby" onchange="this.form.submit();">
|
||||
<option value="desc">역순</option>
|
||||
<option value="asc" selected="selected">정순</option>
|
||||
</select>
|
||||
|
||||
<select class="form-control custom-select mr-sm-2" name="recnum" onchange="this.form.submit();">
|
||||
<option value="30" selected="selected">30개</option>
|
||||
<option value="60">60개</option>
|
||||
<option value="90">90개</option>
|
||||
<option value="120">120개</option>
|
||||
<option value="150">150개</option>
|
||||
<option value="180">180개</option>
|
||||
<option value="210">210개</option>
|
||||
<option value="240">240개</option>
|
||||
<option value="270">270개</option>
|
||||
<option value="300">300개</option>
|
||||
</select>
|
||||
|
||||
<select class="form-control custom-select mr-sm-1" name="where">
|
||||
<option value="name">게시판명</option>
|
||||
<option value="id">아이디</option>
|
||||
</select>
|
||||
|
||||
<label class="sr-only" for="inlineFormInputName2">검색</label>
|
||||
<input type="text" class="form-control mr-sm-2" placeholder="" name="keyw" value="<?php echo stripslashes($keyw)?>" >
|
||||
|
||||
<button type="submit" class="btn btn-light">검색</button>
|
||||
<button type="button" class="btn btn-light" onclick="location.href='<?php echo $g['adm_href']?>';">리셋</button>
|
||||
|
||||
<?php if ($NUM): ?>
|
||||
<a href="<?php echo $g['adm_href']?>&front=main_detail" class="btn btn-outline-primary ml-auto">
|
||||
<i class="fa fa-plus"></i> 새 게시판 만들기
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?php if($NUM):?>
|
||||
|
||||
|
||||
<!-- 리스트 시작 -->
|
||||
<form class="card rounded-0 border-0" name="listForm" action="<?php echo $g['s']?>/" method="post">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="<?php echo $module?>">
|
||||
<input type="hidden" name="a" value="">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped text-center mb-0">
|
||||
<thead class="small text-muted">
|
||||
<tr>
|
||||
<th class="py-0"><label data-tooltip="tooltip" title="선택"><input type="checkbox" class="checkAll-email-user"></label></th>
|
||||
<th>번호</th>
|
||||
<th>아이디</th>
|
||||
<th>게시판명</th>
|
||||
<th>게시물</th>
|
||||
<th>최근게시</th>
|
||||
<th>분류</th>
|
||||
<th>연결</th>
|
||||
<th>레이아웃</th>
|
||||
<th>접근권한</th>
|
||||
<th>포인트</th>
|
||||
<th>관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php while($R=db_fetch_array($RCD)):?>
|
||||
<?php $L=getOverTime($date['totime'],$R['d_last'])?>
|
||||
<?php $d=array();include $g['path_var'].$module.'/var.'.$R['id'].'.php';?>
|
||||
<?php
|
||||
$sbj_tooltip.='최신글제외 : '.($d['bbs']['display']?'Yes':'No').'<br />';
|
||||
$sbj_tooltip.='쿼리생략 : '.($d['bbs']['hidelist']?'Yes':'No').'<br />';
|
||||
$sbj_tooltip.='RSS발행 : '.($d['bbs']['rss']?'Yes':'No').'<br />';
|
||||
$sbj_tooltip.='조회수증가 : '.($d['bbs']['hitcount']?'계속증가':'1회만증가(세션적용)').'<br />';
|
||||
$sbj_tooltip.='게시물출력수 : '.$d['bbs']['recnum'].'개<br />';
|
||||
$sbj_tooltip.='제목끊기 : '.$d['bbs']['sbjcut'].'자<br />';
|
||||
$sbj_tooltip.='새글유지 : '.$d['bbs']['newtime'].'시간<br />';
|
||||
$sbj_tooltip.='추가관리자 : '.($d['bbs']['admin']?$d['bbs']['admin']:'없음').'<br />';
|
||||
|
||||
$lay_tooltip .='레이아웃 : '.($d['bbs']['layout']?'':'사이트 대표레이아웃').'<br />';
|
||||
$lay_tooltip .='게시판테마(desktop) : '.($d['bbs']['skin']?getFolderName($g['path_module'].$module.'/theme/'.$d['bbs']['skin']).'('.basename($d['bbs']['skin']).')':'대표테마').'<br />';
|
||||
$lay_tooltip .='게시판테마(mobile) : '.($d['bbs']['m_skin']?getFolderName($g['path_module'].$module.'/theme/'.$d['bbs']['m_skin']).'('.basename($d['bbs']['m_skin']).')':'대표테마').'<br />';
|
||||
$lay_tooltip .='댓글테마(desktop) : '.($d['bbs']['cskin']?getFolderName( $g['path_module'].'comment/theme/'.$d['bbs']['cskin']).'('.basename($d['bbs']['cskin']).')':'대표테마').'<br />';
|
||||
$lay_tooltip .='댓글테마(mobile) : '.($d['bbs']['c_mskin']?getFolderName($g['path_module'].'comment/theme/'.$d['bbs']['c_mskin']).'('.basename($d['bbs']['c_mskin']).')':'대표테마').'<br />';
|
||||
|
||||
$perm_tooltip .='목록 : '.$_LEVELNAME['l'.$d['bbs']['perm_l_list']].'<br />';
|
||||
$perm_tooltip .='열람 : '.$_LEVELNAME['l'.$d['bbs']['perm_l_view']].'<br />';
|
||||
$perm_tooltip .='쓰기 : '.$_LEVELNAME['l'.$d['bbs']['perm_l_write']].'<br />';
|
||||
$perm_tooltip .='다운 : '.$_LEVELNAME['l'.$d['bbs']['perm_l_down']].'<br />';
|
||||
|
||||
$point_tooltip .='등록 : '.number_format($d['bbs']['point1']).'P 지급<br />';
|
||||
$point_tooltip .='열람 : '.number_format($d['bbs']['point2']).'P 차감<br />';
|
||||
$point_tooltip .='다운 : '.number_format($d['bbs']['point3']).'P 차감';
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td><input type="checkbox" name="bbs_members[]" value="<?php echo $R['uid']?>" class="rb-email-user" onclick="checkboxCheck();"/></td>
|
||||
<td><?php echo $NUM-((($p-1)*$recnum)+$_rec++)?></td>
|
||||
<td><a href="<?php echo RW('m='.$module.'&bid='.$R['id'])?>" target="_blank"><?php echo $R['id']?></a></td>
|
||||
<td><input class="form-control" type="text" name="name_<?php echo $R['uid']?>" value="<?php echo $R['name']?>" data-toggle="popover" data-content="<?php echo $sbj_tooltip?>"></td>
|
||||
<td>
|
||||
<span class="badge badge-pill badge-dark"><?php echo number_format($R['num_r'])?></span>
|
||||
</td>
|
||||
<td>
|
||||
<time class="small text-muted" data-plugin="timeago" datetime="<?php echo getDateFormat($R['d_last'],'c')?>">
|
||||
<?php echo getDateFormat($R['d_last'],'Y.m.d')?>
|
||||
</time>
|
||||
<?php if(getNew($R['d_last'],24)):?> <small class="text-danger">N</small><?php endif?>
|
||||
</td>
|
||||
<td>
|
||||
<span class="badge badge-pill badge-dark"><?php echo $R['category']?'Y':'N'?></span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="badge badge-pill badge-dark"><?php echo $d['bbs']['sosokmenu']?'<span>Y</span>':'N'?></span>
|
||||
</td>
|
||||
<td><span data-toggle="popover" data-content="<?php echo $lay_tooltip?>" class="badge badge-pill badge-dark"><?php echo $d['bbs']['layout']?'<i>Y</i>':'N'?> / <?php echo $d['bbs']['skin']?'<i>Y</i>':'N'?> / <?php echo $d['bbs']['c_skin']?'<i>Y</i>':'N'?></span></td>
|
||||
<td><span data-toggle="popover" data-content="<?php echo $perm_tooltip?>" class="badge badge-pill badge-dark"><?php echo $d['bbs']['perm_l_list']?> / <?php echo $d['bbs']['perm_l_view']?> / <?php echo $d['bbs']['perm_l_write']?></span></td>
|
||||
<td><span data-toggle="popover" data-content="<?php echo $point_tooltip?>" class="badge badge-pill badge-dark"><?php echo number_format($d['bbs']['point1'])?> / <?php echo number_format($d['bbs']['point2'])?> / <?php echo number_format($d['bbs']['point3'])?></span></td>
|
||||
<td>
|
||||
<a class="btn btn-light" href="<?php echo $g['s']?>/?r=<?php echo $r?>&m=<?php echo $module?>&a=deletebbs&uid=<?php echo $R['uid']?>" onclick="return hrefCheck(this,true,'삭제하시면 모든 게시물이 지워지며 복구할 수 없습니다.\n정말로 삭제하시겠습니까?');" class="del">삭제</a>
|
||||
<a class="btn btn-light" href="<?php echo $g['adm_href']?>&front=main_detail&uid=<?php echo $R['uid']?>&account=<?php echo $account?>">설정</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endwhile?>
|
||||
</table>
|
||||
</div><!-- /.table-responsive -->
|
||||
|
||||
<div class="card-footer d-flex justify-content-between">
|
||||
<div>
|
||||
<button type="button" onclick="chkFlag('bbs_members[]');checkboxCheck();" class="btn btn-sm btn-light">선택/해제</button>
|
||||
<button type="button" onclick="actCheck('multi_config');" class="btn btn-sm btn-light" id="rb-action-btn">수정</button>
|
||||
</div>
|
||||
<ul class="pagination">
|
||||
<script>getPageLink(5,<?php echo $p?>,<?php echo $TPG?>,'');</script>
|
||||
<?php //echo getPageLink(5,$p,$TPG,'')?>
|
||||
</ul>
|
||||
</div><!-- .card-footer -->
|
||||
</form><!-- .card -->
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<div class="text-center text-muted d-flex align-items-center justify-content-center" style="height: calc(100vh - 10rem);">
|
||||
<div><i class="fa fa-exclamation-circle fa-3x mb-3" aria-hidden="true"></i>
|
||||
<p>등록된 게시판이 없습니다.</p>
|
||||
<a href="<?php echo $g['adm_href']?>&front=main_detail" class="btn btn-outline-primary btn-block">
|
||||
<i class="fa fa-plus"></i> 새 게시판 만들기
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif?>
|
||||
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
|
||||
|
||||
<!-- timeago -->
|
||||
<?php getImport('jquery-timeago','jquery.timeago','1.6.1','js')?>
|
||||
<?php getImport('jquery-timeago','locales/jquery.timeago.ko','1.6.1','js')?>
|
||||
|
||||
<!-- basic -->
|
||||
<script>
|
||||
|
||||
$(function () {
|
||||
|
||||
//사이트 셀렉터 출력
|
||||
$('[data-role="siteSelector"]').removeClass('d-none')
|
||||
|
||||
$('[data-plugin="timeago"]').timeago();
|
||||
|
||||
$('[data-toggle="popover"]').popover({
|
||||
html: true,
|
||||
trigger: 'hover'
|
||||
})
|
||||
|
||||
putCookieAlert('result_bbs_main') // 실행결과 알림 메시지 출력
|
||||
|
||||
})
|
||||
|
||||
$(".checkAll-file-user").click(function(){
|
||||
$(".rb-file-user").prop("checked",$(".checkAll-file-user").prop("checked"));
|
||||
checkboxCheck();
|
||||
});
|
||||
function checkboxCheck()
|
||||
{
|
||||
var f = document.listForm;
|
||||
var l = document.getElementsByName('bbs_members[]');
|
||||
var n = l.length;
|
||||
var i;
|
||||
var j=0;
|
||||
|
||||
for (i = 0; i < n; i++)
|
||||
{
|
||||
if (l[i].checked == true) j++;
|
||||
}
|
||||
if (j) getId('rb-action-btn').disabled = false;
|
||||
else getId('rb-action-btn').disabled = true;
|
||||
}
|
||||
|
||||
function dropDate(date1,date2)
|
||||
{
|
||||
var f = document.procForm;
|
||||
f.d_start.value = date1;
|
||||
f.d_finish.value = date2;
|
||||
f.submit();
|
||||
}
|
||||
function actCheck(act)
|
||||
{
|
||||
var f = document.listForm;
|
||||
var l = document.getElementsByName('bbs_members[]');
|
||||
var n = l.length;
|
||||
var j = 0;
|
||||
var i;
|
||||
|
||||
for (i = 0; i < n; i++)
|
||||
{
|
||||
if(l[i].checked == true)
|
||||
{
|
||||
j++;
|
||||
}
|
||||
}
|
||||
if (!j)
|
||||
{
|
||||
alert('선택된 게시판이 없습니다. ');
|
||||
return false;
|
||||
}
|
||||
if (act == 'multi_config')
|
||||
{
|
||||
if (confirm('정말로 실행하시겠습니까? '))
|
||||
{
|
||||
getIframeForAction(f);
|
||||
f.a.value = act;
|
||||
f.submit();
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
804
modules/bbs/admin/main_detail.php
Normal file
804
modules/bbs/admin/main_detail.php
Normal file
@@ -0,0 +1,804 @@
|
||||
<?php
|
||||
$SITES = getDbArray($table['s_site'],'','*','gid','asc',0,1);
|
||||
$sort = $sort ? $sort : 'gid';
|
||||
$orderby= $orderby ? $orderby : 'asc';
|
||||
$recnum = $recnum && $recnum < 301 ? $recnum : 20;
|
||||
$bbsque ='uid>0';
|
||||
$account = $SD['uid'];
|
||||
if ($account) $bbsque .= ' and site='.$account;
|
||||
|
||||
// 키원드 검색 추가
|
||||
if ($keyw)
|
||||
{
|
||||
$bbsque .= " and (id like '%".$keyw."%' or name like '%".$keyw."%')";
|
||||
}
|
||||
$RCD = getDbArray($table[$module.'list'],$bbsque,'*',$sort,$orderby,$recnum,$p);
|
||||
$NUM = getDbRows($table[$module.'list'],$bbsque);
|
||||
$TPG = getTotalPage($NUM,$recnum);
|
||||
if ($uid)
|
||||
{
|
||||
$R = getUidData($table[$module.'list'],$uid);
|
||||
if ($R['uid'])
|
||||
{
|
||||
include_once $g['path_module'].$module.'/var/var.php';
|
||||
include_once $g['path_var'].$module.'/var.'.$R['id'].'.php';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="row no-gutters">
|
||||
<div class="col-sm-4 col-md-4 col-xl-3 d-none d-sm-block sidebar">
|
||||
|
||||
<div id="accordion" role="tablist">
|
||||
<div class="card border-0">
|
||||
<div class="card-header p-0" role="tab" id="headingOne">
|
||||
<a class="muted-link d-block" data-toggle="collapse" href="#collapseOne" role="button" aria-expanded="true" aria-controls="collapseOne">
|
||||
게시판 목록
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div id="collapseOne" class="collapse show" role="tabpanel" aria-labelledby="headingOne" data-parent="#accordion">
|
||||
|
||||
<div class="list-group list-group-flush" style="height: calc(100vh - 17rem);">
|
||||
<?php if($NUM):?>
|
||||
<?php $_i=1;while($BR = db_fetch_array($RCD)):?>
|
||||
<a href="<?php echo $g['adm_href']?>&recnum=<?php echo $recnum?>&p=<?php echo $p?>&uid=<?php echo $BR['uid']?>&account=<?php echo $account?>" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center<?php if($uid==$BR['uid']):?> active<?php endif?>">
|
||||
<?php echo $BR['name']?>(<?php echo $BR['id']?>)
|
||||
<span class="badge badge-dark badge-pill ml-auto"><?php echo number_format($BR['num_r'])?></span>
|
||||
</a>
|
||||
<?php $_i++;endwhile?>
|
||||
<?php else:?>
|
||||
<div class="text-center text-muted d-flex align-items-center justify-content-center" style="height: calc(100vh - 15.6rem);">
|
||||
<div><i class="fa fa-exclamation-circle fa-3x mb-2" aria-hidden="true"></i> <br>등록된 게시판이 없습니다. </div>
|
||||
</div>
|
||||
<?php endif?>
|
||||
</div>
|
||||
|
||||
<div class="card-footer p-1">
|
||||
<a href="" class="btn btn-link btn-sm btn-block muted-link"><i class="fa fa-cog"></i> 게시판 정열 및 검색</a>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<a href="<?php echo $g['adm_href']?>&front=main_detail" class="btn btn-outline-primary btn-block"><i class="fa fa-plus"></i> 새 게시판 만들기</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header p-0" role="tab" id="headingTwo">
|
||||
<a class="d-block collapsed muted-link" data-toggle="collapse" href="#collapseTwo" role="button" aria-expanded="false" aria-controls="collapseTwo">
|
||||
순서변경
|
||||
</a>
|
||||
</div>
|
||||
<div id="collapseTwo" class="collapse" role="tabpanel" aria-labelledby="headingTwo" data-parent="#accordion">
|
||||
|
||||
<?php if($NUM):?>
|
||||
<form name="bbsform" role="form" action="<?php echo $g['s']?>/" method="post" target="_orderframe_">
|
||||
<input type="hidden" name="account" value="<?php echo $account?>" />
|
||||
<input type="hidden" name="m" value="<?php echo $module?>" />
|
||||
<input type="hidden" name="a" value="bbsorder_update" />
|
||||
<div class="dd" id="nestable-menu">
|
||||
<ul class="dd-list list-unstyled">
|
||||
<?php $_i=1;while($BR = db_fetch_array($RCD)):?>
|
||||
<li class="dd-item" data-id="<?php echo $_i?>">
|
||||
<input type="checkbox" name="bbsmembers[]" value="<?php echo $BR['uid']?>" checked class="hidden"/>
|
||||
<span class="dd-handle <?php if($BR['uid']==$R['uid']):?>alert alert-info<?php endif?>" ><i class="fa fa-arrows fa-fw"></i>
|
||||
<?php echo $BR['name']?>(<?php echo $BR['id']?>)
|
||||
</span>
|
||||
<span title="<?php echo number_format($BR['num_r'])?>개" data-tootip="tooltip">
|
||||
<a href="<?php echo $g['adm_href']?>&recnum=<?php echo $recnum?>&p=<?php echo $p?>&uid=<?php echo $BR['uid']?>" data-tooltip="tooltip" title="수정하기">
|
||||
<i class="glyphicon glyphicon-edit"></i>
|
||||
</a>
|
||||
</span>
|
||||
</li>
|
||||
<?php $_i++;endwhile?>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
<!-- nestable : https://github.com/dbushell/Nestable -->
|
||||
<?php getImport('nestable','jquery.nestable',false,'js') ?>
|
||||
<script>
|
||||
$('#nestable-menu').nestable();
|
||||
$('.dd').on('change', function() {
|
||||
var f = document.bbsform;
|
||||
getIframeForAction(f);
|
||||
f.submit();
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php else:?>
|
||||
<div class="text-center text-muted d-flex align-items-center justify-content-center" style="height: calc(100vh - 15.6rem);">
|
||||
<div><i class="fa fa-exclamation-circle fa-3x mb-2" aria-hidden="true"></i> <br>등록된 게시판이 없습니다. </div>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card d-none"> <!-- 메뉴 리스트 패털 시작 -->
|
||||
|
||||
<!-- 메뉴 패널 헤더 : 아이콘 & 제목 -->
|
||||
<div class="card-header">
|
||||
<h4>게시판 리스트</h4>
|
||||
<span class="pull-right">
|
||||
<button type="button" class="btn btn-light btn-xs<?php if(!$_SESSION['sh_site_bbs_search']):?> collapsed<?php endif?>" data-toggle="collapse" data-target="#panel-search" data-tooltip="tooltip" title="검색필터" onclick="sessionSetting('sh_site_bbs_search','1','','1');getSearchFocus();">
|
||||
<i class="fa fa-search"></i>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
<div id="panel-search" class="collapse<?php if($_SESSION['sh_site_bbs_search']):?> in<?php endif?>">
|
||||
<form role="form" action="<?php echo $g['s']?>/" method="get">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="<?php echo $m?>">
|
||||
<input type="hidden" name="module" value="<?php echo $module?>">
|
||||
<input type="hidden" name="front" value="<?php echo $front?>">
|
||||
<div class="panel-heading rb-search-box">
|
||||
<div class="input-group">
|
||||
<div class="input-group-addon"><small>출력수</small></div>
|
||||
<div class="input-group-btn">
|
||||
<select class="form-control" name="recnum" onchange="this.form.submit();">
|
||||
<option value="15"<?php if($recnum==15):?> selected<?php endif?>>15</option>
|
||||
<option value="30"<?php if($recnum==30):?> selected<?php endif?>>30</option>
|
||||
<option value="60"<?php if($recnum==60):?> selected<?php endif?>>60</option>
|
||||
<option value="100"<?php if($recnum==100):?> selected<?php endif?>>100</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rb-keyword-search input-group input-group-sm">
|
||||
<input type="text" name="keyw" class="form-control" value="<?php echo $keyw?>" placeholder="아이디 or 이름">
|
||||
<span class="input-group-btn">
|
||||
<button class="btn btn-primary" type="submit">검색</button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="panel-body" style="border-top:1px solid #DEDEDE;">
|
||||
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<ul class="pagination justify-content-center">
|
||||
<script>getPageLink(5,<?php echo $p?>,<?php echo $TPG?>,'');</script>
|
||||
<?php //echo getPageLink(5,$p,$TPG,'')?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<a href="<?php echo $g['adm_href']?>&front=main_detail" class="btn btn-outline-primary btn-block">
|
||||
<i class="fa fa-plus"></i> 새 게시판 만들기
|
||||
</a>
|
||||
</div>
|
||||
</div> <!-- 좌측 패널 끝 -->
|
||||
|
||||
|
||||
|
||||
</div><!-- 좌측 내용 끝 -->
|
||||
<!-- 우측 내용 시작 -->
|
||||
<div id="tab-content-view" class="col-sm-8 col-md-8 ml-sm-auto col-xl-9">
|
||||
|
||||
<form name="procForm" class="card rounded-0 border-0" role="form" action="<?php echo $g['s']?>/" method="post" enctype="multipart/form-data" onsubmit="return saveCheck(this);">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="<?php echo $module?>">
|
||||
<input type="hidden" name="a" value="makebbs">
|
||||
<input type="hidden" name="bid" value="<?php echo $R['id']?>">
|
||||
<?php if (!$uid): ?><input type="hidden" name="site" value="<?php echo $account?>"><?php endif; ?>
|
||||
<input type="hidden" name="perm_g_list" value="<?php echo $R['perm_g_list']?>">
|
||||
<input type="hidden" name="perm_g_view" value="<?php echo $R['perm_g_view']?>">
|
||||
<input type="hidden" name="perm_g_write" value="<?php echo $R['perm_g_write']?>">
|
||||
<input type="hidden" name="perm_g_down" value="<?php echo $R['perm_g_down']?>">
|
||||
|
||||
<div class="card-header d-flex justify-content-between align-items-center">
|
||||
<?php if($R['uid']):?>
|
||||
<span>게시판 등록정보 <span class="badge badge-primary badge-pill align-text-bottom"><?php echo $R['name']?></span></span>
|
||||
<?php else:?>
|
||||
새 게시판 만들기
|
||||
<?php endif?>
|
||||
<a href="<?php echo $g['adm_href']?>&front=main">
|
||||
게시판 목록
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">게시판 이름 <small class="text-danger">*</small></label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<div class="input-group">
|
||||
<input class="form-control" placeholder="" type="text" name="name" value="<?php echo $R['name']?>"<?php if(!$R['uid']):?> autofocus<?php endif?> required autocomplete="off">
|
||||
<?php if($R['uid']):?>
|
||||
<div class="input-group-append">
|
||||
<a href="<?php echo RW('m='.$module.'&bid='.$R['id'])?>" target="_blank" class="btn btn-light" data-tooltip="tooltip" title="게시판 보기">
|
||||
<i class="fa fa-link fa-lg"></i>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif?>
|
||||
</div>
|
||||
<small class="form-text text-muted">게시판제목에 해당되며 한글,영문등 자유롭게 등록할 수 있습니다.</small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">게시판 아이디 <small class="text-danger">*</small></label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<div class="input-group">
|
||||
<input class="form-control" placeholder="" type="text" name="id" value="<?php echo $R['id']?>" <?php if($R['uid']):?>readonly<?php endif?> required autocomplete="off">
|
||||
<?php if($R['uid']):?>
|
||||
<div class="input-group-append">
|
||||
<a href="<?php echo $g['s']?>/?r=<?php echo $r?>&m=<?php echo $module?>&a=deletebbs&uid=<?php echo $R['uid']?>" onclick="return hrefCheck(this,true,'삭제하시면 모든 게시물이 지워지며 복구할 수 없습니다.\n정말로 삭제하시겠습니까?');" class="btn btn-light" data-tooltip="tooltip" title="삭제하기">
|
||||
<i class="fa fa-trash-o fa-lg"></i>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif?>
|
||||
</div>
|
||||
<small class="form-text text-muted">영문 대소문자+숫자+_ 조합으로 만듭니다.</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div<?php echo $uid?'':' class="d-none"' ?>>
|
||||
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">카테고리</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<input class="form-control" placeholder="" type="text" name="category" value="<?php echo $R['category']?>">
|
||||
<small class="form-text text-muted">
|
||||
분류를 <strong>콤마(,)</strong>로 구분해 주세요. <strong>첫분류는 분류제목</strong>이 됩니다.<br>
|
||||
보기)<strong>구분</strong>,유머,공포,엽기,무협,기타
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">레이아웃</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
|
||||
<select name="layout" class="form-control custom-select">
|
||||
<option value="">사이트 대표 레이아웃</option>
|
||||
<option disabled>--------------------</option>
|
||||
<?php $dirs = opendir($g['path_layout'])?>
|
||||
<?php while(false !== ($tpl = readdir($dirs))):?>
|
||||
<?php if($tpl=='.' || $tpl == '..' || $tpl == '_blank' || is_file($g['path_layout'].$tpl))continue?>
|
||||
<?php $dirs1 = opendir($g['path_layout'].$tpl)?>
|
||||
<optgroup label="<?php echo getFolderName($g['path_layout'].$tpl)?>">
|
||||
<?php while(false !== ($tpl1 = readdir($dirs1))):?>
|
||||
<?php if(!strstr($tpl1,'.php') || $tpl1=='_main.php')continue?>
|
||||
<option value="<?php echo $tpl?>/<?php echo $tpl1?>"<?php if($d['bbs']['layout']==$tpl.'/'.$tpl1):?> selected="selected"<?php endif?>><?php echo $tpl?> > <?php echo str_replace('.php','',$tpl1)?></option>
|
||||
<?php endwhile?>
|
||||
</optgroup>
|
||||
<?php closedir($dirs1)?>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">
|
||||
<span class="badge badge-dark">모바일 접속</span>
|
||||
</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
|
||||
<?php if ($R['uid']): ?>
|
||||
<select name="m_layout" class="form-control custom-select" id="" tabindex="-1">
|
||||
<?php if ($_HS['m_layout']): ?>
|
||||
<option value="0">사이트 레이아웃</option>
|
||||
<?php else: ?>
|
||||
<option value="0"> 사용안함 (기본 레이아웃 적용)</option>
|
||||
<?php endif; ?>
|
||||
<option disabled>--------------------</option>
|
||||
<?php $dirs = opendir($g['path_layout'])?>
|
||||
<?php while(false !== ($tpl = readdir($dirs))):?>
|
||||
<?php if($tpl=='.' || $tpl == '..' || $tpl == '_blank' || is_file($g['path_layout'].$tpl))continue?>
|
||||
<?php $dirs1 = opendir($g['path_layout'].$tpl)?>
|
||||
<optgroup label="<?php echo getFolderName($g['path_layout'].$tpl)?>">
|
||||
<?php while(false !== ($tpl1 = readdir($dirs1))):?>
|
||||
<?php if(!strstr($tpl1,'.php') || $tpl1=='_main.php')continue?>
|
||||
<option value="<?php echo $tpl?>/<?php echo $tpl1?>"<?php if($d['bbs']['m_layout']==$tpl.'/'.$tpl1):?> selected="selected"<?php endif?>><?php echo $tpl?> > <?php echo str_replace('.php','',$tpl1)?></option>
|
||||
<?php endwhile?>
|
||||
</optgroup>
|
||||
<?php closedir($dirs1)?>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</select>
|
||||
<?php else: ?>
|
||||
|
||||
<!-- 게시판 신규생성시 모바일 레이아웃을 blank.php를 기본값으로 적용 -->
|
||||
<?php
|
||||
$_m_layoutExp1=explode('/',$_HS['m_layout']);
|
||||
$m_layout_bbs = $_m_layoutExp1[0].'/blank-drawer.php';
|
||||
?>
|
||||
<input type="hidden" name="m_layout" value="<?php echo $m_layout_bbs ?>">
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right"><i class="fa fa-columns fa-lg fa-fw" aria-hidden="true"></i> 테마 </label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="skin" class="form-control custom-select">
|
||||
|
||||
<?php $_skinHexp=explode('/',$d['bbs']['skin_main'])?>
|
||||
<option value="">게시판 대표테마 (<?php echo $d['bbs']['skin_main']?$_skinHexp[1]:'사용안함'?>)</option>
|
||||
<option disabled>--------------------</option>
|
||||
<optgroup label="데스크탑">
|
||||
<?php $tdir = $g['path_module'].$module.'/themes/_desktop/'?>
|
||||
<?php $dirs = opendir($tdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($tdir.$skin))continue?>
|
||||
<option value="_desktop/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['skin']=='_desktop/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($tdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
<optgroup label="모바일">
|
||||
<?php $tdir = $g['path_module'].$module.'/themes/_mobile/'?>
|
||||
<?php $dirs = opendir($tdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($tdir.$skin))continue?>
|
||||
<option value="_mobile/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['skin']=='_mobile/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($tdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
|
||||
</select>
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right"><span class="badge badge-dark">모바일 접속</span></label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="m_skin" class="form-control custom-select">
|
||||
<?php $_skinmHexp=explode('/',$d['bbs']['skin_mobile'])?>
|
||||
<option value="">게시판 모바일 대표테마 (<?php echo $d['bbs']['skin_mobile']?$_skinmHexp[1]:'사용안함'?>)</option>
|
||||
<option disabled>--------------------</option>
|
||||
<optgroup label="모바일">
|
||||
<?php $tdir = $g['path_module'].$module.'/themes/_mobile/'?>
|
||||
<?php $dirs = opendir($tdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($tdir.$skin))continue?>
|
||||
<option value="_mobile/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['m_skin']=='_mobile/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($tdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
<optgroup label="데스크탑">
|
||||
<?php $tdir = $g['path_module'].$module.'/themes/_desktop/'?>
|
||||
<?php $dirs = opendir($tdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($tdir.$skin))continue?>
|
||||
<option value="_desktop/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['m_skin']=='_desktop/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($tdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
|
||||
</select>
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right"><i class="fa fa-pencil-square-o fa-lg fa-fw" aria-hidden="true"></i> 에디터</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="editor" class="form-control custom-select">
|
||||
<option value="">테마 지정안함</option>
|
||||
<option disabled>--------------------</option>
|
||||
<?php $dirs = opendir($g['path_plugin'])?>
|
||||
<?php while(false !== ($tpl = readdir($dirs))):?>
|
||||
<?php if(!is_file($g['path_plugin'].$tpl.'/import.desktop.php'))continue?>
|
||||
<option value="<?php echo $tpl?>"<?php if($d['bbs']['editor']==$tpl):?> selected<?php endif?>>
|
||||
ㆍ<?php echo getFolderName($g['path_plugin'].$tpl)?> (<?php echo $tpl?>)
|
||||
</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</select>
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right"><span class="badge badge-dark">모바일 접속</span></label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<input type="hidden" name="m_editor" value="">
|
||||
<input type="text" readonly class="form-control-plaintext" value="모바일 기본형">
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
|
||||
|
||||
<hr>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right"><i class="fa fa-paperclip fa-fw fa-lg" aria-hidden="true"></i> 파일첨부</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="a_skin" class="form-control custom-select">
|
||||
<?php $_attachHexp=explode('/',$d['bbs']['attach_main'])?>
|
||||
<option value="">테마 지정안함</option>
|
||||
<option disabled>--------------------</option>
|
||||
<optgroup label="데스크탑">
|
||||
<?php $a_dir = $g['path_module'].'mediaset/themes/_desktop/'?>
|
||||
<?php $dirs = opendir($a_dir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($a_dir.$skin))continue?>
|
||||
<option value="_desktop/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['a_skin']=='_desktop/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($a_dir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
<optgroup label="모바일">
|
||||
<?php $a_dir = $g['path_module'].'mediaset/themes/_mobile/'?>
|
||||
<?php $dirs = opendir($a_dir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($a_dir.$skin))continue?>
|
||||
<option value="_mobile/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['a_skin']=='_mobile/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($a_dir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
</select>
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right"><span class="badge badge-dark">모바일 접속</span></label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="a_mskin" class="form-control custom-select">
|
||||
<?php $_attachmHexp=explode('/',$d['bbs']['attach_mobile'])?>
|
||||
<option value="">테마 지정안함</option>
|
||||
<option disabled>--------------------</option>
|
||||
<optgroup label="모바일">
|
||||
<?php $a_mdir = $g['path_module'].'mediaset/themes/_mobile/'?>
|
||||
<?php $dirs = opendir($a_mdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($a_mdir.$skin))continue?>
|
||||
<option value="_mobile/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['a_mskin']=='_mobile/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($a_mdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
<optgroup label="데스크탑">
|
||||
<?php $a_mdir = $g['path_module'].'mediaset/themes/_desktop/'?>
|
||||
<?php $dirs = opendir($a_mdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($a_mdir.$skin))continue?>
|
||||
<option value="_desktop/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['a_mskin']=='_desktop/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($a_mdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
</select>
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="collapse<?php if(!$d['bbs']['c_hidden']):?> show<?php endif?>" id="show-comment">
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right"><i class="fa fa-comments-o fa-fw fa-lg" aria-hidden="true"></i> 댓글</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="c_skin" class="form-control custom-select">
|
||||
<?php $_commentHexp=explode('/',$d['bbs']['comment_main'])?>
|
||||
<option value="">테마 지정안함</option>
|
||||
<option disabled>--------------------</option>
|
||||
<optgroup label="데스크탑">
|
||||
<?php $c_dir = $g['path_module'].'comment/themes/_desktop/'?>
|
||||
<?php $dirs = opendir($c_dir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($c_dir.$skin))continue?>
|
||||
<option value="_desktop/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['c_skin']=='_desktop/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($c_dir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
<optgroup label="모바일">
|
||||
<?php $c_dir = $g['path_module'].'comment/themes/_mobile/'?>
|
||||
<?php $dirs = opendir($c_dir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($c_dir.$skin))continue?>
|
||||
<option value="_mobile/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['c_skin']=='_mobile/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($c_dir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
</select>
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right"><span class="badge badge-dark">모바일 접속</span></label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="c_mskin" class="form-control custom-select">
|
||||
<?php $_commentmHexp=explode('/',$d['bbs']['comment_mobile'])?>
|
||||
<option value="">테마 지정안함</option>
|
||||
<option disabled>--------------------</option>
|
||||
|
||||
<optgroup label="모바일">
|
||||
<?php $c_mdir = $g['path_module'].'comment/themes/_mobile/'?>
|
||||
<?php $dirs = opendir($c_mdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($c_mdir.$skin))continue?>
|
||||
<option value="_mobile/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['c_mskin']=='_mobile/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($c_mdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
<optgroup label="데스크탑">
|
||||
<?php $c_mdir = $g['path_module'].'comment/themes/_desktop/'?>
|
||||
<?php $dirs = opendir($c_mdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($c_mdir.$skin))continue?>
|
||||
<option value="_desktop/<?php echo $skin?>" title="<?php echo $skin?>"<?php if($d['bbs']['c_mskin']=='_desktop/'.$skin):?> selected="selected"<?php endif?>>ㆍ<?php echo getFolderName($c_mdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</optgroup>
|
||||
|
||||
</select>
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
|
||||
</div><!-- /.collapse -->
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">
|
||||
<?php if($d['bbs']['c_hidden']):?><i class="fa fa-comments-o fa-fw fa-lg" aria-hidden="true"></i> 댓글<?php endif?>
|
||||
</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<div class="custom-control custom-checkbox mt-2" data-toggle="collapse" data-target="#show-comment">
|
||||
<input type="checkbox" class="custom-control-input" name="c_hidden" id="c_hidden" value="1"<?php if($d['bbs']['c_hidden']):?> checked<?php endif?>>
|
||||
<label class="custom-control-label" for="c_hidden">댓글 사용안함</label>
|
||||
</div>
|
||||
</div> <!-- .col-sm-10 -->
|
||||
</div> <!-- .form-group -->
|
||||
|
||||
<hr>
|
||||
|
||||
<?php if ($uid): ?>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">사이트</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="site" class="form-control custom-select">
|
||||
<?php $_SITES = getDbArray($table['s_site'],'','*','gid','asc',0,1); ?>
|
||||
<?php while($S = db_fetch_array($_SITES)):?>
|
||||
<option value="<?php echo $S['uid']?>"<?php if($R['site']==$S['uid']):?> selected="selected"<?php endif?>>ㆍ<?php echo $S['label']?></option>
|
||||
<?php endwhile?>
|
||||
<?php if(!db_num_rows($SITES)):?>
|
||||
<option value="">등록된 사이트가 없습니다.</option>
|
||||
<?php endif?>
|
||||
</select>
|
||||
<small class="form-text text-muted">
|
||||
사이트 전용 게시판이 필요할 경우 지정해 주세요.
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label text-lg-right">연결메뉴</label>
|
||||
<div class="col-lg-10 col-xl-9">
|
||||
<select name="sosokmenu" class="form-control custom-select">
|
||||
<option value="">사용 안함</option>
|
||||
<option disabled>--------------------</option>
|
||||
<?php include_once $g['path_core'].'function/menu1.func.php'?>
|
||||
<?php $cat=$d['bbs']['sosokmenu']?>
|
||||
<?php getMenuShowSelect($s,$table['s_menu'],0,0,0,0,0,'')?>
|
||||
</select>
|
||||
<small class="form-text text-muted">
|
||||
이 게시판을 메뉴에 연결하였을 경우 해당메뉴를 지정해 주세요.<br>
|
||||
연결메뉴를 지정하면 게시물수,로케이션이 동기화됩니다.
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 추가설정 시작 : panel-group 으로 각각의 panel 을 묶는다.-->
|
||||
<div id="bbs-settings" class="panel-group">
|
||||
|
||||
<div id="bbs-settings-noti" class="card mb-2">
|
||||
<div class="card-header p-0">
|
||||
<a onclick="sessionSetting('bbs_settings_collapse','noti','','');"
|
||||
href="#bbs-settings-noti-body"
|
||||
data-toggle="collapse"
|
||||
class="d-block collapsed muted-link pl-2<?php if($_SESSION['bbs_settings_collapse']!='noti'):?> collapsed<?php endif?>">
|
||||
알림설정
|
||||
</a>
|
||||
</div> <!-- .card-header -->
|
||||
<div class="collapse<?php if($_SESSION['bbs_settings_collapse']=='noti'):?> show<?php endif?>" id="bbs-settings-noti-body" data-parent="#bbs-settings">
|
||||
<div class="card-body">
|
||||
<?php include $g['path_module'].$module.'/admin/_noti_fgroup.php';?>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.알림설정 -->
|
||||
|
||||
<div id="bbs-settings-add" class="card mb-2"> <!-- 추가설정-->
|
||||
<div class="card-header p-0">
|
||||
<a onclick="sessionSetting('bbs_settings_collapse','add','','');"
|
||||
href="#bbs-settings-add-body"
|
||||
data-toggle="collapse"
|
||||
class="d-block collapsed muted-link pl-2<?php if($_SESSION['bbs_settings_collapse']!='add'):?> collapsed<?php endif?>">
|
||||
추가설정
|
||||
</a>
|
||||
</div> <!-- .card-header -->
|
||||
<div class="collapse<?php if($_SESSION['bbs_settings_collapse']=='add'):?> show<?php endif?>" id="bbs-settings-add-body" data-parent="#bbs-settings" >
|
||||
<div class="card-body">
|
||||
|
||||
<!-- .form-group 나열 -->
|
||||
<?php include $g['path_module'].$module.'/admin/_add_fgroup.php';?>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<small class="text-muted">
|
||||
<i class="fa fa-info-circle fa-lg fa-fw"></i> 이상 추가설정 내용입니다.
|
||||
</small>
|
||||
</div>
|
||||
</div> <!-- .panel-body & .panel-footer : 숨겼다 보였다 하는 내용 -->
|
||||
</div> <!-- .panel 전체 -->
|
||||
|
||||
<div id="bbs-settings-right" class="card mb-2"><!--권한설정-->
|
||||
<div class="card-header p-0">
|
||||
<a onclick="sessionSetting('bbs_settings_collapse','right','','');"
|
||||
href="#bbs-settings-right-body"
|
||||
data-toggle="collapse"
|
||||
class="collapsed d-block collapsed muted-link pl-2<?php if($_SESSION['bbs_settings_collapse']!='right'):?> collapsed<?php endif?>">
|
||||
권한설정
|
||||
</a>
|
||||
</div>
|
||||
<div class="collapse<?php if($_SESSION['bbs_settings_collapse']=='right'):?> show<?php endif?>" id="bbs-settings-right-body" data-parent="#bbs-settings" >
|
||||
<div class="card-body">
|
||||
<!-- .form-group 나열 -->
|
||||
<?php include $g['path_module'].$module.'/admin/_right_fgroup.php';?>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<small class="text-muted">
|
||||
<i class="fa fa-info-circle fa-lg fa-fw"></i> 이상 권한설정 내용입니다.
|
||||
</small>
|
||||
</div>
|
||||
</div> <!-- .panel-body & .panel-footer : 숨겼다 보였다 하는 내용 -->
|
||||
</div> <!-- .panel 전체 -->
|
||||
|
||||
<div id="bbs-settings-hcode" class="card mb-2"><!--헤더삽입-->
|
||||
<div class="card-header p-0">
|
||||
<a onclick="sessionSetting('bbs_settings_collapse','hcode','','');"
|
||||
href="#bbs-settings-hcode-body"
|
||||
data-toggle="collapse"
|
||||
class="collapsed d-block collapsed muted-link pl-2<?php if($_SESSION['bbs_settings_collapse']!='hcode'):?> collapsed<?php endif?>">
|
||||
헤더삽입
|
||||
</a>
|
||||
</div>
|
||||
<div class="collapse<?php if($_SESSION['bbs_settings_collapse']=='hcode'):?> show<?php endif?>" id="bbs-settings-hcode-body" data-parent="#bbs-settings" >
|
||||
<div class="card-body">
|
||||
<!-- .form-group 나열 -->
|
||||
<?php include $g['path_module'].$module.'/admin/_header_fgroup.php';?>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<small class="text-muted">
|
||||
<i class="fa fa-info-circle fa-lg fa-fw"></i> 이상 헤더삽입 내용입니다.
|
||||
</small>
|
||||
</div>
|
||||
</div> <!-- .panel-body & .panel-footer : 숨겼다 보였다 하는 내용 -->
|
||||
</div> <!-- .panel 전체 -->
|
||||
|
||||
<div id="bbs-settings-fcode" class="card mb-2"><!--풋터삽입-->
|
||||
<div class="card-header p-0">
|
||||
<a onclick="sessionSetting('bbs_settings_collapse','fcode','','');"
|
||||
href="#bbs-settings-fcode-body"
|
||||
data-toggle="collapse"
|
||||
class="collapsed d-block collapsed muted-link pl-2<?php if($_SESSION['bbs_settings_collapse']!='fcode'):?> collapsed<?php endif?>">
|
||||
풋터삽입
|
||||
</a>
|
||||
</div>
|
||||
<div class="collapse<?php if($_SESSION['bbs_settings_collapse']=='fcode'):?> show<?php endif?>" id="bbs-settings-fcode-body" data-parent="#bbs-settings" >
|
||||
<div class="card-body">
|
||||
<!-- .form-group 나열 -->
|
||||
<?php include $g['path_module'].$module.'/admin/_footer_fgroup.php';?>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<small class="text-muted">
|
||||
<i class="fa fa-info-circle fa-lg fa-fw"></i> 이상 풋터삽입 내용입니다.
|
||||
</small>
|
||||
</div>
|
||||
</div> <!-- .panel-body & .panel-footer : 숨겼다 보였다 하는 내용 -->
|
||||
</div> <!-- .panel 전체 -->
|
||||
</div> <!-- .panel-group -->
|
||||
|
||||
|
||||
|
||||
</div><!-- /.d-none -->
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-sm-12">
|
||||
<button type="submit" class="btn btn-outline-primary btn-block btn-lg my-4">
|
||||
<?php echo $R['uid']?'게시판속성 변경':'새 게시판 만들기'?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div><!-- /.card-body -->
|
||||
</form>
|
||||
|
||||
</div> <!-- 우측내용 끝 -->
|
||||
</div> <!-- .row 전체 box -->
|
||||
|
||||
<iframe hidden name="_orderframe_"></iframe>
|
||||
<script type="text/javascript">
|
||||
|
||||
//사이트 셀렉터 출력
|
||||
$('[data-role="siteSelector"]').removeClass('d-none')
|
||||
|
||||
putCookieAlert('result_bbs_main') // 실행결과 알림 메시지 출력
|
||||
|
||||
function saveCheck(f)
|
||||
{
|
||||
var l1 = f._perm_g_list;
|
||||
var n1 = l1.length;
|
||||
var l2 = f._perm_g_view;
|
||||
var n2 = l2.length;
|
||||
var l3 = f._perm_g_write;
|
||||
var n3 = l3.length;
|
||||
var l4 = f._perm_g_down;
|
||||
var n4 = l4.length;
|
||||
var i;
|
||||
var s1 = '';
|
||||
var s2 = '';
|
||||
var s3 = '';
|
||||
var s4 = '';
|
||||
for (i = 0; i < n1; i++)
|
||||
{
|
||||
if (l1[i].selected == true && l1[i].value != '')
|
||||
{
|
||||
s1 += '['+l1[i].value+']';
|
||||
}
|
||||
}
|
||||
for (i = 0; i < n2; i++)
|
||||
{
|
||||
if (l2[i].selected == true && l2[i].value != '')
|
||||
{
|
||||
s2 += '['+l2[i].value+']';
|
||||
}
|
||||
}
|
||||
for (i = 0; i < n3; i++)
|
||||
{
|
||||
if (l3[i].selected == true && l3[i].value != '')
|
||||
{
|
||||
s3 += '['+l3[i].value+']';
|
||||
}
|
||||
}
|
||||
for (i = 0; i < n4; i++)
|
||||
{
|
||||
if (l4[i].selected == true && l4[i].value != '')
|
||||
{
|
||||
s4 += '['+l4[i].value+']';
|
||||
}
|
||||
}
|
||||
f.perm_g_list.value = s1;
|
||||
f.perm_g_view.value = s2;
|
||||
f.perm_g_write.value = s3;
|
||||
f.perm_g_down.value = s4;
|
||||
if (f.name.value == '')
|
||||
{
|
||||
alert('게시판이름을 입력해 주세요. ');
|
||||
f.name.focus();
|
||||
return false;
|
||||
}
|
||||
if (f.bid.value == '')
|
||||
{
|
||||
if (f.id.value == '')
|
||||
{
|
||||
alert('게시판아이디를 입력해 주세요. ');
|
||||
f.id.focus();
|
||||
return false;
|
||||
}
|
||||
if (!chkFnameValue(f.id.value))
|
||||
{
|
||||
alert('게시판아이디는 영문 대소문자/숫자/_ 만 사용가능합니다. ');
|
||||
f.id.value = '';
|
||||
f.id.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
getIframeForAction(f);
|
||||
f.submit();
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
<?php if (!$uid): ?>
|
||||
$('[name="name"]').focus()
|
||||
<?php endif; ?>
|
||||
});
|
||||
|
||||
</script>
|
||||
237
modules/bbs/admin/movecopy.php
Normal file
237
modules/bbs/admin/movecopy.php
Normal file
@@ -0,0 +1,237 @@
|
||||
<?php
|
||||
|
||||
//게시물링크
|
||||
function getPostLink2($arr)
|
||||
{
|
||||
return RW('m=bbs&bid='.$arr['bbsid'].'&uid='.$arr['uid'].($GLOBALS['s']!=$arr['site']?'&s='.$arr['site']:''));
|
||||
}
|
||||
|
||||
$postarray1 = array();
|
||||
$postarray2 = array();
|
||||
|
||||
$postarray1 = getArrayString($postuid);
|
||||
foreach($postarray1['data'] as $val)
|
||||
{
|
||||
if (!strstr($_SESSION['BbsPost'.$type],'['.$val.']'))
|
||||
{
|
||||
$_SESSION['BbsPost'.$type] .= '['.$val.']';
|
||||
}
|
||||
}
|
||||
$postarray2 = getArrayString($_SESSION['BbsPost'.$type]);
|
||||
rsort($postarray2['data']);
|
||||
reset($postarray2['data']);
|
||||
?>
|
||||
<form name="procForm" action="<?php echo $g['s']?>/" method="post" target="_action_frame_<?php echo $m?>">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>" />
|
||||
<input type="hidden" name="m" value="<?php echo $module?>" />
|
||||
<input type="hidden" name="type" value="<?php echo $type?>" />
|
||||
<input type="hidden" name="a" value="" />
|
||||
|
||||
<div id="toolbox" class="p-3">
|
||||
|
||||
<header class="d-flex justify-content-between mb-2">
|
||||
<ul class="nav nav-pills">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link<?php if($type=='multi_move'):?> active<?php endif?>" href="<?php echo $g['adm_href']?>&iframe=<?php echo $iframe?>&type=multi_move">게시물 이동</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link<?php if($type=='multi_copy'):?> active<?php endif?>" href="<?php echo $g['adm_href']?>&iframe=<?php echo $iframe?>&type=multi_copy">게시물 복사</a>
|
||||
</li>
|
||||
</ul>
|
||||
<a class="btn btn-link" href="<?php echo $g['s']?>/?r=<?php echo $r?>&m=<?php echo $module?>&a=multi_empty&type=<?php echo $type?>" target="_action_frame_<?php echo $m?>" onclick="return confirm('정말로 대기리스트를 비우시겠습니까? ');">비우기</a>
|
||||
</header>
|
||||
|
||||
<table class="table table-sm f13 text-center mb-0 border-bottom">
|
||||
<colgroup>
|
||||
<col width="30">
|
||||
<col width="80">
|
||||
<col>
|
||||
<col width="50">
|
||||
<col width="90">
|
||||
</colgroup>
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th scope="col">
|
||||
<button type="button" class="btn btn-sm btn-link p-0" onclick="chkFlag('post_members[]');">선택</button>
|
||||
</th>
|
||||
<th scope="col">게시판</th>
|
||||
<th scope="col">제목</th>
|
||||
<th scope="col">조회</th>
|
||||
<th scope="col" class="side2">날짜</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php foreach($postarray2['data'] as $val):?>
|
||||
<?php $R=getUidData($table[$module.'data'],$val)?>
|
||||
<?php $R['mobile']=isMobileConnect($R['agent'])?>
|
||||
<?php $B = getUidData($table[$module.'list'],$R['bbs']); ?>
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<div class="custom-control custom-checkbox custom-control-inline mr-0">
|
||||
<input type="checkbox" class="custom-control-input" id="post_members_<?php echo $R['uid']?>" name="post_members[]" value="<?php echo $R['uid']?>" checked="checked">
|
||||
<label class="custom-control-label" for="post_members_<?php echo $R['uid']?>"></label>
|
||||
</div>
|
||||
</td>
|
||||
<td class="bbsid"><?php echo $B['name'] ?></td>
|
||||
<td class="text-left">
|
||||
<?php if($R['notice']):?><span class="badge badge-light">공지</span><?php endif?>
|
||||
<?php if($R['mobile']):?><span class="badge badge-light"><i class="fa fa-mobile fa-lg"></i></span><?php endif?>
|
||||
<?php if($R['category']):?><span class="badge badge-light"><?php echo $R['category']?></span><?php endif?>
|
||||
<a href="<?php echo getPostLink2($R)?>" target="_blank" class="muted-link"><?php echo $R['subject']?></a>
|
||||
<?php if(strstr($R['content'],'.jpg')):?>
|
||||
<span class="badge badge-light" data-toggle="tooltip" title="사진">
|
||||
<i class="fa fa-camera-retro fa-lg"></i>
|
||||
</span>
|
||||
<?php endif?>
|
||||
<?php if($R['upload']):?>
|
||||
<span class="badge badge-light" data-toggle="tooltip" title="첨부파일">
|
||||
<i class="fa fa-paperclip fa-lg"></i>
|
||||
</span>
|
||||
<?php endif?>
|
||||
<?php if($R['hidden']):?>
|
||||
<span class="badge badge-light" data-toggle="tooltip" title="비밀글"><i class="fa fa-lock fa-lg"></i></span>
|
||||
<?php endif?>
|
||||
<?php if($R['comment']):?><span class="badge badge-light"><?php echo $R['comment']?><?php if($R['oneline']):?>+<?php echo $R['oneline']?><?php endif?></span><?php endif?>
|
||||
<?php if(getNew($R['d_regis'],24)):?><span class="rb-new"></span><?php endif?>
|
||||
</td>
|
||||
<td class="small"><?php echo $R['hit']?></td>
|
||||
<td><?php echo getDateFormat($R['d_regis'],'Y.m.d H:i')?></td>
|
||||
</tr>
|
||||
<?php endforeach?>
|
||||
|
||||
<?php if(!$postarray2['count']):?>
|
||||
<tr>
|
||||
<td class="text-center py-4 text-muted" colspan="5">게시물이 없습니다.</td>
|
||||
</tr>
|
||||
<?php endif?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<footer class="footer mt-5">
|
||||
|
||||
|
||||
<?php if($type == 'multi_copy'):?>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label text-right">게시판 선택</label>
|
||||
<div class="col-sm-10">
|
||||
<select name="bid" class="form-control custom-select w-50">
|
||||
<option value=""> + 선택하세요</option>
|
||||
<option value="" disabled>---------------------------</option>
|
||||
<?php $_BBSLIST = getDbArray($table[$module.'list'],'','*','gid','asc',0,1)?>
|
||||
<?php while($_B=db_fetch_array($_BBSLIST)):?>
|
||||
<option value="<?php echo $_B['uid']?>"<?php if($_B['uid']==$bid):?> selected="selected"<?php endif?>>ㆍ<?php echo $_B['name']?>(<?php echo $_B['id']?> - <?php echo number_format($_B['num_r'])?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php if(!db_num_rows($_BBSLIST)):?>
|
||||
<option value="">등록된 게시판이 없습니다.</option>
|
||||
<?php endif?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label text-right">복사옵션</label>
|
||||
<div class="col-sm-10 pt-2">
|
||||
|
||||
<div class="custom-control custom-checkbox custom-control-inline">
|
||||
<input type="checkbox" class="custom-control-input" id="inc_upload" name="inc_upload" value="1" checked="checked">
|
||||
<label class="custom-control-label" for="inc_upload">첨부파일포함</label>
|
||||
</div>
|
||||
|
||||
<div class="custom-control custom-checkbox custom-control-inline">
|
||||
<input type="checkbox" class="custom-control-input" id="inc_comment" name="inc_comment" value="1" checked="checked">
|
||||
<label class="custom-control-label" for="inc_upload">댓글/한줄의견포함</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label text-right"></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="button" value="복사" class="btn btn-primary" onclick="actQue('multi_copy');" />
|
||||
<input type="button" value="닫기" class="btn btn-light" onclick="top.close();" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php else:?>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label text-right">게시판 선택</label>
|
||||
<div class="col-sm-10">
|
||||
<select name="bid" class="form-control custom-select w-50">
|
||||
<option value=""> + 선택하세요</option>
|
||||
<option value="" disabled>---------------------------</option>
|
||||
<?php $_BBSLIST = getDbArray($table[$module.'list'],'','*','gid','asc',0,1)?>
|
||||
<?php while($_B=db_fetch_array($_BBSLIST)):?>
|
||||
<option value="<?php echo $_B['uid']?>"<?php if($_B['uid']==$bid):?> selected="selected"<?php endif?>>ㆍ<?php echo $_B['name']?>(<?php echo $_B['id']?> - <?php echo number_format($_B['num_r'])?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php if(!db_num_rows($_BBSLIST)):?>
|
||||
<option value="">등록된 게시판이 없습니다.</option>
|
||||
<?php endif?>
|
||||
</select>
|
||||
<small class="form-text text-muted mt-2">
|
||||
동일게시판의 게시물은 제외됨
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label text-right"></label>
|
||||
<div class="col-sm-10">
|
||||
<input type="button" value="이동" class="btn btn-primary" onclick="actQue('multi_move');" />
|
||||
<input type="button" value="닫기" class="btn btn-light" onclick="top.close();" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif?>
|
||||
</footer>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function actQue(act)
|
||||
{
|
||||
var f = document.procForm;
|
||||
var l = document.getElementsByName('post_members[]');
|
||||
var n = l.length;
|
||||
var j = 0;
|
||||
var i;
|
||||
|
||||
for (i = 0; i < n; i++)
|
||||
{
|
||||
if(l[i].checked == true)
|
||||
{
|
||||
j++;
|
||||
}
|
||||
}
|
||||
if (!j)
|
||||
{
|
||||
alert('선택된 게시물이 없습니다. ');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (f.bid.value == '')
|
||||
{
|
||||
alert('게시판을 선택해 주세요. ');
|
||||
f.bid.focus();
|
||||
return false;
|
||||
}
|
||||
if (confirm('정말로 실행하시겠습니까? '))
|
||||
{
|
||||
f.a.value = act;
|
||||
f.submit();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
document.title = "게시물 <?php echo $type=='multi_move'?'이동':'복사'?>";
|
||||
self.resizeTo(650,650);
|
||||
//]]>
|
||||
</script>
|
||||
188
modules/bbs/admin/notidoc.php
Normal file
188
modules/bbs/admin/notidoc.php
Normal file
@@ -0,0 +1,188 @@
|
||||
<?php
|
||||
function getMDname($id)
|
||||
{
|
||||
global $typeset;
|
||||
if ($typeset[$id]) return $typeset[$id];
|
||||
else return $id;
|
||||
}
|
||||
$typeset = array
|
||||
(
|
||||
'_opinion'=>'좋아요/싫어요',
|
||||
'_mention'=>'회원언급',
|
||||
'_new.post'=>'새글 등록',
|
||||
'_report'=>'게시물 신고'
|
||||
);
|
||||
$type = $type ? $type : '_opinion';
|
||||
?>
|
||||
|
||||
<div class="row no-gutters">
|
||||
<div class="col-sm-4 col-md-3 col-xl-3 d-none d-sm-block sidebar" id="tab-content-list">
|
||||
|
||||
<div class="card border-0">
|
||||
<div class="card-header">
|
||||
양식목록
|
||||
</div>
|
||||
<div class="collapse<?php if(!$_SESSION['member_msgdoc_collapse']):?> show<?php endif?>" id="notidoc">
|
||||
<div class="list-group list-group-flush">
|
||||
<?php $tdir = $g['path_module'].$module.'/var/noti/'?>
|
||||
<?php $dirs = opendir($tdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..')continue?>
|
||||
<?php $_type = str_replace('.php','',$skin)?>
|
||||
<a href="<?php echo $g['adm_href']?>&type=<?php echo $_type?>" class="list-group-item d-flex justify-content-between align-items-center list-group-item-action <?php if($_type==$type):?>active<?php endif?> doc-style pl-4">
|
||||
<?php echo getMDname($_type)?>
|
||||
<span class="badge badge-dark"><?php echo $_type?></span>
|
||||
</a>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</div>
|
||||
</div><!-- /.collapse -->
|
||||
</div><!-- /.card -->
|
||||
|
||||
</div>
|
||||
<div class="col-sm-8 col-md-9 ml-sm-auto col-xl-9" id="tab-content-view">
|
||||
|
||||
<form class="card border-0" name="procForm" action="<?php echo $g['s']?>/" method="post" target="_action_frame_<?php echo $m?>" onsubmit="return saveCheck(this);">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="<?php echo $module?>">
|
||||
<input type="hidden" name="a" value="notidoc_regis">
|
||||
<input type="hidden" name="type" value="<?php echo $type?>">
|
||||
|
||||
<div class="card-header page-body-header">
|
||||
<?php if ($doc=='email'): ?><i class="fa fa-envelope-o fa-fw"></i><?php else: ?><i class="fa fa-bell-o fa-lg fa-fw"></i><?php endif; ?>
|
||||
<span><?php echo getMDname($type)?> <span class="badge badge-primary badge-pill">양식수정</span></span>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php
|
||||
$cfile = $g['path_var'].$module.'/noti/'.$type.'.php';
|
||||
$gfile = $g['path_module'].$module.'/var/noti/'.$type.'.php';
|
||||
if (is_file($cfile)) {
|
||||
include_once $cfile;
|
||||
} else {
|
||||
include_once $gfile;
|
||||
}
|
||||
?>
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<i class="fa fa-bell-o mr-1" aria-hidden="true"></i> 알림 메시지 편집
|
||||
</div>
|
||||
<div class="card-body" id="noti-msg">
|
||||
|
||||
<div class="media">
|
||||
<img class="mr-3" src="<?php echo $g['s'].'/files/avatar/0.svg' ?>" alt="회원 아바타" style="width: 100px">
|
||||
<div class="media-body">
|
||||
|
||||
<div class="form-group">
|
||||
<label class="sr-only">타이틀</label>
|
||||
<input type="text" class="form-control" name="noti_title" value="<?php echo $d['bbs']['noti_title'] ?>" placeholder="알림 제목을 입력해 주세요.">
|
||||
<small class="form-text text-muted">
|
||||
회원이름 : <code>{MEMBER}</code> / 닉네임 <code>{NICK}</code> / 게시판명 <code>{BBS}</code>/ 좋아요(싫어요) <code>{OPINION_TYPE}</code>
|
||||
</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="sr-only">메세지 입력</label>
|
||||
<textarea name="noti_body" class="form-control" placeholder="알림내용을 입력해 주세요." rows="5"><?php echo $d['bbs']['noti_body'] ?></textarea>
|
||||
<small class="form-text text-muted">
|
||||
회원이름 : <code>{MEMBER}</code> / 게시판명 <code>{BBS}</code> / 게시물제목 <code>{SUBJECT}</code>
|
||||
</small>
|
||||
</div>
|
||||
<div class="form-group mb-0">
|
||||
<label>연결링크 버튼명</label>
|
||||
<input type="text" class="form-control" name="noti_button" value="<?php echo $d['bbs']['noti_button'] ?>" placeholder="버튼명을 입력해 주세요.">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<?php if ($type=='_opinion'): ?>
|
||||
<dl class="row small text-muted mb-0">
|
||||
<dt class="col-2">발송시점</dt>
|
||||
<dd class="col-10">게시물에 좋아요(싫어요)를 추가(취소) 시</dd>
|
||||
<dt class="col-2">수신대상</dt>
|
||||
<dd class="col-10">게시물 등록회원</dd>
|
||||
<dl>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($type=='_new.post'): ?>
|
||||
<dl class="row small text-muted mb-0">
|
||||
<dt class="col-2">발송시점</dt>
|
||||
<dd class="col-10">게시판 신규 게시물 등록시</dd>
|
||||
<dt class="col-2">수신대상</dt>
|
||||
<dd class="col-10">게시판 관리자</dd>
|
||||
<dl>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($type=='_report'): ?>
|
||||
<dl class="row small text-muted mb-0">
|
||||
<dt class="col-2">발송시점</dt>
|
||||
<dd class="col-10">게시물 신고시</dd>
|
||||
<dt class="col-2">수신대상</dt>
|
||||
<dd class="col-10">게시판 관리자</dd>
|
||||
<dl>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($type=='_new.notice'): ?>
|
||||
<dl class="row small text-muted mb-0">
|
||||
<dt class="col-2">발송시점</dt>
|
||||
<dd class="col-10">게시판 공지글 등록시</dd>
|
||||
<dt class="col-2">수신대상</dt>
|
||||
<dd class="col-10">알림수신을 허용한 전체회원</dd>
|
||||
<dl>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($type=='_mention'): ?>
|
||||
<dl class="row small text-muted mb-0">
|
||||
<dt class="col-2">발송시점</dt>
|
||||
<dd class="col-10">게시글에 회원언급 등록시</dd>
|
||||
<dt class="col-2">수신대상</dt>
|
||||
<dd class="col-10">언급된 회원(들)</dd>
|
||||
<dl>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div><!-- /.card -->
|
||||
|
||||
</div><!-- /.card-body -->
|
||||
|
||||
<div class="card-footer">
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<button type="submit" class="btn btn-outline-primary btn-block">수정</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div><!-- /.card-footer -->
|
||||
|
||||
</form><!-- /.card -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
|
||||
function saveCheck(f) {
|
||||
|
||||
if (f.content.value == '')
|
||||
{
|
||||
$('.note-editable').focus();
|
||||
alert('내용을 입력해 주세요. ');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
putCookieAlert('msgdoc_result') // 실행결과 알림 메시지 출력
|
||||
|
||||
$('[data-toggle=tooltip]').tooltip();
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
109
modules/bbs/admin/post.css
Normal file
109
modules/bbs/admin/post.css
Normal file
@@ -0,0 +1,109 @@
|
||||
|
||||
.table-sm td, .table-sm th {
|
||||
padding: .4rem;
|
||||
font-size: 12px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
#uplist .table th,
|
||||
#uplist .table td {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#uplist .table th.rb-left,
|
||||
#uplist .table td.rb-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#uplist .rb-none {
|
||||
text-align: center;
|
||||
color: #999
|
||||
}
|
||||
|
||||
#uplist .row {
|
||||
margin-right: -5px;
|
||||
margin-left: -5px;
|
||||
}
|
||||
#uplist .row [class*="col-"] {
|
||||
padding-right: 5px !important;
|
||||
padding-left: 5px !important;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
#uplist .row [class*="col-"] {
|
||||
margin-bottom: 10px
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#uplist .pagination {
|
||||
margin: 0
|
||||
}
|
||||
|
||||
#uplist .rb-heading .btn {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#uplist .rb-heading {
|
||||
margin-bottom: 20px
|
||||
}
|
||||
|
||||
#uplist .rb-heading > .form-group:last-child {
|
||||
margin-bottom: 0
|
||||
}
|
||||
|
||||
|
||||
#uplist .rb-heading .rb-advance.btn.collapsed small:before {
|
||||
content: "▼";
|
||||
}
|
||||
|
||||
#uplist .rb-heading .rb-advance.btn small:before {
|
||||
content: "▲";
|
||||
}
|
||||
|
||||
#uplist .rb-footer {
|
||||
border-top: 1px solid #eee;
|
||||
margin: 20px 0;
|
||||
padding: 20px 0
|
||||
}
|
||||
|
||||
@media (max-width: 479px) {
|
||||
|
||||
#uplist .rb-footer div {
|
||||
float: none !important
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@media (min-width: 768px) {
|
||||
|
||||
#uplist .rb-year,
|
||||
#uplist .rb-month,
|
||||
#uplist .rb-day {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
|
||||
#uplist .rb-year {
|
||||
float: left;
|
||||
width: 100px;
|
||||
margin-right: 5px
|
||||
}
|
||||
|
||||
#uplist .rb-month {
|
||||
float: left;
|
||||
width: 80px;
|
||||
margin-right: 5px
|
||||
}
|
||||
|
||||
#uplist .rb-day {
|
||||
float: left;
|
||||
width: 100px;
|
||||
margin-right: 5px
|
||||
}
|
||||
}
|
||||
|
||||
.datepicker {z-index: 1151 !important;}
|
||||
426
modules/bbs/admin/post.php
Normal file
426
modules/bbs/admin/post.php
Normal file
@@ -0,0 +1,426 @@
|
||||
<?php
|
||||
$SITES = getDbArray($table['s_site'],'','*','gid','asc',0,1);
|
||||
$SITEN = db_num_rows($SITES);
|
||||
$sort = $sort ? $sort : 'gid';
|
||||
$orderby= $orderby ? $orderby : 'asc';
|
||||
$recnum = $recnum && $recnum < 200 ? $recnum : 20;
|
||||
$_WHERE='uid>0';
|
||||
$account = $SD['uid'];
|
||||
if($account) $_WHERE .=' and site='.$account;
|
||||
if ($d_start) $_WHERE .= ' and d_regis > '.str_replace('/','',$d_start).'000000';
|
||||
if ($d_finish) $_WHERE .= ' and d_regis < '.str_replace('/','',$d_finish).'240000';
|
||||
if ($bid) $_WHERE .= ' and bbs='.$bid;
|
||||
if ($category) $_WHERE .= " and category ='".$category."'";
|
||||
if ($notice) $_WHERE .= ' and notice=1';
|
||||
if ($hidden) $_WHERE .= ' and hidden=1';
|
||||
if ($where && $keyw)
|
||||
{
|
||||
if (strstr('[name][nic][id][ip]',$where)) $_WHERE .= " and ".$where."='".$keyw."'";
|
||||
else $_WHERE .= getSearchSql($where,$keyw,$ikeyword,'or');
|
||||
}
|
||||
$RCD = getDbArray($table[$module.'data'],$_WHERE,'*',$sort,$orderby,$recnum,$p);
|
||||
$NUM = getDbRows($table[$module.'data'],$_WHERE);
|
||||
$TPG = getTotalPage($NUM,$recnum);
|
||||
?>
|
||||
|
||||
<div class="row no-gutters">
|
||||
|
||||
<nav class="col-sm-4 col-md-4 col-xl-3 d-none d-sm-block sidebar sidebar-right">
|
||||
|
||||
<form name="procForm" action="<?php echo $g['s']?>/" method="get">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="<?php echo $m?>">
|
||||
<input type="hidden" name="module" value="<?php echo $module?>">
|
||||
<input type="hidden" name="front" value="<?php echo $front?>">
|
||||
|
||||
<div id="accordion" role="tablist">
|
||||
<div class="card border-0">
|
||||
<div class="card-header p-0" role="tab">
|
||||
<a class="d-block muted-link<?php if($_SESSION['bbs_post_collapse']!='filter'):?> collapsed<?php endif?>" data-toggle="collapse" href="#collapse-filter" role="button" aria-expanded="true" aria-controls="collapseOne" onclick="sessionSetting('bbs_post_collapse','filter','','');">
|
||||
필터
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div id="collapse-filter" class="collapse<?php if($_SESSION['bbs_post_collapse']=='filter'):?> show<?php endif?>" role="tabpanel" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
|
||||
<select name="bid" class="form-control custom-select mb-2" onchange="this.form.submit();">
|
||||
<option value="">사이트 전체 게시판</option>
|
||||
<?php $_BBSLIST = getDbArray($table[$module.'list'],'site='.$account,'*','gid','asc',0,1)?>
|
||||
<?php while($_B=db_fetch_array($_BBSLIST)):?>
|
||||
<option value="<?php echo $_B['uid']?>"<?php if($_B['uid']==$bid):?> selected="selected"<?php endif?>>ㆍ<?php echo $_B['name']?>(<?php echo $_B['id']?> - <?php echo number_format($_B['num_r'])?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php if(!db_num_rows($_BBSLIST)):?>
|
||||
<option value="">등록된 게시판이 없습니다.</option>
|
||||
<?php endif?>
|
||||
</select>
|
||||
|
||||
<select name="category" onchange="this.form.submit();" class="form-control custom-select mb-2">
|
||||
<?php $getCate=db_query("select * from rb_bbs_data where bbs='".$bid."' and category<>'' group by category",$DB_CONNECT)?>
|
||||
<option value="0">전체 카테고리</option>
|
||||
<?php while($ct=db_fetch_array($getCate)):?>
|
||||
<option value="<?php echo $ct['category']?>" <?php if($category==$ct['category']):?> selected="selected"<?php endif?>><?php echo $ct['category']?></option>
|
||||
<?php endwhile?>
|
||||
<?php if(!db_num_rows($getCate)):?>
|
||||
<option value="">등록된 카테고리가 없습니다.</option>
|
||||
<?php endif?>
|
||||
</select>
|
||||
|
||||
<div class="mb-2">
|
||||
|
||||
<div class="custom-control custom-checkbox custom-control-inline">
|
||||
<input type="checkbox" class="custom-control-input" id="notice" name="notice" value="Y"<?php if($notice=='Y'):?> checked<?php endif?> onclick="this.form.submit();">
|
||||
<label class="custom-control-label" for="notice">공지글</label>
|
||||
</div>
|
||||
|
||||
<div class="custom-control custom-checkbox custom-control-inline">
|
||||
<input type="checkbox" class="custom-control-input" id="hidden" name="hidden" value="Y"<?php if($hidden=='Y'):?> checked<?php endif?> onclick="this.form.submit();">
|
||||
<label class="custom-control-label" for="hidden">비밀글</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="input-daterange input-group input-group-sm mb-2" id="datepicker">
|
||||
<input type="text" class="form-control" name="d_start" placeholder="시작일 선택" value="<?php echo $d_start?>">
|
||||
<input type="text" class="form-control" name="d_finish" placeholder="종료일 선택" value="<?php echo $d_finish?>">
|
||||
<span class="input-group-append">
|
||||
<button class="btn btn-light" type="submit">기간적용</button>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
<span class="btn-group btn-group-toggle">
|
||||
<button class="btn btn-light" type="button" onclick="dropDate('<?php echo date('Y/m/d',mktime(0,0,0,substr($date['today'],4,2),substr($date['today'],6,2)-1,substr($date['today'],0,4)))?>','<?php echo date('Y/m/d',mktime(0,0,0,substr($date['today'],4,2),substr($date['today'],6,2)-1,substr($date['today'],0,4)))?>');">어제</button>
|
||||
<button class="btn btn-light" type="button" onclick="dropDate('<?php echo getDateFormat($date['today'],'Y/m/d')?>','<?php echo getDateFormat($date['today'],'Y/m/d')?>');">오늘</button>
|
||||
<button class="btn btn-light" type="button" onclick="dropDate('<?php echo date('Y/m/d',mktime(0,0,0,substr($date['today'],4,2),substr($date['today'],6,2)-7,substr($date['today'],0,4)))?>','<?php echo getDateFormat($date['today'],'Y/m/d')?>');">일주</button>
|
||||
</span>
|
||||
|
||||
<span class="btn-group btn-group-toggle">
|
||||
<button class="btn btn-light" type="button" onclick="dropDate('<?php echo date('Y/m/d',mktime(0,0,0,substr($date['today'],4,2)-1,substr($date['today'],6,2),substr($date['today'],0,4)))?>','<?php echo getDateFormat($date['today'],'Y/m/d')?>');">한달</button>
|
||||
<button class="btn btn-light" type="button" onclick="dropDate('<?php echo getDateFormat(substr($date['today'],0,6).'01','Y/m/d')?>','<?php echo getDateFormat($date['today'],'Y/m/d')?>');">당월</button>
|
||||
<button class="btn btn-light" type="button" onclick="dropDate('<?php echo date('Y/m/',mktime(0,0,0,substr($date['today'],4,2)-1,substr($date['today'],6,2),substr($date['today'],0,4)))?>01','<?php echo date('Y/m/',mktime(0,0,0,substr($date['today'],4,2)-1,substr($date['today'],6,2),substr($date['today'],0,4)))?>31');">전월</button>
|
||||
<button class="btn btn-light" type="button" onclick="dropDate('','');">전체</button>
|
||||
</span>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header p-0" role="tab">
|
||||
<a class="d-block muted-link<?php if($_SESSION['bbs_post_collapse']!='sort'):?> collapsed<?php endif?>" data-toggle="collapse" href="#collapse-sort" role="button" aria-expanded="false" aria-controls="collapseTwo" onclick="sessionSetting('bbs_post_collapse','sort','','');">
|
||||
정렬
|
||||
</a>
|
||||
</div>
|
||||
<div id="collapse-sort" class="collapse<?php if($_SESSION['bbs_post_collapse']=='sort'):?> show<?php endif?>" role="tabpanel" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
|
||||
<div class="btn-toolbar">
|
||||
<div class="btn-group btn-group-sm btn-group-toggle mb-2" data-toggle="buttons">
|
||||
<label class="btn btn-light<?php if($sort=='gid'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="gid" name="sort"<?php if($sort=='gid'):?> checked<?php endif?>> 등록일
|
||||
</label>
|
||||
<label class="btn btn-light<?php if($sort=='hit'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="hit" name="sort"<?php if($sort=='hit'):?> checked<?php endif?>> 조회
|
||||
</label>
|
||||
<label class="btn btn-light<?php if($sort=='down'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="down" name="sort"<?php if($sort=='down'):?> checked<?php endif?>> 다운
|
||||
</label>
|
||||
<label class="btn btn-light<?php if($sort=='comment'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="comment" name="sort"<?php if($sort=='comment'):?> checked<?php endif?>> 댓글
|
||||
</label>
|
||||
<label class="btn btn-light<?php if($sort=='oneline'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="oneline" name="sort"<?php if($sort=='oneline'):?> checked<?php endif?>> 한줄의견
|
||||
</label>
|
||||
</div>
|
||||
<div class="btn-group btn-group-sm btn-group-toggle mb-2" data-toggle="buttons">
|
||||
<label class="btn btn-light<?php if($sort=='likes'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="likes" name="sort"<?php if($sort=='likes'):?> checked<?php endif?>> 좋아요
|
||||
</label>
|
||||
<label class="btn btn-light<?php if($sort=='dislikes'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="dislikes" name="sort"<?php if($sort=='dislikes'):?> checked<?php endif?>> 비좋아요
|
||||
</label>
|
||||
<label class="btn btn-light<?php if($sort=='report'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="report" name="sort"<?php if($sort=='report'):?> checked<?php endif?>> 신고
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="btn-group btn-group-sm btn-group-toggle mb-2" data-toggle="buttons">
|
||||
<label class="btn btn-light<?php if($orderby=='desc'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="desc" name="orderby"<?php if($orderby=='desc'):?> checked<?php endif?>> <i class="fa fa-sort-amount-desc"></i>역순
|
||||
</label>
|
||||
<label class="btn btn-light<?php if($orderby=='asc'):?> active<?php endif?>" onclick="btnFormSubmit(this);">
|
||||
<input type="radio" value="asc" name="orderby"<?php if($orderby=='asc'):?> checked<?php endif?>> <i class="fa fa-sort-amount-asc"></i>정순
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header p-0" role="tab">
|
||||
<a class="d-block muted-link<?php if($_SESSION['bbs_post_collapse']!='search'):?> collapsed<?php endif?>" data-toggle="collapse" href="#collapse-search" role="button" aria-expanded="false" aria-controls="collapseTwo" onclick="sessionSetting('bbs_post_collapse','search','','');">
|
||||
검색
|
||||
</a>
|
||||
</div>
|
||||
<div id="collapse-search" class="collapse<?php if($_SESSION['bbs_post_collapse']=='search'):?> show<?php endif?>" role="tabpanel" data-parent="#accordion">
|
||||
<div class="card-body">
|
||||
|
||||
<select name="where" class="form-control custom-select mb-2">
|
||||
<option value="subject|tag"<?php if($where=='subject|tag'):?> selected="selected"<?php endif?>>제목+태그</option>
|
||||
<option value="content"<?php if($where=='content'):?> selected="selected"<?php endif?>>본문</option>
|
||||
<option value="name"<?php if($where=='name'):?> selected="selected"<?php endif?>>이름</option>
|
||||
<option value="nic"<?php if($where=='nic'):?> selected="selected"<?php endif?>>닉네임</option>
|
||||
<option value="id"<?php if($where=='id'):?> selected="selected"<?php endif?>>아이디</option>
|
||||
<option value="ip"<?php if($where=='ip'):?> selected="selected"<?php endif?>>아이피</option>
|
||||
</select>
|
||||
<input type="text" name="keyw" value="<?php echo stripslashes($keyw)?>" class="form-control mb-2">
|
||||
<button class="btn btn-light btn-block" type="submit">검색</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="p-3">
|
||||
<div class="input-group input-group-sm mb-3">
|
||||
<div class="input-group-prepend">
|
||||
<label class="input-group-text">출력수</label>
|
||||
</div>
|
||||
<select name="recnum" onchange="this.form.submit();" class="form-control custom-select">
|
||||
<option value="20"<?php if($recnum==20):?> selected="selected"<?php endif?>>20개</option>
|
||||
<option value="35"<?php if($recnum==35):?> selected="selected"<?php endif?>>35개</option>
|
||||
<option value="50"<?php if($recnum==50):?> selected="selected"<?php endif?>>50개</option>
|
||||
<option value="75"<?php if($recnum==75):?> selected="selected"<?php endif?>>75개</option>
|
||||
<option value="90"<?php if($recnum==90):?> selected="selected"<?php endif?>>90개</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<?php if($NUM):?>
|
||||
<div style="padding: .74rem">
|
||||
<a href="<?php echo $g['adm_href']?>" class="btn btn-block btn-light<?php echo $keyw?' active':'' ?>">검색조건 초기화</a>
|
||||
</div>
|
||||
<?php endif?>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</nav>
|
||||
<div class="col-sm-8 col-md-8 mr-sm-auto col-xl-9">
|
||||
|
||||
<?php if($NUM):?>
|
||||
<form class="card rounded-0 border-0" name="listForm" action="<?php echo $g['s']?>/" method="post">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="m" value="<?php echo $module?>">
|
||||
<input type="hidden" name="a" value="">
|
||||
|
||||
<div class="card-header border-0 page-body-header">
|
||||
<?php echo number_format($NUM)?> 개
|
||||
<span class="badge badge-pill badge-dark"><?php echo $p?>/<?php echo $TPG?> 페이지</span>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-sm table-striped text-center mb-0">
|
||||
<thead class="small text-muted">
|
||||
<tr>
|
||||
<th><label data-tooltip="tooltip" title="선택"><input type="checkbox" class="checkAll-post-user"></label></th>
|
||||
<th>번호</th>
|
||||
<th>게시판</th>
|
||||
<th>제목</th>
|
||||
<th>이름</th>
|
||||
<th>조회</th>
|
||||
<th>다운</th>
|
||||
<th>좋아요</th>
|
||||
<th>신고</th>
|
||||
<th>날짜</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="text-muted">
|
||||
<?php while($R=db_fetch_array($RCD)):?>
|
||||
<?php $R['mobile']=isMobileConnect($R['agent'])?>
|
||||
<?php $B = getUidData($table[$module.'list'],$R['bbs']); ?>
|
||||
<tr>
|
||||
<td><input type="checkbox" name="post_members[]" value="<?php echo $R['uid']?>" class="rb-post-user" onclick="checkboxCheck();"/></td>
|
||||
<td>
|
||||
<small class="text-muted"><?php echo $NUM-((($p-1)*$recnum)+$_rec++)?></small>
|
||||
</td>
|
||||
<td>
|
||||
<small class="text-muted"><?php echo $B['name'] ?></small>
|
||||
</td>
|
||||
<td class="text-left">
|
||||
<?php if($R['notice']):?><i class="fa fa-volume-up"></i><?php endif?>
|
||||
<?php if($R['mobile']):?><i class="fa fa-mobile f-lg"></i><?php endif?>
|
||||
<?php if($R['category']):?><span class="badge badge-pill badge-dark"><?php echo $R['category']?></span><?php endif?>
|
||||
<a class="muted-link" href="<?php echo getBbsPostLink($R)?>" target="_blank">
|
||||
<?php echo getStrCut($R['subject'],'30','..')?>
|
||||
</a>
|
||||
<?php if(strstr($R['content'],'.jpg')):?>
|
||||
<span class="badge badge-dark" data-toggle="tooltip" title="사진"><i class="fa fa-camera-retro fa-lg"></i></span>
|
||||
<?php endif?>
|
||||
<?php if($R['upload']):?>
|
||||
<span class="badge badge-dark" data-toggle="tooltip" title="첨부파일">
|
||||
<i class="fa fa-paperclip fa-lg"></i>
|
||||
</span>
|
||||
<?php endif?>
|
||||
<?php if($R['hidden']):?><i class="fa fa-lock fa-lg"></i><?php endif?>
|
||||
<?php if($R['comment']):?><span class="badge badge-pill badge-dark"><?php echo $R['comment']?><?php if($R['oneline']):?>+<?php echo $R['oneline']?><?php endif?></span><?php endif?>
|
||||
<?php if(getNew($R['d_regis'],24)):?><small class="text-danger">new</small><?php endif?>
|
||||
</td>
|
||||
<?php if($R['id']):?>
|
||||
<td>
|
||||
<a href="#" data-toggle="modal" data-target="#modal_window" class="rb-modal-mbrinfo muted-link" onmousedown="mbrIdDrop('<?php echo $R['mbruid']?>','post');">
|
||||
<?php echo $R[$_HS['nametype']]?>
|
||||
</a>
|
||||
</td>
|
||||
<?php else:?>
|
||||
<td><?php echo $R[$_HS['nametype']]?></td>
|
||||
<?php endif?>
|
||||
<td><strong><?php echo $R['hit']?></strong></td>
|
||||
<td><?php echo $R['down']?></td>
|
||||
<td><?php echo $R['likes']?></td>
|
||||
<td><?php echo $R['report']?></td>
|
||||
<td>
|
||||
<small class="text-muted"><?php echo getDateFormat($R['d_regis'],'Y.m.d H:i')?></small>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endwhile?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div><!-- /.table-responsive -->
|
||||
|
||||
<div class="card-footer d-flex justify-content-between">
|
||||
<div>
|
||||
<button type="button" onclick="chkFlag('post_members[]');checkboxCheck();" class="btn btn-light btn-sm">선택/해제 </button>
|
||||
<button type="button" onclick="actCheck('multi_delete');" class="btn btn-light btn-sm rb-action-btn" disabled>삭제</button>
|
||||
<button type="button" onclick="actCheck('multi_copy');" class="btn btn-light btn-sm rb-action-btn" disabled >복사</button>
|
||||
<button type="button" onclick="actCheck('multi_move');" class="btn btn-light btn-sm rb-action-btn" disabled >이동</button>
|
||||
</div>
|
||||
<ul class="pagination mb-0">
|
||||
<script>getPageLink(5,<?php echo $p?>,<?php echo $TPG?>,'');</script>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
<?php else: ?>
|
||||
<div class="text-center text-muted d-flex align-items-center justify-content-center" style="height: calc(100vh - 10rem);">
|
||||
<div><i class="fa fa-exclamation-circle fa-3x mb-3" aria-hidden="true"></i>
|
||||
<p>등록된 게시글이 없습니다.</p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
|
||||
</div>
|
||||
</div><!-- /.row -->
|
||||
|
||||
|
||||
<!-- bootstrap-datepicker, http://eternicode.github.io/bootstrap-datepicker/ -->
|
||||
<?php getImport('bootstrap-datepicker','css/datepicker3',false,'css')?>
|
||||
<?php getImport('bootstrap-datepicker','js/bootstrap-datepicker',false,'js')?>
|
||||
<?php getImport('bootstrap-datepicker','js/locales/bootstrap-datepicker.kr',false,'js')?>
|
||||
|
||||
<?php include $g['path_module'].'member/admin/_modal.php';?>
|
||||
|
||||
<script>
|
||||
|
||||
putCookieAlert('bbs_post_result') // 실행결과 알림 메시지 출력
|
||||
|
||||
$('.input-daterange').datepicker({
|
||||
format: "yyyy/mm/dd",
|
||||
todayBtn: "linked",
|
||||
language: "kr",
|
||||
calendarWeeks: true,
|
||||
todayHighlight: true,
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
//사이트 셀렉터 출력
|
||||
$('[data-role="siteSelector"]').removeClass('d-none')
|
||||
|
||||
// 선택박스 체크 이벤트 핸들러
|
||||
$(".checkAll-post-user").click(function(){
|
||||
$(".rb-post-user").prop("checked",$(".checkAll-post-user").prop("checked"));
|
||||
checkboxCheck();
|
||||
});
|
||||
// 선택박스 체크시 액션버튼 활성화 함수
|
||||
function checkboxCheck()
|
||||
{
|
||||
var f = document.listForm;
|
||||
var l = document.getElementsByName('post_members[]');
|
||||
var n = l.length;
|
||||
var i;
|
||||
var j=0;
|
||||
for (i = 0; i < n; i++)
|
||||
{
|
||||
if (l[i].checked == true) j++;
|
||||
}
|
||||
if (j) $('.rb-action-btn').prop("disabled",false);
|
||||
else $('.rb-action-btn').prop("disabled",true);
|
||||
}
|
||||
// 기간 검색 적용 함수
|
||||
function dropDate(date1,date2)
|
||||
{
|
||||
var f = document.procForm;
|
||||
f.d_start.value = date1;
|
||||
f.d_finish.value = date2;
|
||||
f.submit();
|
||||
}
|
||||
function actCheck(act)
|
||||
{
|
||||
var f = document.listForm;
|
||||
var l = document.getElementsByName('post_members[]');
|
||||
var n = l.length;
|
||||
var j = 0;
|
||||
var i;
|
||||
var s = '';
|
||||
for (i = 0; i < n; i++)
|
||||
{
|
||||
if(l[i].checked == true)
|
||||
{
|
||||
j++;
|
||||
s += '['+l[i].value+']';
|
||||
}
|
||||
}
|
||||
if (!j)
|
||||
{
|
||||
alert('선택된 게시물이 없습니다. ');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (act == 'multi_delete')
|
||||
{
|
||||
if(confirm('정말로 삭제하시겠습니까? '))
|
||||
{
|
||||
getIframeForAction(f);
|
||||
f.a.value = act;
|
||||
f.submit();
|
||||
}
|
||||
}
|
||||
else {
|
||||
OpenWindow('<?php echo $g['s']?>/?r=<?php echo $r?>&iframe=Y&m=<?php echo $m?>&module=<?php echo $module?>&front=movecopy&type='+act+'&postuid='+s);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// 회원 이름,닉네임 클릭시 uid & mod( 탭 정보 : info, main, post 등) 지정하는 함수
|
||||
var _mbrModalUid;
|
||||
var _mbrModalMod;
|
||||
function mbrIdDrop(uid,mod)
|
||||
{
|
||||
_mbrModalUid = uid;
|
||||
_mbrModalMod = mod;
|
||||
}
|
||||
|
||||
// 회원정보 modal 호출하는 함수 : 위에서 지정한 회원 uid & mod 로 호출한다 .
|
||||
$('.rb-modal-mbrinfo').on('click',function() {
|
||||
modalSetting('modal_window','<?php echo getModalLink('&m=admin&module=member&front=modal.mbrinfo&uid=')?>'+_mbrModalUid+'&tab='+_mbrModalMod);
|
||||
});
|
||||
|
||||
</script>
|
||||
4
modules/bbs/admin/theme.css
Normal file
4
modules/bbs/admin/theme.css
Normal file
@@ -0,0 +1,4 @@
|
||||
.nav-tabs .editor .nav-link.active {
|
||||
background-color: #252822;
|
||||
border-bottom-color: #252822
|
||||
}
|
||||
233
modules/bbs/admin/theme.php
Normal file
233
modules/bbs/admin/theme.php
Normal file
@@ -0,0 +1,233 @@
|
||||
<link href="<?php echo $g['s']?>/_core/css/github-markdown.css" rel="stylesheet">
|
||||
<style>
|
||||
#__code__ {
|
||||
font-weight: normal;
|
||||
font-family: Menlo,Monaco,Consolas,"Courier New",monospace !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<?php getImport('jquery-markdown','jquery.markdown','0.0.10','js')?>
|
||||
|
||||
<?php getImport('codemirror','lib/codemirror',false,'css')?>
|
||||
<?php getImport('codemirror','lib/codemirror',false,'js')?>
|
||||
<?php getImport('codemirror','theme/'.$d['admin']['codeeidt'],false,'css')?>
|
||||
<?php getImport('codemirror','addon/display/fullscreen',false,'css')?>
|
||||
<?php getImport('codemirror','addon/display/fullscreen',false,'js')?>
|
||||
<?php getImport('codemirror','mode/htmlmixed/htmlmixed',false,'js')?>
|
||||
<?php getImport('codemirror','mode/xml/xml',false,'js')?>
|
||||
<?php getImport('codemirror','mode/javascript/javascript',false,'js')?>
|
||||
<?php getImport('codemirror','mode/css/css',false,'js')?>
|
||||
<?php getImport('codemirror','mode/htmlmixed/htmlmixed',false,'js')?>
|
||||
<?php getImport('codemirror','mode/clike/clike',false,'js')?>
|
||||
<?php getImport('codemirror','mode/php/php',false,'js')?>
|
||||
|
||||
<div class="row no-gutters">
|
||||
<div class="col-sm-4 col-md-4 col-xl-3 d-none d-sm-block sidebar"><!-- 좌측영역 시작 -->
|
||||
<div class="card border-0">
|
||||
<div class="card-header f13">
|
||||
테마 리스트
|
||||
</div>
|
||||
|
||||
<div class="list-group list-group-flush">
|
||||
<?php $i=0?>
|
||||
|
||||
<?php $xdir = $g['path_module'].$module.'/themes/'?>
|
||||
<?php $tdir = $xdir.'_desktop/'?>
|
||||
<?php $dirs = opendir($tdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($tdir.$skin))continue?>
|
||||
<?php $i++?>
|
||||
<a href="<?php echo $g['adm_href']?>&theme=_desktop/<?php echo $skin?>" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center<?php if($theme=='_desktop/'.$skin):?> border border-primary<?php endif?>">
|
||||
<span><?php echo getFolderName($tdir.$skin)?></span>
|
||||
<span class="badge badge-<?php echo $theme=='_desktop/'.$skin?'primary':'dark' ?> badge-pill"><?php echo $skin?></span>
|
||||
</a>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
|
||||
<?php $tdir = $xdir.'_mobile/'?>
|
||||
<?php $dirs = opendir($tdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($tdir.$skin))continue?>
|
||||
<?php $i++?>
|
||||
<a href="<?php echo $g['adm_href']?>&theme=_mobile/<?php echo $skin?>" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center<?php if($theme=='_mobile/'.$skin):?> border border-primary<?php endif?>">
|
||||
<span><?php echo getFolderName($tdir.$skin)?></span>
|
||||
<span class="badge badge-<?php echo $theme=='_mobile/'.$skin?'primary':'dark' ?> badge-pill"><?php echo $skin?></span>
|
||||
</a>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</div>
|
||||
|
||||
<?php if(!$i):?>
|
||||
<div class="none">등록된 테마가 없습니다.</div>
|
||||
<?php endif?>
|
||||
|
||||
|
||||
</div> <!-- 좌측 card 끝 -->
|
||||
</div> <!-- 좌측 영역 끝 -->
|
||||
<div class="col-sm-8 col-md-8 ml-sm-auto col-xl-9">
|
||||
|
||||
<?php if($theme):?>
|
||||
<form class="card rounded-0 border-0" name="procForm" action="<?php echo $g['s']?>/" method="post" target="_action_frame_<?php echo $m?>" onsubmit="return saveCheck(this);">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>" />
|
||||
<input type="hidden" name="m" value="<?php echo $module?>" />
|
||||
<input type="hidden" name="a" value="theme_config" />
|
||||
<input type="hidden" name="theme" value="<?php echo $theme?>" />
|
||||
|
||||
<div class="card-header p-0 page-body-header">
|
||||
<ol class="breadcrumb rounded-0 mb-0 bg-transparent text-muted">
|
||||
<?php $_theme =explode('/' , $theme); ?>
|
||||
<li class="breadcrumb-item">root</li>
|
||||
<li class="breadcrumb-item">modules</li>
|
||||
<li class="breadcrumb-item"><?php echo $module?></li>
|
||||
<li class="breadcrumb-item">themes</li>
|
||||
<li class="breadcrumb-item"><?php echo $_theme[0]?></li>
|
||||
<li class="breadcrumb-item"><?php echo $_theme[1]?></li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link js-tooltip<?php if(!$_COOKIE['moduleBbsThemeTab']||$_COOKIE['moduleBbsThemeTab']=='readme'):?> active<?php endif?>" href="#readme" data-toggle="tab" onclick="setCookie('moduleBbsThemeTab','readme',1);" title="README.md" data-placement="bottom">
|
||||
안내문서
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item editor">
|
||||
<a class="nav-link js-tooltip<?php if($_COOKIE['moduleBbsThemeTab']=='editor'):?> active<?php endif?>" href="#var" data-toggle="tab" onclick="setCookie('moduleBbsThemeTab','editor','1');" title="_var.php" data-placement="bottom">
|
||||
설정 변수
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
|
||||
<div class="tab-pane <?php if(!$_COOKIE['moduleBbsThemeTab']||$_COOKIE['moduleBbsThemeTab']=='readme'):?> show active<?php endif?>" id="readme" role="tabpanel" aria-labelledby="readme-tab">
|
||||
|
||||
<?php if (is_file($g['path_module'].$module.'/themes/'.$theme.'/README.md')): ?>
|
||||
<div class="markdown-body px-4 py-0 readme">
|
||||
<?php readfile($g['path_module'].$module.'/themes/'.$theme.'/README.md')?>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
|
||||
<div class="text-center text-muted d-flex align-items-center justify-content-center" style="height: calc(100vh - 10rem);">
|
||||
<div><i class="fa fa-exclamation-circle fa-3x mb-3" aria-hidden="true"></i>
|
||||
<p>테마 안내문서가 없습니다.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (is_file($g['path_module'].$module.'/themes/'.$theme.'/LICENSE')): ?>
|
||||
<div class="py-5 px-4">
|
||||
<h5>라이센스</h5>
|
||||
<textarea class="form-control" rows="10"><?php readfile($g['path_module'].$module.'/themes/'.$theme.'/LICENSE')?></textarea>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="tab-pane pr-2<?php if($_COOKIE['moduleBbsThemeTab']=='editor'):?> show active<?php endif?>" id="var" role="tabpanel" aria-labelledby="var-tab">
|
||||
|
||||
<div class="">
|
||||
<div class="rb-codeview">
|
||||
<div class="rb-codeview-body">
|
||||
<textarea name="theme_var" id="__code__" class="form-control f13" rows="30"><?php echo implode('',file($g['path_module'].$module.'/themes/'.$theme.'/_var.php'))?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="rb-codeview-footer p-2">
|
||||
<div class="form-row mb-2">
|
||||
<div class="col pt-2 text-muted">
|
||||
테마명 : <?php echo getFolderName($g['path_module'].$module.'/themes/'.$theme)?>
|
||||
</div>
|
||||
<div class="col">
|
||||
|
||||
</div>
|
||||
<div class="col text-right pt-2 text-muted">
|
||||
<small><?php echo count(file($g['path_module'].$module.'/themes/'.$theme.'/_var.php')).' lines'?></small></li>
|
||||
<small class="ml-3"><?php echo getSizeFormat(@filesize($g['path_module'].$module.'/themes/'.$theme.'/_var.php'),2)?></small>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div> <!--.rb-codeview -->
|
||||
</div> <!--.rb-files -->
|
||||
<div class="card-footer">
|
||||
|
||||
<button type="submit" class="btn btn-outline-primary">저장하기</button>
|
||||
<span class="ml-3 text-muted">이 테마를 사용하는 모든 게시판에 위의 설정값이 적용됩니다.</span>
|
||||
<?php if($theme):?>
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-outline-danger" href="<?php echo $g['s']?>/?r=<?php echo $r?>&m=<?php echo $module?>&a=theme_delete&theme=<?php echo $theme?>" target="_action_frame_<?php echo $m?>" onclick="return confirm('정말로 이 테마를 삭제하시겠습니까? ');">테마삭제</a>
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
</div>
|
||||
</div><!-- /.tab-pane -->
|
||||
|
||||
</div><!-- /.tab-content -->
|
||||
|
||||
|
||||
|
||||
<?php else:?>
|
||||
|
||||
<div class="text-center text-muted d-flex align-items-center justify-content-center" style="height: calc(100vh - 10rem);">
|
||||
<div class="">
|
||||
<i class="fa fa fa-picture-o fa-3x mb-3" aria-hidden="true"></i>
|
||||
<p>테마를 선택해 주세요.</p>
|
||||
<p class="small">테마설정은 해당 테마를 사용하는 모든 게시판에 적용됩니다.</p>
|
||||
|
||||
<ul class="list list-unstyled small">
|
||||
<li>테마는 게시판의 외형을 변경할 수 있는 요소입니다.</li>
|
||||
<li>테마설정은 게시판의 외형만 제어하며 게시판의 내부시스템에는 영향을 주지 않습니다.</li>
|
||||
<li>테마의 속성을 변경하면 해당테마를 사용하는 모든 게시판에 적용됩니다.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php endif?>
|
||||
|
||||
</form>
|
||||
</div> <!-- 우측영역 끝 -->
|
||||
</div> <!--.row -->
|
||||
|
||||
|
||||
<?php if($d['admin']['codeeidt'] && $theme):?>
|
||||
<!-- codemirror -->
|
||||
<script>
|
||||
|
||||
(function() {
|
||||
|
||||
putCookieAlert('result_bbs_theme') // 실행결과 알림 메시지 출력
|
||||
|
||||
$(".markdown-body").markdown();
|
||||
|
||||
var editor = CodeMirror.fromTextArea(getId('__code__'), {
|
||||
mode: "application/x-httpd-php",
|
||||
indentUnit: 2,
|
||||
lineNumbers: true,
|
||||
matchBrackets: true,
|
||||
indentWithTabs: true,
|
||||
theme: '<?php echo $d['admin']['codeeidt']?>'
|
||||
});
|
||||
editor.setSize('100%','500px');
|
||||
_isCodeEdit = true;
|
||||
})
|
||||
|
||||
();
|
||||
|
||||
</script>
|
||||
<!-- @codemirror -->
|
||||
<?php endif?>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function saveCheck(f)
|
||||
{
|
||||
return confirm('정말로 실행하시겠습니까? ');
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
311
modules/bbs/admin/var/var.joint.php
Normal file
311
modules/bbs/admin/var/var.joint.php
Normal file
@@ -0,0 +1,311 @@
|
||||
<?php
|
||||
$recnum = 10;
|
||||
$catque = 'uid and site='.$s;
|
||||
if ($_keyw) $catque .= " and ".$where." like '".$_keyw."%'";
|
||||
$PAGES = getDbArray($table[$smodule.'list'],$catque,'*','gid','asc',$recnum,$p);
|
||||
$NUM = getDbRows($table[$smodule.'list'],$catque);
|
||||
$TPG = getTotalPage($NUM,$recnum);
|
||||
$tdir = $g['path_module'].$smodule.'/theme/';
|
||||
?>
|
||||
|
||||
<div id="mjointbox">
|
||||
<div class="title">
|
||||
<form name="bbsSform" class="form-inline" action="<?php echo $g['s']?>/" method="get">
|
||||
<input type="hidden" name="system" value="<?php echo $system?>">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="iframe" value="<?php echo $iframe?>">
|
||||
<input type="hidden" name="dropfield" value="<?php echo $dropfield?>">
|
||||
<input type="hidden" name="smodule" value="<?php echo $smodule?>">
|
||||
<input type="hidden" name="cmodule" value="<?php echo $cmodule?>">
|
||||
<input type="hidden" name="p" value="<?php echo $p?>">
|
||||
<input type="hidden" name="newboard" value="<?php echo $newboard?>">
|
||||
|
||||
<select name="where" class="form-control custom-select" >
|
||||
<option value="name"<?php if($where == 'name'):?> selected="selected"<?php endif?>>게시판제목</option>
|
||||
<option value="id"<?php if($where == 'id'):?> selected="selected"<?php endif?>>게시판ID</option>
|
||||
</select>
|
||||
|
||||
<div class="input-group ml-2">
|
||||
<input type="text" name="_keyw" size="15" value="<?php echo addslashes($_keyw)?>" class="form-control" />
|
||||
<div class="input-group-append">
|
||||
<input type="submit" value=" 검색 " class="btn btn-light">
|
||||
<input type="button" value=" 리셋 " class="btn btn-light" onclick="thisReset();">
|
||||
</div>
|
||||
<!--<input type="button" value=" 새 게시판 " class="btn<?php echo $newboard?'gray':'blue'?>" onclick="this.form.newboard.value=1;this.form.submit();" />-->
|
||||
</div> <!--.input-group-->
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php if($newboard):?>
|
||||
|
||||
<form name="procForm" action="<?php echo $g['s']?>/" method="post" target="_action_frame_<?php echo $m?>" onsubmit="return saveCheck(this);">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>" />
|
||||
<input type="hidden" name="m" value="<?php echo $smodule?>" />
|
||||
<input type="hidden" name="a" value="makebbs" />
|
||||
<input type="hidden" name="backUrl" value="<?php echo $g['s']?>/?r=<?php echo $r?>&system=<?php echo $system?>&iframe=<?php echo $iframe?>&dropfield=<?php echo $dropfield?>&smodule=<?php echo $smodule?>&cmodule=<?php echo $cmodule?>" />
|
||||
<input type="hidden" name="hitcount" value="0">
|
||||
<input type="hidden" name="recnum" value="20">
|
||||
<input type="hidden" name="sbjcut" value="40">
|
||||
<input type="hidden" name="newtime" value="24">
|
||||
<input type="hidden" name="point1" value="0">
|
||||
<input type="hidden" name="point2" value="0">
|
||||
<input type="hidden" name="perm_l_list" value="0">
|
||||
<input type="hidden" name="perm_l_view" value="0">
|
||||
<input type="hidden" name="snsconnect" value="0">
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td class="td1">
|
||||
게시판이름
|
||||
</td>
|
||||
<td class="td2">
|
||||
<input type="text" name="name" value="" class="input sname" />
|
||||
아이디 <input type="text" name="id" value="" class="input sname2" />
|
||||
<div id="guide_bbsidname" class="guide hide">
|
||||
<span class="b">게시판이름</span> : 한글,영문등 자유롭게 등록할 수 있습니다.<br />
|
||||
<span class="b">아이디</span> : 영문 대소문자+숫자+_ 조합으로 만듭니다.<br />
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td1">
|
||||
카 테 고 리
|
||||
<img src="<?php echo $g['img_core']?>/_public/ico_q.gif" alt="도움말" title="도움말" class="hand" onclick="layerShowHide('guide_category','block','none');" />
|
||||
</td>
|
||||
<td class="td2">
|
||||
<input type="text" name="category" value="" class="input sname1" />
|
||||
<div id="guide_category" class="guide hide">
|
||||
<span class="b">콤마(,)</span>로 구분해 주세요. <span class="b">첫분류는 분류제목</span>이 됩니다.<br />
|
||||
보기)<span class="b">구분</span>,유머,공포,엽기,무협,기타
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td1">레 이 아 웃</td>
|
||||
<td class="td2">
|
||||
<select name="layout" class="form-control custom-select">
|
||||
<option value=""> + 사이트 대표레이아웃</option>
|
||||
<?php $dirs = opendir($g['path_layout'])?>
|
||||
<?php while(false !== ($tpl = readdir($dirs))):?>
|
||||
<?php if($tpl=='.' || $tpl == '..' || $tpl == '_blank' || is_file($g['path_layout'].$tpl))continue?>
|
||||
<?php $dirs1 = opendir($g['path_layout'].$tpl)?>
|
||||
<option value="" disabled>--------------------------------</option>
|
||||
<?php while(false !== ($tpl1 = readdir($dirs1))):?>
|
||||
<?php if(!strstr($tpl1,'.php') || $tpl1=='_main.php')continue?>
|
||||
<option value="<?php echo $tpl?>/<?php echo $tpl1?>">ㆍ<?php echo getFolderName($g['path_layout'].$tpl)?>(<?php echo str_replace('.php','',$tpl1)?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs1)?>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td1">게시판테마</td>
|
||||
<td class="td2">
|
||||
<select name="skin" class="form-control custom-select">
|
||||
<option value=""> + 게시판 대표테마</option>
|
||||
<option value="" disabled>--------------------------------</option>
|
||||
<?php $tdir = $g['path_module'].$smodule.'/themes/_desktop/'?>
|
||||
<?php $dirs = opendir($tdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($tdir.$skin))continue?>
|
||||
<option value="_desktop/<?php echo $skin?>" title="<?php echo $skin?>">ㆍ<?php echo getFolderName($tdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td1 sfont1">(모바일접속)</td>
|
||||
<td class="td2">
|
||||
<select name="m_skin" class="form-control custom-select">
|
||||
<option value=""> + 모바일 대표테마</option>
|
||||
<option value="" disabled>--------------------------------</option>
|
||||
<?php $tdir = $g['path_module'].$smodule.'/themes/_mobile/'?>
|
||||
<?php $dirs = opendir($tdir)?>
|
||||
<?php while(false !== ($skin = readdir($dirs))):?>
|
||||
<?php if($skin=='.' || $skin == '..' || is_file($tdir.$skin))continue?>
|
||||
<option value="_mobile/<?php echo $skin?>" title="<?php echo $skin?>">ㆍ<?php echo getFolderName($tdir.$skin)?>(<?php echo $skin?>)</option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="td1">
|
||||
연 결 메 뉴
|
||||
<img src="<?php echo $g['img_core']?>/_public/ico_q.gif" alt="도움말" title="도움말" class="hand" onclick="layerShowHide('guide_sosokmenu','block','none');" />
|
||||
</td>
|
||||
<td class="td2">
|
||||
<select name="sosokmenu" class="form-control custom-select">
|
||||
<option value=""> + 사용안함</option>
|
||||
<option value="" disabled>--------------------------------</option>
|
||||
<?php include_once $g['path_core'].'function/menu1.func.php'?>
|
||||
<?php $cat=$d['bbs']['sosokmenu']?>
|
||||
<?php getMenuShowSelect($s,$table['s_menu'],0,0,0,0,0,'')?>
|
||||
</select>
|
||||
<div id="guide_sosokmenu" class="guide hide">
|
||||
이 게시판을 연결할 메뉴를 지정해 주세요.<br />
|
||||
연결메뉴를 지정하면 게시물수,로케이션이 동기화됩니다.<br />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td1">글쓰기권한</td>
|
||||
<td class="td2">
|
||||
<select name="perm_l_write" class="form-control custom-select">
|
||||
<option value="0"> + 전체허용</option>
|
||||
<option value="0" disabled>--------------------------------</option>
|
||||
<?php $_LEVEL=getDbArray($table['s_mbrlevel'],'','*','uid','asc',0,1)?>
|
||||
<?php while($_L=db_fetch_array($_LEVEL)):?>
|
||||
<option value="<?php echo $_L['uid']?>"<?php if($_L['uid']==1):?> selected="selected"<?php endif?>>ㆍ<?php echo $_L['name']?>(<?php echo number_format($_L['num'])?>) 이상</option>
|
||||
<?php if($_L['gid'])break; endwhile?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="mt-3">
|
||||
<input type="submit" class="btn btn-primary" value="새게시판 만들기">
|
||||
<a href="<?php echo $g['s']?>/?r=<?php echo $r?>&m=admin&module=<?php echo $smodule?>&front=main&type=makebbs" target="_blank">더 자세히</a>
|
||||
<a href="#." class="btn btn-light" onclick="thisReset();">취소</a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<?php else:?>
|
||||
<?php if($NUM):?>
|
||||
<table class="table table-sm table-hover">
|
||||
<colgroup>
|
||||
<col width="30%">
|
||||
<col>
|
||||
<col width="32%">
|
||||
</colgroup>
|
||||
<tr>
|
||||
<td class="name">
|
||||
<a href="<?php echo $g['r']?>/?m=<?php echo $smodule?>" target="_blank" class="muted-link">
|
||||
전체게시물
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<?php include $g['path_module'].$smodule.'/var/var.php';?>
|
||||
<select class="form-control custom-select form-control-sm">
|
||||
<option><?php echo getFolderName($tdir.$d['bbs']['skin_total'])?></option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="text-right pr-2">
|
||||
<button class="btn btn-light btn-sm" onclick="dropJoint('<?php echo $g['s']?>/?m=<?php echo $smodule?>');" /><i class="fa fa-link"></i> 연결하기</button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php while($R = db_fetch_array($PAGES)):?>
|
||||
<?php include $g['path_var'].$smodule.'/var.'.$R['id'].'.php'?>
|
||||
<tr<?php if($R['id']==$id):?> class="madetr"<?php endif?>>
|
||||
<td class="align-middle">
|
||||
<?php if($R['category']):?>
|
||||
<select id="cat<?php echo $R['id']?>" class="form-control custom-select form-control-sm" title="<?php echo $R['id']?>">
|
||||
<option value=""> + <?php echo $R['name']?></option>
|
||||
<?php $_catexp = explode(',',$R['category']);$_catnum=count($_catexp)?>
|
||||
<option value="" disabled>--------------------------------</option>
|
||||
<?php for($i = 1; $i < $_catnum; $i++):if(!$_catexp[$i])continue;?>
|
||||
<option value="<?php echo $_catexp[$i]?>">ㆍ<?php echo $_catexp[$i]?></option>
|
||||
<?php endfor?>
|
||||
</select>
|
||||
<?php else:?>
|
||||
<input type="hidden" id="cat<?php echo $R['id']?>" value="" class="form-control">
|
||||
<a href="<?php echo $g['s']?>/?r=<?php echo $r?>&m=<?php echo $smodule?>&bid=<?php echo $R['id']?>" target="_blank" title="게시판보기" class="muted-link">
|
||||
<?php echo $R['name']?>
|
||||
</a>
|
||||
<span class="badge badge-light badge-pill"><?php echo $R['id']?></span>
|
||||
<?php endif?>
|
||||
</td>
|
||||
<td class="align-middle">
|
||||
<select class="form-control form-control-sm custom-select">
|
||||
<option><?php echo $d['bbs']['skin'] ? getFolderName($tdir.$d['bbs']['skin']) : '게시판 대표테마'?></option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="align-middle text-right pr-2">
|
||||
<button class="btn btn-light btn-sm" onclick="dropJoint('<?php echo $g['s']?>/?m=<?php echo $smodule?>&bid=<?php echo $R['id']?>'+(getId('cat<?php echo $R['id']?>').value?'&cat='+getId('cat<?php echo $R['id']?>').value:''));" /><i class="fa fa-link"></i> 연결하기</button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endwhile?>
|
||||
</table>
|
||||
|
||||
<div class="mt-3">
|
||||
<ul class="pagination pagination-sm justify-content-center">
|
||||
<script type="text/javascript">getPageLink(5,<?php echo $p?>,<?php echo $TPG?>,'');</script>
|
||||
</ul>
|
||||
</div>
|
||||
<?php else:?>
|
||||
<div class="alert alert-warning">
|
||||
<?php if($_keyw):?>
|
||||
<i class="fa fa-exclamation-triangle"></i> 검색결과에 해당되는 게시판이 없습니다.
|
||||
<?php else:?>
|
||||
<i class="fa fa-exclamation-triangle"></i> 아직 게시판이 만들어지지 않았습니다. 게시판을 만들어주세요.
|
||||
<?php endif?>
|
||||
</div>
|
||||
<?php endif?>
|
||||
<?php endif?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
#mjointbox {}
|
||||
|
||||
#mjointbox .title {padding:0 0 20px 0;}
|
||||
#mjointbox table .name a {font-weight:bold;}
|
||||
#mjointbox table .name a,
|
||||
#mjointbox table .name span {position:relative;top:8px;}
|
||||
|
||||
#mjointbox table .name span {font-size:11px;color:#c0c0c0;padding-left:3px;}
|
||||
|
||||
#mjointbox .rb-page-box {text-align:center;border-top:#dfdfdf solid 1px;margin:20px 0 20px 0;}
|
||||
.table td.text-right {padding-right: 0}
|
||||
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function thisReset()
|
||||
{
|
||||
var f = document.bbsSform;
|
||||
f.newboard.value = '';
|
||||
f.p.value = 1;
|
||||
f._keyw.value = '';
|
||||
f.submit();
|
||||
}
|
||||
function saveCheck(f)
|
||||
{
|
||||
if (f.name.value == '')
|
||||
{
|
||||
alert('게시판이름을 입력해 주세요. ');
|
||||
f.name.focus();
|
||||
return false;
|
||||
}
|
||||
if (f.bid.value == '')
|
||||
{
|
||||
if (f.id.value == '')
|
||||
{
|
||||
alert('게시판아이디를 입력해 주세요. ');
|
||||
f.id.focus();
|
||||
return false;
|
||||
}
|
||||
if (!chkFnameValue(f.id.value))
|
||||
{
|
||||
alert('게시판아이디는 영문 대소문자/숫자/_ 만 사용가능합니다. ');
|
||||
f.id.value = '';
|
||||
f.id.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return confirm('정말로 새 게시판을 만드시겠습니까? ');
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
7
modules/bbs/admin/var/var.menu.php
Normal file
7
modules/bbs/admin/var/var.menu.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
$d['amenu']['config'] = '기초환경';
|
||||
$d['amenu']['main'] = '게시판 관리';
|
||||
$d['amenu']['post'] = '게시물 관리';
|
||||
$d['amenu']['notidoc'] = '알림 양식';
|
||||
$d['amenu']['theme'] = '테마';
|
||||
?>
|
||||
Reference in New Issue
Block a user