html第二次

This commit is contained in:
2021-12-23 14:43:26 +08:00
parent 3f620a2243
commit 2f4b1b5a71
3 changed files with 25 additions and 0 deletions

View File

@ -6,6 +6,17 @@
<link rel="stylesheet" type="text/css" href="/css/config.css">
</head>
<body class="body" >
<div style="margin-left:auto;margin-right:auto;width:80%;" >
<table style="width: 100%">
<tr>
<td>程序运行状态</td>
<td id="statid"></td>
<td></td>
<td><input type="button" value="重启" onclick="rebootclicked()"></td>
</tr>
</table>
</div>
<form action="/php/config.php" method="POST" >
<div style="margin-left:auto;margin-right:auto;width:80%;" >
<div>

View File

@ -37,4 +37,9 @@ function getinit()
{
httpget("/php/GetIniFile.php",datad,getDevinfoRetrun)
}
function rebootclicked()
{
alert("reboot")
}
window.onload=getinit;

View File

@ -1 +1,10 @@
<?php
exec("ps -ef | grep TowerOptoSifAndSpectral | grep -v grep",$output,$return);
//var_dump( $output);
if ( count($output)>0)
{
echo '<div style="width: 20px;height: 20px;background: green"></div>';
}else{
echo '<div style="width: 20px;height: 20px;background: red"></div>';
}