How to create a new page in International FMS?

Step 1: Add a new page in templates

- Create a new HTML file (ex: example.html) in \templates\pages\

After add or modify template, you need to open [your domain]/php/build.php to build all templates into the cache, FMS will get the template from the cache.

Step 2: Add new menu item to EupMenuItems.js

Add new item to /js/eup/EupMenuItems.js (EupMenuItems_VN.js for VN version) like above example

Step 3: /js/router.js: You can configure all javascript files, css files here

Using Eup.addScript to call the necesary javascript files, these javascript files will be removed when open new page, therefore you can set reload=false to no remove it

Using Eup.addStyle to call the necesary css files, these css files will be removed when open new page, therefore you can set reload=false to no remove it

Step 4: Create a js file to control everything for this page

In this example, create new file /js/eup/controller/reports/example_eup.js (same as configuration in router.js)