{/"title/":/"电脑mod下载 - 优质网站资源查询/", /"description/":/"提供电脑mod下载资源搜索,查找优质网站资源,方便快捷,一键访问。/", /"keywords/":/"电脑mod下载, mod资源, 网站资源查询, 资源搜索/", /"content/":/"<?php include '/"../../config.php/"'; ?>/n/n<?php/n/$search = isset(/$_GET['search']) ? /$_GET['search'] : '';/n/$Page = isset(/$_GET['page']) ? /$_GET['page'] : 1;/n/$PageSize = 20;/n/$startRow = (/$Page - 1) * /$PageSize;/n/$maxRecords = 100; // Set maximum number of records to display/n/n/$str = /"SELECT * FROM mod WHERE (name LIKE '/%' . /$search . '/%' OR shows LIKE '/%' . /$search . '/%' OR banben LIKE '/%' . /$search . '/%') LIMIT /" . /$startRow . /",/" . /$PageSize;/n/nmysqli_set_charset(/$con, 'utf8');/n/$result = mysqli_query(/$con, /$str);/n/$arr = array();/n/n// Calculate total number of rows/n/$totalRows = mysqli_num_rows(mysqli_query(/$con, /"SELECT * FROM mod WHERE (name LIKE '/%' . /$search . '/%' OR shows LIKE '/%' . /$search . '/%' OR banben LIKE '/%' . /$search . '/%')/"));/n/$totalPages = ceil(/$totalRows / /$PageSize);/n/n// Set maximum number of records to display/nif (/$totalRows > /$maxRecords) {/n /$totalRows = /$maxRecords;/n /$totalPages = ceil(/$totalRows / /$PageSize);/n if (/$Page > /$totalPages) {/n /$Page = 1;/n /$startRow = 0;/n }/n /$str = /"SELECT * FROM mod WHERE (name LIKE '/%' . /$search . '/%' OR shows LIKE '/%' . /$search . '/%' OR banben LIKE '/%' . /$search . '/%') LIMIT /" . /$startRow . /",/" . /$PageSize;/n /$result = mysqli_query(/$con, /$str);/n}/n/n?>/n/n<!DOCTYPE html>/n<html>/n<head>/n <meta charset=/"UTF-8/">/n <title>电脑mod下载</title>/n <script src=/"/js/protect/1.0.0.js/"></script>/n/t<link rel=/"stylesheet/" href=/"/css/button/1.0.0.css/">/n/t<meta name=/"viewport/" content=/"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no/">/n <style>/n body {/n font-family: Arial, sans-serif;/n }/n/n form {/n text-align: center;/n margin-bottom: 20px;/n }/n/n .search-container {/n display: flex;/n justify-content: center;/n align-items: center;/n }/n/n .search-container input[type=/"text/"] {/n padding: 10px;/n font-size: 20px;/n border: 1px solid #ccc;/n flex: 1;/n }/n/n .search-container button[type=/"submit/"] {/n padding: 10px 20px;/n font-size: 20px;/n background-color: #4CAF50;/n color: white;/n border: none;/n border-radius: 3px;/n margin-left: 10px;/n }/n/n select {/n padding: 5px;/n border: 1px solid #ccc;/n }/n/n h1 {/n font-size: 30px;/n text-align: center;/n margin-top: 0;/n }/n/n .result a {/n display: block;/n margin-bottom: 10px;/n text-decoration: none;/n color: #000;/n font-weight: bold;/n }/n/n .result a:hover {/n color: #4CAF50;/n }/n/n .result p {/n margin-bottom: 5px;/n }/n/n .result .analysis {/n margin-top: 10px;/n font-style: italic;/n color: #666;/n }/n/n .pagination {/n display: flex;/n justify-content: center;/n margin-top: 20px;/n }/n/n .pagination a, .pagination span {/n padding: 5px 10px;/n margin: 0 2px;/n background-color: #4CAF50;/n color: white;/n text-decoration: none;/n }/n </style>/n</head>/n<body>/n <h1>优质网站资源查询</h1>/n <div>/n <form action=/"/" method=/"get/">/n <div class=/"search-container/">/n <input type=/"text/" name=/"search/" placeholder=/"资源好杂,遵简一下/">/n <button type=/"submit/" name=/"submit/">搜索</button>/n </div>/n </form>/n <div class=/"result/">/n <?php while (/$row = mysqli_fetch_array(/$result)) { ?>/n <a style=/"font-size:20px;/" href=/"<?php echo /$row['web']; ?>/" target=/"_blank/"><?php echo /$row['name']; ?></a>/n <p><?php echo /$row['shows']; ?></p>/n <p class=/"analysis/">版本:<?php echo /$row['banben']; ?></p>/n <hr>/n <?php } ?>/n </div>/n <div class=/"pagination/">/n <?php/n /$query_string = /$_SERVER['QUERY_STRING'];/n /$query_string = preg_replace(/"//&?page=/d+//", /"/", /$query_string); // 移除现有的页码参数/n if (strpos(/$query_string, 'search=') === false) {/n /$query_string .= '&search=' . urlencode(/$search); // 向查询字符串中添加搜索关键字参数/n }/n/nif (/$Page > 1) {/n echo '<a href=/"?page=1/&' . /$query_string . '/" class=/"pagination-link/">首页</a>';/n echo '<a href=/"?page=' . (/$Page - 1) . '/&' . /$query_string . '/" class=/"pagination-link/">上一页</a>';/n} else {/n echo '<span class=/"pagination-link disabled/">首页</span>';/n echo '<span class=/"pagination-link disabled/">上一页</span>';/n}/n/nfor (/$i = 1; /$i <= /$totalPages; /$i++) {/n if (/$i == /$Page) {/n echo '<span class=/"pagination-link current/">' . /$i . '</span>';/n } else {/n echo '<a href=/"?page=' . /$i . '/&' . /$query_string . '/" class=/"pagination-link/">' . /$i . '</a>';/n }/n}/n/nif (/$Page < /$totalPages) {/n echo '<a href=/"?page=' . (/$Page + 1) . '/&' . /$query_string . '/" class=/"pagination-link/">下一页</a>';/n echo '<a href=/"?page=' . /$totalPages . '/&' . /$query_string . '/" class=/"pagination-link/">末页</a>';/n} else {/n echo '<span class=/"pagination-link disabled/">下一页</span>';/n echo '<span class=/"pagination-link disabled/">末页</span>';/n}/n/n ?>/n </div>/n </div>/n/t<a href=/"//" class=/"home-button/">返回主页</a>/n</body>/n</html>/n/&quot


原文地址: https://www.cveoy.top/t/topic/pPJc 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录