当前位置:网站首页>Implementation of homepage header function in PHP development blog system
Implementation of homepage header function in PHP development blog system
2022-06-13 04:31:00 【qq_ forty-two million three hundred and seven thousand five hun】
Apply the template to the front page and place the following files in the root directory of the website
https://down.chinaz.com/search/Light-Year-Blog.htm
index.php
<?php
include_once 'init.php';
$result = $conn->query('select * from config');
while($row = $result->fetch_assoc()){
$web[$row['name']]=$row['value'];
}
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php echo $web['website_title']; ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php echo $web['website_desc'];?>" />
<meta name="keywords" content="<?php echo $web['website_keywords'];?>" />
<meta name="author" content="moonsec" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/materialdesignicons.min.css" />
<link rel="stylesheet" type="text/css" href="css/style.min.css" />
</head>
<body>
<header class="lyear-header text-center" style="background-image:url(images/left-bg.jpg);">
<div class="lyear-header-container">
<div class="lyear-mask"></div>
<h1 class="lyear-blogger pt-lg-4 mb-0"><a href="index.php"><?php echo $web['website_title']; ?></a></h1>
<nav class="navbar navbar-expand-lg">
<a class="navbar-toggler" data-toggle="collapse" data-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation">
<div class="lyear-hamburger">
<div class="hamburger-inner"></div>
</div>
</a>
<div id="navigation" class="collapse navbar-collapse flex-column">
<div class="profile-section pt-3 pt-lg-0">
<img class="profile-image mb-3 rounded-circle mx-auto" src="images/img.png" width="200" height="200" alt=" Light year under the pen " >
<div class="lyear-sentence mb-3"> It must be remembered that our time for study is limited . Time is limited , Not only is life short , More because of the numerous personnel . We should try to spend all our time doing the most useful things .</div>
<hr>
</div>
<ul class="navbar-nav flex-column text-center">
<li class="nav-item active">
<a class="nav-link" href="index.php"> home page </a>
</li>
<?php
$result=$conn->query('select * from cate ');
while($row=$result->fetch_assoc()){
?>
<li class="nav-item">
<a class="nav-link" href="post.php?id=<?php echo $row['id'];?>"><?php echo $row['class_name'];?></a>
</li>
<?php
}
?>
<li class="nav-item">
<a class="nav-link" href="about.html"> About me </a>
</li>
</ul>
<div class="my-2 my-md-3">
<form class="lyear-search-form form-inline justify-content-center pt-3">
<input type="email" id="semail" name="semail1" class="form-control mr-md-1" placeholder=" Search keywords " />
</form>
</div>
</div>
</nav>
</div>
</header>
<div class="lyear-wrapper">
<section class="mt-5 pb-5">
<div class="container">
<div class="row">
<!-- The article lists -->
<div class="col-xl-8">
<article class="lyear-arc">
<div class="arc-header">
<h2 class="arc-title"><a href="post.html"> Weilai automobile announced that it would be today 20 Hold a telephone conference on the results of the second quarter at </a></h2>
<ul class="arc-meta">
<li><i class="mdi mdi-calendar"></i> 2019-09-25 09:21</li>
<li><i class="mdi mdi-tag-text-outline"></i> <a href="#"> Wei Lai automobile </a>, <a href="#"> results </a></li>
<li><i class="mdi mdi-comment-multiple-outline"></i> <a href="#">3 Comment on </a></li>
</ul>
</div>
<div class="arc-synopsis">
<p> Today, , Weilai announced that it will be held on Wednesday, Beijing time 20: 00 Hold a conference call on the results of the second quarter . Yesterday, , Weilai automobile announced that as of 2019 year 6 month 30 The unaudited second quarter financial report of the th . The financial report shows that , Wei to 2019 Total revenue in the second quarter 15. 086 One hundred million yuan , fell 7.5% Year-on-year growth 3180.1%; A net loss 32. 858 One hundred million yuan , rose 25.2%, Year-on-year growth 83.1%.</p>
</div>
</article>
<article class="lyear-arc">
<div class="arc-header">
<h2 class="arc-title"><a href="post.html"> Apple CEO The cook :Apple It has been completely powered by renewable energy </a></h2>
<ul class="arc-meta">
<li><i class="mdi mdi-calendar"></i> 2019-09-25 09:20</li>
<li><i class="mdi mdi-tag-text-outline"></i> <a href="#"> Apple </a>, <a href="#">Apple</a></li>
<li><i class="mdi mdi-comment-multiple-outline"></i> <a href="#">37 Comment on </a></li>
</ul>
</div>
<div class="arc-preview">
<a href="#"><img src="images/blog/post-1.png" alt="" class="img-fluid rounded"></a>
</div>
<div class="arc-synopsis">
<p> Apple CEO Cook said on his microblog ,「 We are very proud of Apple It has been completely powered by renewable energy , And work together with our suppliers in this direction . Next year we will have more than 6000 Megawatts of new renewable energy are connected to the grid , Including three new wind farms located in Hunan and Hubei .」</p>
</div>
</article>
<article class="lyear-arc">
<div class="arc-header">
<h2 class="arc-title"><a href="post.html"> Chinese chives prick the heart ! Bitcoin once fell below 8000 dollar 24 Hour drop 10.6%</a></h2>
<ul class="arc-meta">
<li><i class="mdi mdi-calendar"></i> 2019-09-25 09:19</li>
<li><i class="mdi mdi-tag-text-outline"></i> <a href="#"> The currency </a>, <a href="#"> leek </a></li>
<li><i class="mdi mdi-comment-multiple-outline"></i> <a href="#">90 Comment on </a></li>
</ul>
</div>
<div class="arc-synopsis">
<p> This Tuesday , Bitcoin has suffered a sharp fall , According to the market , Bitcoin once fell below 8000 dollar , We now make an appointment with 8723 dollar , I'm afraid this makes a large wave of leeks quite heartbreaking . </p>
</div>
</article>
<article class="lyear-arc">
<div class="arc-header">
<h2 class="arc-title"><a href="post.html"> Hundreds of thousands PhpStudy The user is implanted in the back door , Check to see if you're reduced to “ chicken ”!</a></h2>
<ul class="arc-meta">
<li><i class="mdi mdi-calendar"></i> 2019-09-24 09:57</li>
<li><i class="mdi mdi-tag-text-outline"></i> <a href="#">PhpStudy</a></li>
<li><i class="mdi mdi-comment-multiple-outline"></i> <a href="#">115 Comment on </a></li>
</ul>
</div>
<div class="arc-preview">
<a href="#"><img src="images/blog/post-2.jpg" alt="" class="img-fluid rounded"></a>
</div>
<div class="arc-synopsis">
<p> Beijing time. 9 month 20 Japan , Hangzhou public security released 《 Hangzhou police reported to crack down on Internet related crimes and ‘ Net net 2019’ The results of special operations 》 One article , The article exposed the domestic well-known PHP Debug environment program integration package “PhpStudy Software ” Tampered with and implanted by hackers “ back door ”. section ...</p>
</div>
</article>
<article class="lyear-arc">
<div class="arc-header">
<h2 class="arc-title"><a href="post.html"> Working for Microsoft 15 Years ago, the former employee explained Windows 10 Why are there so many problems </a></h2>
<ul class="arc-meta">
<li><i class="mdi mdi-calendar"></i> 2019-09-24 07:52</li>
<li><i class="mdi mdi-tag-text-outline"></i> <a href="#">windows</a>, <a href="#">win10</a></li>
<li><i class="mdi mdi-comment-multiple-outline"></i> <a href="#">26 Comment on </a></li>
</ul>
</div>
<div class="arc-synopsis">
<p> as everyone knows Windows 10 System problems occur frequently , Generally speaking, the stability is poor , However, the previous version is relatively stable . since Windows 10 When the official version comes out , The system began to have frequent problems , And now every month ...</p>
</div>
</article>
<!-- Pagination -->
<div class="row">
<div class="col-lg-12">
<ul class="pagination">
<li class="page-item"><a class="page-link" href="#"><i class="mdi mdi-chevron-left"></i></a></li>
<li class="page-item active"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item"><a class="page-link" href="#">4</a></li>
<li class="page-item"><a class="page-link" href="#">5</a></li>
<li class="page-item"><a class="page-link" href="#"><i class="mdi mdi-chevron-right"></i></a></li>
</ul>
</div>
</div>
<!-- Pagination end -->
</div>
<!-- Content end -->
<!-- Sidebar -->
<div class="col-xl-4">
<div class="lyear-sidebar">
<!-- Hot articles -->
<aside class="widget widget-hot-posts">
<div class="widget-title"> Hot articles </div>
<ul>
<li>
<a href="#"> Samsung will be Galaxy Fold The user provides 149 Dollar replacement screen service </a> <span>2019-09-25 10:05</span>
</li>
<li>
<a href="#"> Experts :10 After year 6G Will come out The data transmission rate is expected to be faster than 5G fast 100 times </a> <span>2019-09-25 08:06</span>
</li>
<li>
<a href="#"> Apple officially released iPadOS 13.1 System , Add a number of powerful new features </a> <span>2019-09-25 09:35</span>
</li>
</ul>
</aside>
<!-- file -->
<aside class="widget">
<div class="widget-title"> file </div>
<ul>
<li><a href="#">2019 March </a> (40)</li>
<li><a href="#">2019 April </a> (08)</li>
<li><a href="#">2019 May </a> (11)</li>
<li><a href="#">2019 June </a> (21)</li>
</ul>
</aside>
<!-- label -->
<aside class="widget widget-tag-cloud">
<div class="widget-title"> label </div>
<div class="tag-cloud">
<a href="#" class="badge badge-light">php</a>
<a href="#" class="badge badge-primary"> Apple </a>
<a href="#" class="badge badge-danger"> The currency </a>
<a href="#" class="badge badge-light">linux</a>
<a href="#" class="badge badge-light"> front end </a>
<a href="#" class="badge badge-light">vue</a>
</div>
</aside>
</div>
</div>
<!-- Sidebar end -->
</div>
</div>
<!-- end container -->
</section>
</div>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.nicescroll.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/main.min.js"></script>
</body>
</html>
边栏推荐
- 2022 ICML | Pocket2Mol: Efficient Molecular Sampling Based on 3D Protein Pockets
- Message scrolling JS implementation
- 【Flutter 問題系列第 67 篇】在 Flutter 中使用 Get 插件在 Dialog 彈窗中不能二次跳轉路由問題的解决方案
- Answer private message @ Tiantian Wx //2022-6-12 C language 51 single chip microcomputer led analog traffic light
- Discussion sur la modélisation de la série 143
- R: Airline customer value analysis practice
- 在线音频调节技术汇总
- The data obtained from mongodb query data command is null
- Notes on software test for programmers -- basic knowledge of software development, operation and maintenance
- Redis
猜你喜欢

Uni app Ali font icon does not display

Collection of wrong questions in soft test -- morning questions in the first half of 2011

电磁兼容常用名词术语

EIA map making - data processing + map making

Introduction to applet Basics (dark horse learning notes)

Dumi builds a document blog

C盘无损移动文件

记录一次排查问题的经过——视频通话无法接起

dumi 搭建文档型博客
![[kubernetes series] pod chapter actual operation](/img/ac/fb563f3d92e6fdbd36e41d2f213556.jpg)
[kubernetes series] pod chapter actual operation
随机推荐
Summary of webdriver API for web automated testing
Consolidated figures
PAT 1054 The Dominant Color
[automated test] what you need to know about unittest
CTFSHOW SQL注入篇(211-230)
php开发博客系统的首页头部功能实现
EIA map making - data processing + map making
[flutter problem Series Chapter 67] the Solution to the problem of Routing cannot be jumped again in in dialog popup Using get plug - in in flutter
R: Employee turnover forecast practice
UE4 learning notes - functions of terrain tool
Click change color to change subscript
Advanced Mathematics (Seventh Edition) Tongji University exercises 1-3 personal solutions
PAT 1054 The Dominant Color
Gets or sets the content in an object
2022 ICML | Pocket2Mol: Efficient Molecular Sampling Based on 3D Protein Pockets
Suffix Automaton
是“凯撒密码”呀。(*‘▽‘*)*
Introduction and use of ES6
Redis
出现Could not find com.scwang.smart:refresh-layout-kernel:2.0.3.Required by: project :app 无法加载第三方包情况