| Current Path : /home2/wtmwscom/public_html/admin/ |
| Current File : /home2/wtmwscom/public_html/admin/hot_news.php |
<?php
$title = "Hot News";
include 'header.php';
$hot_news = mysqli_fetch_object(mysqli_query($connection, "select hot_news from hot_news;"))->hot_news;
?>
<script src="../static/backend/vendor/tinymce/tinymce.min.js"></script>
<!--<h1>Hot News</h1>-->
<?php echo getMessage(); ?>
<!--<section id="comments">
<form name="form" id="form" action="hot_news_model.php" method="post" enctype="multipart/form-data">
<p>
<div><textarea id="content" class="ckeditor" name="content"><?php echo $hot_news; ?></textarea></div>
</p>
<p><br />
<input style="position: relative; left: 200px;" name="submit" type="submit" id="submit" value="Save">
</p>
</form>
</section>-->
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<div class="page-title-box">
<h4 class="page-title">Form Editors</h4>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="javascript:void(0);">Lexa</a></li>
<li class="breadcrumb-item"><a href="javascript:void(0);">Forms</a></li>
<li class="breadcrumb-item active">Form Editors</li>
</ol>
</div>
</div>
</div>
<!-- end row -->
<div class="row">
<div class="col-12">
<div class="card m-b-20">
<div class="card-body">
<h4 class="mt-0 header-title">Hot News</h4>
<form name="form" id="form" action="hot_news_model.php" method="post" enctype="multipart/form-data">
<!--<div> <textarea id="elm1" name="content"><?php// echo $hot_news; ?></textarea></div>-->
<textarea id="elm1" name="content"></textarea>
<input style="position: relative; left: 200px;" name="submit" type="submit" id="submit" value="Save">
</form>
</div>
</div>
</div> <!-- end col -->
</div> <!-- end row -->
</div>
<script>
$(document).ready(function () {
if ($("#elm1").length > 0) {
tinymce.init({
selector: "textarea#elm1",
theme: "modern",
height: 300,
plugins: [
"advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
"save table contextmenu directionality emoticons template paste textcolor"
],
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l ink image | print preview media fullpage | forecolor backcolor emoticons",
style_formats: [
{title: 'Bold text', inline: 'b'},
{title: 'Red text', inline: 'span', styles: {color: '#ff0000'}},
{title: 'Red header', block: 'h1', styles: {color: '#ff0000'}},
{title: 'Example 1', inline: 'span', classes: 'example1'},
{title: 'Example 2', inline: 'span', classes: 'example2'},
{title: 'Table styles'},
{title: 'Table row 1', selector: 'tr', classes: 'tablerow1'}
]
});
}
});
</script>
<?php include 'footer.php'; ?>