
		 	<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
  if(isset($msg)) {
  ?>
 <div class="btn-info">
<h2>
<?php
echo $msg;
 ?>  <a href="<?php echo base_url();?>newserial" class="btn btn-success">Click here to refresh</a>
</h2>
</div>
 <?PHP
  
  
  }
echo $this->session->flashdata('msg'); 
    $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>




<p>
    <div class="modal-body">
      					    <a data-toggle='modal' data-target='#addModal' class="btn btn-warning">Submit Business Key for Activation </a>

	  	<a class="btn btn-success" href="<?php echo base_url(); ?>serial"><span class="glyphicon glyphicon-user"></span> Go Back</a>

   </div>
			
		
	
	
		<div id="addModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Add new  Business Details</h4>
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
				
				echo "<b> System Key For : $finalserial". "<br><br><br></b>";
//$session_data = $this->session->userdata('logged_in');

 $myurl= base_url();


				echo $this->session->flashdata('msg'); 
		      $mydate=date("Y-m-d");
			  
			  		      $myyear=date("Y")+1;
						  		      $mymonth=date("m-d");

			$finalnextyeardate=$myyear."-". $mymonth;
           echo form_open('https://erp.robisearchltd.com/addmember' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));

               //  echo form_open('addmember' , 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="status" value="Submited"id="status" class="form-control" required placeholder="Enter status">
<input type="hidden" name="view" value="config"id="view" class="form-control" required placeholder="Enter status">
 								<input type="hidden" name="myurl" value="<?php if(isset($myurl)) {echo $myurl; }?>"id="code" class="form-control" required placeholder="userid">

<input type="hidden" name="categoryid" value=""id="categoryid" class="form-control" required placeholder="Enter status">
<input type="hidden" name="category" value="member"id="member" class="form-control" required placeholder="Enter member">
<input type="hidden" name="branchid" value="1"id="branchid" class="form-control" required placeholder="Enter member">

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

				

 <div class="form-group">
    <label for="inputcompany" class="col-sm-2 control-label">Business/Company Name<span style="color:red;"></span></label>
    <div class="col-sm-10">
	
		  		<input type="text" name="company" value="<?php echo set_value('company'); ?>" class="form-control"  placeholder="Enter company name if any">
		 
				
		<span class="text-danger"> <?php echo form_error('company'); ?>
		
		</span>
	</div>
  </div>
		








	<div class="form-group">
    <label for="inputfirstname" class="col-sm-2 control-label">Business Owner Names<span style="color:red;">*</span></label>
    <div class="col-sm-10">
	
		  		<input type="text" name="firstname" value="<?php echo set_value('firstname'); ?>" class="form-control" required placeholder="Enter Names of the business owner">
		 
				
		<span class="text-danger"> <?php echo form_error('firstname'); ?>
		
		</span>
	</div>
  </div>
  
  
  	<div class="form-group">
    <label for="inputphone" class="col-sm-2 control-label">First Phone No. <span style="color:red;">*</span></label>
    <div class="col-sm-10">
	
		 			  		<input type="text" name="phone"   minlength="12"	maxlength="14"   value="<?php echo set_value('phone'); ?>" class="form-control" required placeholder="Enter phone e.g 254712345678">

				
		<span class="text-danger"> e.g 254712345678 <?php echo form_error('phone'); ?>
		
		</span>
	</div>
  </div>
   	<div class="form-group">
    <label for="inputphoneaddress_1" class="col-sm-2 control-label">Second Phone No. </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="address_1" value="<?php echo set_value('address_1'); ?>" class="form-control"  placeholder="Enter Phone 2 or alternative">
		 
				
		<span class="text-danger"> <?php echo form_error('address_1'); ?>
		
		</span>
	</div>
  </div>
  
  	<div class="form-group">
    <label for="inputidno" class="col-sm-2 control-label">	Customer  ID Number		 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="idno"   value="<?php echo set_value('idno'); ?>" class="form-control"  placeholder="Enter ID.No if any ">
		 
				
		<span class="text-danger"> <?php echo form_error('idno'); ?>
		
		</span>
	</div>
  </div>
  
  
  
     <div class="form-group">
    <label for="inputidnumber" class="col-sm-2 control-label">	Business PIN  Number </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="idnumber" minlength="11"	maxlength="14" value="<?php echo set_value('idnumber'); ?>"   class="form-control"  placeholder="Enter Pin if any">
		 
				
		<span class="text-danger"> <?php echo form_error('idnumber'); ?>
		
		</span>
	</div>
  </div>
  


 
   	<div class="form-group">
    <label for="inputphonegender" class="col-sm-2 control-label">	Gender	 </label>
    <div class="col-sm-10">
	
	<select class="form-control" name="gender" >
	
	<option value=""  >---Select Gender---</option>
	<option value="female"  >female</option>
		<option value="male"  >male</option>
	</select>		 
				
		<span class="text-danger"> <?php echo form_error('gender'); ?>
		
		</span>
	</div>
  </div>
  
   <div class="form-group">
    <label for="inputcountry" class="col-sm-2 control-label">Country?</label>
    <div class="col-sm-10">
	<select class="form-control" name="country" >
	


	
	<?php 
					 
			$mycountry = $this->nationmodel->populatenation();
	


