
<div class="page-content">




<?php
include("common/sitemap.php");
?>                            <div class="container-fluid">
                                


<div data-widget-group="group1">

<div class="row">
		<div class="col-md-12">
			<div class="alert alert-info mb-xl" style="height:220px">
				<h3>Add User</h3>
<div class="form-group"><form action="action-pages/add-user-action.php" method="post">
					
					<div class="col-md-12">
					<div class="col-sm-4">
						<select name="user_type" class="form-control">
						<option value="">SELECT USER ROLE</option>
						
						<option value="2">Scrutnizer</option>
						<option value="4">Sr. Desk</option>
						<option value="3">Finance</option>
						<option value="5">Enrollment Desk</option>
						</select>
					</div>
					<div class="col-sm-4">
						<input type="text" class="form-control" name="name" placeholder="Enter Name" required/>
					</div>
					
					<div class="col-sm-4">
						<input type="text" class="form-control" name="email" placeholder="Enter Email Id" required/>
					</div>

					</div>
						
<div class="col-md-12" style="padding-top:8px">
<div class="col-sm-4">
						<input type="text" class="form-control" name="contact" placeholder="Enter Contact No"/>
					</div>
					<div class="col-sm-4">
					<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(e) {
 
  
    $('#username').change(function(e){
		  $.post('common/insert2.php',{username:$(this).val()},function(data){
			
			   $('#state').html(data);
			  });
		});
		
     $('#sem').change(function(e){
		  $.post('module/insert.php',{subject:$(this).val()},function(data){
		  		
			   $('#subject').html(data);
			  });
		});		
});
</script>					
					
					
						<input type="text" class="form-control" name="username" id="username" placeholder="Enter Username"/>
						<div id="state"></div>
					</div>
					<div class="col-sm-4">
						<input type="text" class="form-control" name="password" placeholder="Enter Password"/>

				</div>
</div>

<div class="col-md-12" style="padding-top:8px"><div class="col-sm-4">
<button class="btn-primary btn" type="submit">Add User</button>&nbsp;&nbsp;&nbsp;<button class="btn-primary btn" type="reset">Reset</button>	</div></div>
</form>
<br /><br />


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

	
	
	<div class="row">
	
	
		<div class="col-md-12">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h2>User List</h2>
					<div class="panel-ctrls"></div>
				</div>
				<div class="panel-body no-padding">
					<table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%">
						<thead>
							<tr>
								<th width="3%" height="28">S.No.</th>
								<th width="12%">User Role</th>
								<th width="16%">Name</th>
								<th width="22%">Username/Password</th>
								<th width="21%">Email</th>
								<th width="15%">Contact</th>
								<th width="11%">Action</th>
							</tr>
						</thead>
						<tbody>
							
						<?php
						$GetUserList=mysql_query("SELECT * FROM `admin` ORDER BY `admin`.`role` ASC");
						while($GetUserList1=mysql_fetch_assoc($GetUserList))
						{
						$s =$_REQUEST['v'];

						$u = $s+0;

						?>
							
						<tr>
								<td width="3%" height="28" align="center"><?php echo $_REQUEST['v'] = $u+1; ?></td>
								<td width="12%"><?php

if($GetUserList1['role'] =='1')
{
echo 'Admin';
}
if($GetUserList1['role'] =='2')
{
echo 'Scruitnier';
}
if($GetUserList1['role'] =='3')
{
echo 'Finance';
}
if($GetUserList1['role'] =='4')
{
echo 'Sr. Officer';
}



?></td>
								<td width="16%"><?php echo $GetUserList1['name']; ?></td>
								<td width="22%"><?php echo $GetUserList1['username']; echo ' / '; echo $GetUserList1['password'];
								 ?></td>
								<td width="21%" height="28" align="center"><a href="mailto:<?php echo $GetUserList1['email']; ?>"><?php echo $GetUserList1['email']; ?></a></td>
								<td width="15%"><?php echo $GetUserList1['contact']; ?></td>
						  <td width="11%">
						  <?php
						  if($GetUserList1['role'] =='1')

						{
						}
						else
						{
						?>
						  Edit Delete
						  <?php
						  }
						  ?>
						  </td>						  
						</tr>
						<?php
						}
						?>	   
						
							
						</tbody>
					</table>
				</div>
				<div class="panel-footer"></div>
			</div>
		</div>
	</div>
	
	
	

	
	
	
	
	
</div>
                            </div> <!-- .container-fluid -->
                        </div>
						
						<script type="text/javascript" src="assets/js/jquery-1.10.2.min.js"></script> 							<!-- Load jQuery -->
<script type="text/javascript" src="assets/js/jqueryui-1.10.3.min.js"></script> 							<!-- Load jQueryUI -->
<script type="text/javascript" src="assets/js/bootstrap.min.js"></script> 								<!-- Load Bootstrap -->
<script type="text/javascript" src="assets/js/enquire.min.js"></script> 									<!-- Load Enquire -->

<script type="text/javascript" src="assets/plugins/velocityjs/velocity.min.js"></script>					<!-- Load Velocity for Animated Content -->
<script type="text/javascript" src="assets/plugins/velocityjs/velocity.ui.min.js"></script>

<script type="text/javascript" src="assets/plugins/wijets/wijets.js"></script>     						<!-- Wijet -->

<script type="text/javascript" src="assets/plugins/codeprettifier/prettify.js"></script> 				<!-- Code Prettifier  -->
<script type="text/javascript" src="assets/plugins/bootstrap-switch/bootstrap-switch.js"></script> 		<!-- Swith/Toggle Button -->

<script type="text/javascript" src="assets/plugins/bootstrap-tabdrop/js/bootstrap-tabdrop.js"></script>  <!-- Bootstrap Tabdrop -->

<script type="text/javascript" src="assets/plugins/iCheck/icheck.min.js"></script>     					<!-- iCheck -->

<script type="text/javascript" src="assets/plugins/nanoScroller/js/jquery.nanoscroller.min.js"></script> <!-- nano scroller -->

<script type="text/javascript" src="assets/js/application.js"></script>
<script type="text/javascript" src="assets/demo/demo.js"></script>
<script type="text/javascript" src="assets/demo/demo-switcher.js"></script>

<script type="text/javascript" src="assets/plugins/datatables/jquery.dataTables.js"></script>
<script type="text/javascript" src="assets/plugins/datatables/dataTables.bootstrap.js"></script>
<script type="text/javascript" src="assets/demo/demo-datatables.js"></script>
