In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how dedecms weaves dreams to add search function to the list of backstage administrators, which can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
How does dedecms dream weave a search function to the list of background administrators?
Recently, we have made a management system for a customer with the dream weaving system. The number of administrator accounts assigned by the customer has reached more than 300, which is very inconvenient to search. It is actually quite easy to add an administrator account search function at the request of the customer. There are two ways to modify the file. First, open the file:
1. Default is / dede/templets/sys_admin_user.htm, and add the code in the appropriate location:
Administrator search:
2. Find / dede/sys_admin_user.php, find:
Else $rank = "WHERE CONCAT (dede_admin.usertype) ='$rank'"
Add under this:
If (! isset ($keyword)) $keyword ='; else $keyword = trim (FilterSearch ($keyword))
Find: $query = "SELECT dede_admin.*,dede_arctype.typename FROM dede_admin LEFT JOIN dede_arctype ON dede_admin.typeid = dede_arctype.id $rank";, modify to:
If ($keyword'') {$query = "SELECT dede_admin.*,dede_arctype.typename FROM dede_admin LEFT JOIN dede_arctype ON dede_admin.typeid = dede_arctype.id $rank where userid LIKE'% $keyword%' OR uname LIKE'% $keyword%'";} else {$query = "SELECT dede_admin.*,dede_arctype.typename FROM dede_admin LEFT JOIN dede_arctype ON dede_admin.typeid = dede_arctype.id $rank" } Thank you for reading this article carefully. I hope it is helpful for everyone to share how dedecms weaves a dream to add search function to the list of background administrators. At the same time, I also hope you can support us, pay attention to the industry information channel, and find out if you have any problems. Detailed solutions are waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.