添加捐钱界面

deploy
a74589669 2019-10-03 01:43:48 +08:00
parent 53449ff655
commit 09df33160f
4 changed files with 158 additions and 9 deletions

View File

@ -39,15 +39,17 @@ class Blog extends Controller
$content = $markdown->text($doc[0]['content']);
echo '</pre>';
if(\App\Config::$DEBUG)
View::renderTemplate("/blog/basic.html",['title'=>rawurldecode( $this->querys['title']),
View::renderTemplate("/blog/basic.html",
['title'=>rawurldecode( $this->querys['title']),
'index'=>false,
'content'=>$content,
'type' => $this->querys['type'],
'debug' => true,
'article'=>true,
]);
else
View::renderTemplate("/blog/basic.html",['title'=>rawurldecode( $this->querys['title']),
'index'=>false,
'article'=>true,
'content'=>$content,
'type' => $this->querys['type']]);
@ -55,6 +57,11 @@ class Blog extends Controller
View::renderTemplate("/blog/basic.html",['title'=>'test','index'=>false]);
}
}
function donateAction(){
View::renderTemplate("/blog/basic.html",
['donate'=>true]);
}
function jsAction(){
//print_r($_SERVER);
}

View File

@ -95,12 +95,15 @@
border: #0b93d5 solid 1px;
border-radius: 1px;
}
ul li a{
color: white;
}
</style>
<body>
<div id="top">
<div style="display: inline;float: right">这是一个纯手敲出来的博客</div>
<div style="display: inline;float: right"></div>
<div id="sidebar">
<ul style="padding-left: 0px">
{% if debug == true %}
@ -111,8 +114,11 @@
<li>项目</li>
<li>杂文</li>
<li>赞助</li>
</ul>
{% if debug == true %}
<li><a href="/api/public/Blog/donate">赞助</a></li>
{%else%}
<li><a href="/wapi/Blog/donate">赞助</a></li>
{% endif %} </ul>
</div>
</div>
<div id="container" >
@ -126,7 +132,7 @@
</ul>
</div>
</div>
<div id="right" style="background: wheat;overflow:scroll">
<div id="right" style="background: wheat;overflow:hidden">
{% if index == true %}
{% for doc in docs %}
<div style="width: 660px; height: 160px; border-bottom: #0b58a2 solid 2px ;margin: 5px 5px 5px 0px; overflow:hidden;padding-bottom: 4px;">
@ -145,7 +151,8 @@
<p style="vertical-align: bottom;font-size: 12px;">read more</p>
</div>
{% endfor %}
{%else%}
{% endif %}
{% if article == true %}
<div style="width: 670px; height: 100%; border-bottom: #0b58a2 solid 1px ;margin: 5px 5px 5px 5px;">
<p style="display: block;font-size: 16px;text-align: center;font-family: 黑体;">
<br>{{ title }}</br>
@ -157,6 +164,12 @@
</div>
</div>
{% endif %}
{% if donate == true %}
<img src="/api/App/Views/blog/res/pic/ali.jpg"
style="width: 300px;height: 420px;margin-left: 25%;">
{% endif %}
</div>
</div>
<script type="text/javascript" async>
@ -170,6 +183,6 @@
<div id="footer">
<p style="font-size: 5px;margin: auto;width: 250px;text-align: center">个人网站,备案号: 闽ICP备19002644号-1</p>
<p style="font-size: 5px;margin: auto;width: 150px;text-align: center">testingcloud.club</p>
<p style="font-size: 5px;margin: auto;width: 150px;text-align: center">技术交流</p>
<p style="font-size: 5px;margin: auto;width: 150px;text-align: center">联系方式290198252@qq.com</p>
</div>
</body>

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

129
background.sql Normal file

File diff suppressed because one or more lines are too long