Exemple #1
0
    $delNums = NewsTypes::delNums($typeId);
}
//print_r(delNums);
//获得表单提交的数据
$searchType = $_POST["searchType"];
$keyword = $_POST["keyword"];
$currentPage = $_POST["currentPage"];
//当前页的页码
$currentPage = $currentPage == NULL ? 1 : $currentPage;
//搜索新闻
if ($keyword != NULL) {
    $result = NewsArticles::getNewsInfo($currentPage, $keyword, $searchType);
    $totalPage = $result[0];
    $newsInfo = $result[1];
} else {
    $result = NewsArticles::getNewsInfo($currentPage);
    //所有新闻
    $totalPage = $result[0];
    $newsInfo = $result[1];
}
?>
<!DOCTYPE html>
<html>
  <head>
    <title>修改新闻</title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <link href="../css/admin.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="../jquery/jquery-1.4.js"></script>
    <script type="text/javascript">
      function checkSearch()
      {