getCount('info_class', "id='" . $class_id . "' limit 1") < 1) { $db->close(); header("location: ./"); exit; } if ($class_id == 102) { $db->close(); header("location: business_102.html"); exit; } if ($class_id == 101104) { $db->close(); header("location: culture_104.html"); exit; } if ($class_id == 105) { $db->close(); header("location: investor_105.html"); exit; } if ($class_id == 106) { $db->close(); header("location: contact_106.html"); exit; } $base_id = substr($class_id, 0, 3); $default_class_id = ''; if (strlen($class_id) == 3) { // 只有base_id,默认第一个子ݏ目ID if ((int)$db->getTableFieldValue('info_class', 'has_sub', 'where id=\'' . $class_id . '\' limit 1') > 0) { $sql = "select id, name, has_sub, keyword, description, content from info_class where id like '" . $class_id . "___' order by sortnum asc limit 1"; $rst = $db->query($sql); $row = $db->fetch_array($rst); $class_id = $row['id']; $base_id = substr($class_id, 0, 3); $cont = $row['content']; $keyword = $row['keyword']; $description = $row['description']; $base_name = $db->getTableFieldValue('info_class', 'name', 'where id=\'' . $base_id . '\' limit 1'); $second_id = $row['id']; $second_name = $row['name']; $third_id = ''; $third_name = ''; $default_class_id = $row['id']; } else { $db->close(); header("location: ./"); exit; } } elseif (strlen($class_id) == 6) { if ((int)$db->getTableFieldValue('info_class', 'has_sub', 'where id=\'' . $class_id . '\' limit 1') > 0) { $sql = "select id, name, has_sub, keyword, description, content from info_class where id like '" . $class_id . "___' order by sortnum asc limit 1"; $rst = $db->query($sql); $row = $db->fetch_array($rst); $class_id = $row['id']; $keyword = $row['keyword']; $description = $row['description']; $cont = $row['content']; $base_id = substr($class_id, 0, 3); $base_name = $db->getTableFieldValue('info_class', 'name', 'where id=\'' . $base_id . '\' limit 1'); $second_id = substr($class_id, 0, 6); $second_name = $db->getTableFieldValue('info_class', 'name', 'where id=\'' . $second_id . '\' limit 1'); $third_id = $row['id']; $third_name = $row['name']; $default_class_id = $row['id']; } else { $sql = "select id, name, has_sub, keyword, description, content from info_class where id like '" . $class_id . "' order by sortnum asc limit 1"; $rst = $db->query($sql); $row = $db->fetch_array($rst); $class_id = $row['id']; $keyword = $row['keyword']; $description = $row['description']; $cont = $row['content']; $base_id = substr($class_id, 0, 3); $base_name = $db->getTableFieldValue('info_class', 'name', 'where id=\'' . $base_id . '\' limit 1'); $second_id = substr($class_id, 0, 6); $second_name = $db->getTableFieldValue('info_class', 'name', 'where id=\'' . $second_id . '\' limit 1'); $third_id = ''; $third_name = ''; $default_class_id = $second_id; } } elseif (strlen($class_id) == 9) { $base_id = substr($class_id, 0, 3); $second_id = substr($class_id, 0, 6); $third_id = substr($class_id, 0, 9); $base_name = $db->getTableFieldValue('info_class', 'name', 'where id=\'' . $base_id . '\' limit 1'); $second_name = $db->getTableFieldValue('info_class', 'name', 'where id=\'' . $second_id . '\' limit 1'); $third_name = $db->getTableFieldValue('info_class', 'name', 'where id=\'' . $third_id . '\' limit 1'); $default_class_id = $third_id; } if ($second_id == 101101) { $db->close(); header("location: about_101101.html"); exit; } if ($second_id == 101102) { $db->close(); header("location: speech_101102.html"); exit; } if ($second_id == 101103) { $db->close(); header("location: development_101103.html"); exit; } if ($base_id == 102) { $db->close(); header("location: business_detail_" . $class_id . ".html"); exit; } if ($base_id == 104) { $db->close(); header("location: culture_104.html#second_" . $class_id); exit; } if ($base_id == 105) { $db->close(); header("location: investor_105.html#second_" . $class_id); exit; } if ($base_id == 106) { $db->close(); header("location: contact_106.html#second_" . $class_id); exit; } $info_state = $db->getTableFieldValue('info_class', 'info_state', 'where id=\'' . $default_class_id . '\' limit 1'); $sql5 = "select * from info_class where id =" . $class_id . " order by sortnum asc limit 1"; $rst5 = $db->query($sql5); if ($row5 = $db->fetch_array($rst5)) { $t = $row5['seotitle']; // $k=$row5['keyword']; // $d=$row5['description']; //echo $t; //echo $d; //echo $k; } ?> <? if ($t) { ?> <?= $t ?> <? } else { ?> <?= !empty($third_id) ? $third_name . "_" : '' ?><?= $second_name ?>_<?= $base_name ?>_<?= $config_name ?> <? } ?>

awc

×
0 and pic<>'' order by state desc,sortnum desc"; $rst = $db->query($sql); $i = 0; while($row = $db->fetch_array($rst)){ $publishdate = explode(" ",$row['create_time']); ?>
0 order by state desc, sortnum desc limit 1"; $rst = $db->query($sql); if ($row = $db->fetch_array($rst)) { $id = $row['id']; $title = $row['title']; $content = $row['content']; $webcontent = !empty($row['webcontent']) ? $row['webcontent'] : $row['content']; $sql = "update info set views=views+1 where id=" . $id; $db->query($sql); } ?>
0 and pic<>'' order by state desc, create_time desc, sortnum desc limit 3"; $rst = $db->query($sql); while ($row = $db->fetch_array($rst)) { if (!empty($row['website'])) { $website = $row['website']; } else { $website = 'display_' . $row['id'] . '.html'; } $publishdate = explode('-', $row['create_time']); ?>
0 and pic<>'' order by state desc, create_time desc, sortnum desc limit 3"; $rst = $db->query($sql); while ($row = $db->fetch_array($rst)) { if (!empty($row['website'])) { $website = $row['website']; } else { $website = 'display_' . $row['id'] . '.html'; } $publishdate = explode('-', $row['create_time']); ?>
0"; $rst = $db->query($sql); if ($row = $db->fetch_array($rst)) { $recordCount = $row["cnt"]; } else { $recordCount = 0; } $page = (int)$_GET["page"]; $page = $page > 0 ? $page : 1; $pageSize = 5; // $pageSize = 15; $pageCount = ceil($recordCount / $pageSize); if ($page > $pageCount) $page = $pageCount; $sql = "select id,title,content,create_time,website from info where class_id like '" . $default_class_id . "%' and state>0 order by state desc, create_time desc, sortnum desc"; $sql .= " limit " . ($page - 1) * $pageSize . ", " . $pageSize; $rst = $db->query($sql); $i = 1; while ($row = $db->fetch_array($rst)) { if (!empty($row['website'])) { $website = $row['website']; } else { $website = 'display_' . $row['id'] . '.html'; } $publishdate = explode('-', $row['create_time']); ?>
0"; $rst = $db->query($sql); if ($row = $db->fetch_array($rst)) { $recordCount = $row["cnt"]; } else { $recordCount = 0; } $page = (int)$_GET["page"]; $page = $page > 0 ? $page : 1; $pageSize = 9; $pageCount = ceil($recordCount / $pageSize); if ($page > $pageCount) $page = $pageCount; $sql = "select id, title, pic, website, content,annex from info where class_id like '" . $default_class_id . "%' and state>0 order by state desc, sortnum desc"; $sql .= " limit " . ($page - 1) * $pageSize . ", " . $pageSize; $rst = $db->query($sql); $i = 0; while ($row = $db->fetch_array($rst)) { //Ƿ取编辑器图? $pattern = '/)"?\s*?/is'; $content = $row['content']; preg_match_all($pattern, $content, $match); //这里是关? $tt = implode(',', $match[1]); $publishdate = explode(' ', $row['create_time']); if (!empty($row['website'])) { $website = $row['website']; } else { $website = 'display_' . $row['id'] . '.html'; } if ($class_id == 103104) { $website = 'javascript: void(0)'; } ?>
    0"; $rst = $db->query($sql); if ($row = $db->fetch_array($rst)) { $recordCount = $row["cnt"]; } else { $recordCount = 0; } $page = (int)$_GET["page"]; $page = $page > 0 ? $page : 1; $pageSize = 5; $pageCount = ceil($recordCount / $pageSize); if ($page > $pageCount) $page = $pageCount; $sql = "select id, title, pic, website, content, create_time from info where class_id like '" . $default_class_id . "%' and state>0 order by sortnum desc"; $sql .= " limit " . ($page - 1) * $pageSize . ", " . $pageSize; $rst = $db->query($sql); $i = 0; while ($row = $db->fetch_array($rst)) { //Ƿ取编辑器图? $pattern = '/)"?\s*?/is'; $content = $row['content']; preg_match_all($pattern, $content, $match); //这里是关? $tt = implode(',', $match[1]); $publishdate = explode(' ', $row['create_time']); if (!empty($row['website'])) { $website = $row['website']; } else { $website = 'display_' . $row['id'] . '.html'; } ?>
  • ا多