Init WebCG

This commit is contained in:
2026-08-12 14:21:28 +09:00
commit 5c01660f97
170 changed files with 46248 additions and 0 deletions
+130
View File
@@ -0,0 +1,130 @@
<!DOCTYPE html>
{{>copyright }}
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SPX {{SPX.title}} | {{lang 'pagetitle.authpolicy'}}</title>
<link rel="icon" type="image/png" href="/img/spx-gc.ico">
<link rel="stylesheet" type="text/css" href="/css/spx_fonts.css">
<link rel="stylesheet" type="text/css" href="/css/spx_layout.css">
<link rel="stylesheet" type="text/css" href="/css/spx_forms.css">
<link rel="stylesheet" type="text/css" href="/css/spx_colors.css">
<link rel="stylesheet" type="text/css" href="/css/spx_modal.css">
<style>
.l:link, .l:visited{color:#000000}
.l:link:hover{color:#ffd000}
.login {
width: 50%;
position: absolute;
left: 50%;
top: 40%;
transform: translate(-50%, -40%);
z-index: 20;
padding: 0.3em;
background-color: #414C5A;
color: white;
box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 20px;
vertical-align: middle;
}
</style>
<script>
function validate(){
uField = document.getElementById('user');
pField = document.getElementById('pass');
rField = document.getElementById('radio1');
if (rField.checked){
if (uField.value=="" || pField.value==""){
alert('To use login, both username and password must be given. Please try again.');
return false;
}
}
return true;
}
</script>
</head>
<body class="bg_body">
<form name="login" id="login" method="post" action="/saveauthpolicy" onsubmit="return validate()">
<div>
<div>
<div class="login" style="border-radius:0.6em;">
<table style="width: 100%; height:100%; border:0px solid yellow;" cellspacing="20" border="0">
<tr>
<td align="left">
SPX Graphics Controller Config<BR><BR>
<span class="spxInfotext">
{{lang 'config.authpolicy'}}
</span>
<BR>
</td>
</tr>
<tr>
<td align="center">
<table style="width: 100%; border-radius:0em; background-color: #0000003a; border:0px solid yellow;" cellspacing="15" border="0">
<tr>
<td class="vmid spxInfotext" style="width: 30%;">
<label class="radiocontainer">{{lang 'general.yes'}}
<input type="radio" name="policy" value="1" id="radio1">
<span class="checkmark"></span>
</label>
</td>
<td class="vmid spxInfotext">
<input type="text" class="wide gcinput" name="username" id="user" value="{{user}}">
<input type="password" class="wide gcinput" name="password" id="pass" value="">
</td>
</tr>
</table>
<table style="width: 100%; border-radius:0em; background-color: #0000003a; border:0px solid yellow; margin-top: 0.2em;" cellspacing="15" border="0">
<tr>
<td class="vmid spxInfotext" style="width: 30%;">
<label class="radiocontainer">{{lang 'general.no'}}
<input type="radio" checked="checked" name="policy" value="0">
<span class="checkmark"></span>
</label>
</td>
<td class="vmid spxInfotext">
{{lang 'config.authnone' }}
</td>
</tr>
</table>
<table style="width: 100%; border-radius:0em; background-color: #0000003a; border:0px solid yellow; margin-top: 0.2em;" cellspacing="25" border="0">
<tr>
<td class="vmid">
<div class="wide spxInfotext center" style="font-size: 0.55em;">
{{lang 'config.authinfo' }}
<BR>
<BR>
<input type="submit" class="spxformtext btn w50 bg_green ripple" value="{{lang 'button.save'}}" style="margin:0.0em 0em 0.4em; font-size:1.2em;">
</div>
</td>
</tr>
</table>
<span style="font-size: 0.55em; opacity:0.9; color:#000000;">
v.{{{ShowVersion}}} | <a class="l" href="https://spxgraphics.com">&copy; 2020- SPX Graphics</a></span>
</td>
</tr>
</table>
</div><!-- center wrapper ended -->
</div><!-- content ended -->
</div><!-- MAINwrapper ended -->
</form>
</body>
</html>