<?php
session_start();
include './connection_sql.php';
if ($_SESSION["CURRENT_USER"] == "") { 
    exit('Please Logging Again..');
} 
if ($_SESSION['company'] == "") { 
    exit('Please Logging Again..');
} 
?>

<section class="content">

    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title"><b>Delete User</b></h3>
        </div>
        <form name= "form1" role="form" class="form-horizontal">

            <div class="box-body">

                <input type="hidden" id="tmpno" class="form-control">

                <input type="hidden" id="item_count" class="form-control">


                <div class="form-group">

                    <a onclick="newent();" class="btn btn-default btn-sm">
                        <span class="fa fa-user-plus"></span> &nbsp; New
                    </a>
                    <a onclick="Delete1();" class="btn btn-danger btn-sm">
                       <span class="glyphicon glyphicon-trash"></span> &nbsp; DELETE
                    </a>

                </div>

                <div id="msg_box"  class="span12 text-center"  >
                </div>
                <input type="hidden"  id="tmpno" >

                <div class="form-group">
                    <label class="col-sm-2 control-label">User Name</label>
                    <div class="col-sm-2">
                        <select name="user_name" id="user_name"  class="text_purchase3 col-sm-9 form-control" >
                            <option value=""></option>
                            <?php
                            require_once("./connection_sql.php");

                            $sql = "Select user_name from user_mast_acc order by user_name";
                            foreach ($conn->query($sql) as $row) {
                                echo "<option value=\"" . $row["user_name"] . "\">" . $row["user_name"] . "</option>";
                            }
                            ?>
                        </select>
                    </div>
                </div>


            </div>
        </form>
    </div>

</section>
<script src="js/del_user.js"></script>

