国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home Backend Development PHP Tutorial 關(guān)于網(wǎng)站前臺(tái)會(huì)員登記登錄的一些疑問(wèn)

關(guān)于網(wǎng)站前臺(tái)會(huì)員登記登錄的一些疑問(wèn)

Jun 13, 2016 pm 12:01 PM
cms quote select type

關(guān)于網(wǎng)站前臺(tái)會(huì)員注冊(cè)登錄的一些疑問(wèn)
現(xiàn)在公司要求做一個(gè)企業(yè)站,前臺(tái)要求可以注冊(cè)會(huì)員,并且可以選擇要注冊(cè)會(huì)員的類型,根據(jù)注冊(cè)類型的不同,登錄后會(huì)員的功能也不一樣,并且顯示不同的用戶中心界面。會(huì)員可以在網(wǎng)站上發(fā)布一些圖片和文字等信息。發(fā)布后后臺(tái)管理員進(jìn)行審核,審核成功后方可在網(wǎng)站上顯示。請(qǐng)問(wèn)這樣類似的功能應(yīng)該怎么實(shí)現(xiàn)呢。本人大學(xué)畢業(yè)不久,以前都是讓干的套模版的工作。而且現(xiàn)在用的這套CMS只有后臺(tái)登陸和新聞?lì)惖陌l(fā)布功能。所以想請(qǐng)教一下論壇上的各位大大指導(dǎo)一下小弟,感激不盡?。。。?!
------解決方案--------------------
你打算用哪個(gè)框架還是原生代碼實(shí)現(xiàn)?
看你說(shuō)是干套模版的工作,那么也應(yīng)該有你熟悉的后臺(tái)吧
------解決方案--------------------
這個(gè)很好實(shí)現(xiàn)啊,用權(quán)限控制來(lái)實(shí)現(xiàn),不同注冊(cè)類型其實(shí)就是不同的權(quán)限分組角色,每組角色在后臺(tái)維護(hù)一套模板。
------解決方案--------------------
簡(jiǎn)單點(diǎn)的就設(shè)注冊(cè)會(huì)員的類型為type,注冊(cè)時(shí)根據(jù)注冊(cè)類型給它個(gè)值(如1、2、3、4之類的),登錄時(shí)判斷type值給它對(duì)應(yīng)的界面。
------解決方案--------------------
給用戶發(fā)表的文章增加個(gè)字段用來(lái)標(biāo)識(shí)是否通過(guò)審核,沒(méi)有的在前臺(tái)展示的時(shí)候就不進(jìn)行展示。
------解決方案--------------------

引用:
Quote: 引用:

給用戶發(fā)表的文章增加個(gè)字段用來(lái)標(biāo)識(shí)是否通過(guò)審核,沒(méi)有的在前臺(tái)展示的時(shí)候就不進(jìn)行展示。
額,這個(gè)審核字段,后臺(tái)管理員怎么用呢,我現(xiàn)在就做過(guò)在前臺(tái)模版加一個(gè)簡(jiǎn)單的判斷啥的,這個(gè)的話就有點(diǎn)難了。麻煩大家給個(gè)詳細(xì)點(diǎn)的教程啊..........
后臺(tái)管理員審核就是更改那個(gè)標(biāo)識(shí)字段,譬如用戶發(fā)表的在初始化得時(shí)候都為1(未審核),后臺(tái)管理員點(diǎn)擊審核通過(guò)的時(shí)候更改狀態(tài)為0(已審核),前臺(tái)展示的時(shí)候根據(jù)這個(gè)字段在select語(yǔ)句中增加標(biāo)識(shí)字段為0的文章進(jìn)行展示就可以了。
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Solve Ubuntu mounting mobile hard disk error: unknown file system type exfat Solve Ubuntu mounting mobile hard disk error: unknown file system type exfat Jan 05, 2024 pm 01:18 PM

