<link rel="stylesheet" href="<?php echo base_url();?>assets/js/validationEngine.jquery.css" type="text/css" />
<link rel="stylesheet" href="<?php echo base_url();?>assets/css/cust_paginition.css" type="text/css" />
<div class="" id="addUserProfile">
    <div class="modal-dialog">
        <div class="modal-content">
            <!-- Modal heading -->
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h3 class="modal-title" align="center">Update Access Details</h3>
            </div>
            <!-- // Modal heading END -->
            <!-- Modal body -->
            <div class="modal-body">
                <div class="innerAll">
                    <div class="innerLR">
                        <div class = "form-group mmar" id="all_msgs" style="text-align: center"></div>
                        <form class="form-horizontal" role="form" id="add_user" method="post" action="<?php echo base_url();?>index.php/users/fnEditAccess">
                            <div class="form-group mmar">
                                <label  class="col-sm-3 control-label text-center">Name: </label>
                                <div class="col-sm-6">
                                    <input type="text" class="form-control validate[required] text-input" value="<?php echo $access_details['name']?>" id="name" name="name"/>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-4 col-sm-8">
                                    <button type="submit" class="btn btn-primary" id="update_access">Submit</button>
                                    <button type="submit" class="btn btn-primary">Cancel</button>
                                </div>
                            </div>
                            <input type="hidden" name="system_base_url" id="system_base_url" value="<?php echo base_url();?>" >
                            <input type="hidden" name="id" id="id" value="<?php echo $access_details['id']?>" >
                            <input type="hidden" name="prev_name" id="prev_name" value="<?php echo $access_details['name']?>" >
                            <input type="hidden" name="prev_email" id="prev_email" value="" >
                        </form>
                    </div>
                </div>
            </div>
            <!-- // Modal body END -->
        </div>
    </div>
</div>

<script src="<?php echo base_url();?>assets/js/main.js" type="text/javascript"></script>
<script src="<?php echo base_url(); ?>assets/js/users.js"></script>
<script src="<?php echo base_url();?>assets/js/jquery.validationEngine-en.js" type="text/javascript"></script>
<script src="<?php echo base_url();?>assets/js/jquery.validationEngine.js" type="text/javascript"></script>

<script>
    $(document).ready(function() {
        $("#add_user").validationEngine();
    });
</script>