<link rel="stylesheet" href="<?php echo base_url();?>newadminassets/plugins/css/bootstrap-tagsinput.css">
 <div class="content-wrapper">
            <!-- Content Header (Page header) -->
            <section class="content-header">
                <h1>
                   Add Agents 
                    <small>Add Agents Information</small>
                </h1>
                <ol class="breadcrumb">
                    <li><a href="<?php echo base_url();?>"><i class="fa fa-pencil-square-o"></i>Dashboard</a></li>
                    <li class="active">Add Agents</li>
                </ol>
            </section>
            <!-- Main content -->
            <div class="content">
                <div class="container-fluid">
                    <!-- Basic forms -->
                    <div class="row">
                    <h3 class="panel-heading">Agents Information</h3>
                     <?php if($this->session->flashdata("msg")){echo $this->session->flashdata("msg");}?>
                        
                        <div class="col-md-5">
                          <form action="<?php echo base_url();?>admin/add_agent" method="post" enctype="multipart/form-data">
                            <div class="panel">
                               
                                <div class="panel-body">
                                 
                                 		
                                        <div class="row">
                                        
                                            <label class="col-md-2 label-on-left">Name</label>
                                            <div class="col-md-9">
                                                <div class="form-group label-floating is-empty">
                                                    <label class="control-label"></label>
                                                    <input type="text" required name="name" class="form-control">
                                                </div>
                                            </div>
                                        </div>
                                      <div class="row">
                                        
                                            <label class="col-md-2 label-on-left">Email</label>
                                            <div class="col-md-9">
                                                <div class="form-group label-floating is-empty">
                                                    <label class="control-label"></label>
                                                    <input type="text" required name="email" class="form-control">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                        
                                            <label class="col-md-2 label-on-left">Mobile</label>
                                            <div class="col-md-9">
                                                <div class="form-group label-floating is-empty">
                                                    <label class="control-label"></label>
                                                    <input type="mobile" required name="mobile" class="form-control">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="row">
                                        
                                            <label class="col-md-2 label-on-left">Password</label>
                                            <div class="col-md-9">
                                                <div class="form-group label-floating is-empty">
                                                    <label class="control-label"></label>
                                                    <input type="password" required name="password" class="form-control">
                                                </div>
                                            </div>
                                        </div>
                                        <button type="submit" class="btn btn-primary btn-outline">Add Agent</button>
                                   
                                </div>
                            </div>  </form>
                        </div>
                        <div class="col-md-7">  <div class="panel">
                               
                                <div class="panel-body">
                        	<h4>List All Agents</h4>
                            <table class="table tabl-condensed">
                            	<thead><tr><th>S.No.</th><th>Name</th><th>Email/Phone</th><th>Action</th></tr></thead>
                                <tbody>
                                <?php $i=1;foreach($agents as $age){?>
                                	<tr>
                                    <td><?php echo $i;?></td>
                                    <td><?php echo $age->username;?></td>
                                    <td><?php echo $age->email;?><br/><?php echo $age->mobile;?></td>
                                    <td><a href="<?php echo $age->id;?>" class="btn btn-xs btn-danger agedelete">Delete</a></td>
                                    </tr>
                                <?php $i++;}?>
                                </tbody>
                            </table>
                            </div></div>
                        </div>
                   
                    </div>
                  
                </div>
            </div>
            <!-- /.content -->
        </div>
        <!-- /.content-wrapper -->
        <!-- Main Footer -->
        <footer class="main-footer">
            <!-- To the right -->
           
            <!-- Default to the left -->
            <strong>Copyright &copy; 2017 <a href="#">Vector Khazana</a>.</strong> All rights reserved.
        </footer>
    </div>
    <!-- ./wrapper -->
    <!-- REQUIRED JS SCRIPTS -->
    <script src="<?php echo base_url();?>newadminassets/plugins/js/bootstrap.js"></script>
    <script>
	$(document).ready(function(){
		$(".agedelete").click(function(e){e.preventDefault();
		if (!confirm("Sure you want to delete?")){
				  return false;
				}
			var id=$(this).attr("href");$(this).closest("tr").remove();
			$.ajax({
							 type: "POST",
							 url: '<?php echo base_url();?>admin/agedelete',
							 data: {id:id},
							 success: function(response){
								 //alert(response);
							 }
							 });
		});
	});
	</script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/countUp.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/raphael.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/morris.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/material.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/ripples.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/jquery.validate.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/jquery.inputmask.bundle.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/bootstrap-tagsinput.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/select2.full.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/bootstrap-colorpicker.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/moment.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/jquery.bootstrap-wizard.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/bootstrap-datetimepicker.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/markdown.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/to-markdown.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/bootstrap-markdown.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/jquery.bootstrap-wizard.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/js/jquery.slimscroll.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/summernote/summernote.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/plugins/tinymce/tinymce.min.js"></script>
    <script src="<?php echo base_url();?>newadminassets/js/form.js"></script>
    <script src="<?php echo base_url();?>newadminassets/js/app.js"></script>
    <!-- Color Switcher -->
    
    
    <!-- END Skin switcher -->
</body>


<!-- Mirrored from www.upplanet.com/bighero/outlay-demo/inc/forms/basic-form.html by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 08 Oct 2017 05:50:54 GMT -->
</html>
