1 Star 1 Fork 1

gujiejing / WEBWMS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 2.28 KB
一键复制 编辑 原始数据 按行查看 历史
wisdom 提交于 2017-11-03 23:31 . upupup new alll
<?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">&nbsp;</div></strong></td>
</tr>
<tr>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td><td>密码</td><td>
<input id="pwd1" type="password" name="pwd1" />
</td><td>&nbsp;</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);
?>
PHP
1
https://gitee.com/laotou99_admin/WEBWMS.git
git@gitee.com:laotou99_admin/WEBWMS.git
laotou99_admin
WEBWMS
WEBWMS
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891