

 
 <div class="row">
  
   	 	<div class="col-md-4">
				<div class="panel-body">

				<div class="widget-content nopadding table_holder table-responsive" >
			
	
				
	<?PHP
	
$mydate=date('Y-m-d');

				echo $this->session->flashdata('msg'); 

$currentimg_id = rand(100, 9900000).time();

                  echo form_open('user/addcomputerkey' , array('class' => 'form-horizontal form-groups-bordered validate',  'id' => 'signup','enctype' => 'multipart/form-data'));

		 if(validation_errors()):?>

<?php endif;?>
<input type="hidden" name="view" value="<?php echo base_url();?>user/viewmycomputerno?randomitemidentifier=<?php   {echo  $itemid;}  ?>&computerno=<?php   {echo  $computerno;}  ?>"id="view" class="form-control" required placeholder="Enter status">

 	<input type="hidden" name="itemid"   value="<?php if(isset($itemid)) {echo $itemid; }?>"  class="form-control">


  <div class="form-group">
    <label for="inputstatus" class="col-sm-2 control-label">Status</label>
    <div class="col-sm-10">
	<select class="form-control" id="status" name="status" required>
	
	<option value="" >--Select status---</option>
			<option value="1" > Active</option>


		<option value="New" > New</option>

	<option value="Submitted" > Submitted</option>

	<option value="Closed" > Closed</option>
	<option value="Pending"  > Pending</option>
	<option value="Cancelled"  > Cancelled</option>

</select>
		
						<span class="text-danger"><?php echo form_error('status'); ?>

	</div>
  </div>
  

<div class="form-group">
    <label for="inputextensiontype" class="col-sm-2 control-label">Type</label>
    <div class="col-sm-10">
	<select class="form-control"  id="extensiontype" name="extensiontype" required>
	
	<option value="" >--Select status---</option>

	<option value="New" > New Key</option>

	<option value="Adjustment" > Adjustment</option>

</select>
		
						<span class="text-danger"><?php echo form_error('extensiontype'); ?>

	</div>
  </div>
  




	
	
	
	
	
	
	
	
	
	
	<div class="form-group">
    <label for="inputfromdate" class="col-sm-2 control-label">	Installed Date </label>
    <div class="col-sm-10">
	
		  		<input type="date"   name="fromdate" value="<?php echo set_value('fromdate'); ?>" id="fromdate" class="form-control" required placeholder="Enter from date">
		 
				
		<span class="text-danger"> <?php echo form_error('fromdate'); ?>
		
		</span>
	</div>
  </div>
	<div class="form-group">
    <label for="inputtodate" class="col-sm-2 control-label">	Activation/Update Date </label>
    <div class="col-sm-10">
	
		  		<input type="date" name="todate"  id="todate" value="<?php echo set_value('todate'); ?>" id="fromdate" class="form-control" required placeholder="Enter  date due">
		 
				
		<span class="text-danger"> <?php echo form_error('todate'); ?>
		
		</span>
	</div>
  </div>
	
	
	<div class="form-group">
    <label for="inputcomputerno" class="col-sm-2 control-label">	Computer Key </label>
    <div class="col-sm-10">
	
		  		<input type="text"  id="computerno"  name="computerno" value="<?php if(isset($computerno)) {echo $computerno; }?>" id="name" class="form-control" required placeholder="Enter computer key">
		 
				
		<span class="text-danger"> <?php echo form_error('computerno'); ?>
		
		</span>
	</div>
  </div>


	<div class="form-group">
    <label for="inputdescription" class="col-sm-2 control-label">	Requested By(Details)</label>
    <div class="col-sm-10">

				<textarea name="description" value="<?php echo set_value('description'); ?>"  id="description" class="form-control"  placeholder="Enter description"></textarea>
			
		<span class="text-danger"> <?php echo form_error('description'); ?>
		
		</span>
	</div>
  </div>
	<div class="form-group">
    <label for="inputdescription" class="col-sm-2 control-label">	Description</label>
    <div class="col-sm-10">

				<textarea name="description" value="<?php echo set_value('description'); ?>"  id="description" class="form-control"  placeholder="Enter description"></textarea>
			
		<span class="text-danger"> <?php echo form_error('description'); ?>
		
		</span>
	</div>
  </div>
 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="computer" name="btn_addcomputer" class="btn btn-primary"> Activate Key   </button>
