This commit is contained in:
devdatt 2026-01-08 07:06:34 +05:30
parent 589d7a400a
commit a61e452acd
2 changed files with 96 additions and 50 deletions

View File

@ -271,7 +271,7 @@
<span class="pill"><a style="color: #ffffff;" href="certification.html">Certificate</a></span>
</div>
<div class="pill-row">
<span class="pill"><a style="color: #ffffff;" href="login.html">Login</a></span>
<span class="pill"><a style="color: #ffffff;" href="login.php">Login</a></span>
</div>
<div class="footer">

View File

@ -1,19 +1,62 @@
<?php include 'header.php'; ?>
<style>
body { font-family: Arial, sans-serif; padding: 20px; }
button { padding: 8px 14px; cursor: pointer; }
#popup {
display:none; position: fixed; top: 50%; left: 50%;
transform: translate(-50%, -50%); background: #fff;
padding: 20px; border:1px solid #333; width: 350px;
body {
font-family: Arial, sans-serif;
padding: 20px;
}
button {
padding: 8px 14px;
cursor: pointer;
}
#popup {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #fff;
padding: 20px;
border: 1px solid #333;
width: 350px;
}
#popup input,
#popup select {
width: 100%;
margin-bottom: 10px;
padding: 6px;
}
#overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
}
.table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
.table th,
.table td {
padding: 10px;
border: 1px solid #ccc;
text-align: left;
}
#popup input, #popup select { width: 100%; margin-bottom: 10px; padding: 6px; }
#overlay { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.6); }
.table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.table th, .table td { padding: 10px; border: 1px solid #ccc; text-align: left; }
</style>
</head>
<br>
<br>
<br>
<br>
<h2>Service List</h2>
<button onclick="openPopup()">Add Service</button>
@ -106,7 +149,10 @@ function saveService() {
form.append("audio_bitrate", document.getElementById("audio_bitrate").value);
form.append("status", document.getElementById("status").value);
fetch("input.php", { method: "POST", body: form })
fetch("input.php", {
method: "POST",
body: form
})
.then(r => r.text())
.then(res => {
if (res === "OK") location.reload();