代码拉取完成,页面将自动刷新
<?php
header('Content-type: text/html; charset=utf-8');
//echo 'Test1';
$dbc = mysql_connect("localhost","root","root");
mysql_select_db("webwms",$dbc);
if(!isset($_SESSION)){
session_start();
}
$sql="SELECT user FROM loginuser;";
$result = mysql_query($sql,$dbc);
$row_Rec = mysql_fetch_assoc($result);
//echo $row_Rec['user']
?>
<html>
<head>
<title>webWMS</title>
<script src="utils.js" type="text/javascript"></script>
<script src="validation.js" type="text/javascript"></script>
<script type="text/javascript">
/*t = setInterval("getTimer()",1000);
function getTimer(){
//document.write("abc");
document.getElementById("setTimer").innerHTML="<?php echo "现在时间".date("Y-m-d H:i:s")."<br>";?>";
}*/
</script>
<style type="text/css">
table {
background:url(china_ph002.jpg);
background-repeat: repeat;
}
body {
background-color: #0099FF;
#background:url(jajinco.jpg);
}
.STYLE1 {color: #FFFFFF;}
</style>
</head>
<body align="center">
<br/><br/><br/><br/><br/>
<h1>iWMS</h1>
<!--<form action="#" method="POST">-->
<table border="0" align="center" width="450">
<tr align="center">
<td colspan="4"><img src="jajinco.jpg" /></td>
<!--<img src="abc.JPG" width="320" height="320" /> -->
</tr>
<tr align="center">
<td colspan="4"><strong><div id="result" class="STYLE1"> </div></strong></td>
</tr>
<tr>
<td> </td><td>用户名</td><td>
<select name="username" id="username" width="200">
<option>请选择用户</option>
<?php do { ?>
<option value="<?php echo $row_Rec['user']; ?>">
<?php echo $row_Rec['user']; ?>
</option>
<?php } while ($row_Rec = mysql_fetch_assoc($result)); ?>
</select>
</td><td> </td>
</tr>
<tr>
<td> </td><td>密码</td><td>
<input id="pwd1" type="password" name="pwd1" />
</td><td> </td>
</tr>
<tr>
<td colspan="4" align="center">
<button type="button" onclick="" id="logoin">登入</button>
</td>
<!--<button type="button" onclick="loadXMLDoc()">Change Content</button>-->
</tr>
<tr>
<td colspan="4" align="center"></td>
</tr>
</table>
<!--</form>-->
<div id="setTimer" class="STYLE1">
NOW TIME:
</div>
</body>
</html>
<?php
mysql_free_result($result);
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。