Skip to content

Commit 8c080fc

Browse files
committed
Codeigniter-Blog v2.2.1 Updated style of Admin_model, admin/guestbook, admin/reply and guestbook
1 parent 2884c38 commit 8c080fc

4 files changed

Lines changed: 3 additions & 4 deletions

File tree

application/models/Admin_model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function article($config)
8181

8282
public function diaries($config)
8383
{
84-
$data = $this->db->order_by('id', 'desc')->get('diaries', $config['per_page'], $this->uri->segment(4));
84+
$data = $this->db->get('diaries', $config['per_page'], $this->uri->segment(4));
8585
return $data->result_array();
8686
}
8787

application/views/admin/guestbook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<h3>
5151
<font color="#ff69b4">
5252
<br />&nbsp&nbsp<?php echo $row['name']?>
53-
&nbsp&nbsp<?php echo $row['date']?><br />
53+
&nbsp&nbsp&nbsp&nbsp<?php echo $row['date']?><br />
5454
&nbsp&nbsp<?php echo $row['content']?><br /><br />
5555
<a><?php echo anchor('admin/admin/delete_guestbook/'.$row['id'],'删除留言')?></a>
5656
<a style="padding-left: 5%;">

application/views/admin/reply.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
defined('BASEPATH') OR exit('No direct script access allowed');
33
?>
4-
54
<!DOCTYPE html>
65
<html lang="en">
76
<head>

application/views/guestbook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<h3>
5353
<font color="#ff69b4">
5454
<br />&nbsp&nbsp<?php echo $row['name']?>
55-
&nbsp&nbsp<?php echo $row['date']?><br />
55+
&nbsp&nbsp&nbsp&nbsp<?php echo $row['date']?><br />
5656
&nbsp&nbsp<?php echo $row['content']?>
5757
</font>
5858
</h3>

0 commit comments

Comments
 (0)