查询中心 - 搜索资源
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>查询中心</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
        <style>
            body {
                font-family: Arial, sans-serif;
            }
<pre><code>        form {
            margin-bottom: 20px;
        }
        
        input[type="text"] {
            padding: 5px;
            width: 300px;
        }
        
        input[type="submit"] {
            padding: 5px 10px;
            background-color: #4CAF50;
            color: white;
            border: none;
            cursor: pointer;
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
        }
        
        th, td {
            padding: 10px;
            text-align: left;
        }
        
        th {
            background-color: #4CAF50;
            color: white;
        }
        
        tr:nth-child(even) {
            background-color: #f2f2f2;
        }
    </style>
</head>
<body>
    <div align="center">
        <form action="" method="post">
            <input type="text" name="search" value="" placeholder="">
            <input type="submit" name="submit" value="搜索">
        </form>
        <?php
        foreach ($arr as $key=>$value)
        {
        ?>
        <div>
            <h3><?php echo $value['wenzhang_name'];?></h3>
            <p>作者: <?php echo $user_info['user_name'];?></p>
            <p><?php echo $value['wenzhang_miaoshu'];?></p>
            <p>点赞: <?php echo $value['wenzhang_dianzan'];?></p>
            <p>浏览: <?php echo $value['wenzhang_view'];?></p>
        </div>
        <?php
        }
        ?>
	</div>
</body>
</code></pre>
</html>
原文地址: https://www.cveoy.top/t/topic/pDAD 著作权归作者所有。请勿转载和采集!