添加捐钱界面

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

View File

@ -95,12 +95,15 @@
border: #0b93d5 solid 1px; border: #0b93d5 solid 1px;
border-radius: 1px; border-radius: 1px;
} }
ul li a{
color: white;
}
</style> </style>
<body> <body>
<div id="top"> <div id="top">
<div style="display: inline;float: right">这是一个纯手敲出来的博客</div> <div style="display: inline;float: right"></div>
<div id="sidebar"> <div id="sidebar">
<ul style="padding-left: 0px"> <ul style="padding-left: 0px">
{% if debug == true %} {% if debug == true %}
@ -111,8 +114,11 @@
<li>项目</li> <li>项目</li>
<li>杂文</li> <li>杂文</li>
<li>赞助</li> {% if debug == true %}
</ul> <li><a href="/api/public/Blog/donate">赞助</a></li>
{%else%}
<li><a href="/wapi/Blog/donate">赞助</a></li>
{% endif %} </ul>
</div> </div>
</div> </div>
<div id="container" > <div id="container" >
@ -126,7 +132,7 @@
</ul> </ul>
</div> </div>
</div> </div>
<div id="right" style="background: wheat;overflow:scroll"> <div id="right" style="background: wheat;overflow:hidden">
{% if index == true %} {% if index == true %}
{% for doc in docs %} {% 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;"> <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> <p style="vertical-align: bottom;font-size: 12px;">read more</p>
</div> </div>
{% endfor %} {% endfor %}
{%else%} {% endif %}
{% if article == true %}
<div style="width: 670px; height: 100%; border-bottom: #0b58a2 solid 1px ;margin: 5px 5px 5px 5px;"> <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: 黑体;"> <p style="display: block;font-size: 16px;text-align: center;font-family: 黑体;">
<br>{{ title }}</br> <br>{{ title }}</br>
@ -157,6 +164,12 @@
</div> </div>
</div> </div>
{% endif %} {% 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>
</div> </div>
<script type="text/javascript" async> <script type="text/javascript" async>
@ -170,6 +183,6 @@
<div id="footer"> <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: 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">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> </div>
</body> </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