An error occurs when ubuntu mounts a mobile hard disk: mount: unknownfilesystemtype'exfat'. The processing method is as follows: Ubuntu13.10 or install exfat-fuse: sudoapt-getinstallexfat-fuseUbuntu13.04 or below sudoapt-add-repositoryppa:relan/exfatsudoapt-getupdatesudoapt-getinstallfuse- exfatCentOS Linux mount exfat format USB disk error solution to load extfa in CentOS

PHP framework and CMS integration: unlimited possibilities for technology integration PHP framework and CMS integration: unlimited possibilities for technology integration Jun 01, 2024 pm 05:16 PM

The benefits brought by the integration of PHP framework and CMS are: 1. Improve development efficiency; 2. Enhance security; 3. Simplify content management; 4. Flexibility. In a practical case, the Laravel framework was integrated with WordPressCMS to create a blog website with customized functions. The integration steps include creating a Laravel application, installing WordPress, configuring WordPress, creating a controller, defining routing, obtaining WordPress data, and in the Laravel view Display Data.

How to implement change event binding of select elements in jQuery How to implement change event binding of select elements in jQuery Feb 23, 2024 pm 01:12 PM

jQuery is a popular JavaScript library that can be used to simplify DOM manipulation, event handling, animation effects, etc. In web development, we often encounter situations where we need to change event binding on select elements. This article will introduce how to use jQuery to bind select element change events, and provide specific code examples. First, we need to create a dropdown menu with options using labels:

PHP framework and CMS: the hidden mechanism behind the integration PHP framework and CMS: the hidden mechanism behind the integration May 31, 2024 pm 08:05 PM

The mechanisms for integrating the PHP framework with the CMS include: hooks and events, which allow the CMS to hook into the framework's life cycle events. Bridges and adapters provide standardized methods for calling CMS functions. Self-contained code that enables the CMS to run independently of the framework. Practical example: It is possible to integrate a WordPress blog into the Laravel framework by creating custom routes, controllers and importing database dumps.

Practical tips for integrating PHPcms with other systems Practical tips for integrating PHPcms with other systems Mar 15, 2024 am 08:18 AM

Practical tips for integrating PHPcms with other systems With the continuous development of Internet technology, the field of website development has become more diverse and complex. In actual projects, we often face situations where different systems need to be integrated, which requires us to have certain skills and experience to solve these problems. This article will introduce some practical tips and specific code examples for the integration of the PHPcms system with other systems to help developers better cope with challenges. 1. Basic Principles of Integration When performing system integration, it is first necessary to

Top 10 PHP CMS Platforms For Developers in 2024 Top 10 PHP CMS Platforms For Developers in 2024 Dec 05, 2024 am 10:29 AM

CMS stands for Content Management System. It is a software application or platform that enables users to create, manage, and modify digital content without requiring advanced technical knowledge. CMS allows users to easily create and organize content

Build a PHP cloud transcoding CMS system to implement video transcoding services Build a PHP cloud transcoding CMS system to implement video transcoding services Mar 16, 2024 am 08:30 AM

Build a PHP cloud transcoding CMS system to implement video transcoding services. With the rapid development of online videos, video transcoding services have become more and more important. In order to meet users' needs for video transcoding, building a PHP cloud transcoding CMS system is a good choice. In this article, we will introduce how to build a simple PHP cloud transcoding CMS system and provide specific code examples. First, we need to prepare a basic PHP development environment. Make sure you have PHP and MySQL installed and have a web server such as Apa

Imperial CMS directory location revealed Imperial CMS directory location revealed Mar 12, 2024 pm 10:33 PM

The location of the Empire CMS directory is revealed. Specific code examples are needed. Empire CMS (EmpireCMS) is a widely used open source content management system. Its flexibility and feature richness are loved by users. During the website development process, it is crucial to understand the directory structure and file location of Empire CMS, as this helps developers better manage website content and functions. This article will reveal the directory location of Empire CMS and provide specific code examples to help readers gain a deeper understanding of this content management system. 1.Basic directory structure

See all articles