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

📄 top.php

📁 SetCursor CWnd LoadCursor DestroyWindow CDialog GetClientRect C Button GetStockObject CFont GetWindo
💻 PHP
字号:
<?
require_once("include/admin_or_user.php"); 
require_once('include/connectionindex.php'); 
require_once('include/monthdays.php'); 


if (!isset($_SESSION)) {
  session_start();
}
if ((isset($_GET['longout'])) &&($_GET['longout']=="true"))
{
  //to fully log out a visitor we need to clear the session varialbles
  session_unregister('MM_Username');
  session_unregister('MM_Userlevel');
  session_unregister('dept');
	
  $logoutGoTo = "index.php";

    header("Location: $logoutGoTo");
    exit;

}
$month=date("m")*1;
$day=date("d")*1;
if (($day-1)<=0)
   {$day=monthday($month);
    $month--;
	  if ($month<0)
	      $month=12;
	}
 else $day=$day-1;	
 $temp="select id,room_number from book where longintime like '%".$month."-".$day."%'";

  $rs=odbc_exec($conn,$temp);
  while(odbc_fetch_row($rs))
  { 
    $temp1="delete from book where id=".odbc_result($rs,'id');
     odbc_exec($conn,$temp1);
	  $roomarray=explode("@",odbc_result($rs,'room_number'));
       $i=0;
	  while(isset($roomarray[$i])&&$roomarray[$i]!='')
	  {
	 $temp2="update room set room_state=-1 where room_number='".$roomarray[$i]."'";
     odbc_exec($conn,$temp2);
	 $i++;
	  }
 }
	
   



?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta content="酒店管理系统, timilzy" name=KEYWORDS>
<meta 
content="酒店管理系统,包括接待部,餐饮部,采购部,经理部,分前后台" 
name=DESCRIPTION>
<title>酒店管理系统</title>
<link href="css/hotel.css" rel="stylesheet" type="text/css" />

<style type="text/css">
<!--
body {
	margin-left: 36px;
	margin-top: 16px;
	margin-right: 36px;
}
#title {
	position:absolute;
	width:953px;
	height:80px;
	z-index:2;
	left: 36px;
	top: 0px;
	visibility:visible
	
}
.STYLE1 {color: #FFFFFF}
.STYLE2 {color: #FF0000}
-->
</style>

</head>


<body>

<div id="title">
<form id="form1" name="form1" method="post" action="searchbar.php" target="mainFrame" >
<table width="100%" border="0" cellspacing="0">
  <tr>
    <td width="26%" bgcolor="#6666FF"><span class="STYLE1" align="left">酒店管理系统</span></td>
    <td width="37%" bgcolor="#6666FF"><span class="STYLE1" align="center">
      <? if(isuser()) {?>
      操作员登陆
  <? }if(isadmin()){?>
      
      管理员登陆
  <? }?>
    </span></td>
    <td bgcolor="#6666FF"><div align="right"><a href="top.php?longout=true" target="_parent"><img src="photo/exit.jpg" width="21" height="19" border="0" /></a></div></td>
  </tr>
 
  <tr>
    <td colspan="3" bgcolor="#CCCCCC"> &nbsp;<a href="conten.php" target="mainFrame" onclick="isclick()">首&nbsp;页</a> <a href="book.php" target="mainFrame" onclick="isclick()">预订客房</a> <a href="#"  onmouseover="fun1(memu4)" onmouseout="fun3(memu4)" onclick="isclick(memu4)">入住登记</a> <a href="#"  onmouseover="fun1(memu2)" onmouseout="fun3(memu2)" onclick="isclick(memu2)">查询</a>  &nbsp;<a href="#" onmouseover="fun1(memu3)" onmouseout="fun3(memu3)" onclick="isclick(memu3)">数据修改</a> <a href="#"  onmouseover="fun1(memu1)" onmouseout="fun3(memu1)" onclick="isclick(memu1)">账目管理</a> <? if(isadmin()) { ?>
      <a href="admin/manage.php" target="mainFrame" onclick="isclick()"> 切换到管理中心</a>  
     &nbsp; <? }?><a href="top.php?longout=true" target="_top">退出
</a>
     <?
	 include("include/adminmenu.html");
	 include("include/roominmenu.html");
	 include("include/modefiymenu.html"); 
	 include("include/indexmenu.html");
	 include("include/chargemenu.html"); ?></td>
  </tr>
   
   <tr>
    <td>
	

	 现在的时间是:
      <span class="STYLE2" id=div1>
	  <? include("include/clock.inc");?>
	  </span>  

   </td>
    <td>&nbsp;</td>
    <td width="37%" align="right" valign="baseline">
 <img src="photo/search.gif" alt="搜索" width="33" height="26" />

 <input name="search" type="text" id="search" size="13" maxlength="50" height="10"/>


 <input name="s" type="submit" id="s" value="搜索" />	


</td>
  </tr>
<tr higth="1">
<td colspan="3">
 <hr size="1"  />
</td>
</tr>
</table>
</form>  
</div>
<input type="hidden" name="clicktag" value="0"/>

</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -