
		 	<link href="<?php echo base_url(); ?>assets/keyboard/jQKeyboard.css" rel='stylesheet' type='text/css' />

	 <script src="<?php echo base_url(); ?>assets/keyboard/jquery-2.1.4.min.js"></script>

			 <script src="<?php echo base_url(); ?>assets/keyboard/jQKeyboard.js"></script>

		
		
		
		
		
		<style type="text/css">
            #jQKeyboardContainer
            {
                margin-left: 336px !important;
            }
        </style>
		
		
        <script type="text/javascript">
            $(function(){
                var keyboard = {
                    'layout': [
                        // alphanumeric keyboard type
                        // text displayed on keyboard button, keyboard value, keycode, column span, new row
                        [
                            [
                                ['`', '`', 192, 0, true], ['1', '1', 49, 0, false], ['2', '2', 50, 0, false], ['3', '3', 51, 0, false], ['4', '4', 52, 0, false], ['5', '5', 53, 0, false], ['6', '6', 54, 0, false], 
                                ['7', '7', 55, 0, false], ['8', '8', 56, 0, false], ['9', '9', 57, 0, false], ['0', '0', 48, 0, false], ['-', '-', 189, 0, false], ['=', '=', 187, 0, false],
                                ['q', 'q', 81, 0, true], ['w', 'w', 87, 0, false], ['e', 'e', 69, 0, false], ['r', 'r', 82, 0, false], ['t', 't', 84, 0, false], ['y', 'y', 89, 0, false], ['u', 'u', 85, 0, false], 
                                ['i', 'i', 73, 0, false], ['o', 'o', 79, 0, false], ['p', 'p', 80, 0, false], ['[', '[', 219, 0, false], [']', ']', 221, 0, false], ['&#92;', '\\', 220, 0, false],
                                ['a', 'a', 65, 0, true], ['s', 's', 83, 0, false], ['d', 'd', 68, 0, false], ['f', 'f', 70, 0, false], ['g', 'g', 71, 0, false], ['h', 'h', 72, 0, false], ['j', 'j', 74, 0, false], 
                                ['k', 'k', 75, 0, false], ['l', 'l', 76, 0, false], [';', ';', 186, 0, false], ['&#39;', '\'', 222, 0, false], ['Enter', '13', 13, 3, false],
                                ['Shift', '16', 16, 2, true], ['z', 'z', 90, 0, false], ['x', 'x', 88, 0, false], ['c', 'c', 67, 0, false], ['v', 'v', 86, 0, false], ['b', 'b', 66, 0, false], ['n', 'n', 78, 0, false], 
                                ['m', 'm', 77, 0, false], [',', ',', 188, 0, false], ['.', '.', 190, 0, false], ['/', '/', 191, 0, false], ['Shift', '16', 16, 2, false],
                                ['Bksp', '8', 8, 3, true], ['Space', '32', 32, 12, false], ['Clear', '46', 46, 3, false], ['Cancel', '27', 27, 3, false]
                            ]
                        ]
                    ]
                }
                $('input.jQKeyboard').initKeypad({'keyboardLayout': keyboard});
            });
        </script>



  <div class="container-fluid">
 <div class="row">


  <div class="col-md-12">
   
		
		
		
		
		
		
		   <div class="panel panel-primary" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title"  id="redcolor">
            		<i class="entypo-plus-circled"></i>
				More Details
            	</div>
            </div>
			<div class="panel-body">
			<h1>
 
<?php
 $serial =trim(`wmic bios get serialnumber 2>&1`) ;
$myfinalserial= explode("SerialNumber",str_replace("", "", $serial));
$finalserial = $myfinalserial[1];



$localIP = getHostByName(getHostName());
if($finalserial==""){
$finalserial=$localIP;
}	


echo "System Key: $finalserial";
?>	



	</h1>

<a class="btn btn-success" href="<?php echo base_url(); ?>login"><span class="glyphicon glyphicon-user"></span> Login NOW</a>

<a class="btn btn-warning" href="<?php echo base_url(); ?>config"> Activate NOW</a>
<a class="btn btn-success" href="<?php echo base_url(); ?>newserial"> Submit New Key</a>
<a class="btn btn-info" href="<?php echo base_url(); ?>extendserial"> Request For New Date Extension/ Renewal </a>


