Initial import from local backup (Documents-Playground/pakerpale)
This commit is contained in:
7
views/faq/basic/css/style.css
Normal file
7
views/faq/basic/css/style.css
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
faq skin css
|
||||
*/
|
||||
|
||||
.search_box {background-color: #d9edf7;border: 1px solid #ddd;padding: 15px !important;border-radius: 3px;overflow: hidden;}
|
||||
.table-heading {cursor:pointer;}
|
||||
.answer {display:none;}
|
||||
70
views/faq/basic/faq.php
Normal file
70
views/faq/basic/faq.php
Normal file
@@ -0,0 +1,70 @@
|
||||
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
|
||||
|
||||
<h3><?php echo element('fgr_title', element('faqgroup', $view)); ?></h3>
|
||||
<form class="search_box text-center mb20" action="<?php echo current_url(); ?>" onSubmit="return faqSearch(this)">
|
||||
<input type="text" name="skeyword" value="<?php echo html_escape($this->input->get('skeyword')); ?>" class="input" placeholder="Search" />
|
||||
<button class="btn btn-primary" type="submit"><i class="fa fa-search"></i></button>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function faqSearch(f) {
|
||||
var skeyword = f.skeyword.value.replace(/(^\s*)|(\s*$)/g,'');
|
||||
if (skeyword.length < 2) {
|
||||
alert('2글자 이상으로 검색해 주세요');
|
||||
f.skeyword.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
<?php
|
||||
$i = 0;
|
||||
if (element('list', element('data', $view))) {
|
||||
foreach (element('list', element('data', $view)) as $result) {
|
||||
?>
|
||||
<div class="table-box">
|
||||
<div class="table-heading" id="heading_<?php echo $i; ?>" onclick="return faq_open(this);">
|
||||
<?php echo element('title', $result); ?>
|
||||
</div>
|
||||
<div class="table-answer answer" id="answer_<?php echo $i; ?>">
|
||||
<?php echo element('content', $result); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
if ( ! element('list', element('data', $view))) {
|
||||
?>
|
||||
<div class="table-answer nopost">내용이 없습니다</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<nav><?php echo element('paging', $view); ?></nav>
|
||||
<?php
|
||||
if ($this->member->is_admin() === 'super') {
|
||||
?>
|
||||
<div class="text-center mb20">
|
||||
<a href="<?php echo admin_url('page/faq'); ?>?fgr_id=<?php echo element('fgr_id', element('faqgroup', $view)); ?>" class="btn btn-black btn-sm" target="_blank" title="FAQ 수정">FAQ 수정</a>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function faq_open(el)
|
||||
{
|
||||
var $con = $(el).closest('.table-box').find('.answer');
|
||||
|
||||
if ($con.is(':visible')) {
|
||||
$con.slideUp();
|
||||
} else {
|
||||
$('.answer:visible').css('display', 'none');
|
||||
$con.slideDown();
|
||||
|
||||
}
|
||||
return false;
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
7
views/faq/bootstrap/css/style.css
Normal file
7
views/faq/bootstrap/css/style.css
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
faq skin css
|
||||
*/
|
||||
|
||||
.faq_title {cursor:pointer;}
|
||||
.search_box{background-color: #d9edf7;border: 1px solid #ddd;padding: 15px !important;margin: 0 15px;border-radius: 3px;overflow:hidden;}
|
||||
|
||||
68
views/faq/bootstrap/faq.php
Normal file
68
views/faq/bootstrap/faq.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
|
||||
|
||||
<h3><?php echo element('fgr_title', element('faqgroup', $view)); ?></h3>
|
||||
<div class="row">
|
||||
<form class="navbar-form text-center search_box" action="<?php echo current_url(); ?>" onSubmit="return faqSearch(this)">
|
||||
<div class="form-group">
|
||||
<input type="text" name="skeyword" value="<?php echo html_escape($this->input->get('skeyword')); ?>" class="form-control px150" placeholder="Search" />
|
||||
<button class="btn btn-primary btn-sm" type="submit"><i class="fa fa-search"></i></button>
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function faqSearch(f) {
|
||||
var skeyword = f.skeyword.value.replace(/(^\s*)|(\s*$)/g,'');
|
||||
if (skeyword.length < 2) {
|
||||
alert('2글자 이상으로 검색해 주세요');
|
||||
f.skeyword.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<div class="panel-group mt20" id="accordion" role="tablist" aria-multiselectable="true">
|
||||
<?php
|
||||
$i = 0;
|
||||
if (element('list', element('data', $view))) {
|
||||
foreach (element('list', element('data', $view)) as $result) {
|
||||
?>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading" role="tab" id="heading_<?php echo $i; ?>">
|
||||
<a data-toggle="collapse" data-parent="#accordion" href="#collapse_<?php echo $i; ?>" aria-expanded="true" aria-controls="collapse_<?php echo $i; ?>" class="<?php echo ($i>0) ? 'collapsed' : ''; ?> faq_title" >
|
||||
<div >
|
||||
<h4 class="panel-title">
|
||||
<?php echo element('title', $result); ?>
|
||||
</h4>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div id="collapse_<?php echo $i; ?>" class="panel-collapse collapse <?php echo $i === 0 ? 'in' : ''; ?>" role="tabpanel" aria-labelledby="heading_<?php echo $i; ?>">
|
||||
<div class="panel-body">
|
||||
<?php echo element('content', $result); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
if ( ! element('list', element('data', $view))) {
|
||||
?>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body nopost">내용이 없습니다.</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<nav><?php echo element('paging', $view); ?></nav>
|
||||
|
||||
<?php if ($this->member->is_admin() === 'super') { ?>
|
||||
<div class="text-center mb20">
|
||||
<a href="<?php echo admin_url('page/faq'); ?>?fgr_id=<?php echo element('fgr_id', element('faqgroup', $view)); ?>" class="btn btn-black btn-sm" target="_blank" title="FAQ 수정">FAQ 수정</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
7
views/faq/mobile/css/style.css
Normal file
7
views/faq/mobile/css/style.css
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
faq skin css
|
||||
*/
|
||||
|
||||
.search_box {background-color: #d9edf7;border: 1px solid #ddd;padding: 15px !important;border-radius: 3px;overflow: hidden;}
|
||||
.table-heading {cursor:pointer;}
|
||||
.answer {display:none;}
|
||||
71
views/faq/mobile/faq.php
Normal file
71
views/faq/mobile/faq.php
Normal file
@@ -0,0 +1,71 @@
|
||||
<?php $this->managelayout->add_css(element('view_skin_url', $layout) . '/css/style.css'); ?>
|
||||
|
||||
<h3><?php echo element('fgr_title', element('faqgroup', $view)); ?></h3>
|
||||
<form class="search_box text-center mb20" action="<?php echo current_url(); ?>" onSubmit="return faqSearch(this)">
|
||||
<input type="text" name="skeyword" value="<?php echo html_escape($this->input->get('skeyword')); ?>" class="input" placeholder="Search" />
|
||||
<button class="btn btn-primary" type="submit"><i class="fa fa-search"></i></button>
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function faqSearch(f) {
|
||||
var skeyword = f.skeyword.value.replace(/(^\s*)|(\s*$)/g,'');
|
||||
if (skeyword.length < 2) {
|
||||
alert('2글자 이상으로 검색해 주세요');
|
||||
f.skeyword.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<?php
|
||||
$i = 0;
|
||||
if (element('list', element('data', $view))) {
|
||||
foreach (element('list', element('data', $view)) as $result) {
|
||||
?>
|
||||
<div class="table-box">
|
||||
<div class="table-heading" id="heading_<?php echo $i; ?>" onclick="return faq_open(this);">
|
||||
<?php echo element('title', $result); ?>
|
||||
</div>
|
||||
<div class="table-answer answer" id="answer_<?php echo $i; ?>">
|
||||
<?php echo element('content', $result); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
if ( ! element('list', element('data', $view))) {
|
||||
?>
|
||||
<div class="table-answer nopost">내용이 없습니다</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<nav><?php echo element('paging', $view); ?></nav>
|
||||
<?php
|
||||
if ($this->member->is_admin() === 'super') {
|
||||
?>
|
||||
<div class="text-center mb20">
|
||||
<a href="<?php echo admin_url('page/faq'); ?>?fgr_id=<?php echo element('fgr_id', element('faqgroup', $view)); ?>" class="btn btn-black btn-sm" target="_blank" title="FAQ 수정">FAQ 수정</a>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function faq_open(el)
|
||||
{
|
||||
var $con = $(el).closest('.table-box').find('.answer');
|
||||
|
||||
if ($con.is(':visible')) {
|
||||
$con.slideUp();
|
||||
} else {
|
||||
$('.answer:visible').css('display', 'none');
|
||||
$con.slideDown();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
Reference in New Issue
Block a user