     <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Channellimo
            <small>Preview</small>
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">Forms</a></li>
            <li class="active">User</li>
          </ol>
        </section>
        
        <section class="content">
        	<div class="col-lg-12">
             <form action="" method="post">
             	<div class="box box-primary col-lg-8">
                	<div class="box-header with-border">
						<h3 class="box-title">FORM EDIT</h3>
					</div>
                    
                    <div class="form-group col-lg-8">
					   <label for="name">Name</label>
					   <input id="name" name="name" class="form-control" type="text" placeholder="Enter Username" value="<?php echo $management->username?>">
					</div>
                    
                    <div class="form-group col-lg-8">
					   <label for="name">Email</label>
					   <input id="email" name="email" class="form-control" type="text" placeholder="Enter Email" value="<?php echo $management->email?>">
					</div>
                    
                    <div class="form-group col-lg-5">
                       <label for="status">Position</label>
                       <select class="form-control" name="position">
                        <?php 
			  			$sql = $this->db->query('SELECT * FROM `roles` ORDER BY `id`');
			  			foreach ($sql->result() as $role)
			  			{  
			  			?>
             			 <option value="<?php echo $role->id ?>" <?php echo $management->role_id == $role->id ? 'selected' : '' ?>><?php echo $role->name ?></option> 
              			<?php }?>
						</select>
                    </div>
                    
                    <?php 
			  		if($management->banned == 1){
					 	$authorize = "Block";
					}elseif($management->banned == 0){
					 	$authorize = "Allow";	
					}else{
					 	$authorize = "null";	
					}
			        ?>

                    <div class="form-group col-lg-8">
                    	<label for="status">Status</label>
						<div class="col-lg-12">
                        <input type="radio" name="status" class="flat-red" value="0" <?php echo $authorize == 'Allow' ? 'checked' : '' ?>> Allow 
                        <input type="radio" name="status" class="flat-red" value="1" <?php echo $authorize == 'Block' ? 'checked' : '' ?>> Block
                        </div> 
                    </div>
                    
                    
                    
                    <div class="form-group col-lg-8">
                     <input type="submit" name="update_management" value="Update" class="btn btn-primary"/>
                     <button type="reset" class="btn btn-danger">Reset</button>
                    </div>
                    
                    
                </div>
             </form>
            </div>
        </section>
     </div>
