Skip to content

Commit 2ed4afe

Browse files
committed
CodeIgniter-Blog v2.2.6 Updated style of last submitted pages and added new notes
1 parent 6b9bdcb commit 2ed4afe

6 files changed

Lines changed: 6 additions & 7 deletions

File tree

application/controllers/Home.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ public function article($id)//文章详情页
2424
$this->load->view('article', $data);
2525
}
2626

27-
public function about()
27+
public function about()//关于页面
2828
{
2929
$this->load->view('about');
3030
}
3131

3232
public function tweets()
3333
{
34-
$config['base_url'] = 'http://cc.com:89/home/tweets';
34+
$config['base_url'] = 'http://cc.com:89/home/tweets';//输出分页链接
3535
$config['total_rows'] = $this->db->get("tweets")->num_rows();
3636
$config['per_page'] = 10;
3737
$config['num_links'] = 100;

application/controllers/admin/Admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function logout()//登出功能
9999
}
100100

101101
/**
102-
* 文本显示模块
102+
* 文本显示模块 后台主页
103103
*/
104104
public function article()
105105
{

application/views/admin/diaries.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<!--时光--><?php if (isset($rows)) { foreach ($rows as $row):?>
5050
<div class="shiguang animated bounceIn">
5151
<div class="left sg_ico">
52-
<img src="<?php echo base_url(); ?>static/images/my_1.jpg" width="120" height="120" alt="日记图标"/>
52+
<img src="<?php echo base_url();?>static/images/my_1.jpg" width="120" height="120" alt="日记图标"/>
5353
</div>
5454
<div class="right sg_text">
5555
<?php echo $row['content']?>

application/views/diaries.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<!--时光--><?php if (isset($rows)) { foreach ($rows as $row):?>
5151
<div class="shiguang animated bounceIn">
5252
<div class="left sg_ico">
53-
<img src="<?php echo base_url(); ?>static/images/my_1.jpg" width="125" height="125" alt="日记图标"/>
53+
<img src="<?php echo base_url();?>static/images/my_1.jpg" width="125" height="125" alt="日记图标"/>
5454
</div>
5555
<div class="right sg_text">
5656
<?php echo $row['content']?>

static/css/index.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* CSS Document */
22
@charset "utf-8";
33
*{margin:0; padding:0px;}
4-
body{font-size:14px;font-family:"微软雅黑";background:#E3E3E5 url(../images/bg.jpg) 50% top scroll no-repeat;color:#5d5d5d;}
4+
body{font-size:14px;font-family:"微软雅黑";background:#E3E3E5 url(../images/bg.jpg) 50% top scroll no-repeat;color:#5d5d5d;}
55
a{text-decoration:none;}
66
.left{float:left;}
77
.right{float:right;}

static/css/style.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ img{display:block;border:0px;}
6666
.w650{width:960px;}
6767
.position{height:38px;line-height:38px;font-size:14px;color:#666;border-bottom:none;}
6868
.position a{padding:0px 5px;color:#404040;}
69-
.position a.home{background:url(../images/flower_ico.gif) no-repeat;padding-left:35px; display:inline-block;}
7069
span.bds_more{line-height:16px !important;}
7170
#bdshare span.bds_more{background:none !important;}
7271
.w650{width:960px;padding-top:15px;}

0 commit comments

Comments
 (0)