| Server IP : 104.21.80.248 / Your IP : 172.71.28.156 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/news/elearning/admin/ |
Upload File : |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="editor/lib/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="editor/lib/css/prettify.css"/>
<link rel="stylesheet" type="text/css" href="editor/src/bootstrap-wysihtml5.css"/>
<?php
require '../configs/app_top.php';
if(!is_admin_logged_in()) { redirect(generate_admin_link("login")); exit;}
$title = "เพิ่มข่าวประกาศ";
include './includes/header_editor.php';
?>
<?php if ($ERROR_TYPE <> "") { ?>
<div class="col-12">
<div class="alert alert-<?php echo $ERROR_TYPE; ?>">
<button data-dismiss="alert" class="close" type="button">×</button>
<?php echo $ERROR_MSG; ?>
</div>
</div>
<?php } ?>
<div class="clearfix"></div>
<div class="row" width="400px">
<div class="col-12">
<table width="500" border="0" align="center">
<tr>
<td>
<form class="form-horizontal" method="post" id="ca" name="ca" action="<?php echo generate_admin_link("news_added"); ?>">
<input type="hidden" value="ca" name="mode">
<fieldset >
<div class="jumbotron">
<label for="title" class="control-label"><span class="required">*</span>หัวข้อข่าว : </label>
<input type="text" class="form-control" name="title" autocomplete="off" style="width:500px;height:30px;" >
<div id="username-error" class="help-inline cont" style="clear: both;color: #F00;"></div>
</div>
<div class="padding10"></div>
<div class="jumbotron">
<textarea name="n_detail" class="textarea" style="width:650px;height:250px;"></textarea>
</div>
<script src="editor/lib/js/wysihtml5-0.3.0.js"></script>
<script src="editor/lib/js/jquery-1.7.2.min.js"></script>
<script src="editor/lib/js/prettify.js"></script>
<script src="editor/lib/js/bootstrap.min.js"></script>
<script src="editor/src/bootstrap-wysihtml5.js"></script>
<script type="text/javascript" charset="utf-8">
$(prettyPrint);
</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
});
</script>
<div class="padding10"></div>
<button class="btn btn-success loginbutton" type="submit">ประกาศข่าว</button>
<div class="padding5"></div>
</div>
</fieldset>
</form>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>