All module items are storing in table "els)modules"
How to add a new menu item ?
To add a new menu item you need to add new row into the "els_modules" table . For example , you want to add new menu "Reports" under the menu "My profile".
Insert one row into modules table as below .
insert into els_modules (module_name,file_name,parent_id,priority, access_key, can_be_default) values('Reports', 'custom_report_file', 14, 3, 'myreports', 0)
We are passing "14" as parent_id , because the id from My profile menu is 14.
After inserting this rows , you need to add this menu item to "language" files . To do this , open "english.php" and all other language files from "lang" folder , and add this changes as below .
After you have created new menu item in "els_modules" table you need to define access list for this menu item , to display it in "Users"->"Access Management" .
After that , you need to create 2 files "reports_file.php" and reports_file_temp.php" and write you php codes there and put it into the modules/custom folder .
To check having access to "Reports" menu , you can use "menu" function of "access" class. As a first parameter you need to pass "access_key" column of "modules" table . Here is an example :
Will return true if has access . Pass "true" as a second parameter if you want to redirect to login page if user doesn't have access.
By default there are some system folders inside the "modules" folder
CMS - All files about Page categories and pages are storing in this folder
UM - All files about user management are storing in this folder
RATES - All files about rating are storing in this folder
SYSTEM - All system files are storing in this folder .
You should put your custom files into the CUSTOM folder
System takes "module" key from query string and loads file from the defined folder .
For example if you have index.php?module=custom_contacts string , then system will load contacs.php and contacts_tmp.php inside custom folder .
If you want to change the design of system , you can add your own template and change the design .
1) Copy "lite" folder that inside "themes" folder and rename it to any other template .
2) Modify files inside newly created folder .
3) Open config.php file and change $SITE_TEMPLATE variable to newly created folder , and you will have your web site with another design