📄 in_begin.php
字号:
<?
include('session.php');
//$_SESSION['username']
//$_SESSION['userpass']
include('function.php');
if (islogin($_SESSION['username'],$_SESSION['userpass']))
$accept=true;
else {
$accept=false;
echo "<meta http-equiv=\"refresh\" content=\"0;URL=out_begin.php\">";
exit;
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>in_begin</title>
</head>
<link href="css.css" rel="stylesheet" type="text/css">
<body bgcolor="#F3F7FC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<?
include_once('function.php');
function getann($name,$mod="no")
{
include('config.php');
mysql_select_db($dbname,$link);
if($mod=="no")
$query="select * from all_announce where ann_mod='comp' and ann_yes='true'";
else
$query="select * from all_announce where ann_mod='clas' and ann_yes='true' and ann_job='".$mod."'";
$result=mysql_query($query,$link);
$get=@mysql_fetch_object($result);
if ($get)
echo $get->$name;
@mysql_close();
}
?>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F3F7FC">
<tr>
<td height="350" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_kuang">
<tr>
<td background="images/dmid.jpg" class="tianchong"> <font class="size10">公司通知发布区</font></td>
</tr>
<tr>
<td class="tian4" ><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_kuang" >
<tr>
<td height="23" class="tianchong" valign="top">
<p>公司通知:
<? getann("ann_title"); ?>
<font class="duanluo"><gongsitongzhi></font></p></td>
</tr>
<tr>
<td height="21" class="duanluo" valign="top">
<? getann("ann_text");?>
</td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_kuang">
<tr>
<td background="images/dmid.jpg" class="tianchong"> <font class="size10">本部门通知发布区</font></td>
</tr>
<tr>
<td height="54" class="tian4" >
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_kuang" >
<tr>
<td height="21" class="tianchong" valign="top">本部门通知: <? $ann_job=getjob($_SESSION['username']); getann("ann_title",$ann_job); ?></td>
</tr>
<tr>
<td height="21" class="tianchong" valign="top"><font class="duanluo"><? getann("ann_text",$ann_job);?></font></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -