show.php

来自「希普办公网络v2」· PHP 代码 · 共 74 行

PHP
74
字号
<? 
//**************************************************
//************************************
//******Powered by ajin ***************
//*****联系我:wenjinjin@peoplemail.com.cn *******
//*********QQ : 89243743        ********************
//*******主页: http://www.52686.com  *******
//**************************************************

include_once('session.php');
include_once('function.php');
include_once('config.php');
if (islogin($_SESSION['username'],$_SESSION['userpass']))
	$accept=true;
else {
	$accept=false;

	echo "<meta http-equiv=\"refresh\" content=\"0;URL=index.php\">";
	exit;
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>详细内容</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#F3F7FC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<?
include_once('classgroup.php');
$time=time();
$ftime=date("Y-m-d g:i",$time);
$login_name=$_SESSION['username'];
$addname=$_POST['addname'];
$addarea=$_POST['addarea'];
$addmod=$_POST['addmod'];
$show=new database($dbname);
$action=$_GET['action'];

if ($action=="show"&&$accept)
{
							  
	$title=$show->get_term("worker_text_name","work_text","where worker_text_time=".$_GET['time_num']." and worker_login_name='".$_SESSION['username']."'");
	$text=$show->get_term("worker_text","work_text","where worker_text_time=".$_GET['time_num']." and worker_login_name='".$_SESSION['username']."'");
    $yesmod="<a href=\"modify.php?modifymod=text&time_num=".$_GET['time_num']."\" >修改</a>";
	require('template/show.php');
		}
elseif($action=="shareshow"&&$accept)
{
	$title=$show->get_term("worker_text_name","work_text","where worker_text_time=".$_GET['time_num']);
    $text=$show->get_term("worker_text","work_text","where worker_text_time=".$_GET['time_num']);
	require('template/show.php');
	}
elseif($action=="showmeg"&&$accept)
{					  
	$title=$show->get_term("meg_name","quickmeg","where meg_time=".$_GET['time_num']);
    $text=$show->get_term("meg_text","quickmeg","where meg_time=".$_GET['time_num']);
	read($_SESSION[username],$_GET[time_num]);
	require('template/show.php');
     }                 
elseif($action=="shownote"&&$accept)
{						  
	$title=$show->get_term("note_name","notbook","where note_time=".$_GET['time_num']." and worker_login_name='".$_SESSION['username']."'");
	$text=$show->get_term("note_text","notbook","where note_time=".$_GET['time_num']." and worker_login_name='".$_SESSION['username']."'");
	$yesmod="<a href=\"modify.php?modifymod=note&time_num=".$_GET['time_num']."\" >修改</a>";
	require('template/show.php');
    }                   
             
@mysql_close();
?>
</body>
</html>

⌨️ 快捷键说明

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