📄 changefile.php
字号:
<?php
ob_start();
session_start();
if ($_SESSION['flag']!=1)
{
die("<div align=center>请先<a href=login.php><font color=blue>-- 登录 --</font></a></div>");
}
$id=$_GET['id'];
include 'conn.php';
$result=mysql_query("select * from file where fileid='".$id."'") or die ("<br> fail to query table student".mysql_error());
$row=mysql_fetch_array($result);
?>
<!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" />
<title>修改公告</title>
</head>
<body>
<div align="center">
<table width="780" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="150" colspan="2">
<img src="image/houtaihead.gif" longdesc="image/houtaihead.gif" /></td>
</tr>
<tr>
<td height="25" colspan="2" align="center"><font size="-1" color="blue"><?php echo date("20y年m月d日");?></font></td>
</tr>
<tr>
<td width="170" height="20"></td>
<td width="590" rowspan="2" align="left">
<form action="changefile_reg.php" method="post" name="form1">
<br>
<table width="485" height="292" border="1" cellpadding="0" cellspacing="0" style="border-collapse:collapse">
<tr>
<td colspan="2"><font size="-1">修改公告</font></td>
</tr>
<tr>
<td height="14" colspan="2"> </td>
</tr>
<tr>
<td width="118" height="27" align="right"><font size="-1">公告标题:</font></td>
<td width="361" align="left"> <input type="text" name="text1" size="40" value="<?php echo $row[5];?>"></td>
</tr>
<tr>
<td height="26" align="right"><font size="-1">公告类型:</font></td>
<td>
<select name="option">
<option value=<?php echo $row[1];?> selected><?php echo $row[1];?></option>
<option value="公告">公告</option>
<option value="it资源">it资源</option>
<option value="新闻动态">新闻动态</option>
<option value="认证信息">认证信息</option>
<option value="资料下载">资料下载</option>
</select>
<input name="hiddenid" type="hidden" value="<?php echo $id;?>">
</td>
</tr>
<tr>
<td height="150" align="right"><font size="-1">公告内容:</font></td>
<td> <textarea name="text2" cols="35" rows="8"><?php echo $row[2];?></textarea></td>
</tr>
<tr>
<td><font size="-1">发布时间:</font></td>
<td> <input name="text3" type="text" size="20" maxlength="20" readonly="true" value="<?php echo date("20y-m-d");?>"></td>
</tr>
<tr>
<td height="15" colspan="2" align="right"><font size="-1" color="red">*文章标题应在50字符以内! </font></td>
</tr>
<tr>
<td colspan="2" align="center">
<input name="button1" type="submit" id="button1" value="提交">
<input name="button1" type="submit" id="button1" value="返回" onClick="action='fileadmin.php'"> </td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td >
<?php
include 'left.php';
?> </td>
</tr>
</table>
<br>
<br>
<?php
include 'end.php';
?>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -