Professional Documents
Culture Documents
Table of contents
Table of contents 2
اﻟﺒﺤﺚ 15
اﻟﺴﺠﻼت 18
ﺳﺠﻞ دﻓﻌﺎﺗﻲ 18
ﺳﺠﻞ ﺗﺤﻮﯾﻼﺗﻲ 18
اﺳﺘﻌﺮاض 26
اﺳﺘﻌﺮاض اﻟﻤﻘﺎﺳﻢ 26
ﻣﺴﺘﺨﺪﻣﻲ اﻟﻨﻈﺎم 30
Backend
➔ In agent2/application/config => We edited on:
1. config.php
2. databases.php
3. Token.php
➔ agent2/application/controllers (All controllers)
➔ agent2/application/models (All models)
➔ agent2/exported/templates:
There are appropriate templates for exporting data to Excel.
Frontend
➔ agent2/file/dist/translations:
Language files exist.
➔ agent2/file/dist/images:
All images in system .
➔ agent2/file/src/css:
All styles in system.
➔ agent2/file/src/js
All functions and routes in frontend system.
➔ agent2/file/templates/
All view pages.
Log
➔ In agent2/logs:
All logs in system.
Other
➔ agent2/agent-upload
➔ agent2/change_token
➔ agent2/agent_config.txt
➔ agent2/gulpfile.js
User guide and documentation
ﺗﺴﺠﯿﻞ اﻟﺪﺧﻮل
In the browser when requesting the address: https://agent2.nas.sy
We move to the login page
Where the code and password are placed and press the login
button
At the code level: in agent2/application/config/config.php
There is the link we are requesting :
$config['base_url'] = 'agent2.nas.sy';
In agent2/application/config/database.php
There is database information that we use
ﻣﻌﻠﻮﻣﺎت اﻟﺤﺴﺎب
When you press the button
Here is the user information and can edit his personal information by clicking
on:
At the code level: The information is sent from the interface through the
function updateUserInfo that it is located in
agent2/file/src/js/directives.js
The possibility of this modification is verified by a function index_put that is
located in agent2/application/controllers/User.php
The database is then modified by a function updateUserInfo that is located in
agent2/application/models/UserModel.php
● User Status: The user status is then modified by a function
updateUserStatus that is located in agent2/file/src/js/directives.js
The possibility of this modification is verified by a function status_post
that is located in a gent2/application/controllers/User.php The result
is returned from the database by a function updateUserStatus that is
located in agent2/application/models/UserModel.php
At the code level: The information is sent from the interface through the
function updateUserPassword that it is located in
agent2/file/src/js/directives.js The possibility of this modification is
verified by a function editPassword_post that is located in
agent2/application/controllers/User.php
The database is then modified by a function updatePassword that is located in
agent2/application/models/UserModel.php
ﺳﺠﻞ اﻟﺘﺤﻮﯾﻼت
إﺿﺎﻓﺔ ﻣﺴﺘﺨﺪم
When you press the button
We can add a new user to the system when filling this data.
At the code level: When requesting a page /addEmployee in
agent2/file/src/js/app.route.js this is where the following HTML page is
requested: agent2/file/templates/addEmployee.html.
In function index_post that is located in
agent2/application/controllers/User.php check the User privilege and
discuss mistakes,The user is added to the database through a function add_user
that is located in a gent2/application/models/UserModel.php.
ﺗﺤﻮﯾﻞ رﺻﯿﺪ
When you press the button
اﻟﺴﺠﻼت
ﺳﺠﻞ دﻓﻌﺎﺗﻲ
ﺳﺠﻞ ﺗﺤﻮﯾﻼﺗﻲ
ﻃﻠﺒﺎت ﺷﺮاء
اﺷﺘﺮاك ﺟﺪﯾﺪ
اﺳﺘﻌﺮاض اﻟﻤﻘﺎﺳﻢ
Here is displayed all the bpx in the system with the possibility
of deleting and modifying any of them and exporting to Excel
and zeroing of all pbx.
At the code level: When requesting a page /browsePbx in
agent2/file/src/js/app.route.js the template is executed pbx-list that is
located in a gent2/file/src/js/directives.js this is where the following
HTML page is requested: agent2/file/templates/pbxList.html, there are
functions for all operations.
In function index_get that is located in
agent2/application/controllers/Pbx.php, check the User privilege and
discuss mistakes, get all pbx by a function getPbx that is located in
agent2/application/models/PbxModel.php.
ﺗﻨﺒﯿﻪ ﻋﺎم
اﻟﺪﻓﻌﺎت
اﻷرﺷﯿﻒ
When you press the button A submenu opens:
ﺳﺠﻞ اﻟﺪﻓﻌﺎت
ﺳﺠﻞ اﻟﺘﺤﻮﯾﻼت
ﺣﺎﻟﺔ اﻟﻨﻈﺎم
When you press the button
اﻟﻤﻘﺎﺳﻢ
When you press the button A submenu opens:
ﺗﺴﺠﯿﻞ اﻟﺨﺮوج
In agent2/file/src/js/services.js exist function logout, remove user in
cookies and send request to MainCtrl.php in
agent2/application/controllers/MainCtrl.php
Export to Excel
In function _export that is located in
agent2/application/controllers/MainCtrl.php, we can export some data in
system (report , incoming transaction,all pbx , …)
Templates located in agent2/exported/templates