search
HomeBackend DevelopmentPHP TutorialECSHOP backend development module steps_PHP tutorial

ECSHOP backend development module steps

1. Build database

2. Add it to the background navigation bar and configure relevant language packs

3. Permission configuration

4. Add, add, delete, check and modify

5. Add other functions (copy, search (the page cannot be brought up temporarily), sorting, transfer, AJAX)

The following is an example of adding a payment information module:

In the first step, we use phpmyadmin to build a payment table to store payment-related data information.

The second step is to add to the left navigation bar of the background and configure permissions and related language packages. Modify four files inc_priv.php, inc_menu.php, priv_action.php and common.php in total

1. Open languageszh_cnadmincommon.php, find /* menu classification part */ add:

$_LANG['18_pay'] = '支付管理';

Also add:

at the end of the file
/* 支付管理 */
$_LANG['02_pay_list'] = '支付人信息';  

$_LANG['03_pay_charge'] = '账户充值';  

$_LANG['04_pay_record'] = '流水记账';

2. Open adminincludesinc_menu.php and add:

at the end
$modules['18_pay']['02_pay_list']     = 'pay.php?act=list';  

$modules['18_pay']['03_pay_charge'] = 'pay.php?act=charge';  

$modules['18_pay']['04_pay_record']     = 'pay.php?act=record';

OK, the menu bar displays

The third step is to configure the permission system (involving files: priv_action.php, inc_priv.php)

1. Insert data pay, pay_manage, pay_drop into the table ecs_admin_action.

Note that parent_id = 0 is the top-level column, and the operations of other sub-columns inherit the parent_id and are associated with the top-level column (note the relationship between action_id and parent_id). For example, if you add a top-level column pay, the action_id is 136, and the parent_id is 0; then the parent_id of its sub-columns pay_manage and pay_drop are both 136;


2. Open languageszh_cnadminpriv_action.php and add:

under /* First-level grouping of permission management */
$_LANG['pay']        = '支付管理';

At the end of the file add:

//支付管理
$_LANG['pay_manage'] = '支付添加/编辑';
$_LANG['pay_drop']   = '支付删除';
3.打开admin\includes\inc_priv.php,在文件末尾添加:
//支付管理
$purview['02_pay_info']          = array('pay_manage', 'pay_drop');
$purview['03_pay_charge']        = 'pay_manage';
$purview['04_pay_record']        = 'pay_manage';

The fourth step is to add basic add, delete, modify and check functions, create four files pay.php, pay_list, pay_info, pay_search, and add the "Add" function

/*------------------------------------------------------ */
//-- 添加支付人信息
/*------------------------------------------------------ */
if ($_REQUEST['act'] == 'add')
{
/* 权限判断 */
// admin_priv('pay_manage');
}

/*------------------------------------------------------ */
//-- 添加支付人信息
/*------------------------------------------------------ */
if ($_REQUEST['act'] == 'insert')
{
/* 权限判断 */
//admin_priv('pay_manage');

admin_log($_POST['pay_id'],'add','exchange_goods');

clear_cache_files(); // 清除相关的缓存文件

sys_msg($_LANG['articleadd_succeed'],0, $link);
}

Note: The admin_priv function determines whether it has permissions

