<?php
defined('BASEPATH') or exit('No direct script access allowed');
?>
    <!DOCTYPE html>
    <html>

    <head>
        <title>สำนักงานสาธารณสุขจังหวัดสุรินทร์</title>
        <link rel="icon" type="image/png" href="<?php echo base_url();?>images/logo_MOPH.png">
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/bootstrap.min.css">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/font-awesome.min.css">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/animate.css">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/font.css">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/li-scroller.css">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/slick.css">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/jquery.fancybox.css">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/theme.css">
        <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/style.css">

    </head>

    <body>

        <div id="preloader">
            <div id="status">&nbsp;</div>
        </div>
        <a class="scrollToTop" href="#">
            <i class="fa fa-angle-up"></i>
        </a>
        <div class="container">
        <header id="header">
        <? $this->load->view("header_view");?>
        </header>






            <section id="contentSection">
                <br />
                <div class="row">
                    <div class="col-lg-3 col-md-3 col-sm-3">
                       
                    </div>
                    <div class="col-lg-6 col-md-6 col-sm-6">
                        <div class="left_content">
                            <div class="single_page">
                                 <?php echo form_open_multipart('Newscontrol/upload'); ?>

                                    <div class="form-group">
                                        <label for="group">กลุ่มข่าว</label>
                                        <select class="form-control" id="group" name="group">
                                            <option disabled selected>กรุณาเลือกกลุ่มข่าว</option>
                                            <?php foreach ($group as $item): ?>
                                            <option value="<?php echo $item->id ?>">
                                                <?php echo $item->name ?>
                                            </option>
                                            <?php endforeach;?>
                                        </select>
                                    </div>

                                    <div class="form-group">
                                        <label for="news">หัวข้อข่าว</label>
                                        <input type="text" class="form-control" id="news" name="news" placeholder="หัวข้อข่าว" required oninvalid="this.setCustomValidity('กรุณากรอกชือรหัสผ่าน')"
                                            oninput="setCustomValidity('')">
                                    </div>

                                    <div class="adjoined-bottom">
                                        <div class="grid-container">
                                            <div class="grid-width-100">
                                                  <textarea name="editor" id="editor" >
                                                      <!--  -->
                                                  </textarea>
                                                <div align="right">
                                                <span style="color:red;" >*กรณีเว้นบรรทัด (Enter) ให้กด shift + Enter</span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <br/>

       

             <div class="form-group">
            <label for="userfile1"><span style="color:red">เลือกเฉพาะไฟล์ ZIP/RAR</span></label>
            <input type="file"  id="userfile1" name="userfile1"/>
            <br/>

            <label for="userfile2"><span style="color:red">เลือกเฉพาะรูปภาพนามสกุล JPG PNG GIF</span></label>
            <input type="file"  id="userfile2" name="userfile2"/>
        </div>

                                    <br/>
         
                                    <div class="row">
                                        <div class="col-lg-12 col-md-12 col-sm-12">

                                            <button type="submit" class="btn btn-primary btn-block" style="border-radius: 8px">อัพข่าว</button>
                                        </div>
                                    </div>
                                    <br />
                                <?php echo form_close(); ?>
                            </div>
                        </div>
                    </div>
                    
                    <div class="col-lg-3 col-md-3 col-sm-3">
                        <a href="<?php echo base_url(); ?>index.php/Newscontrol/listedit">
                            <button type="button" class="btn btn-default" style="float: right;border-radius: 8px">
                                <span style="color:green; padding: 15px 32px;">รายการข้อมูล</span>
                            </button>
                        </a>
                    </div>
                  
                   
                    <br/><br/>
                    <div class="col-lg-3 col-md-3 col-sm-3">
                        <a href="<?php echo base_url(); ?>index.php/Newscontrol/logout">
                            <button type="button" class="btn btn-default" style="float: right;border-radius: 8px">
                                <span style="color:red; padding: 15px 32px;">ออกจากระบบ</span>
                            </button>
                        </a>
                    </div>
                </div>

            </section>
            <footer >
            <div align="center" class="col-md-12 col-lg-12 col-sm-12 col-xs-12" style="font-size:12px;color:white;padding:5px; background-color:#232222;">
   <? $this->load->view("footer_sview");?>
            </footer>
        </div>
        <script src="<?php echo base_url(); ?>assets/js/jquery.min.js"></script>
        <script src="<?php echo base_url(); ?>assets/js/wow.min.js"></script>
        <script src="<?php echo base_url(); ?>assets/js/bootstrap.min.js"></script>
        <script src="<?php echo base_url(); ?>assets/js/slick.min.js"></script>
        <script src="<?php echo base_url(); ?>assets/js/jquery.li-scroller.1.0.js"></script>
        <script src="<?php echo base_url(); ?>assets/js/jquery.newsTicker.min.js"></script>
        <script src="<?php echo base_url(); ?>assets/js/jquery.fancybox.pack.js"></script>
        <script src="<?php echo base_url(); ?>assets/js/custom.js"></script>
        <script src="<?php echo base_url(); ?>assets/js/ckeditor.js"></script>
        <script src="<?php echo base_url(); ?>assets/js/sample.js"></script>
        <script>
            initSample();
        </script>
    </body>

    </html>