当前位置:网站首页>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 ~
边栏推荐
- alright alright alright
- 4. 无线体内纳米网:电磁传播模型和传感器部署要点
- 2020-11_ Technical experience set
- Tensorflow binary installation & Failure
- 剑指Offer04. 二维数组中的查找【中等】
- 2.7 overview of livedata knowledge points
- Xctf mobile--rememberother problem solving
- Application of ncnn neural network computing framework in orange school orangepi 3 lts development board
- Keep learning swift
- 云计算未来 — 云原生
猜你喜欢

Drop down refresh conflicts with recyclerview sliding (swiperefreshlayout conflicts with recyclerview sliding)

How to convert a decimal number to binary in swift

With pictures and texts, summarize the basic review of C language in detail, so that all kinds of knowledge points are clear at a glance?

阿里 & 蚂蚁自研 IDE

【ManageEngine】IP地址扫描的作用

Summary of error prone knowledge points: Calculation of define s (x) 3*x*x+1.

Xctf mobile--app2 problem solving

Xctf mobile--app1 problem solving

Low code platform international multilingual (I18N) technical solution

【计网】第三章 数据链路层(2)流量控制与可靠传输、停止等待协议、后退N帧协议(GBN)、选择重传协议(SR)
随机推荐
alright alright alright
239. Sliding window maximum
flinksql是可以直接客户端建表读mysql或是kafka数据,但是怎么让它自动流转计算起来呢?
JVM内存模型
ncnn神经网络计算框架在香橙派OrangePi 3 LTS开发板中的使用介绍
Xctf mobile--app1 problem solving
Use bloc to build a page instance of shutter
Sqoop1.4.4原生增量导入特性探秘
Enable SASL authentication for memcached
Togaf certification self-study classic v2.0
How to convert a decimal number to binary in swift
1-1 token
Xctf mobile--app3 problem solving
双链笔记·思源笔记综合评测:优点、缺点、评价
Introduction to concurrent programming (I)
Integer int compare size
Swift return type is a function of function
repo Manifest Format
257. All paths of binary tree
T430 toss and install OS majave 10.14