?? index.php
字號:
<?php
session_start();
include "./datasource.inc.php";
$query = "select * from department order by department desc";
$result = mysql_query($query);
$num = mysql_num_rows($result);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="./css/a1.css" rel="stylesheet" type="text/css">
<title>谷搜OA管理軟件</title>
<SCRIPT language=javascript>
function form_onsubmit()
{
if (document.form.userid.value=="")
{ alert("對不起,請輸入您的帳號!");
document.form.userid.focus();
return false;
}
if (document.form.userpwd.value=="")
{ alert("對不起,請輸入您的密碼!");
document.form.userpwd.focus();
return false;
}
}
</script>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
</head>
<body topmargin="85">
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3"><img src="images/images/oazhuye1_01.jpg" width="778" height="73"></td>
</tr>
<tr>
<td><img src="images/images/oazhuye1_03.jpg" width="475" height="310"></td>
<td width="184" background="images/images/oazhuye1_041.jpg"><form action="admin/login_form.php" method="post" name=form onSubmit="return form_onsubmit()">
<table width="184" height="120" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="82" height="32" align="center">部 門</td>
<td width="102" ><select name="department">
<?
for ($i=1;$i<=$num;$i++) {
$row = mysql_fetch_array($result);
if ( $row['id']) {
echo "<option value=$row[id]>$row[department]</option>";
}
}
?>
</select></td>
</tr>
<tr>
<td height="30" align="center">用戶名</td>
<td><input name="userid" type="text" size="14" ></td>
</tr>
<tr>
<td height="26" align="center">密 碼</td>
<td><input name="userpwd" type="password" size="14"></td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" name="submit" value=" 確 定 ">
<input type="reset" name="submit1" value=" 重 置 "></td>
</tr>
</table>
</form></td>
<td><img src="images/images/oazhuye1_05.jpg" width="119" height="310"></td>
</tr>
<tr>
<td colspan="3" background="images/images/oazhuye1_06.jpg" height="48"><div align="center"><span class="style1"><a href="http://www.iguso.com" target="_blank"><font color=#ffffff>廈門谷搜信息科技有限公司</font></a> 版權所有</span></div></td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -