widget('loginBox'); ?> </div> <div class="col-sm-8 col-md-9"> <form action="<?php echo url('p/e/news'); ?> " method="post"> <div class="form-group"> <label for="title">Title :</label> <div class="input-group"> <span class="input-group-addon" data-toggle="tooltip" data-placement="top" title="ล้างข้อมูลการเข้าชม"> <input type="checkbox" name="c_readIn"> </span> <input type="text" id="title" name="title" placeholder="ชื่อหัวข้อ ข่าว" class="form-control" value="<?php echo spchar($data['title']); ?> " required/> </div> </div> <div class="form-group"> <label for="content">Content :</label> <textarea title="content" id="content" name="content" class="form-control" placeholder="เนื้อหาข่าว" rows="15" required><?php echo $data['content']; ?> </textarea> <input type="hidden" name="token" value="<?php echo base64_encode($data['id']); ?> "> <input type="hidden" name="csrf_token" value="<?php
if (empty($news)) { ?> <input type="checkbox" name="active"> <?php } else { ?> <input type="checkbox" name="active" <?php echo $news['active'] ? 'checked' : ''; ?> > <?php } ?> </span> <input type="text" id="title" name="title" value="<?php echo empty($news['title']) ? '' : spchar($news['title']); ?> " placeholder="ชื่อหัวข้อ ข่าว" class="form-control" required/> </div> </div> <div class="form-group"> <label for="content">Content :</label> <textarea title="content" id="content" name="content" class="form-control" placeholder="เนื้อหาข่าว" rows="15" required><?php echo empty($news['content']) ? '' : $news['content']; ?> </textarea> <input type="hidden" name="csrf_token" value="<?php echo csrf_token(); ?> "> <button class="btn btn-success" style="width:100%"><i class="fa fa-check-circle"></i> Submit</button>