105 lines
3.6 KiB
PHP
105 lines
3.6 KiB
PHP
|
|
<!-- Main content -->
|
|
<div class="content-wrapper">
|
|
|
|
<!-- Dashboard content -->
|
|
<div class="row">
|
|
<div class="col-lg-4">
|
|
|
|
<!-- Marketing campaigns -->
|
|
<div class="panel panel-flat">
|
|
<div class="panel-heading">
|
|
<h6 class="panel-title"> <b>Add Faq</b></h6>
|
|
<div class="heading-elements">
|
|
</div>
|
|
</div>
|
|
<form method="post" name="postfaq" action="/bkouser/faq">
|
|
<input type="hidden" name="link_id" value="">
|
|
|
|
<div class="table-responsive">
|
|
<table class='table table-sm table-hover table-bordered table-condensed'>
|
|
<tr>
|
|
<td style='width:100px;'>Flag[numbers]</td><td><input type="text" class="form-control" id="faq_flag" name="faq_flag" value="<?php echo $faq_flag; ?>"></td></tr>
|
|
<td style='width:100px;'>Title</td><td><input type="text" class="form-control" id="faq_title" name="faq_title" value="<?php echo $faq_title; ?>"></td></tr>
|
|
<tr> <td colspan='2'>Detail<br><textarea class="wysihtml5-min form-control" rows="15" id="faq_detail" name="faq_detail"> <?php echo $faq_detail; ?></textarea> </td>
|
|
</tr>
|
|
<tr><td></td><td><input type='submit' class='btn btn-success btn-sm' name='save_faq' value='Save'></td></tr>
|
|
</table>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<!-- /marketing campaigns -->
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-8">
|
|
|
|
<!-- Daily sales -->
|
|
<div class="panel panel-flat">
|
|
<div class="panel-heading">
|
|
<h6 class="panel-title"><b>Faq</b></h6>
|
|
<div class="heading-elements">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
<div id="sales-heatmap"></div>
|
|
</div>
|
|
|
|
<div class="table-responsive">
|
|
<?php echo $faq_table; ?>
|
|
</div>
|
|
</div>
|
|
<!-- /daily sales -->
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<!-- /dashboard content -->
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
<!--
|
|
function deleteFaq(link_id) {
|
|
|
|
if (confirm("Are you sure you want to delete this faq?")) {
|
|
// do something
|
|
} else {
|
|
return false;
|
|
}
|
|
|
|
//$('#sdd'+link_id).html('Processing...');
|
|
$('#dacc' + link_id).prop('disabled', true);
|
|
$.ajax({
|
|
url: "/bkouser/deletefaq?proc=SEL&faq_id=" + link_id
|
|
}).done(function (data) {
|
|
$('#subdel_' + link_id).html(data);
|
|
$('#dacc' + link_id).prop('disabled', false);
|
|
});
|
|
return false;
|
|
}
|
|
|
|
|
|
// -->
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
|
$('.textarea').wysihtml5({
|
|
"font-styles": true, //Font styling, e.g. h1, h2, etc. Default true
|
|
"emphasis": true, //Italics, bold, etc. Default true
|
|
"lists": true, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
|
|
"html": true, //Button which allows you to edit the generated HTML. Default false
|
|
"link": true, //Button to insert a link. Default true
|
|
"image": true, //Button to insert an image. Default true,
|
|
"color": true, //Button to change color of font
|
|
"size": 'xs', // buttons size
|
|
});
|
|
</script>
|