%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<script src="<?= base_url('assets/ckeditor/ckeditor.js') ?>"></script> <h1><img src="<?= base_url('assets/imgs/shop-cart-add-icon.png') ?>" class="header-img" style="margin-top:-3px;">Publish News</h1> <hr> <?php $timeNow = time(); if ($this->session->flashdata('result_error')) { ?> <hr> <div class="alert alert-danger"><?= implode('<br>', $this->session->flashdata('result_error')) ?></div> <hr> <?php } if ($this->session->flashdata('result_publish')) { ?> <hr> <div class="alert alert-success"><?= $this->session->flashdata('result_publish') ?></div> <hr> <?php } ?> <form action="" method="POST" enctype="multipart/form-data"> <div class="modal-body"> <div class="form-group"> <label>Title</label> <input type="text" name="title" class="form-control" value="<?= $tests_categories != null && isset($tests_categories['title']) ? $tests_categories['title'] : $_POST['title'] ?>"> <input type="hidden" name="id" class="form-control" value="<?= $tests_categories != null && isset($tests_categories['id']) ? $tests_categories['id']: $_POST['id'] ?>"> </div> <!--<div class="form-group"> <label>Description</label> <textarea name="description" id="description" class="form-control" required><?= $tests_categories != null && isset($tests_categories['description']) ? $tests_categories['description'] : $_POST['description'] ?></textarea> </div> <div class="form-group"> <label>Starting Date</label> <input type="text" id="datepicker10" name="starting_date" class="form-control" value="<?= $tests_categories != null && isset($tests_categories['starting_date']) ? $tests_categories['starting_date'] : $_POST['starting_date'] ?>" data-date-format="yyyy-mm-dd"> </div> <div class="form-group"> <label>Ending Date</label> <input type="text" name="ending_date" id="datepicker11" class="form-control" value="<?= $tests_categories != null && isset($tests_categories['ending_date']) ? $tests_categories['ending_date'] : $_POST['ending_date'] ?>" data-date-format="yyyy-mm-dd"> </div>--> <div class="form-group"> <label>URL</label> <input type="text" name="url" class="form-control" value="<?= $tests_categories != null && isset($tests_categories['url']) ? $tests_categories['url'] : $_POST['url'] ?>"> </div> <script> CKEDITOR.replace('description'); CKEDITOR.config.entities = false; </script> <div class="form-group"> <label>Image</label> <input type="hidden" name="old_image" value="<?= $tests_categories != null && isset($tests_categories['image']) ? $tests_categories['image'] : $_POST['image'] ?>"> <input type="file" name="image" class="form-control"/> <?php if($tests_categories['image']){?><img src="<?= base_url('attachments/whats_new/'.$tests_categories['image']) ?>" style="width: 8%;"><?php } else if($_POST['image']) {?><img src="<?= base_url('attachments/whats_new/'.$_POST['image']) ?>" style="width: 8%;"><?php } ?> </div> <div class="form-group"> <label>Display Position</label> <input type="text" name="position" class="form-control" value="<?= $tests_categories != null && isset($tests_categories['position']) ? $tests_categories['position'] : $_POST['position'] ?>"> </div> </div> <div class="modal-footer"> <button type="submit" name="submit" class="btn btn-primary">Save</button> </div> </form>