Skip to content

Commit 6a80918

Browse files
committed
CodeIgniter-Blog v2.4.5 Optimized website UI and serach function.
1 parent 6fe9c5e commit 6a80918

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

application/views/nav.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<table bgcolor="#FFFFFF">
1010
<tr>
1111
<td>
12-
<input type=text name=keyword size=11 value="" placeholder="输入关键字">
12+
<input type=text name=keyword size=11 value="" placeholder="输入关键字" required/>
1313
<input type=hidden name=ie value=UTF8>
1414
<input type=hidden name=oe value=UTF8>
1515
<input type=hidden name=hl value=zh-CN>

application/views/search.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<!--left-->
2626
<div class="left" id="learn">
2727
<div class="content_text">
28+
<?php if ($rows) {?>
2829
<?php foreach($rows as $row){ ?>
2930
<div class="article-title">
3031
<h1><?php echo $row->title;?></h1>
@@ -35,7 +36,8 @@
3536
<div class="article-content">
3637
<p><?php echo $row->content;?></p>
3738
</div>
38-
<?php } ?>
39+
<?php } }else{?>
40+
<?php echo '<div class="article-title">' . '<h1>' . '服务器君暂时没有找到结果,请稍后再来。' . '</h1>' . '</div>';} ?>
3941
</div>
4042
</div>
4143
<!--end left -->

0 commit comments

Comments
 (0)