mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-18 11:29:43 +08:00
html第二次
This commit is contained in:
@ -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>
|
||||
|
@ -37,4 +37,9 @@ function getinit()
|
||||
{
|
||||
httpget("/php/GetIniFile.php",datad,getDevinfoRetrun)
|
||||
}
|
||||
|
||||
function rebootclicked()
|
||||
{
|
||||
alert("reboot")
|
||||
}
|
||||
window.onload=getinit;
|
||||
|
@ -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>';
|
||||
}
|
Reference in New Issue
Block a user