📄 modify.php
字号:
<!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>
<link rel="stylesheet" type="text/css" href="comp3.css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="This page is the homepage for Loughbourgh University Undergraduate courses in Computer Science" />
<meta name="keywords" content="computer, computer science, artificial intelligence, e-business, information, technology, management, foundation, mathematics, maths, home" />
<title>Computer Science Depatment</title>
<style type="text/css">
<!--
.style1 {font-size: xx-small}
-->
</style>
</head>
<body>
<?php
if(isset($_GET['page'])){
$page=$_GET['page'];
}else{
$page='home';
}
?>
<div id="logo"></div>
<div id="logo2"></div>
<div id="logo3"></div>
<div id="button">
<ul>
<li><a href="index3.php?page=home">Home</a></li>
<li><a href="department.php">The Department</a></li>
<li><a href="courses.php?page=undgrad">Courses</a></li>
<li><a href='index3.php?page=money'>Financial Help</a></li>
<li><a href='index3.php?page=staff'>Staff</a></li>
<li><a href="faq.php">FAQ</a></li>
<li><a href="search.php">Search</a></li>
<li><a href='index3.php?page=contact'>Contact Us</a></li>
<li><a href="map.html">Site Map</a></li>
</ul>
</div>
<div id="content">
<p>
<?
session_start();
if($_SESSION['admin']=="OK")
{
$conn=mysql_connect ("co-project.lboro.ac.uk", "group04", "grp55dnv");
mysql_select_db("group04");
$exec="select * from contents where id=".$_GET['id']; /*????$_GET['id']????????????????? */
$result=mysql_query($exec);
$rs=mysql_fetch_object($result);
$name=$rs->name;
$content=$rs->content;
$id=$rs->id;
?>
<br>
<br>
<form action="modify2.php" method="post" name="name1">
ID :<?php echo $id?><input type=hidden name=id value=<?php echo $id?> >
Name:<?php echo $name?>
Comments:<textarea name="post_contents" rows="10" cols="50"><?php echo $content?></textarea>
<input type="submit" value="Submit Modify">
</form><br>
<?
}
mysql_close();
?>
<table width="100%" border="0">
<tr>
<td colspan="2" bgcolor="#CCCCCC"> </td>
</tr>
<tr>
<td width="53%" bgcolor="#FFFFFF"><div align="center" class="style3">
<div align="left"> © Loughborough University 2008</div>
</div></td>
<td width="47%" bgcolor="#FFFFFF"><div align="center"><span class="style3"><a href="admin_login.htm">Staff</a></span></div></td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -