1
1
<?php require_once ('./application/views/public/head.php ' );?>
2
- <div id="content">
3
-
4
- <div id="wrap">
5
- <?php require_once ('./application/views/public/right.php ' );?>
6
- <div id="blog">
7
- <div class="list_item">
8
- <div class="title">
9
- <h1><?= $ blog ['title ' ]?> </h1>
10
- <div class="share">
11
- <wb:share-button addition="simple" type="button" language="zh_cn" picture_search="false"></wb:share-button>
2
+
3
+ <div class="col-md-10" style="">
4
+ <div class="row" style="margin-bottom: 20px;">
5
+ <div class="col-md-12" style="background-color: white;">
6
+ <div class="row" style="border-bottom: 1px #f2f2f2 solid;">
7
+ <div class="col-md-12 hidden-xs hidden-sm">
8
+ <h3 class=" text-muted" ><?= $ blog ['title ' ]?> </h3>
12
9
</div>
13
10
</div>
14
- <div class="article_manage">
15
- <span class="link_postdate"><?= $ blog ['createtime ' ]?> </span>
16
- <span class="link_comments" title="评论次数">评论(<?= $ commentnums?> )</span>
17
- <span class="link_view" title="阅读次数">阅读(<?= $ blog ['look ' ]?> )</span>
11
+ <div class="row" style="margin-top: 10px;border-bottom: 1px #f2f2f2 solid;">
12
+ <div class=" col-md-2" style="margin-top:5px;">
13
+ <?php
14
+ if ($ blog ['type ' ] != 0 ){echo "类型: " ;}
15
+ if (array_key_exists (1 ,$ blogtype )){
16
+ echo "<a href=' " .BASE_URL ."?typeid= {$ blogtype [0 ]['topid ' ]}'> " .$ blogtype [1 ]['name ' ]."</a> " ;
17
+ echo "---<a href=' " .BASE_URL ."?typeid= {$ blog ['type ' ]}'> " .$ blogtype [0 ]['name ' ]."</a> " ;
18
+ }else {
19
+ echo "<a href=' " .BASE_URL ."?typeid= {$ blog ['type ' ]}'> " .$ blogtype [0 ]['name ' ]."</a> " ;
20
+ }
21
+ ?>
22
+ </div>
23
+ <div class="col-md-5 tags">
24
+ <?php
25
+ if ($ blogtag ){echo "标签: " ;}
26
+ foreach ($ blogtag as $ value )
27
+ {
28
+ ?>
29
+ <a href="<?= BASE_URL ?> index/index/?tagid=<?php echo $ value ['id ' ];?> "><button type="button" class="btn btn-info btn-sm" style="margin-bottom:8px"><?php echo $ value ['name ' ];?> </button></a>
30
+ <?
31
+ }
32
+ ?>
33
+ </div>
34
+ <div class="col-md-5">
35
+ <div class="row">
36
+ <div class="col-md-2"><wb:share-button addition="simple" type="button" language="zh_cn" picture_search="false"></wb:share-button></div>
37
+ <div class="col-md-4">评论 <?= $ commentnums?> / 阅读 <?= $ blog ['look ' ]?> </div>
38
+ <div class="col-md-6">发表时间:<?= $ blog ['createtime ' ]?> </div>
39
+ </div>
40
+ </div>
18
41
</div>
19
- <div class="infotype">
20
- <?php
21
- if ($ blog ['type ' ] != 0 ){echo "类型: " ;}
22
- if (array_key_exists (1 ,$ blogtype )){
23
- echo "<a href=' " .BASE_URL ."?typeid= {$ blogtype [0 ]['topid ' ]}'> " .$ blogtype [1 ]['name ' ]."</a> " ;
24
- echo "---<a href=' " .BASE_URL ."?typeid= {$ blog ['type ' ]}'> " .$ blogtype [0 ]['name ' ]."</a> " ;
25
- }else {
26
- echo "<a href=' " .BASE_URL ."?typeid= {$ blog ['type ' ]}'> " .$ blogtype [0 ]['name ' ]."</a> " ;
27
- }
28
- ?>
42
+ <div class="row content" style="margin: 10px;">
43
+ <?php echo $ blog ['content ' ]?>
29
44
</div>
30
45
</div>
31
- <div class="content">
32
- <div class="tags">
46
+ </div>
47
+ <div class="row">
48
+ <div class="col-md-12" id="comment" style="background-color: white;">
49
+ <div class="row" style="margin:10px">
33
50
<?php
34
- if ($ blogtag ){echo "标签: " ;}
35
- foreach ($ blogtag as $ value ){
36
- echo "<a href=' " .BASE_URL ."?tagid= {$ value ['id ' ]}'> {$ value ['name ' ]}</a> " ;
51
+ $ i =1 ;
52
+ foreach ($ comments as $ key =>$ value )
53
+ {?>
54
+ <div class="col-md-12" style="border-bottom: 1px solid gainsboro;">
55
+ <div class="row text-muted" style="padding: 5px;">
56
+ <span class="floor" name="floor"><?= $ i?> </span> 楼 <?php echo ' 评论时间: ' ,$ value ['createtime ' ];?>
57
+ <div style="float:right"><a href="javascript:void(0)" class="reply_the_comment">回复</a></div>
58
+ </div>
59
+ <?php
60
+ echo $ value ['nickname ' ],' : ' ,$ value ['content ' ];
61
+ if (array_key_exists ('reply ' ,$ value ))
62
+ {
63
+ echo "<div class='text-primary' style='border-top:1px dashed RGB(214,214,214);padding: 5px'>管理员回复: " ;
64
+ echo $ value ['reply ' ][0 ]['content ' ],'<br> ' ;
65
+ echo "</div> " ;
66
+ }
67
+ ?>
68
+
69
+ </div>
70
+ <?php $ i ++;
37
71
}
38
72
?>
73
+ <div class="col-md-12">
74
+ <form name="comment" id="commentform">
75
+ <div style=" margin-top: 10px;">
76
+ <input type="hidden" id="blogid" value="<?= $ blog ['id ' ]?> ">
77
+ <textarea name="comment" id="comment_textarea" placeholder="请发表您的评论" class="form-control"></textarea>
78
+ </div>
79
+ <div style=" margin-top: 10px;">
80
+ <input type="text" id="email" placeholder="请输入您的邮箱,便于作者回复后通知您" class="form-control">
81
+ <button type="button" class="btn btn-primary" id="post_comment">发表</button>
82
+ </div>
83
+
84
+ </form>
85
+ </div>
86
+
87
+
39
88
</div>
40
- <?= $ blog ['content ' ]?>
41
89
42
90
</div>
43
- </div>
44
- <div id="comment">
45
- <?php
46
- $ i =1 ;
47
- foreach ($ comments as $ key =>$ value ){
48
-
49
- ?>
50
- <div class="commentlist">
51
- <div>
52
- <span class="floor" name="floor"><?= $ i?> </span> 楼 <?php echo $ value ['nickname ' ],' ' ,$ value ['createtime ' ];?>
53
- <div style="float:right"><a href="javascript:void(0)" class="reply_the_comment">回复</a></div>
54
- </div>
55
-
56
- <?php echo $ value ['content ' ];
57
- if (array_key_exists ('reply ' ,$ value )){
58
- echo "<div style='border-top:1px dashed RGB(214,214,214);color:#66C8FF'>管理员回复: " ;
59
- foreach ($ value ['reply ' ] as $ value ){
60
- echo $ value ['content ' ],'<br> ' ;
61
- }
62
- echo "</div> " ;
63
- } ?>
64
-
65
- </div>
66
- <?php $ i ++;}?>
67
- <form name="comment" id="commentform">
68
- <div style=" margin-top: 10px;padding-right: 10px; ">
69
- <input type="hidden" id="blogid" value="<?= $ blog ['id ' ]?> ">
70
- <textarea name="comment" id="comment_textarea" placeholder="畅所欲言" class="comment_textarea"></textarea>
71
- </div>
72
- <div style=" margin:5px 0; ">
73
- 昵称→<input type="text" id="nickname" placeholder="您叫什么" class="comment_input">
74
- 邮箱→<input type="text" id="email" placeholder="邮箱-回复您的评论" class="comment_input">
75
- <a href="javascript:void(0)" id="post_comment" >提交</a>
76
- </div>
77
91
78
- </form>
79
92
</div>
80
93
81
- <div class="clear"></div>
94
+
95
+
96
+
97
+
82
98
</div>
83
- </div>
84
- <div class="clear"></div>
85
- <?php require_once ('./application/views/public/foot.php ' );?>
99
+
100
+ <?php require_once ('./application/views/public/foot.php ' );?>
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
0 commit comments