green-btn

This commit is contained in:
devdatt 2025-12-14 12:18:32 +05:30
parent c3726c3d30
commit 2db964592c
2 changed files with 38 additions and 1 deletions

View File

@ -23,12 +23,18 @@ switch ($_POST['action']) {
function confirmReboot() {
return confirm("Are you sure you want to reboot?");
}
function confirmReset() {
return confirm("All settings will be gone . Are you sure you want to reset ?");
}
function confirmUpdate() {
return confirm("Newer version will be downloaded and installed Do not turn off power , this is irreversible are you sure to continue ? ");
}
function confirmbackup() {
return confirm("Newer version will be downloaded and installed Do not turn off power , this is irreversible are you sure to continue ? ");
}
</script>
@ -37,6 +43,26 @@ switch ($_POST['action']) {
<div class="card wide">
Currunt Firmware Version :- 1.0
</div>
<div class="card wide">
<form method="post" class="form-center" enctype="multipart/form-data"
onsubmit="return confirm('Are you sure you want to restore using this file ? All settings will be restored as per backup file .')">
<label>Select restore file (.bin only):</label><br><br>
<input type="file"
name="shree_bhattji_encoder.bin"
accept=".bin"
required><br><br>
<button type="submit">Restore</button>
</form>
</div>
<div class="card wide">
<form method="post" class="form-center" onsubmit="return confirmbackup();">
<button type="submit" name="action" value="backup" class="green-btn">Download Backup File</button>
</form>
</div>
<div class="card wide">
<form method="post" class="form-center" onsubmit="return confirmReboot();">
<button type="submit" name="action" value="reboot" class="blueviolet-btn">Reboot</button>

View File

@ -377,6 +377,17 @@
cursor: pointer;
}
.green-btn {
background-color: greenyellow;
color: white;
font-weight: bold;
padding: 10px 20px;
border: none;
width: 33%;
border-radius: 7px;
cursor: pointer;
}
.blueviolet-btn {
background-color: blueviolet;
color: white;
@ -430,7 +441,7 @@
<body>
<!-- Three stacked headers -->
<header class="top-header-1"><a href="index.php" style="color:white; text-decoration:none;">URMI Universal Encoder / Decoder</a></header>
<header class="top-header-1"><a href="index.php" style="color:white; text-decoration:none;">URMI Universal Digital Encoder / Decoder</a></header>
<header class="top-header-2">
<nav aria-label="Top navigation">
<a href="https://learn.urmic.org/" target="_blank">Tutorials</a>