* Sunda Cyber Army 2k17 *
Indonesia Defacer ~
<?php
$host = "webdev.iyaclasses.com";
$userid = "dent_guest";
$userpw = "Acad276_Ttrojan_Dev2Ex@m";
$db = "dent_exam";
$mysql = new mysqli(
$host,
$userid,
$userpw,
$db
);
if ($mysql->connect_errno) {
echo "db connection error : " . $mysql->connect_error;
exit();
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Acad276 Practical Exam: Details</title>
<style>
.container {
width: 800px;
margin: auto;
}
h1 {
margin: auto;
text-align: center;
background-color: #900;
color: #FC0;
height: 60px;
line-height: 60px;
}
.details {
border: 1px solid #990000;
width: 600px;
margin: auto;
margin-top: 20px;
padding: 20px;
}
table {
height: 300px;
width: 100%;
}
table img {
height: 300px;
}
img {
width: 300px;
}
.label {
text-align: right;
width: 20%;
padding: 3px 10px 3px;
}
.data {
width: 40%;
}
.input>input, .input>select {
width: 100%;
}
.nav-link{
margin: 10px 0px;
font-size: 14px;
}
</style>
</head>
<body>
<div class="container">
<h1>Mobile Devices Database</h1>
<div class="left-col">
<h2>Search the Database</h2>
<form method="get" action="results.php">
<label class="label">Device Name:</label>
<div class="input">
<label>
<input type="text" name="device_name"/>
</label>
</div>
<br clear="all"/>
<div class="label">Manufacturer:</div>
<div class="input">
<select name="manufacturer_id" title="manufacturers">
<option value='all'>All</option>
<?php
$sql = "SELECT * FROM dent_exam.manufacturers WHERE 1";
$results = $mysql->query($sql);
while ($currentrow = $results->fetch_assoc()) {
echo "<option value='" . $currentrow['manufacturer_id'] . "'>" . $currentrow['manufacturer'] . "</option>";
}
?>
</select>
</div>
<br clear="all"/>
<div class="label">Operating System: </div>
<div class="input">
<select name="system_id" title="systems">
<option value='all'>All</option>
<?php
$sql = "SELECT * FROM dent_exam.systems WHERE 1";
$results = $mysql->query($sql);
while ($currentrow = $results->fetch_assoc()) {
echo "<option value='" . $currentrow['system_id'] . "'>" . $currentrow['system'] . "</option>";
}
?>
</select>
</div>
<br clear="all"/>
<div class="label">Type:</div>
<div class="input">
<select name="type_id" title="types">
<option value='all'>All</option>
<?php
$sql = "SELECT * FROM dent_exam.types WHERE 1";
$results = $mysql->query($sql);
while ($currentrow = $results->fetch_assoc()) {
echo "<option value='" . $currentrow['type_id'] . "'>" . $currentrow['type'] . "</option>";
}
?>
</select>
</div>
<br clear="all"/>
<input class="search-submit" type="submit" value="Search"/>
</form>
</div>
<br clear="all"/>
</div>
</body>
</html>