-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
18 additions
and
1,151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,147 +1 @@ | ||
<?php | ||
session_start(); | ||
include('configdb.php'); | ||
?> | ||
<!DOCTYPE html> | ||
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | ||
<meta name="description" content=""> | ||
<meta name="author" content=""> | ||
<link rel="icon" href="favicon.ico"> | ||
|
||
<title><?php echo $_SESSION['judul']." - ".$_SESSION['by'];?></title> | ||
|
||
<!-- Bootstrap core CSS --> | ||
<link href="ui/css/bootstrap.css" rel="stylesheet"> | ||
<link href="ui/css/spacelab.min.css" rel="stylesheet"> | ||
|
||
<!-- Just for debugging purposes. Don't actually copy these 2 lines! --> | ||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]--> | ||
<!--script src="./index_files/ie-emulation-modes-warning.js"></script--> | ||
|
||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> | ||
<!--[if lt IE 9]> | ||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> | ||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | ||
<![endif]--> | ||
</head> | ||
<style> | ||
body { | ||
padding-top: 10px; /* 10px to make the container go all the way to the bottom of the topbar */ | ||
//background-image:url(img/bg_dotted.png); | ||
</style> | ||
|
||
<body> | ||
<div class="container"> | ||
|
||
<!-- Static navbar --> | ||
<nav class="navbar navbar-default"> | ||
<div class="container-fluid"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="#"><?php echo $_SESSION['judul'];?></a> | ||
</div> | ||
<div id="navbar" class="navbar-collapse collapse"> | ||
<ul class="nav navbar-nav"> | ||
<li><a href="index.php">Home</a></li> | ||
<li><a href="kriteria.php">Data Kriteria</a></li> | ||
<li><a href="aturan.php">Data Aturan</a></li> | ||
<li class="active"><a href="#">Alternatif Lokasi</a></li> | ||
<li><a href="analisa.php">Analisa</a></li> | ||
</ul> | ||
</div><!--/.nav-collapse --> | ||
</div><!--/.container-fluid --> | ||
</nav> | ||
<ol class="breadcrumb"> | ||
<li><a href="index.php">Home</a></li> | ||
<li><a href="alternatif.php">Alternatif Lokasi</a></li> | ||
<li class="active">Tambah Alternatif Lokasi</li> | ||
</ol> | ||
<!-- Main component for a primary marketing message or call to action --> | ||
<div class="panel panel-primary"> | ||
<!-- Default panel contents --> | ||
<div class="panel-heading">Tambah Alternatif Lokasi</div> | ||
<div class="panel-body"> | ||
<?php | ||
include 'configdb.php'; | ||
$kriteria = $mysqli->query("select * from kriteria"); | ||
if(!$kriteria){ | ||
echo $mysqli->connect_errno." - ".$mysqli->connect_error; | ||
exit(); | ||
} | ||
$i=0; | ||
while ($row = $kriteria->fetch_assoc()) { | ||
@$k[$i] = $row["kriteria"]; | ||
$i++; | ||
} | ||
?> | ||
<form role="form" method="post" action="add2.php"> | ||
<div class="box-body"> | ||
<div class="form-group"> | ||
<label for="lokasi">Lokasi</label> | ||
<input type="text" class="form-control" name="lokasi" id="lokasi" placeholder="Lokasi yang akan dianalisa"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="k1"><?php echo ucwords($k[0]);?></label> | ||
<select class="form-control" name="k1" id="k1"> | ||
<option value='dekat'>Dekat</option> | ||
<option value='sedang'>Sedang</option> | ||
<option value='jauh'>Jauh</option> | ||
</select> | ||
</div> | ||
<div class="form-group"> | ||
<label for="k2"><?php echo ucwords($k[1]);?></label> | ||
<select class="form-control" name="k2" id="k2"> | ||
<option value='murah'>Murah</option> | ||
<option value='sedang'>Sedang</option> | ||
<option value='mahal'>Mahal</option> | ||
</select> | ||
</div> | ||
<div class="form-group"> | ||
<label for="k3"><?php echo ucwords($k[2]);?></label> | ||
<select class="form-control" name="k3" id="k3"> | ||
<option value='kecil'>Kecil</option> | ||
<option value='sedang'>Sedang</option> | ||
<option value='besar'>Besar</option> | ||
</select> | ||
</div> | ||
<div class="form-group"> | ||
<label for="k4"><?php echo ucwords($k[3]);?></label> | ||
<select class="form-control" name="k4" id="k4"> | ||
<option value='ada'>Ada</option> | ||
<option value='tidak'>Tidak</option> | ||
</select> | ||
</div> | ||
</div><!-- /.box-body --> | ||
|
||
<div class="box-footer"> | ||
<button type="reset" class="btn btn-info">Reset</button> | ||
<a href="alternatif.php" type="cancel" class="btn btn-warning">Batal</a> | ||
<button type="submit" class="btn btn-primary">Tambahkan</button> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="panel-footer"><?php echo $_SESSION['by'];?><div class="pull-right"></div></div> | ||
</div> | ||
|
||
</div> <!-- /container --> | ||
|
||
|
||
<!-- Bootstrap core JavaScript | ||
================================================== --> | ||
<!-- Placed at the end of the document so the pages load faster --> | ||
<script src="ui/js/jquery-1.10.2.min.js"></script> | ||
<script src="ui/js/bootstrap.min.js"></script> | ||
<script src="ui/js/bootswatch.js"></script> | ||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> | ||
<script src="ui/js/ie10-viewport-bug-workaround.js"></script> | ||
|
||
</body></html> | ||
Lakukan donasi untuk file ini, wa 0856-48587-856 Baca di file README di dalam project ini. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,150 +1 @@ | ||
<?php | ||
session_start(); | ||
include('configdb.php'); | ||
?> | ||
<!DOCTYPE html> | ||
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | ||
<meta name="description" content=""> | ||
<meta name="author" content=""> | ||
<link rel="icon" href="favicon.ico"> | ||
|
||
<title><?php echo $_SESSION['judul']." - ".$_SESSION['by'];?></title> | ||
|
||
<!-- Bootstrap core CSS --> | ||
<link href="ui/css/bootstrap.css" rel="stylesheet"> | ||
<link href="ui/css/spacelab.min.css" rel="stylesheet"> | ||
|
||
<!-- Just for debugging purposes. Don't actually copy these 2 lines! --> | ||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]--> | ||
<!--script src="./index_files/ie-emulation-modes-warning.js"></script--> | ||
|
||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> | ||
<!--[if lt IE 9]> | ||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> | ||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | ||
<![endif]--> | ||
</head> | ||
<style> | ||
body { | ||
padding-top: 10px; /* 10px to make the container go all the way to the bottom of the topbar */ | ||
//background-image:url(img/bg_dotted.png); | ||
</style> | ||
|
||
<body> | ||
<div class="container"> | ||
|
||
<!-- Static navbar --> | ||
<nav class="navbar navbar-default"> | ||
<div class="container-fluid"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="#"><?php echo $_SESSION['judul'];?></a> | ||
</div> | ||
<div id="navbar" class="navbar-collapse collapse"> | ||
<ul class="nav navbar-nav"> | ||
<li><a href="index.php">Home</a></li> | ||
<li><a href="kriteria.php">Data Kriteria</a></li> | ||
<li class="active"><a href="#">Data Aturan</a></li> | ||
<li><a href="alternatif.php">Alternatif Lokasi</a></li> | ||
<li><a href="analisa.php">Analisa</a></li> | ||
</ul> | ||
</div><!--/.nav-collapse --> | ||
</div><!--/.container-fluid --> | ||
</nav> | ||
<ol class="breadcrumb"> | ||
<li><a href="index.php">Home</a></li> | ||
<li><a href="aturan.php">Data Aturan</a></li> | ||
<li class="active">Tambah Data Aturan</li> | ||
</ol> | ||
<!-- Main component for a primary marketing message or call to action --> | ||
<div class="panel panel-primary"> | ||
<!-- Default panel contents --> | ||
<div class="panel-heading">Tambah Data Aturan</div> | ||
<div class="panel-body"> | ||
<?php | ||
include 'configdb.php'; | ||
$kriteria = $mysqli->query("select * from kriteria"); | ||
if(!$kriteria){ | ||
echo $mysqli->connect_errno." - ".$mysqli->connect_error; | ||
exit(); | ||
} | ||
$i=0; | ||
while ($row = $kriteria->fetch_assoc()) { | ||
@$k[$i] = $row["kriteria"]; | ||
$i++; | ||
} | ||
?> | ||
<form role="form" method="post" action="add.php"> | ||
<div class="box-body"> | ||
<div class="form-group"> | ||
<label for="k1"><?php echo ucwords($k[0]);?></label> | ||
<select class="form-control" name="k1" id="k1"> | ||
<option value='dekat'>Dekat</option> | ||
<option value='sedang'>Sedang</option> | ||
<option value='jauh'>Jauh</option> | ||
</select> | ||
</div> | ||
<div class="form-group"> | ||
<label for="k2"><?php echo ucwords($k[1]);?></label> | ||
<select class="form-control" name="k2" id="k2"> | ||
<option value='murah'>Murah</option> | ||
<option value='sedang'>Sedang</option> | ||
<option value='mahal'>Mahal</option> | ||
</select> | ||
</div> | ||
<div class="form-group"> | ||
<label for="k3"><?php echo ucwords($k[2]);?></label> | ||
<select class="form-control" name="k3" id="k3"> | ||
<option value='kecil'>Kecil</option> | ||
<option value='sedang'>Sedang</option> | ||
<option value='besar'>Besar</option> | ||
</select> | ||
</div> | ||
<div class="form-group"> | ||
<label for="k4"><?php echo ucwords($k[3]);?></label> | ||
<select class="form-control" name="k4" id="k4"> | ||
<option value='ada'>Ada</option> | ||
<option value='tidak'>Tidak</option> | ||
</select> | ||
</div> | ||
<div class="form-group"> | ||
<label for="k5"><?php echo ucwords($k[4]);?></label> | ||
<select class="form-control" name="k5" id="k5"> | ||
<option value='ya'>Ya</option> | ||
<option value='tidak'>Tidak</option> | ||
</select> | ||
</div> | ||
</div><!-- /.box-body --> | ||
|
||
<div class="box-footer"> | ||
<button type="reset" class="btn btn-info">Reset</button> | ||
<a href="aturan.php" type="cancel" class="btn btn-warning">Batal</a> | ||
<button type="submit" class="btn btn-primary">Tambahkan</button> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="panel-footer"><?php echo $_SESSION['by'];?><div class="pull-right"></div></div> | ||
</div> | ||
|
||
</div> <!-- /container --> | ||
|
||
|
||
<!-- Bootstrap core JavaScript | ||
================================================== --> | ||
<!-- Placed at the end of the document so the pages load faster --> | ||
<script src="ui/js/jquery-1.10.2.min.js"></script> | ||
<script src="ui/js/bootstrap.min.js"></script> | ||
<script src="ui/js/bootswatch.js"></script> | ||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> | ||
<script src="ui/js/ie10-viewport-bug-workaround.js"></script> | ||
|
||
</body></html> | ||
Lakukan donasi untuk file ini, wa 0856-48587-856 Baca di file README di dalam project ini. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1 @@ | ||
<?php | ||
include('configdb.php'); | ||
$k1 = $_POST['k1']; | ||
$k2 = $_POST['k2']; | ||
$k3 = $_POST['k3']; | ||
$k4 = $_POST['k4']; | ||
$k5 = $_POST['k5']; | ||
|
||
$result = $mysqli->query("INSERT INTO `aturan` (`id_aturan`, `k1`, `k2`, `k3`, `k4`, `k5`) | ||
VALUES (NULL, '".$k1."', '".$k2."', '".$k3."', '".$k4."', '".$k5."');"); | ||
if(!$result){ | ||
echo $mysqli->connect_errno." - ".$mysqli->connect_error; | ||
exit(); | ||
} | ||
else{ | ||
header('Location: aturan.php'); | ||
} | ||
?> | ||
Lakukan donasi untuk file ini, wa 0856-48587-856 Baca di file README di dalam project ini. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1 @@ | ||
<?php | ||
include('configdb.php'); | ||
$alternatif = $_POST['lokasi']; | ||
$k1 = $_POST['k1']; | ||
$k2 = $_POST['k2']; | ||
$k3 = $_POST['k3']; | ||
$k4 = $_POST['k4']; | ||
|
||
$result = $mysqli->query("INSERT INTO `alternatif` (`id_alternatif`, `alternatif`, `k1`, `k2`, `k3`, `k4`) | ||
VALUES (NULL, '".$alternatif."', '".$k1."', '".$k2."', '".$k3."', '".$k4."');"); | ||
if(!$result){ | ||
echo $mysqli->connect_errno." - ".$mysqli->connect_error; | ||
exit(); | ||
} | ||
else{ | ||
header('Location: alternatif.php'); | ||
} | ||
?> | ||
Lakukan donasi untuk file ini, wa 0856-48587-856 Baca di file README di dalam project ini. |
Oops, something went wrong.