<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php require_once '../lib/global.php'; if ($_GET['id']) { $conn = new DbHelper('pg_news'); $rs = $conn->get_a($_GET['id']); if (!$rs) { echo "查询失败!"; exit; } } ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>编辑新闻</title> </head> <body> <form name="form1" action="UpdateNews.php" method="post"> <input type="hidden" name="id" value="<?php echo $_GET['id']; ?> " /> <table> <tr> <td style="width:100px;">新闻标题:</td> <td><input id="tb_title" name="title" type="text" style="width:50%;" value="<?php echo $rs->title; ?> " /></td> </tr>