Articles you may be interested in

  • The simplest way to implement MVC development in PHP, thinking about the model
  • SEO issues that programmers should pay attention to when developing websites
  • Background ajax asynchronous modification example
  • Master-slave synchronization backup steps of mysql database in windows environment
  • PHP acquisition time interval Summary of methods, PHP display forum posting time interval method collection
  • Google Maps Development API Tutorial Address
  • Web front-end development gadget collection
  • JS to implement simulation of Sina Weibo lobby and Tencent Weibo homepage Weibo message scrolling effect

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/764205.htmlTechArticleECSHOP background development module step 1. Build database 2. Add to background navigation bar and configure relevant language pack 3. Permissions Configuration four, adding additions, deletions, checking and modifications five, adding other functions (copy...
Statement
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
Discuz后台登录问题解决方法大揭秘Discuz后台登录问题解决方法大揭秘Mar 03, 2024 am 08:57 AM

Discuz后台登录问题解决方法大揭秘,需要具体代码示例随着互联网的快速发展,网站建设变得越来越普遍,而Discuz作为一款常用的论坛建站系统,受到了许多站长的青睐。然而,正是因为其功能强大,有时候我们在使用Discuz的过程中会遇到一些问题,比如后台登录问题。今天,我们就来大揭秘Discuz后台登录问题的解决方法,并且提供具体的代码示例,希望能帮助到有需要

我创建了一个由 ChatGPT API 提供支持的语音聊天机器人,方法请收下我创建了一个由 ChatGPT API 提供支持的语音聊天机器人,方法请收下Apr 07, 2023 pm 11:01 PM

今天这篇文章的重点是使用 ChatGPT API 创建私人语音 Chatbot Web 应用程序。目的是探索和发现人工智能的更多潜在用例和商业机会。我将逐步指导您完成开发过程,以确保您理解并可以复制自己的过程。为什么需要不是每个人都欢迎基于打字的服务,想象一下仍在学习写作技巧的孩子或无法在屏幕上正确看到单词的老年人。基于语音的 AI Chatbot 是解决这个问题的方法,就像它如何帮助我的孩子要求他的语音 Chatbot 给他读睡前故事一样。鉴于现有可用的助手选项,例如,苹果的 Siri 和亚马

WordPress后台乱码烦恼?试试这些解决方案WordPress后台乱码烦恼?试试这些解决方案Mar 05, 2024 pm 09:27 PM

WordPress后台乱码烦恼?试试这些解决方案,需要具体代码示例随着WordPress在网站建设中的广泛应用,许多用户可能会遇到WordPress后台乱码的问题。这种问题会导致后台管理界面显示乱码,给用户的使用带来极大困扰。本文将介绍一些常见的解决方案,帮助用户解决WordPress后台乱码的烦恼。修改wp-config.php文件打开wp-config.

摔倒检测-完全用ChatGPT开发,分享如何正确地向ChatGPT提问摔倒检测-完全用ChatGPT开发,分享如何正确地向ChatGPT提问Apr 07, 2023 pm 03:06 PM

哈喽,大家好。之前给大家分享过摔倒识别、打架识别​,今天以摔倒识别​为例,我们看看能不能完全交给ChatGPT来做。让ChatGPT​来做这件事,最核心的是如何向ChatGPT​提问,把问题一股脑的直接丢给ChatGPT​,如:用 Python 写个摔倒检测代码 是不可取的, 而是要像挤牙膏一样,一点一点引导ChatGPT​得到准确的答案,从而才能真正让ChatGPT提高我们解决问题的效率。今天分享的摔倒识别​案例,与ChatGPT​对话的思路清晰,代码可用度高,按照GPT​返回的结果完全可以开

ThinkPHP6后台管理系统开发:实现后台功能ThinkPHP6后台管理系统开发:实现后台功能Aug 27, 2023 am 11:55 AM

ThinkPHP6后台管理系统开发:实现后台功能简介:随着互联网技术和市场需求的不断发展,越来越多的企业和组织需要一个高效、安全、灵活的后台管理系统来管理业务数据和进行运营管理。本文将使用ThinkPHP6框架,通过实例演示如何开发一个简单但实用的后台管理系统,包括权限控制、数据增删改查等基本功能。环境准备在开始之前,我们需要安装好PHP、MySQL、Com

Win11禁止软件后台运行的方法?Win11禁止软件后台运行的方法?Jun 30, 2023 am 08:17 AM

win11如何禁止软件后台运行?我们在使用一些软件,不使用的时候,我们就会关闭掉软件,有些软件关闭后还会在后台运行,在后台运行的过程中,电脑会造成一定的卡顿,就有小伙伴想知道应该如何在win11中禁止软件后台运行。小编下面整理了win11禁止软件后台运行步骤,感兴趣的话,跟着小编一起往下看看吧!win11禁止软件后台运行步骤1、按下快捷键“win+X”,在上方给出的选项中选择“设置”。2、进入新界面后,点击“应用”,接着找到右侧中的“应用和功能”。3、在其中,找到“Microsoft资讯”,点击

Discuz后台登录失败?教你轻松解决!Discuz后台登录失败?教你轻松解决!Mar 02, 2024 pm 06:03 PM

Discuz后台登录失败?教你轻松解决!随着Discuz作为一款流行的论坛平台,在网站搭建和管理中被广泛使用,有时会遇到后台登录失败的情况,让人感到困扰。今天我们就来讨论一下可能导致Discuz后台登录失败的问题,并提供一些解决方案,也会附上具体的代码示例。希望本文能帮助到遇到类似问题的网站管理员和开发者。1.问题排查在解决Discuz后台登录失败的问题之

ecshop是什么构架ecshop是什么构架Feb 23, 2023 am 09:32 AM

ecshop是“B2C”构架;ecshop是一款B2C独立网店系统,适合企业及个人快速构建个性化网上商店;该系统是基于PHP语言及MYSQL数据库构架开发的跨平台开源程序。

See all articles

Hot AI Tools

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.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),