Initial import from local backup (Documents-Playground/pakerpale)

This commit is contained in:
jeonghwa
2026-07-03 05:27:41 +09:00
commit 5b1bfe3390
2223 changed files with 561621 additions and 0 deletions

View File

@@ -0,0 +1,98 @@
<div class="box">
<div class="box-table">
<?php
echo show_alert_message($this->session->flashdata('message'), '<div class="alert alert-auto-close alert-dismissible alert-info"><button type="button" class="close alertclose" >&times;</button>', '</div>');
$attributes = array('class' => 'form-inline', 'name' => 'flist', 'id' => 'flist');
echo form_open(current_full_url(), $attributes);
?>
<div class="box-table-header">
<?php
ob_start();
?>
<div class="btn-group pull-right" role="group" aria-label="...">
<a href="<?php echo element('listall_url', $view); ?>" class="btn btn-outline btn-default btn-sm">전체목록</a>
<button type="button" class="btn btn-outline btn-default btn-sm btn-list-delete btn-list-selected disabled" data-list-delete-url = "<?php echo element('list_delete_url', $view); ?>" >선택삭제</button>
<a href="<?php echo element('write_url', $view); ?>" class="btn btn-outline btn-danger btn-sm">페이지추가</a>
</div>
<?php
$buttons = ob_get_contents();
ob_end_flush();
?>
</div>
<div class="row">전체 : <?php echo element('total_rows', element('data', $view), 0); ?>건</div>
<div class="table-responsive">
<table class="table table-hover table-striped table-bordered">
<thead>
<tr>
<th><a href="<?php echo element('doc_id', element('sort', $view)); ?>">번호</a></th>
<th><a href="<?php echo element('doc_key', element('sort', $view)); ?>">주소</a></th>
<th><a href="<?php echo element('doc_title', element('sort', $view)); ?>">제목</a></th>
<th><a href="<?php echo element('doc_layout', element('sort', $view)); ?>">일반레이아웃</a></th>
<th><a href="<?php echo element('doc_mobile_layout', element('sort', $view)); ?>">모바일레이아웃</a></th>
<th><a href="<?php echo element('doc_skin', element('sort', $view)); ?>">일반스킨</a></th>
<th><a href="<?php echo element('doc_mobile_skin', element('sort', $view)); ?>">모바일스킨</a></th>
<th>최종수정자</th>
<th><a href="<?php echo element('doc_updated_datetime', element('sort', $view)); ?>">최종수정일</a></th>
<th><a href="<?php echo element('doc_hit', element('sort', $view)); ?>">조회수</a></th>
<th>수정</th>
<th><input type="checkbox" name="chkall" id="chkall" /></th>
</tr>
</thead>
<tbody>
<?php
if (element('list', element('data', $view))) {
foreach (element('list', element('data', $view)) as $result) {
?>
<tr>
<td><?php echo number_format(element('num', $result)); ?></td>
<td><a href="<?php echo goto_url(document_url(html_escape(element('doc_key', $result)))); ?>" target="_blank"><?php echo document_url(html_escape(element('doc_key', $result))); ?></a></td>
<td><?php echo html_escape(element('doc_title', $result)); ?></td>
<td><?php echo element('doc_layout', $result) ? html_escape(element('doc_layout', $result)) : '기본설정따름'; ?></td>
<td><?php echo element('doc_mobile_layout', $result) ? html_escape(element('doc_mobile_layout', $result)) : '기본설정따름'; ?></td>
<td><?php echo element('doc_skin', $result) ? html_escape(element('doc_skin', $result)) : '기본설정따름'; ?></td>
<td><?php echo element('doc_mobile_skin', $result) ? html_escape(element('doc_mobile_skin', $result)) : '기본설정따름'; ?></td>
<td><?php echo element('display_name', $result); ?> <?php if (element('mem_userid', $result)) { ?> ( <a href="?sfield=document.mem_id&amp;skeyword=<?php echo element('mem_id', $result); ?>"><?php echo html_escape(element('mem_userid', $result)); ?></a> ) <?php } ?></td>
<td><?php echo display_datetime(element('doc_updated_datetime', $result), 'full'); ?></td>
<td class="text-right"><?php echo number_format(element('doc_hit', $result)); ?></td>
<td><a href="<?php echo admin_url($this->pagedir); ?>/write/<?php echo element(element('primary_key', $view), $result); ?>?<?php echo $this->input->server('QUERY_STRING', null, ''); ?>" class="btn btn-outline btn-default btn-xs">수정</a></td>
<td><input type="checkbox" name="chk[]" class="list-chkbox" value="<?php echo element(element('primary_key', $view), $result); ?>" /></td>
</tr>
<?php
}
}
if ( ! element('list', element('data', $view))) {
?>
<tr>
<td colspan="12" class="nopost">자료가 없습니다</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<div class="box-info">
<?php echo element('paging', $view); ?>
<div class="pull-left ml20"><?php echo admin_listnum_selectbox();?></div>
<?php echo $buttons; ?>
</div>
<?php echo form_close(); ?>
</div>
<form name="fsearch" id="fsearch" action="<?php echo current_full_url(); ?>" method="get">
<div class="box-search">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<select class="form-control" name="sfield" >
<?php echo element('search_option', $view); ?>
</select>
<div class="input-group">
<input type="text" class="form-control" name="skeyword" value="<?php echo html_escape(element('skeyword', $view)); ?>" placeholder="Search for..." />
<span class="input-group-btn">
<button class="btn btn-default btn-sm" name="search_submit" type="submit">검색!</button>
</span>
</div>
</div>
</div>
</div>
</form>
</div>

View File

@@ -0,0 +1,93 @@
<div class="box">
<div class="box-table">
<?php
echo validation_errors('<div class="alert alert-warning" role="alert">', '</div>');
$attributes = array('class' => 'form-horizontal', 'name' => 'fadminwrite', 'id' => 'fadminwrite');
echo form_open(current_full_url(), $attributes);
?>
<input type="hidden" name="<?php echo element('primary_key', $view); ?>" value="<?php echo element(element('primary_key', $view), element('data', $view)); ?>" />
<div class="form-group">
<label class="col-sm-2 control-label">페이지주소</label>
<div class="col-sm-10 form-inline">
<?php echo document_url(); ?> <input type="text" class="form-control" name="doc_key" value="<?php echo set_value('doc_key', element('doc_key', element('data', $view))); ?>" /> 페이지주소를 입력해주세요
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">페이지제목</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="doc_title" value="<?php echo set_value('doc_title', element('doc_title', element('data', $view))); ?>" />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">PC 레이아웃/스킨</label>
<div class="col-sm-10 form-inline">
레이아웃 -
<select name="doc_layout" id="doc_layout" class="form-control" >
<?php echo element('doc_layout_option', element('data', $view)); ?>
</select>
사이드바 -
<select class="form-control" name="doc_sidebar" id="doc_sidebar">
<option value="">기본설정따름</option>
<option value="1" <?php echo set_select('doc_sidebar', '1', (element('doc_sidebar', element('data', $view)) === '1' ? true : false)); ?> >사용</option>
<option value="2" <?php echo set_select('doc_sidebar', '2', (element('doc_sidebar', element('data', $view)) === '2' ? true : false)); ?> >사용하지않음</option>
</select>
스킨 -
<select name="doc_skin" id="doc_skin" class="form-control" >
<?php echo element('doc_skin_option', element('data', $view)); ?>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">모바일 레이아웃/스킨</label>
<div class="col-sm-10 form-inline">
레이아웃 -
<select name="doc_mobile_layout" id="doc_mobile_layout" class="form-control" >
<?php echo element('doc_mobile_layout_option', element('data', $view)); ?>
</select>
사이드바 -
<select class="form-control" name="doc_mobile_sidebar" id="doc_mobile_sidebar">
<option value="">기본설정따름</option>
<option value="1" <?php echo set_select('doc_mobile_sidebar', '1', (element('doc_mobile_sidebar', element('data', $view)) === '1' ? true : false)); ?> >사용</option>
<option value="2" <?php echo set_select('doc_mobile_sidebar', '2', (element('doc_mobile_sidebar', element('data', $view)) === '2' ? true : false)); ?> >사용하지않음</option>
</select>
스킨 -
<select name="doc_mobile_skin" id="doc_mobile_skin" class="form-control" >
<?php echo element('doc_mobile_skin_option', element('data', $view)); ?>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">내용</label>
<div class="col-sm-10">
<?php echo display_dhtml_editor('doc_content', set_value('doc_content', element('doc_content', element('data', $view))), $classname = 'form-control dhtmleditor', $is_dhtml_editor = $this->cbconfig->item('use_document_dhtml'), $editor_type = $this->cbconfig->item('document_editor_type')); ?>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">모바일내용</label>
<div class="col-sm-10">
<?php echo display_dhtml_editor('doc_mobile_content', set_value('doc_mobile_content', element('doc_mobile_content', element('data', $view))), $classname = 'form-control dhtmleditor', $is_dhtml_editor = $this->cbconfig->item('use_document_dhtml'), $editor_type = $this->cbconfig->item('document_editor_type')); ?>
모바일 내용이 일반웹페이지 내용과 다를 경우에 입력합니다. 같은 경우는 입력하지 않으셔도 됩니다
</div>
</div>
<div class="btn-group pull-right" role="group" aria-label="...">
<button type="button" class="btn btn-default btn-sm btn-history-back" >취소하기</button>
<button type="submit" class="btn btn-success btn-sm">저장하기</button>
</div>
<?php echo form_close(); ?>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
$(function() {
$('#fadminwrite').validate({
rules: {
doc_key: {required:true, minlength:3, maxlength:50, alpha_dash : true},
doc_title: 'required',
doc_content : {<?php echo ($this->cbconfig->item('use_document_dhtml')) ? 'required_' . $this->cbconfig->item('document_editor_type') : 'required'; ?> : true },
doc_mobile_content : {<?php echo ($this->cbconfig->item('use_document_dhtml')) ? 'valid_' . $this->cbconfig->item('document_editor_type') : ''; ?> : true }
}
});
});
//]]>
</script>