Files
gravity/hosxp-webservice/_OLD/xray_result.php
T
2026-09-16 23:20:08 +07:00

255 lines
4.8 KiB
PHP

<?php
require("connect_hosxp.php");
$xn1 = base64_decode($_GET['xn']);
$sqlXn = "select * from xray_report where xn='$xn1' ";
$resultXn = mysqli_query($conn1, $sqlXn);
$rowXn = mysqli_fetch_array($resultXn);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Xray Report</title>
<style>
@import url("https://fonts.googleapis.com/css2?family=Asap&family=Roboto:ital,wght@0,500;0,900;1,500&display=swap");
body {
margin: 0px;
padding: 0px;
font-family: "Asap", sans-serif;
background: #e0ffff;
}
* {
box-sizing: border-box;
scroll-behavior: smooth;
}
ul {
list-style: none;
}
a {
text-decoration: none;
}
/*Navigation*/
nav {
top: 0;
display: inline-flex;
justify-content: space-around;
align-items: center;
height: 50px;
width: 100%;
position: fixed;
z-index: 1;
background: #ccc;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15),
0px 4px 8px rgba(0, 0, 0, 0.15),
0px 8px 16px rgba(0, 0, 0, 0.15),
0px 16px 32px rgba(0, 0, 0, 0.15);
}
.logo a {
font-family: "Roboto", sans-serif;
font-weight: 600;
color: #2c2c2c;
font-size: 2rem;
}
.menu {
display: flex;
}
.menu a {
height: 40px;
margin: 10px;
line-height: 43px;
padding: 0 40px;
display: flex;
font-size: 1rem;
font-weight: 600;
color: #2c2c2c;
border-radius: 5px;
}
.menu a:hover {
color: #000;
background-color: #c0c0c0;
box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.15),
inset 0px 4px 8px rgba(0, 0, 0, 0.15),
inset 0px 8px 16px rgba(0, 0, 0, 0.15);
transition: 0.2s;
transform: translateY(2px);
}
/*Home*/
#main {
width: 100%;
height: 100vh;
}
.main-text {
position: absolute;
left: 25%;
top: 40%;
transform: translate(-13%, -42%);
color: #2c2c2c;
}
.main-text h1 {
font-size: 3.5rem;
}
.main-text p {
font-size: 2rem;
margin: 25px 0px 25px;
}
/*Services*/
#services {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 25px;
}
.title {
width: 100%;
text-align: center;
}
.title h2 {
position: relative;
text-transform: uppercase;
font-size: 3rem;
margin-bottom: 30px;
}
.content {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
margin: 20px 0px;
}
.service-box {
width: 400px;
height: 250px;
border-radius: 5px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 10px;
margin: 10px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15),
0px 4px 8px rgba(0, 0, 0, 0.15),
0px 8px 16px rgba(0, 0, 0, 0.15),
0px 16px 32px rgba(0, 0, 0, 0.15);
background-color: #fff;
}
.service-box:hover {
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2),
0px 8px 8px rgba(0, 0, 0, 0.2),
0px 16px 16px rgba(0, 0, 0, 0.2),
0px 32px 32px rgba(0, 0, 0, 0.2);
transform: translateY(-10px);
transition: 0.2s;
}
.service-box p {
text-align: center;
width: 230px;
margin: 0px 0px 20px 0px;
color: #2c2c2c;
}
/*Contact*/
#contact {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
margin: 40px 0px;
}
.form {
width: 100%;
max-width: 700px;
margin-top: 20px;
}
.row {
width: 100%;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 20px;
margin-top: 20px;
}
.row2 {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
margin-top: 20px;
}
.row input,
.row2 textarea {
width: 100%;
padding: 10px;
border: none;
outline: none;
color: #2c2c2c;
background: #fff;
font-size: 15px;
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.15),
0px 4px 8px rgba(0, 0, 0, 0.15),
0px 8px 16px rgba(0, 0, 0, 0.15),
0px 16px 32px rgba(0, 0, 0, 0.15);
border-radius: 5px;
font-family: 'Asap';
}
.row2 textarea {
resize: none;
height: 600px;
}
</style>
</head>
<body>
<!--Contact-->
<section id="contact">
<div class="title">
<h2>Xray Report</h2>
</div>
<div class="form">
<div class="row2">
<textarea placeholder="Message">
<?php if ($rowXn['report_text'] == "") {
echo "-- ไม่มีข้อมูล --";
} else {
echo $rowXn['report_text'];
} ?>
</textarea>
</div>
</div>
</section>
</body>
</html>