<?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">.
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/sweetalert.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">
                            <form action="<?php echo base_url(); ?>index.php/Newscontrol/login" method="post">
                                <img src="<?php echo base_url() . 'images/pc.jpg' ?>" style=" display:
                                block;margin-left: auto;margin-right: auto;width: 68%;border-radius: 8px"> <br />

                                <div class="form-group">

                                    <label for="used">ชื่อผู้ใช้</label>
                                    <input type="text" class="form-control" id="used"  name="used"   placeholder="ชื่อผู้ใช้" required oninvalid="this.setCustomValidity('กรุณากรอกชื่อผู้ใช้')" oninput="setCustomValidity('')" onKeyUp="check()">
                                </div>
                                <div class="form-group">
                                    <label for="pwd">รหัสผ่าน</label>
                                    <input type="password" class="form-control" id="pwd" name="pwd" placeholder="รหัสผ่าน" required oninvalid="this.setCustomValidity('กรุณากรอกชือรหัสผ่าน')" oninput="setCustomValidity('')" onKeyUp="check()">
                                </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 />
                            </form>
                        </div>
                    </div>
                </div>

                <div class="col-lg-3 col-md-3 col-sm-3">
                    <!--  -->


                </div>
            </div>
        </section>
        <footer id="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/sweetalert.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/sweetalert.min.js"></script>
    <script type="text/javascript">
       <?php echo $swal ?>;
    </script>

    <script type="text/javascript">
       function check() {
         var used = document.getElementById("used");
         used.value = used.value.split('/');
        var pwd = document.getElementById("pwd");
        pwd.value = pwd.value.split('/');
        }
    </script>



</body>

</html>
