phpcms?? ????? ??? ???? ??? ??????
phpcms v9? ?? ???? ?? ??? ?????(?? ???? ??? ?????????)
? ?? ??? phpcmsmodulescontentclasses content_tag.class.php? ???? ??? }?
public function newcontent($data){ $num = intval($data['limit']) ? intval($data['limit']) : '20'; // 設(shè)置排序 switch($data['order']){ case '1': $order = ' `id` ASC '; break; case '2': $order = ' `id` DESC '; break; case '3': $order = ' `inputtime` ASC '; break; case '4': $order = ' `inputtime` DESC '; break; case '5': $order = ' `updatetime` ASC '; break; case '6': $order = ' `updatetime` DESC '; break; default: $order = ' `id` DESC '; } if($data['catid']){ $catids = explode(',', $data['catid']); foreach($catids as $catid){ $catid = intval($catid); if(empty($catid))continue; $this->set_modelid($catid); $where = $this->category[$catid]['child'] ? ' `catid` IN ('.$this->category[$catid]['arrchildid'].')' : " `catid` = $catid"; $datas = $this->db->select($where, '*', $num, $order); $data[$catid]['data'] = $datas; // 記錄本次的文章數(shù) $data['num'][] = count($datas); $model_num++; } }else{ $models = getcache('model', 'commons'); foreach($models as $model){ $this->db->set_model($model['modelid']); $datas = $this->db->select('', '*', $num, $order); $data[$model['modelid']]['data'] = $datas; // 記錄本次的文章數(shù) $data['num'][] = count($datas); $model_num++; } } if($data){ // 獲取每個(gè)模型應(yīng)該截取的條數(shù) $num = ceil($num/$model_num); // 循環(huán)條數(shù)記錄用于找出條數(shù)不滿足的數(shù)量然后進(jìn)行平均 $w_num = $w_num_t = ''; foreach($data['num'] as $num_t){ if($num_t < $num){ $w_num += $num-$num_t; $w_num_t++; } } // 判斷是否有不滿足平均數(shù)的 如果有那么就增加平均值 if($w_num_t){ $num += ceil($w_num/($model_num-$w_num_t)); } $datas = array(); foreach($data as $r){ $r_n = ''; if(is_array($r['data'])) foreach($r['data'] as $r_t){ $datas[] = $r_t; if(++$r_n == $num)break; } } return $datas; }else{ return false; } }
? ???? ????. : ??? ??
?? ?? ?? ?? ??
{pc:content action="newcontent" }
? ?? ?????. ???? ??:
catid: ???? ??? ?? ??? ?????. ?? ?? ?? ?? ??, ??? ?????.
order: ?? ???? ?: 1-7 ???? ??? ???? ???? ????.
num: ???? ?? ?? ?? ?? , ???? 20?????
? ??? phpcms?? ?? ????? ??? ???? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

phpcms?? ???? ???? ???? ??: 1. ?? ??? ???? ?? ??? ?????. 2. ??? ??? ?????. 3. ???? ??? ???? ??? ??? ?????.

PHP CMS? ? ??? ??? ??? ?? PHP ?? ?? ?? ??? ?? ?????, ?? ???, ??? ??, ???, ?? ?? ? ?? ?? ??? ?????. ??? ????, ???? ??? ?????, ??? ????, ?? ??? ??? ? ???, ?? ????, ???, ?? ????, ????? ????, ???? ?? ? ??? ?????? ?? ???? ????.

phpcms? ?? ??? ????. phpcms? ?? ?? cms ?????? ?? ??? ?? ??? ??? ??? ? ?? ??? ????. ????? ????, ???? ???? ?? ??? ???? ???.

??: WeChat ??? ?? ???: PHPCMS? ?? ??? ??? ??? ?? ???? ????? ?? ?? ? ??? ?????. ???? ?? ?? ?? ?? ??? ? ??? WeChat? ??? ??? ?? ? ?? ??????? ???? ????. ? ????? WeChat ??? ??? PHPCMS ????? ???? ??? ???? ???? ?? ??? ?????. 1??: WeChat Open Platform ?? ?? ?? WeChat Open Platform? ??? ??? ???? ?? ?? ??? ???? ???. ??? [?? ?? ???]

PHPCMS ??? ?? ?? ?? ?? ?? ? ??? ???? ??? ?? ??? ?? ???? ?? ???? ???? ???????. ??? ??? ?? ??? ?????. ??? ??? ???? ??? ?? ??? ?? ??? ???? ?? ??? ???? ?? ??? ??? ?? ?? ?????. ? ????? PHPCMS? ??? ?? ?? ?? ??? ???? ???? ??? ? ?? ???? ?? ??? ?????. 1. ???? ??? ??? ???? ?? ???? ??? ??? ??? ??? ???? ???.

PHPCMS? ?? ??, ???, ???, ??? ??? ? ???? ??? ?? ?? ?? ?? ??? ?? ???(CMS)???. ?? ????, ????? ????, ???, ???? ?? ? ??? ??? ????? ??? ? ??? ? ????. ?? ?? ???? PHP 5.6 ??, MySQL, MariaDB ?? PostgreSQL ??????, Apache ?? Nginx ? ??? ?????.

phpcms?? ? ?? ? ??? ??? ????. 1. ??? ?? URL ??? ???? phpCMS4 ???? ?? ??? ???? ???? ??? ??? ???? ??? ? ?? ?? ????? ????? ????. . ???, ?? ??? ??, ??? ??? ???? phpCMS2008R1 ???? ???? ???? ?? ??? ??? ?????.

phpcms? mysql ??????? ?????. phpcms? PHP+MYSQL? ?? ???? ???? ??? PHP ?? ?? ???? ?? ??????. PHPCMS V9? OOP ??? ???? ?? ?? ?????? ?????. ???? PHP ??? PHP5 ??, ???? MYSQL ??? MySql 4.1 ?????.