<a class="btn btn-primary" href="<?php echo base_url(); ?>user/viewmember"> Back?</a>

    </div>
  </div>
  
  

 

			<?PHP
		echo form_close();
		
		?>
		
		</div>
</div>
</div>
   	<div class="col-md-8">
	
  
		<div class="panel panel-default" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title" id="redcolor" >
            		<i class="entypo-plus-circled"></i>
							

				View category/group
            	</div>
            </div>
			<div class="panel-body">

				<div class="widget-content nopadding table_holder table-responsive" >				
	<?PHP
				echo $this->session->flashdata('activemsg'); 								?>	
										
					<div class="row">
						<div class="col-md-12">
							
										<div class="panel-body">
	
									
									
				<table cellpadding="0" cellspacing="0" border="0" class="table  table-striped" id="example" style="border-color:#CCCCCC; width:100%;"  >

             <thead>
         <tr>
     <th>No#</th>
	     <th>Request Date</th>
     <th>From Date</th>
     <th>To Date</th>

	  <th>Computer Key</th>	 
		   <th>Status</th> 
	   		  <th>Name</th> 
 <th>Phone</th> 
  <th>Type</th> 
  <th>Description</th> 

	<td> more</td>	
	

                 </tr>
             </thead><tbody>
<?php

 if(!is_array($compkeys)) 

 {


   echo "<tr  style='margin-bottom:0px;margin-top:0px;' '>";
      echo "<td colspan='6'>";
    
       echo '<div class="alert alert-warning text-center">There no records found..</div>';
    echo "</td>";
   echo "</tr>";
    }else {
?>
    
             <?php 
  
  	foreach ($compkeys as $c): 



             ?>



             <tr>
                
            <?php 
$id=$c->id;
		     $counter=$this->usermodel->countdata('grouping','categoryid',$id,'status',1);


?>

              

<td><?php echo $c->id ; ?></td>
  <td><?php echo $c->createdate ; ?></td>
  <td><?php echo $c->fromdate ; ?></td>
  <td><?php echo $c->todate ; ?></td>
  <td><?php echo $c->computerno ; ?></td>
  <td><?php echo $c->status ; ?></td>
  <td><?php echo $c->name ; ?></td>
     <td><?php echo $c->phone ; ?></td>
	      <td><?php echo $c->extensiontype ; ?></td>
	      <td><?php echo $c->description ; ?></td>



 
  <td>
					<div class="btn-group">
                                    <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown">
                                        More <span class="caret"></span>
                                    </button>
								
                                    <ul class="dropdown-menu dropdown-primary pull-right" role="menu">
                                        
                                        <!-- teacher EDITING LINK 
                                      
										
											  <li> 
										 <a class="btn btn-danger managebtn" id="managebtndelete"		 data-id='<?php echo  $c->id;?>'    data-toggle='modal' data-target='#myModal<?php  $c->id; ?>'>	 


                                                <i class="glyphicon glyphicon-pencil"></i>
																Delete
                                                </a>
                                                        </li>
									
									-->
                                        <li class="divider"></li>
                                        
                                     	  <li> 

	 <a class="btn btn-primary editbtn" id="editbtn" data-computerno='<?php echo  $c->computerno;?>' data-extensiontype='<?php echo  $c->extensiontype;?>' data-status='<?php echo  $c->status;?>' data-todate='<?php echo  $c->todate;?>' data-fromdate='<?php echo  $c->fromdate;?>' data-description='<?php echo  $c->description;?>'  data-id='<?php echo  $c->id;?>' data-toggle='modal' data-target='#editProductModel'> 	 

                                                <i class="glyphicon glyphicon-pencil"></i>
																Update
                                                </a>
                                                        </li>
                                        
                                    </ul>
										
                                </div>
</td>
		 
		 
		 
		 
		 
             </tr>

	<?php endforeach;} ?>

           
<tbody>
        </table>

  <div class="col-md-12 text-center">    <?php echo $links; ?>
					   		<span style="color:red; font-size:20px"><?php  echo $total_rows. "   Document in the system. " ;?>    </span>

        
        </div>
									
									
									
					</div>




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

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

 
</div>


















