<!-- End Header -->
<?php $this->load->view('header'); ?>
<?php //$this->load->view('security'); ?>
<?php //include("header.php");?>
<div class="container content">
        <div class="row">
            <!-- Begin Sidebar Menu -->
              <?php $this->load->view('left_bar'); ?>
            <!-- End Sidebar Menu -->

            <!-- Begin Content -->
            <div class="col-md-9">
                <!--Basic Table-->
				<div class="panel panel-green margin-bottom-40">
                    <div class="panel-heading">
                        <h3 class="panel-title"><i class="fa fa-tasks"></i>Add User</h3>
						
                    </div>
                    <div class="panel-body">  
					<?php  echo validation_errors(); ?>
					<form class="form-horizontal" role="form" action="<?php base_url();?>add_user" method="post" name="userform" onSubmit="return add_user()">
                            <div class="form-group">
                                <label for="inputEmail1" class="col-lg-2 control-label">Name*</label>
                                <div class="col-lg-10">
                                    <input type="text" name="name" id="name" class="form-control" placeholder="Enter Your Name">
                                </div>
                            </div>
							 <div class="form-group">
                                <label for="inputEmail1" class="col-lg-2 control-label">Father Name*</label>
                                <div class="col-lg-10">
                                    <input type="text" name="father_name" id="father_name" class="form-control" placeholder="Enter Father Name">
                                </div>
                            </div>
								 <div class="form-group">
                                <label for="inputEmail1" class="col-lg-2 control-label">Select Group*</label>
                                <div class="col-lg-10">
                                    <select class="form-control" id="group_id" name="group_id" >
      <?php 
             $qry_state=mysql_query("select * from njobn_group");
             while($row_state=mysql_fetch_array($qry_state)){
        ?>
      <option value="<?php echo $row_state['group_id'];?>"><?php echo $row_state['group_name'];?></option>
      <?php }?>
    </select>
                                </div>
                            </div>
							
							<div class="form-group">
                                <label for="inputEmail1" class="col-lg-2 control-label">CNIC*</label>
                                <div class="col-lg-10">
<input type="text" name="nic" id="nic" class="form-control" placeholder="CNIC Format (12102-5788383-5)">
                                </div>
                            </div>
							<div class="form-group">
                                <label for="inputEmail1" class="col-lg-2 control-label">Email*</label>
                                <div class="col-lg-10">
<input type="text" name="email" id="email" class="form-control" placeholder="Enter Your Email">
                                </div>
                            </div>
							
                            <div class="form-group">
                                <label for="inputPassword1" class="col-lg-2 control-label"></label>
                                <div class="col-lg-10">
                                    <input type="password" class="form-control" id="password" name="password" placeholder="Password">
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <div class="col-lg-offset-2 col-lg-10">
                                    <button type="submit" class="btn-u btn-u-green">Submit</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>          
    </div>
<!-- Footer -->
<?php $this->load->view('footer'); ?>
<!-- End Footer -->
	
</body>
</html>
