⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.php

📁 开源的OA系统
💻 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">部&nbsp;&nbsp;门</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">密&nbsp;&nbsp;码</td>
          <td><input name="userpwd" type="password" size="14"></td>
        </tr>
        <tr align="center">
          <td colspan="2"><input type="submit" name="submit" value=" 确&nbsp;定 ">
            &nbsp;&nbsp;
            <input type="reset" name="submit1" value=" 重&nbsp;置 "></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 + -