<p>
    <div class="modal-body">
      
	  	

				
				<?php
  if(isset($msg)) {
  ?>
 <div class="btn-info">
<h2>
<?php
echo $msg;
 ?>  <a href="<?php echo base_url();?>serial" class="btn btn-success">Click here to refresh</a>
</h2>
</div>
 <?PHP
  
  //
  }
				
				
				

//$session_data = $this->session->userdata('logged_in');
 $myurl= base_url();
 $mydate=date("Y-m-d H:59:59");
				echo $this->session->flashdata('msg'); 
		               ///  echo form_open('getkey' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
                 echo form_open('https://erp.robisearchltd.com/getcompserial' , array('class' => 'form-horizontal form-groups-bordered validate', 'target' => '_blank', 'id' => 'signup','enctype' => 'multipart/form-data'));

                // echo form_open('getcompserial' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>

 								<input type="hidden" name="computerno" value="<?php if(isset($finalserial)) {echo $finalserial; }?>"id="code" class="form-control" required placeholder="finalserial">
 								<input type="hidden" name="myurl" value="<?php if(isset($myurl)) {echo $myurl; }?>"id="code" class="form-control" required placeholder="userid">



<input type="hidden" name="mydata" value="mykey"  id="companyid" class="form-control" required placeholder="Enter status">
 <div class="form-group">
    <label for="inputtype" class="col-sm-2 control-label">Request Type?</label>
    <div class="col-sm-10">
	<select class="form-control" name="type"  id="type" required>
	
	<option value=""  >---Select Type-</option>
	<option value="Online"   selected="selected">--Existing Online Request-</option>
	<!--	<option  value="Offline"  >--Existing Offline Request-</option>

-->
</select>
		

	</div>
  </div>


 <div class="form-group" style="display:none">
    <label for="inputcategory" class="col-sm-2 control-label">Category?</label>
    <div class="col-sm-10">
	<select class="form-control" name="category"  id="category" required>
	
	<option  value=""  >---Select Category-</option>
	<option value="mykey" selected="selected" >--My computer-</option>
		<option  value="otherkey"  >--Other computer Licence Key-</option>


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

	</div>
  </div>

  
	
	 	<div class="form-group" style="display:none">
    <label for="inputmykey" class="col-sm-2 control-label">My Computer Licence  Key </label>
    <div class="col-sm-10">
	
		  		<input type="password" name="mykey" value="<?php if(isset($finalserial)) {echo $finalserial; }?>" class="form-control" required  placeholder="Enter password if my computer ">
		 
				
		<span class="text-danger"> <?php echo form_error('mykey'); ?>
		
		</span>
	</div>
  </div>
		<div class="form-group" style="display:none">
    <label for="inputothermykey" class="col-sm-2 control-label">Other Computer Licence Key </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="othermykey" value="<?php echo set_value('othermykey'); ?>" class="form-control"  placeholder="Enter Other Computer Licence  Key ">
		 
				
		<span class="text-danger"> <?php echo form_error('othermykey'); ?>
		
		</span>
	</div>
  </div>
       <div class="form-group">
    <label for="inputname" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label"> Requested By (Name)?</label>
    <div class="col-sm-10">
				<input type="text" name="name" value="<?php if(isset($_GET['name'])) {echo $_GET['name']; }?>"  id="name" class="form-control" required placeholder="Enter Name of the person incharge ">
    <span class="text-danger">Enter name of the person doing activation ..<?php echo form_error('name'); ?></span>
   </div>
  </div>
  
     <div class="form-group">
    <label for="inputphone" class="col-sm-4 col-lg-2 col-md-2 col-xs-4 control-label">Requested by (Phone)</label>
    <div class="col-sm-10">
				<input type="text" name="phone" value="<?php if(isset($_GET['phone'])) {echo $_GET['phone']; }?>"  id="phone" class="form-control" required placeholder="Enter phone number of the person in charge">
    <span class="text-danger">Enter Phone No of the person doing activation e.g 2547xxxxx...<?php echo form_error('phone'); ?></span>
   </div>
  </div>
 		
  
  
  
  
  
  
  
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="Confirm" name="btn_updaConfirm" class="btn btn-primary">Confirm  </button>

    </div>
  </div>

  
  
  
  					<?php echo form_close();?>
			</div>
</p>
   
   </div>
			
			
		
  
</div>
</div>

</div>