<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
 <html xmlns="http://www.w3.org/1999/xhtml"> 
<?php
error_reporting(0);
?>  
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
	<meta http-equiv="Refresh" content="3; URL=bagi.php"> 
    <meta name="description" content="" />
    <meta name="author" content="" />
    <!--[if IE]>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <![endif]-->
    <title> KLASIFIKASI STATUS EKONOMI</title>
    <!-- BOOTSTRAP CORE STYLE CSS -->
    <link href="assets/css/bootstrap.css" rel="stylesheet" />
    <!-- FONTAWESOME STYLE CSS -->
    <link href="assets/css/font-awesome.min.css" rel="stylesheet" />
    <!-- PRETTYPHOTO STYLE CSS -->
    <link href="assets/css/prettyPhoto.css" rel="stylesheet" />
    <!-- CUSTOM STYLE CSS -->
    <link href="assets/css/style.css" rel="stylesheet" />    
    <!-- GOOGLE FONT -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />

</head>
   
 <body> 
    <?php
			$nama=$_POST['nama'];
			$t1=$_POST['t1'];
			$t2=$_POST['t2'];
			$t3=$_POST['t3'];
			$t4=$_POST['t4'];
			 //$sql9 = mysql_query("TRUNCATE TABLE databaru1");	
			//$query = "INSERT INTO databaru1('nama't1,t2,t3,t4) VALUES('$nama','$t1','$t2','$t3','$t4')";
			 //  $hasil = mysql_query($query);
			?>
    <div class="navbar navbar-inverse navbar-fixed-top" >
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">ZAMALUDIN ARSYAD</a>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="admin.php">BERANDA</a></li>
                     <li><a href="DATASET.PHP">DATASET</a></li>
                    <li><a href="ANALISA.PHP">ANALISA</a></li>
                     <li><a href="nilai_k2.PHP">HASIL KLASIFIKASI</a></li>
                      <li><a href="index.PHP">LOG OUT</a></li>
                </ul>
            </div>
           
        </div>
    </div>
   <!--/.NAVBAR END-->
        
       
	    <section id="BERANDA" class="text-center">
         
                <div id="carousel-example" class="carousel slide" data-ride="carousel">

                    <div class="carousel-inner">
                        <div class="item active">

                            <img src="assets/img/1.jpg" alt="" />
                            <div class="carousel-caption" >
                                <h2 class="back-light"><CENTER><table><tr><td><div class="col-md-120 col-sm-120" >
                         
                           <div class="skill-name">PROSES BERJALAN TUNGGU BEBERAPA MENIT</div> 
                            <div class="progress progress-striped active progress-adjust">
  <div class="progress-bar progress-bar-primary" role="progressbar" aria-valuenow="100" aria-valuemin="50" aria-valuemax="100" style="width: 100%">
    <span class="sr-only">100% Complete</span>


                        </td></tr></table> </CENTER>
 </section>
	   
   
 <body> 
<?php
include 'koneksi.php';
$sql9 = mysql_query("TRUNCATE TABLE spek_data");	
$k=$_POST['k'];
$v=$_POST['v'];
$jd=$_POST['jd'];
//$jtr=$_POST['jtr'];
//$ts=$jd-$jtr;
$x=100;
$v2=$jd*$v;
$v1=$v2/$x;
$v3=$jd-$v1;
$query = "INSERT INTO spek_data(k,v,jd,tr,ts) VALUES('$k','$v','$jd','$v3','$v1')";
$data2y = mysql_query($query);

?>		
<center>	
	<!..data training dan testing..>			
 <section class="services"><center>
										
                            
                         
                </div>
            <div class="col-md-4  col-sm-4">
                  <i class="fa fa-comments-o fa-5x"></i>
                             
                            <p>
                                
								
<?php
include "koneksi.php";
//isi data di training1
$sql9 = mysql_query("TRUNCATE TABLE training");	
$queryTR = mysql_query("SELECT * FROM dataset ORDER BY no asc LIMIT 0,$v3");
if(!$queryTR){
	die( mysql_error() );
}$i=1;
while($rowsTR = mysql_fetch_array($queryTR)){
	$no=$rowsTR['no'];
	$yt=$rowsTR['yt'];
	$x1=$rowsTR['x1'];
	$x2=$rowsTR['x2'];
	$x3=$rowsTR['x3'];
	$x4=$rowsTR['x4'];

			
		
$query = "INSERT INTO training(no,op,c1,c2,c3,c4) VALUES('$no','$yt','$x1','$x2','$x3','$x4')";
$data2y = mysql_query($query);
 }
 ?>
 <tr><td colspan="5" bgcolor="#339999"><center><h3></h3></center></td></tr>
 
 <?php
 //data testing
 include"koneksi.php";
$sql9 = mysql_query("TRUNCATE TABLE testing");	
$queryTR = mysql_query("SELECT * FROM dataset ORDER BY no desc LIMIT 0,$v1");
if(!$queryTR){
	die( mysql_error() );
}$i=1;
while($rowsTR = mysql_fetch_array($queryTR)){
	$no=$rowsTR['no'];
	$yt=$rowsTR['yt'];
	$x1=$rowsTR['x1'];
	$x2=$rowsTR['x2'];
	$x3=$rowsTR['x3'];
	$x4=$rowsTR['x4'];
	


$query = "INSERT INTO testing(no,yt,t1,t2,t3,t4) VALUES('$no','$yt','$x1','$x2','$x3','$x4')";
$data4= mysql_query($query);

	} 
	
	 
	
	?>
	
	
	
	<!--hitung nilai k-->
	 
	 

</table>


                        
                            </p>
                </div>
               </div>
            </div>   
           
       </section>       
		
		
		</td></tr></table>


</section>
	
	
    <!--/.NOTE END-->
     <section id="clients"  >
        
                
            <div class="container">
           <div class="row text-center pad-bottom" >
            <div class="col-md-12">
               
			   
			   
			   
			   
			   
            </div>
               
               </div>
        </div>
        </section>
		</body></html>