if(is_array($mycountry)) {

   foreach($mycountry as $mycountryrow){

   //echo $courserow->coursename;
    ?>
					<option value="<?=  $mycountryrow->id;   ?>"><?=  $mycountryrow->name; ?></option>



	<?php

}} else {
    echo 'No country available.';
}
	
?>
	<option value=""  >---Select country---</option>
</select>
		
						<span class="text-danger"><?php echo form_error('country'); ?>

	</div>
  </div>
  
  
  
  
    	<div class="form-group">
    <label for="inputemail" class="col-sm-2 control-label">	Email</label>
    <div class="col-sm-10">
	
		  		<input type="email" name="email" value="<?php echo set_value('email'); ?>" class="form-control"  placeholder="Enter Your email">
		 
				
		<span class="text-danger"> <?php echo form_error('email'); ?>
		
		</span>
	</div>
  </div>
  

  
  
  
  
    
  	<div class="form-group">
    <label for="inputcity" class="col-sm-2 control-label">	Town / Exact Location	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="city" value="<?php echo set_value('city'); ?>" class="form-control"  placeholder="Enter City or town">
		 
				
		<span class="text-danger"> <?php echo form_error('city'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  
 
  
  	
 
  
    
  	<div class="form-group">
    <label for="inputentrydate" class="col-sm-2 control-label">	Installation Date  	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="entrydate" value="<?php echo set_value('entrydate',$mydate); ?>" class="form-control"  placeholder="Enter Installation Date">
		 
				
		<span class="text-danger"> <?php echo form_error('entrydate'); ?>
		
		</span>
	</div>
  </div>
  	<div class="form-group" style="display:none">
    <label for="inputzip" class="col-sm-2 control-label">Due  Date	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="zip" value="<?php echo set_value('zip',$finalnextyeardate); ?>" class="form-control"  placeholder="Enter Renewal Date">
		 
				
		<span class="text-danger"> <?php echo form_error('zip'); ?>
		
		</span>
	</div>
  </div>
  
  
  	<div class="form-group" style="display:none">
    <label for="inputwebsite" class="col-sm-2 control-label">Renewal	Comments	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="website" value="<?php echo set_value('website'); ?>" class="form-control"  placeholder="Enter Comments if any">
		 
				
		<span class="text-danger"> <?php echo form_error('website'); ?>
		
		</span>
	</div>
  </div>
  
    
	
	  	<div class="form-group">
    <label for="inputsalesperson" class="col-sm-2 control-label">	Sales Person  Name	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="salesperson" value="<?php echo set_value('city'); ?>" class="form-control"  placeholder="Enter sales person">
		 
				
		<span class="text-danger"> <?php echo form_error('salesperson'); ?>
		
		</span>
	</div>
  </div>
	
	
	
	
	
  	<div class="form-group" style="display:none">
    <label for="inputrenewaldetails" class="col-sm-2 control-label">	Renewal Details	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="renewaldetails" value="<?php echo set_value('renewaldetails'); ?>" class="form-control"  placeholder="Enter renewaldetails if any">
		 
				
		<span class="text-danger"> <?php echo form_error('renewaldetails'); ?>
		
		</span>
	</div>
  </div>
  
  
  
	<div class="form-group">
    <label for="inputcomments" class="col-sm-2 control-label">	Company Address details / Geo Location </label>
    <div class="col-sm-10">

				<textarea name="comments" value="<?php echo set_value('comments'); ?>"  class="form-control"  placeholder="Enter comments"></textarea>
			
		<span class="text-danger"> <?php echo form_error('comments'); ?>
		
		</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"> Installed 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">Installed by (Phone No)</label>
    <div class="col-sm-10">
				<input type="text" name="myphone" 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="member" name="btn_addmember" class="btn btn-default"> Add Customer   </button>

    </div>
  </div>
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

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

	
		
  
</div>
</div>

</div>