当前位置:网站首页>Social community forum app ultra-high appearance UI interface
Social community forum app ultra-high appearance UI interface
2022-07-03 12:42:00 【Programmer - Nan】
The back end of the project adopts thinkphp+mysql
Front end use iAPP frame
Forum 、 topic of conversation 、 circle 、 Direct messages
Super high appearance interface
I don't want to say much about the effect picture :
<?php
namespace Action;
use HY\Action;
!defined('HY_PATH') && exit('HY_PATH not defined.');
class Index extends HYBBS {
public function __construct(){
parent::__construct();
//{hook a_index_init}
}
public function Index(){
//{hook a_index_index_1}
$this->v('title',$this->conf['title']);
$pageid = intval(X('get.pageid')) or $pageid=1;
$type = X('get.type') or $type='New';
if($type != 'New' && $type != 'Btime')
$type='';
$this->v("type",strtolower($type));
$Thread = M("Thread");
$desc = ['tid' => 'DESC'];
if($type == 'Btime')
$desc = ['btime'=>'DESC']; // Latest reply
//{hook a_index_index_11}
$thread_list = $this->CacheObj->get("index_index_".$type.'_'.$pageid);
// Get a list of topics
if(empty($thread_list) || DEBUG){
//{hook a_index_index_22}
$thread_list = $Thread->get_thread_list($pageid,$this->conf['homelist'],$desc);
$Thread->format($thread_list);
foreach ($thread_list as $key => $value) {
if($value['top'] == 2)
unset($thread_list[$key]);
}
$this->CacheObj->set("index_index_".$type.'_'.$pageid,$thread_list);
}
//{hook a_index_index_2}
// Get top cache
$top_data=$this->CacheObj->get("top_data_2");
if(empty($top_data) || DEBUG){
//{hook a_index_index_33}
// Global top
$top_data = $Thread->get_top_thread();
// Format data display
$Thread->format($top_data);
// Write cache
$this->CacheObj->set("top_data_2",$top_data);
}
//End
//{hook a_index_index_3}
$count = $this->_count['thread'];
$count = (!$count)?1:$count;
$page_count = ($count % $this->conf['homelist'] != 0)?(intval($count/$this->conf['homelist'])+1) : intval($count/$this->conf['homelist']);
//{hook a_index_index_v}
$this->v("pageid",$pageid);
$this->v("page_count",$page_count);
$this->v("thread_list",$thread_list);
$this->v("top_list",$top_data);
$this->display('index_index');
}
//{hook a_index_fun}
}
You can leave your contact information if you need it ~
Thank you for reading , Leave a note ~
边栏推荐
- Tianyi ty1208-z brush machine detailed tutorial (free to remove)
- Eureka self protection
- 02_ Lock the code, and don't let the "lock" become a worry
- Nodejs+Express+MySQL实现登陆功能(含验证码)
- Use bloc to build a page instance of shutter
- Applet wxss introduction
- If you can't learn, you have to learn. Jetpack compose writes an im app (I)
- 初入职场,如何快速脱颖而出?
- Analysis of a music player Login Protocol
- 1-2 project technology selection and structure
猜你喜欢
Cloud Computing future - native Cloud
Alibaba is bigger than sending SMS (user microservice - message microservice)
TOGAF认证自学宝典V2.0
社交社区论坛APP超高颜值UI界面
2.7 overview of livedata knowledge points
ncnn神经网络计算框架在香橙派OrangePi 3 LTS开发板中的使用介绍
ncnn神經網絡計算框架在香柳丁派OrangePi 3 LTS開發板中的使用介紹
强大的头像制作神器微信小程序
低代码平台国际化多语言(i18n)技术方案
The future of cloud computing cloud native
随机推荐
Official website of Unicode query
Adult adult adult
Sword finger offer03 Repeated numbers in the array [simple]
最新版抽奖盲盒运营版
It feels great to know you learned something, isn‘t it?
剑指Offer07. 重建二叉树
Wechat applet pages always report errors when sending values to the background. It turned out to be this pit!
GCN thinking - word2vec directly calculates text classification
【嵌入式】---- 内存四区介绍
TOGAF认证自学宝典V2.0
Is it OK to open an account for online stock speculation? Is the fund safe?
Comprehensive evaluation of double chain notes · Siyuan notes: advantages, disadvantages and evaluation
2.9 overview of databinding knowledge points
ImportError: No module named examples. tutorials. mnist
Atomic atomic operation
基于同步坐标变换的谐波电流检测
Kung Fu pays off, and learning is done
If you can't learn, you have to learn. Jetpack compose writes an im app (II)
initial、inherit、unset、revert和all的区别
Use bloc to build a page instance of shutter