<script src="js/ajax.js" type="text/javascript"></script>
<div class="page-content-wrapper">
                <div class="page-content">
                    <div class="page-bar">
                        <div class="page-title-breadcrumb">
                            <div class=" pull-left">
                                <div class="page-title"><?php echo 'Add Salary'; ?></div>
                            </div>
                            <ol class="breadcrumb page-breadcrumb pull-right">
                                <li><i class="fa fa-home"></i>&nbsp;<a class="parent-item" href="index.html">Home</a>&nbsp;<i class="fa fa-angle-right"></i>
                                </li>
                                <li><a class="parent-item" href="">Staff</a>&nbsp;<i class="fa fa-angle-right"></i></li><li class="active">Add Salary</li>
                            </ol>
                        </div>
                    </div>
<div class="row">
                        <div class="col-md-12 col-sm-12">
                            <div class="card card-box">
                                <div class="card-head">
                                    <header>Add User</header>                                    
                                </div>
                                <div class="card-body" id="bar-parent1">
                                	<?php if(isset($error)) { ?> 
                                	<div class="alert alert-danger"><?php echo $error[0]; ?></div>
                                	<?php } else if(isset($success) && $success!=''){ ?>                                		
                                		<div class="alert alert-success"><?php echo $success; ?></div>
                                	<?php } else if(isset($_REQUEST['success'])){ ?>                                		
                                		<div class="alert alert-success"><?php echo $_REQUEST['success']; ?></div>
                                	<?php } ?>
                                	
                                	<form name="add_user_form" method="post" action="" class="form label-inline">
							              	<div class="form-body"> 
							              		<div class="form-group row">
	                                                <label class="control-label col-md-3">User Name</label>
	                                                <div class="col-md-4">                                                    
	                                                    <input name="user_name" type="text" id="user_name" class="form-control" value="<?php echo isset($user_name)?$user_name:''; ?>" />
	                                                </div>
	                                            </div>
	                                            <div class="form-group row">
	                                                <label class="control-label col-md-3">Password</label>
	                                                <div class="col-md-4">                                                    
	                                                    <input name="user_password" type="password" id="user_password" class="form-control" value="" />
	                                                </div>
	                                            </div>
	                                            <div class="offset-md-3 col-md-9">	                                            	
	                                            		<button type="submit" name="add_user" class="btn btn-info">Add</button>	                                            		                                          	
	                                            </div>
							              	</div> 
							           </form>
							           
      
                                </div>
                            </div>
                        </div>
                        
                        
                        <div class="col-md-12 col-sm-12">
                            <div class="card card-box">
                                <div class="card-head">
                                    <header>Admin Users</header>                                  
                                </div>
                                
                                <?php while($row = mysqli_fetch_assoc($getAdmin)) { ?>                                    	
							              <form action="" method="post" name="form<?php echo $row['admin_id']; ?>">
							              	<table style="margin-left: 10px; margin-top: 17px;" width="90%">
							                <tr>
							                  <td width="20%" class="black-bold"><?php echo $row['ad_username']; ?></td>
							                  <td width="20%"><input type="password" value="" name="password<?php echo $row['admin_id']; ?>" /></td>
							                  <td width="10%">
											  		<button class="btn btn-info" type="submit" name="submit_pass[]" value="Change">Change</button>
							                    	<input type="hidden" value="<?php echo $row['admin_id']; ?>" name="admin_id[]" />
							                   </td>
							                  <td width="10%">
											  	<button class="btn btn-default" type="submit" name="delete_user[]" value="Delete">Delete</button
											  </td>
											  <td width="10%">
											  	<button class="btn btn-primary" type="submit" name="access_control[]" value="Access Control">Access Control</button>
											  </td>
							                </tr>
							                </table>
							              </form>
							      <?php } ?>
                        
                        	</div>
                        </div>
                        
                        
                        
         </div>
	</div>
</div>
